WO2020078183A1 - Dns查询方法及相关产品 - Google Patents

Dns查询方法及相关产品 Download PDF

Info

Publication number
WO2020078183A1
WO2020078183A1 PCT/CN2019/107879 CN2019107879W WO2020078183A1 WO 2020078183 A1 WO2020078183 A1 WO 2020078183A1 CN 2019107879 W CN2019107879 W CN 2019107879W WO 2020078183 A1 WO2020078183 A1 WO 2020078183A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
network
address
terminal device
dns
Prior art date
Application number
PCT/CN2019/107879
Other languages
English (en)
French (fr)
Inventor
王立中
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2020078183A1 publication Critical patent/WO2020078183A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Definitions

  • This application relates to the field of communication technology, specifically to a DNS query method and related products.
  • electronic devices can share data networks by enabling wireless fidelity (Wi-Fi) hotspots.
  • Other terminal devices can access the Wi-Fi hotspots of electronic devices to achieve Internet access.
  • Wi-Fi wireless fidelity
  • Other terminal devices can access the Wi-Fi hotspots of electronic devices to achieve Internet access.
  • electronic devices turn on Wi-Fi After a hot spot, the terminal device can perform network access by querying the domain name system (DNS) server allocated by the electronic device, but the electronic device takes a long time to process the DNS query, resulting in low efficiency of the terminal device network. Therefore, how The problem of reducing the time for DNS queries and improving the efficiency of Internet access via Wi-Fi hotspots of electronic devices urgently needs to be resolved.
  • DNS domain name system
  • the embodiments of the present application provide a DNS query method and related products, with a view to increasing the speed of link connection, reducing network delay, and optimizing the user's gaming experience.
  • an embodiment of the present application provides a DNS query method, which is applied to an electronic device, and the method includes:
  • the target IP address is the IP address of the target DNS server
  • the target DNS server is The electronic equipment provides the DNS server of the data network
  • an embodiment of the present application provides a DNS query device, which is applied to an electronic device.
  • the DNS query device includes:
  • An activation unit configured to activate a Wi-Fi hotspot and assign a target IP address to a terminal device to be accessed to the Wi-Fi hotspot, wherein the target IP address is an IP address of a target DNS server, and the target DNS
  • the server is a DNS server that provides a data network to the electronic device;
  • a receiving unit configured to receive a DNS request sent by the terminal device, where the DNS request carries network request data
  • a sending unit configured to send the network request data to the target DNS server
  • the receiving unit is further configured to receive network response data sent by the target DNS server;
  • the sending unit is also used to send the network response data to the terminal device.
  • an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be processed by the above
  • the above program includes instructions for performing the steps in any method of the first aspect of the embodiments of the present application.
  • an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes the computer to execute the first embodiment of the present application.
  • the computer program causes the computer to execute the first embodiment of the present application.
  • an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing the computer program, and the computer program is operable to cause the computer to execute as implemented in the present application Examples of some or all of the steps described in any method of the first aspect.
  • the computer program product may be a software installation package.
  • FIG. 1A is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • 1B is a schematic flow chart of network data transmission within an electronic device when an electronic device turns on a Wi-Fi hotspot according to an embodiment of the present application;
  • 1C is a schematic flowchart of a DNS query method provided by an embodiment of the present application.
  • FIG. 1D is a schematic flowchart of an electronic device terminal device that receives a DNS request and sends it to a target DNS server according to an embodiment of the present application;
  • FIG. 2 is a schematic flowchart of a DNS query method provided by an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of a DNS query method provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • 5A is a block diagram of functional units of a DNS query device provided by an embodiment of the present application.
  • FIG. 5B is a block diagram of functional units constituting a modified structure of the DNS query device shown in FIG. 5A provided by an embodiment of the present application.
  • the electronic devices involved in the embodiments of the present application may include various handheld devices with wireless communication functions, in-vehicle devices, wireless headsets, computing devices, or other processing devices connected to a wireless modem, as well as various forms of user equipment (user equipment) , UE), mobile station (MS), etc., and the electronic device may be, for example, a smart phone, a tablet computer, etc.
  • the devices mentioned above are collectively referred to as electronic devices.
  • the terminal devices involved in the embodiments of the present application may include various handheld devices with wireless communication functions, in-vehicle devices, wireless headsets, computing devices, or other processing devices connected to a wireless modem, as well as various forms of user equipment (user equipment) , UE), mobile station (MS), etc., and the terminal device may be, for example, a smart phone, a tablet computer, or the like.
  • FIG. 1A is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the electronic device includes a control circuit and an input-output circuit, and the input-output circuit is connected to the control circuit.
  • the control circuit may include a storage and processing circuit.
  • the storage circuit in the storage and processing circuit may be a memory, such as a hard disk drive memory, a non-volatile memory (such as flash memory or other electronic programmable read-only memory used to form a solid-state drive, etc.), a volatile memory (such as static Or dynamic random access memory, etc.), the embodiments of the present application are not limited.
  • the processing circuit in the storage and processing circuit can be used to control the operation of the electronic device.
  • the processing circuit may be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.
  • the storage and processing circuits can be used to run software in electronic devices, such as playing incoming call alert ringing applications, playing short message alert ringing applications, playing alarm alert ringing applications, playing media file applications, voice over internet protocol (voice over internet protocol (VOIP) phone call application, operating system functions, etc.
  • These softwares can be used to perform some control operations, such as playing incoming call alert ringing, playing short message alert ringing, playing alarm alert ringing, playing media files, making voice phone calls, and other functions in electronic devices, etc., this application
  • the embodiment is not limited.
  • the input-output circuit can be used to enable the electronic device to input and output data, that is, to allow the electronic device to receive data from the external device and to allow the electronic device to output data from the electronic device to the external device.
  • the input-output circuit may further include a sensor.
  • the sensor may include an ambient light sensor, an infrared proximity sensor based on light and capacitance, an ultrasonic sensor, a touch sensor (for example, a light-based touch sensor and / or a capacitive touch sensor, where the touch sensor may be part of a touch display screen, or Can be used independently as a touch sensor structure), acceleration sensor, gravity sensor, and other sensors.
  • the input-output circuit may further include an audio component, and the audio component may be used to provide audio input and output functions for the electronic device. Audio components can also include tone generators and other components for generating and detecting sound.
  • the input-output circuit may also include one or more display screens.
  • the display screen may include a liquid crystal display screen, an organic light-emitting diode display screen, an electronic ink display screen, a plasma display screen, and one or a combination of several display screens using other display technologies.
  • the display screen may include a touch sensor array (ie, the display screen may be a touch display screen).
  • the touch sensor may be a capacitive touch sensor formed by an array of transparent touch sensor electrodes (such as indium tin oxide (ITO) electrodes), or may be a touch sensor formed using other touch technologies, such as sonic touch, pressure sensitive touch, resistance Touch, optical touch, etc. are not limited in the embodiments of the present application.
  • the input-output circuit may further include a communication circuit that can be used to provide an electronic device with the ability to communicate with an external device.
  • the communication circuit may include analog and digital input-output interface circuits, and wireless communication circuits based on radio frequency signals and / or optical signals.
  • the wireless communication circuit in the communication circuit may include a radio frequency transceiver circuit, a power amplifier circuit, a low noise amplifier, a switch, a filter, and an antenna.
  • the wireless communication circuit in the communication circuit may include a circuit for supporting near field communication (NFC) by transmitting and receiving near-field coupled electromagnetic signals.
  • the communication circuit may include a near field communication antenna and a near field communication transceiver.
  • the communication circuit may also include a cellular phone transceiver and antenna, a wireless local area network transceiver circuit and antenna, and so on.
  • the input-output circuit may further include other input-output units.
  • the input-output unit may include buttons, joysticks, click wheels, scroll wheels, touch pad, keypad, keyboard, camera, light emitting diodes, and other status indicators.
  • the electronic device may further include a battery (not shown), and the battery is used to provide electrical energy to the electronic device.
  • FIG. 1B is a schematic flow chart of network data transmission within an electronic device when an electronic device turns on a Wi-Fi hotspot according to an embodiment of the present application.
  • a packet of network data is transmitted from an application layer
  • the data packet reaches the Linux kernel kernel network protocol stack from the application layer, and then is sent to the network through the routing layer and hardware.
  • the application layer receives the packet, it receives the packet through the hardware, sends it to the driver, and then sends the driver to the kernel network protocol stack. , And finally sent to the application layer from the kernel network protocol stack.
  • FIG. 1C is a schematic flowchart of a DNS query method provided by an embodiment of the present application, which is applied to the electronic device shown in FIG. 1A.
  • the DNS query method includes:
  • the Wi-Fi hotspot Turn on the Wi-Fi hotspot and assign the target IP address to the terminal device to be accessed to the Wi-Fi hotspot, wherein the target IP address is the IP address of the target DNS server, and the target DNS server is The electronic device provides a DNS server of the data network.
  • the electronic device can enable a Wi-Fi hotspot to share network data with other terminal devices, and other terminal devices can connect to the Wi-Fi hotspot to access the Internet.
  • a software is enabled Wireless interface (soft access point, soft AP).
  • the soft AP interface corresponds to the first IP address. Assuming that the first IP address is 192.168.43.1, the electronic device can be used to receive DNS requests from terminal devices through the soft AP interface.
  • the target IP address can be allocated to the terminal device to be connected to the Wi-Fi hotspot by enabling a dnsmasq service process.
  • the target IP address is the IP address of the target DNS server.
  • the target IP address is, for example It can be 10.10.10.2, and the target DNS server is a DNS server that provides a data network to the electronic device. Therefore, the terminal device can obtain the target IP address corresponding to the target DNS server through the soft interface through the soft interface.
  • the electronic device may receive the DNS request sent by the terminal device through the soft AP interface.
  • the DNS request carries network request data, and the DNS request also includes a target location for sending the network request data.
  • step 102 after receiving the DNS request sent by the terminal device, the following steps may be further included:
  • the kernel network protocol stack of the electronic device receives the network request data, perform a route search through a PREROUTING processing point of the kernel network protocol stack to obtain a target route;
  • the terminal device when the terminal device sends a DNS request, it sends a DNS request with the destination IP address as the target IP address to the electronic device.
  • the network request data carried in the DNS request is sent to the kernel network protocol stack of the electronic device, it can be passed through the kernel The PREROUTING processing point of the network protocol stack performs route lookup to obtain the target route, and then the target route determines whether the network request data is to be sent to the target DNS server.
  • the network request data is sent to the target DNS server, which can be forwarded through the FARWARD processing point of the kernel network protocol stack and sent to the target DNS server through the driver layer.
  • sending the network request data to the target DNS server may include the following steps:
  • the target route determines that the network request data is to be sent to the target DNS server, it can be forwarded to the POSTROUTING processing point of the kernel network protocol stack through the FARWARD processing point, and then the network request data is sent to the target DNS server through the driver layer of the electronic device.
  • the target route determines the INPUT processing point of the kernel network protocol stack according to the first IP address and sends it to the application layer, and then the network requests data through the application layer Sent to the OUTPUT processing point of the kernel network protocol stack, and then sent to the POSTROUTING processing point of the kernel network protocol stack to provide the target DNS server of the network data, and finally sent from the driver layer to the target DNS server, where the network request data is sent from the kernel network
  • the INPUT processing point of the protocol stack is sent to the application layer, and then sent from the application layer to the OUTPUT processing point of the kernel network protocol stack. It takes a long time.
  • the method of sending network request data in this application does not need to send the network request data from the kernel
  • the INPUT processing point of the network protocol stack is sent to the application layer, and then sent from the application layer to the OUTPUT processing point of the kernel network protocol stack, thereby reducing the time of DNS queries and improving the efficiency of DNS queries.
  • the network response data may be sent to the electronic device, and the electronic device forwards the network response data to the terminal device, thereby implementing the terminal device's Internet access function.
  • the following steps may be further included:
  • the kernel network protocol stack of the electronic device receives the network response data, perform a route search through a PREROUTING processing point of the kernel network protocol stack to obtain the target route;
  • A2 When the target route determines that the sending location of the network response data is the terminal device, perform the operation of sending the network response data to the terminal device.
  • the route can be searched through the PREROUTING processing point of the kernel network protocol stack to obtain the target route, and then the target route determines whether the network response data is to be sent to the terminal device, and Send the network response data to the terminal device through the driver layer.
  • sending the network response data to the terminal device may include the following steps:
  • the target route determines that the network response data is to be sent to the target DNS server, it can be forwarded to the POSTROUTING processing point of the kernel network protocol stack through the FARWARD processing point, and then the network response data is sent to the terminal device through the driver layer of the electronic device.
  • FIG. 1D is a schematic diagram of a process for an electronic device terminal device to receive a DNS request and send it to a target DNS server according to an embodiment of the present application.
  • the electronic device turns on a Wi-Fi hotspot, a soft interface
  • the first IP address of the soft interface is 192.168.43.1
  • the electronic device assigns the target IP address 10.10.10.2 to the terminal device to be accessed through the soft interface
  • the terminal device can pass the first IP address 192.168.43.1
  • the DNS request carries the destination IP address and network request data.
  • the destination IP address is the target IP address 10.10.10.2.
  • the network request data When the network request data is sent to the kernel network protocol stack, it can be processed by PREROUTING Point to perform route lookup, get the target route, determine the destination IP address of the DNS request as the target IP address 10.10.10.2 through the target route, and forward the network request data to the POSTROUTING processing point of the kernel network protocol stack through the FARWARD processing point, and finally, pass The driver layer of the electronic device sends the network request data to the target DNS server according to the target IP address.
  • PREROUTING Point When the network request data is sent to the kernel network protocol stack, it can be processed by PREROUTING Point to perform route lookup, get the target route, determine the destination IP address of the DNS request as the target IP address 10.10.10.2 through the target route, and forward the network request data to the POSTROUTING processing point of the kernel network protocol stack through the FARWARD processing point, and finally, pass The driver layer of the electronic device sends the network request data to the target DNS server according to the target IP address.
  • the target DNS server parses the result of the DNS request, it can send the network response data to the electronic device.
  • the kernel network protocol stack of the electronic device receives the network response data, it performs a route search through the PREROUTING processing point to obtain the target route. The route determines that the network response data is sent to the terminal device, and forwards the network response data to the POSTROUTING processing point of the kernel network protocol stack through the FARWARD processing point. Finally, the network response data is sent to the terminal device through the driver layer, thereby implementing the terminal device Internet access.
  • the electronic device first turns on the Wi-Fi hotspot and assigns the target IP address to the terminal device to be connected to the Wi-Fi hotspot, where the target IP address is the IP address of the target DNS server,
  • the target DNS server is a DNS server that provides a data network to electronic devices, receives DNS requests sent by terminal devices, and the DNS requests carry network request data, sends the network request data to the target DNS server, receives network response data sent by the target DNS server, and sends The network response data is sent to the terminal device.
  • the DNS query can be performed by providing the IP address of the DNS server of the data network, reducing the query time and improving the query efficiency.
  • FIG. 2 is a schematic flowchart of a DNS query method provided by an embodiment of the present application, which is applied to the electronic device shown in FIG. 1A, as shown
  • the DNS query method includes:
  • the electronic device provides a DNS server of the data network.
  • the kernel network protocol stack of the electronic device receives the network request data, perform a route search through a PREROUTING processing point of the kernel network protocol stack to obtain a target route.
  • the kernel network protocol stack of the electronic device receives the network response data, perform a route search through the PREROUTING processing point to obtain the target route.
  • the target route determines that the sending location of the network response data is the terminal device, forward the network response data to the POSTROUTING processing point of the kernel network protocol stack through the FARWARD processing point.
  • the electronic device can turn on the Wi-Fi hotspot and assign the target IP address to the terminal device to be accessed to the Wi-Fi hotspot, and receive the DNS request and DNS sent by the terminal device The request carries the network request data.
  • the kernel network protocol stack of the electronic device When the kernel network protocol stack of the electronic device receives the network request data, it performs a route search through the PREROUTING processing point of the kernel network protocol stack to obtain the target route, and determines the destination IP address of the DNS request as the target IP through the target route Address, and forward the network request data to the POSTROUTING processing point of the kernel network protocol stack through the FARWARD processing point, and send the network request data to the target DNS server according to the target IP address through the driver layer of the electronic device, and receive the network response sent by the target DNS server Data
  • the kernel network protocol stack of the electronic device when the kernel network protocol stack of the electronic device receives the network response data, it performs a route search through the PREROUTING processing point to obtain the target route, and when the target route determines that the network response data is sent to the terminal device, the network response data is processed by FARWARD Point forwarding to the kernel network protocol stack POSTROUTING processing point, the network response data is sent to the terminal device through the driver layer.
  • the DNS query can be performed by providing the IP address of the DNS server of the data network without requesting data from the network From the INPUT processing point of the kernel network protocol stack to the application layer, and then from the application layer to the OUTPUT processing point of the kernel network protocol stack, thereby reducing the time of DNS queries and improving the efficiency of DNS queries.
  • FIG. 3 is a schematic flowchart of a DNS query method provided by an embodiment of the present application, which is applied to the electronic device shown in FIG. 1.
  • the DNS query method includes:
  • An electronic device turns on a Wi-Fi hotspot and assigns a target IP address to a terminal device to be connected to the Wi-Fi hotspot, wherein the target IP address is the IP address of a target DNS server, and the target DNS server A DNS server for providing a data network to the electronic device.
  • the terminal device sends a DNS request to the electronic device, where the DNS request carries network request data.
  • the electronic device sends the network request data to the target DNS server.
  • the target DNS server sends network response data to the electronic device.
  • the electronic device sends the network response data to the terminal device.
  • the electronic device turns on the Wi-Fi hotspot and assigns the target IP address to the terminal device to be connected to the Wi-Fi hotspot, where the target IP address is the IP address of the target DNS server, and the target
  • the DNS server is a DNS server that provides a data network to the electronic device.
  • the terminal device sends a DNS request to the electronic device.
  • the DNS request carries network request data.
  • the electronic device sends the network request data to the target DNS server.
  • the target DNS server sends a network response to the electronic device.
  • the electronic device sends the network response data to the terminal device.
  • the DNS query can be performed by providing the IP address of the DNS server of the data network, reducing query time and improving query efficiency.
  • FIG. 4 is a schematic structural diagram of another electronic device disclosed in an embodiment of the present application.
  • the electronic device includes a processor, a memory, a communication interface, and one or more programs.
  • One or more programs are stored in the above-mentioned memory and are configured to be executed by the above-mentioned processor.
  • the above-mentioned program includes instructions for performing the following steps:
  • the target IP address is the IP address of the target DNS server
  • the target DNS server is The electronic equipment provides the DNS server of the data network
  • the above program after receiving the DNS request sent by the terminal device, the above program further includes instructions for performing the following steps:
  • a route search is performed through a PREROUTING processing point of the kernel network protocol stack to obtain a target route;
  • the target IP address of the DNS request is determined by the target route as the target IP address, and the operation of sending the network request data to the target DNS server is performed.
  • the above-mentioned program includes instructions for performing the following steps:
  • the network request data is sent to the target DNS server according to the target IP address through the driver layer of the electronic device. .
  • the above program after receiving the network response data sent by the target DNS server, the above program further includes instructions for performing the following steps:
  • a route search is performed through a PREROUTING processing point of the kernel network protocol stack to obtain the target route;
  • the target route determines that the sending location of the network response data is the terminal device
  • the operation of sending the network response data to the terminal device is performed.
  • the above program includes instructions for performing the following steps:
  • the network response data is sent to the terminal device through the driver layer.
  • the above program includes instructions for performing the following steps:
  • Activate a dnsmasq service process and allocate the target IP address to the terminal device to be connected to the Wi-Fi hotspot through the dnsmasq service process.
  • the above-mentioned program includes instructions for performing the following steps:
  • the first IP address of the soft AP interface is an IP address different from the target IP address.
  • the DNS request further includes a target location for sending the network request data.
  • the electronic device includes a hardware structure and / or a software module corresponding to each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed by hardware or computer software driven hardware depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
  • the embodiments of the present application may divide the functional unit of the electronic device according to the above method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit.
  • the above integrated unit can be implemented in the form of hardware or software function unit. It should be noted that the division of units in the embodiments of the present application is schematic, and is only a division of logical functions, and there may be other division manners in actual implementation.
  • FIG. 5A is a schematic structural diagram of a DNS query device disclosed in an embodiment of the present application, which is applied to the electronic device shown in FIG. 1A.
  • the DNS query device includes an opening unit 501, a receiving unit 502, and a sending unit 503. ,among them,
  • the opening unit 501 is used to start a Wi-Fi hotspot and assign a target IP address to a terminal device to be accessed to the Wi-Fi hotspot, wherein the target IP address is the IP address of the target DNS server, so
  • the target DNS server is a DNS server that provides a data network to the electronic device;
  • the receiving unit 502 is configured to receive a DNS request sent by the terminal device, where the DNS request carries network request data;
  • the sending unit 503 is configured to send the network request data to the target DNS server;
  • the receiving unit 502 is further configured to receive network response data sent by the target DNS server;
  • the sending unit 503 is also used to send the network response data to the terminal device.
  • FIG. 5B is a modified structure of the DNS query device shown in FIG. 5A. Compared with FIG. 5A, it may further include: a searching unit 504 and a determining unit 505, where,
  • the searching unit is configured to, when the network request data of the kernel network protocol stack of the electronic device receives the network request data, perform a route search through a PREROUTING processing point of the kernel network protocol stack to obtain a target route;
  • the determining unit is configured to determine the target IP address of the DNS request as the target IP address through the target route, and the sending unit executes the sending of the network request data to the target DNS server Operation.
  • the sending unit is specifically configured to:
  • the network request data is sent to the target DNS server according to the target IP address through the driver layer of the electronic device.
  • the search unit is further configured to, after receiving the network response data sent by the target DNS server, when the network response data of the kernel network protocol stack of the electronic device receives the network response data, pass the kernel The PREROUTING processing point of the network protocol stack performs route lookup to obtain the target route;
  • the determining unit is further configured to, when the target route determines that the sending location of the network response data is the terminal device, and the sending unit executes the sending of the network response data to the terminal device Operation.
  • the sending unit is specifically configured to:
  • the network response data is sent to the terminal device through the driver layer.
  • the activation unit is specifically configured to:
  • Activate a dnsmasq service process and allocate the target IP address to the terminal device to be connected to the Wi-Fi hotspot through the dnsmasq service process.
  • the receiving unit is specifically configured to:
  • the first IP address of the soft AP interface is an IP address different from the target IP address.
  • the DNS request also includes the target location of the network request data transmission.
  • the electronic device first turns on the Wi-Fi hotspot and assigns the target IP address to the terminal device to be connected to the Wi-Fi hotspot, where the target IP address is the IP address of the target DNS server,
  • the target DNS server is a DNS server that provides a data network to electronic devices, receives DNS requests sent by terminal devices, and the DNS requests carry network request data, sends the network request data to the target DNS server, receives network response data sent by the target DNS server, and sends The network response data is sent to the terminal device.
  • the DNS query can be performed by providing the IP address of the DNS server of the data network, reducing the query time and improving the query efficiency.
  • each unit may be, for example, an integrated circuit ASIC, a single circuit, used to execute one or more software or firmware A program's processor (shared, dedicated, or chipset) and memory, combined logic circuits, and / or other suitable components that provide the functions described above.
  • An embodiment of the present application further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program causes the computer to execute any part of the sound effect processing method described in the above method embodiments Or all steps.
  • An embodiment of the present application also provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, the computer program is operable to cause the computer to execute as described in the above method embodiments Some or all steps of any sound processing method.
  • the disclosed device may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or may Integration into another system, or some features can be ignored, or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of software program modules.
  • the integrated unit is implemented in the form of a software program module and sold or used as an independent product, it may be stored in a computer-readable memory.
  • the technical solution of the present application essentially or part of the contribution to the existing technology or all or part of the technical solution can be embodied in the form of a software product, the computer software product is stored in a memory, Several instructions are included to enable a computer device (which may be a personal computer, server, network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application.
  • the foregoing memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, magnetic disk, or optical disk and other media that can store program codes.
  • the program may be stored in a computer-readable memory, and the memory may include: a flash disk , ROM, RAM, magnetic disk or optical disk, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本申请实施例公开了一种DNS查询方法,应用于电子设备,所述方法包括:电子设备开启Wi-Fi热点,并将目标IP地址分配给待接入Wi-Fi热点的终端设备,其中,目标IP地址为目标DNS服务器的IP地址,目标DNS服务器为给电子设备提供数据网络的DNS服务器,接收终端设备发送的DNS请求,DNS请求携带网络请求数据,将网络请求数据发送至目标DNS服务器,接收目标DNS服务器发送的网络响应数据,将网络响应数据发送至终端设备,如此,可在通过电子设备的Wi-Fi热点上网时,通过提供数据网络的DNS服务器的IP地址进行DNS查询,减少查询时间,提升查询效率。

Description

DNS查询方法及相关产品
本申请要求2018年10月16日递交的发明名称为“DNS查询方法及相关产品”的申请号2018112038351的在先申请优先权,上述在先申请的内容以引入的方式并入本文本中。
技术领域
本申请涉及通信技术领域,具体涉及一种DNS查询方法及相关产品。
背景技术
随着移动通信技术的发展,用户对数据通信的需求越来越大,目前市面上的电子设备在进行数据传输时,一般通过蜂窝移动网络通信或者Wi-Fi通信等方式发送数据。
目前,电子设备可以通过启用无线保真(wireless fidelity,Wi-Fi)热点来共享数据网络,其他的终端设备可接入电子设备的Wi-Fi热点实现上网功能,通常,电子设备开启Wi-Fi热点后,终端设备可通过查询电子设备分配的域名系统(domain name system,DNS)服务器,进行网络访问,但电子设备处理DNS查询的时间较长,导致终端设备网络的效率较低,因此,如何减少DNS查询的时间,提升通过电子设备的Wi-Fi热点上网效率的问题亟待解决。
发明内容
本申请实施例提供了一种DNS查询方法及相关产品,以期提高链路连接的速度,减少网络延迟,优化用户的游戏体验。
第一方面,本申请实施例提供一种DNS查询方法,应用于电子设备,所述方法包括:
开启Wi-Fi热点,并将目标IP地址分配给待接入所述Wi-Fi热点的终端设备,其中,所述目标IP地址为目标DNS服务器的IP地址,所述目标DNS服务器为给所述电子设备提供数据网络的DNS服务器;
接收所述终端设备发送的DNS请求,所述DNS请求携带网络请求数据;
将所述网络请求数据发送至所述目标DNS服务器;
接收所述目标DNS服务器发送的网络响应数据,将所述网络响应数据发送至所述终端设备。
第二方面,本申请实施例提供一种DNS查询装置,应用于电子设备,所述DNS查询装置包括:
开启单元,用于开启Wi-Fi热点,并将目标IP地址分配给待接入所述Wi-Fi热点的终端设备,其中,所述目标IP地址为目标DNS服务器的IP地址,所述目标DNS服务器为给所述电子设备提供数据网络的DNS服务器;
接收单元,用于接收所述终端设备发送的DNS请求,所述DNS请求携带网络请求数据;
发送单元,用于将所述网络请求数据发送至所述目标DNS服务器;
所述接收单元,还用于接收所述目标DNS服务器发送的网络响应数据;
所述发送单元,还用于将所述网络响应数据发送至所述终端设备。
第三方面,本申请实施例提供一种电子设备,包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,上述程序包括用于执行本申请实施例第一方面任一方法中的步骤的指令。
第四方面,本申请实施例提供了一种计算机可读存储介质,其中,上述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,上述计算机程序使得计算机执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤。
第五方面,本申请实施例提供了一种计算机程序产品,其中,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1A本申请实施例提供的一种电子设备的结构示意图;
图1B是本申请实施例提供的一种电子设备开启Wi-Fi热点时网络数据在电子设备内部进行传输的流程示意图;
图1C是本申请实施例提供了一种DNS查询方法的流程示意图;
图1D是本申请实施例提供的一种电子设备终端设备的接收DNS请求并发送给目标DNS服务器的流程示意图;
图2是本申请实施例提供了一种DNS查询方法的流程示意图;
图3是本申请实施例提供的一种DNS查询方法的流程示意图;
图4是本申请实施例提供的一种电子设备的结构示意图;
图5A是本申请实施例提供的一种DNS查询装置的功能单元组成框图;
图5B是本申请实施例提供的图5A所示的一种DNS查询装置的变型结构的功能单元组成框图。
具体实施方式
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
本申请实施例所涉及到的电子设备可以包括各种具有无线通信功能的手持设备、车载设备、无线耳机、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(user equipment,UE),移动台(mobile station,MS)等等,电子设备例如可以为智能手机、平板电脑等等。为方便描述,上面提到的设备统称为电子设备。
本申请实施例所涉及到的终端设备可以包括各种具有无线通信功能的手持设备、车载设备、无线耳机、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(user equipment,UE),移动台(mobile station,MS)等等,终端设备例如可以为智能手机、平板电脑等等。
请参阅图1A,图1A是本申请实施例提供的一种电子设备的结构示意图,电子设备包括控制电路和输入-输出电路,输入输出电路与控制电路连接。
其中,控制电路可以包括存储和处理电路。该存储和处理电路中的存储电 路可以是存储器,例如硬盘驱动存储器,非易失性存储器(例如闪存或用于形成固态驱动器的其它电子可编程只读存储器等),易失性存储器(例如静态或动态随机存取存储器等)等,本申请实施例不作限制。存储和处理电路中的处理电路可以用于控制电子设备的运转。该处理电路可以基于一个或多个微处理器,微控制器,数字信号处理器,基带处理器,功率管理单元,音频编解码器芯片,专用集成电路,显示驱动器集成电路等来实现。
存储和处理电路可用于运行电子设备中的软件,例如播放来电提示响铃应用程序、播放短消息提示响铃应用程序、播放闹钟提示响铃应用程序、播放媒体文件应用程序、互联网协议语音(voice over internet protocol,VOIP)电话呼叫应用程序、操作系统功能等。这些软件可以用于执行一些控制操作,例如,播放来电提示响铃、播放短消息提示响铃、播放闹钟提示响铃、播放媒体文件、进行语音电话呼叫以及电子设备中的其它功能等,本申请实施例不作限制。
其中,输入-输出电路可用于使电子设备实现数据的输入和输出,即允许电子设备从外部设备接收数据和允许电子设备将数据从电子设备输出至外部设备。
输入-输出电路可以进一步包括传感器。传感器可以包括环境光传感器,基于光和电容的红外接近传感器,超声波传感器,触摸传感器(例如,基于光触摸传感器和/或电容式触摸传感器,其中,触摸传感器可以是触控显示屏的一部分,也可以作为一个触摸传感器结构独立使用),加速度传感器,重力传感器,和其它传感器等。输入-输出电路还可以进一步包括音频组件,音频组件可以用于为电子设备提供音频输入和输出功能。音频组件还可以包括音调发生器以及其它用于产生和检测声音的组件。
输入-输出电路还可以包括一个或多个显示屏。显示屏可以包括液晶显示屏,有机发光二极管显示屏,电子墨水显示屏,等离子显示屏,使用其它显示技术的显示屏中一种或者几种的组合。显示屏可以包括触摸传感器阵列(即,显示屏可以是触控显示屏)。触摸传感器可以是由透明的触摸传感器电极(例如氧化铟锡(ITO)电极)阵列形成的电容式触摸传感器,或者可以是使用其它触摸技术形成的触摸传感器,例如音波触控,压敏触摸,电阻触摸,光学触摸等,本申请实施例不作限制。
输入-输出电路还可以进一步包括通信电路可以用于为电子设备提供与外部设备通信的能力。通信电路可以包括模拟和数字输入-输出接口电路,和基于射频信号和/或光信号的无线通信电路。通信电路中的无线通信电路可以包括射频收发器电路、功率放大器电路、低噪声放大器、开关、滤波器和天线。举例来说,通信电路中的无线通信电路可以包括用于通过发射和接收近场耦合 电磁信号来支持近场通信(near field communication,NFC)的电路。例如,通信电路可以包括近场通信天线和近场通信收发器。通信电路还可以包括蜂窝电话收发器和天线,无线局域网收发器电路和天线等。
输入-输出电路还可以进一步包括其它输入-输出单元。输入-输出单元可以包括按钮,操纵杆,点击轮,滚动轮,触摸板,小键盘,键盘,照相机,发光二极管和其它状态指示器等。
其中,电子设备还可以进一步包括电池(未图示),电池用于给电子设备提供电能。
下面对本申请实施例进行详细介绍。
请参阅图1B,图1B是本申请实施例提供的一种电子设备开启Wi-Fi热点时网络数据在电子设备内部进行传输的流程示意图,如图1B所示,网络数据的数据包从应用层发包时,数据包从应用层到达linux内核kernel网络协议栈,再经由路由层和硬件发送到网络,应用层收包时,通过硬件收包,发送至驱动,再由驱动发送至kernel网络协议栈,最后从kernel网络协议栈发送至应用层。
请参阅图1C,图1C是本申请实施例提供了一种DNS查询方法的流程示意图,应用于如图1A所示的电子设备,如图1C所示,本DNS查询方法包括:
101、开启Wi-Fi热点,并将目标IP地址分配给待接入所述Wi-Fi热点的终端设备,其中,所述目标IP地址为目标DNS服务器的IP地址,所述目标DNS服务器为给所述电子设备提供数据网络的DNS服务器。
本申请实施例中,电子设备可启用Wi-Fi热点来共享网络数据给其他的终端设备,其他终端设备可通过连接该Wi-Fi热点实现上网,在开启Wi-Fi热点时,会启用一个软件无线接口(soft access point,soft ap),该soft ap接口对应第一IP地址,假定该第一IP地址为192.168.43.1,电子设备通过soft ap接口可用于接收终端设备的DNS请求,电子设备在在开启Wi-Fi热点时,可通过启用一个dnsmasq服务进程,将目标IP地址分配给待接入所述Wi-Fi热点的终端设备,目标IP地址为目标DNS服务器的IP地址,目标IP地址例如可以为10.10.10.2,目标DNS服务器为给电子设备提供数据网络的DNS服务器,从而,终端设备可通过连接soft ap接口,并通过soft ap接口获取目标DNS服务器对应的目标IP地址。
102、接收所述终端设备发送的DNS请求,所述DNS请求携带网络请求数据。
本申请实施例中,电子设备可通过soft ap接口接收终端设备发送的DNS请求,该DNS请求携带网络请求数据,DNS请求中还包含网络请求数据发送的目标位置。
可选地,上述步骤102中,接收所述终端设备发送的DNS请求之后,还可 包括以下步骤:
21、当所述电子设备的kernel网络协议栈接收到所述网络请求数据,通过所述kernel网络协议栈的PREROUTING处理点进行路由查找,得到目标路由;
22、通过所述目标路由确定所述DNS请求的目的IP地址为所述目标IP地址,并执行所述将所述网络请求数据发送至所述目标DNS服务器的操作。
本申请实施例中,当终端设备发送DNS请求,是向电子设备发送目的IP地址为目标IP地址的DNS请求,当DNS请求携带的网络请求数据发送至电子设备的kernel网络协议栈,可通过kernel网络协议栈的PREROUTING处理点进行路由查找,得到目标路由,然后由目标路由确定网络请求数据是要发送至目标DNS服务器。
103、将所述网络请求数据发送至所述目标DNS服务器。
其中,将网络请求数据发送至目标DNS服务器,可通过kernel网络协议栈的FARWARD处理点转发,并通过驱动层发送至目标DNS服务器。
可选地,上述步骤103中,将所述网络请求数据发送至所述目标DNS服务器,可包括以下步骤:
31、将所述网络请求数据通过所述kernel网络协议栈的FARWARD处理点转发至所述kernel网络协议栈的POSTROUTING处理点;
32、通过所述电子设备的驱动层将所述网络请求数据根据所述目标IP地址发送至所述目标DNS服务器。
其中,当目标路由确定网络请求数据是要发送至目标DNS服务器,可通过FARWARD处理点转发至kernel网络协议栈的POSTROUTING处理点,然后通过电子设备的驱动层将网络请求数据发送至目标DNS服务器。
一般来说,若电子设备分配给移动终端的IP地址为第一IP地址,目标路由根据第一IP地址确定通过kernel网络协议栈的INPUT处理点发送至应用层,然后通过应用层将网络请求数据发送至kernel网络协议栈的OUTPUT处理点,再发送至kernel网络协议栈的POSTROUTING处理点,提供网络数据的目标DNS服务器,最后从驱动层发送至目标DNS服务器,其中,将网络请求数据从kernel网络协议栈的INPUT处理点发送至应用层,再从应用层发送至kernel网络协议栈的OUTPUT处理点,需要消耗较长时间,可见,本申请发送网络请求数据的方式,无需将网络请求数据从kernel网络协议栈的INPUT处理点发送至应用层,再从应用层发送至kernel网络协议栈的OUTPUT处理点,从而,可减少DNS查询的时间,提升DNS查询的效率。
104、接收所述目标DNS服务器发送的网络响应数据,将所述网络响应数据发送至所述终端设备。
本申请实施例中,当目标DNS服务器解析到DNS请求的结果,可向电子设备发送网络响应数据,由电子设备将网络响应数据转发至终端设备,从而实现终端设备的上网功能。
可选地,所述接收所述目标DNS服务器发送的网络响应数据之后,还可包括以下步骤:
A1、当所述电子设备的kernel网络协议栈接收到所述网络响应数据,通过所述kernel网络协议栈的PREROUTING处理点进行路由查找,得到所述目标路由;
A2、在所述目标路由确定所述网络响应数据的发送位置为所述终端设备时,执行所述将所述网络响应数据发送至所述终端设备的操作。
其中,当网络响应数据发送至电子设备的kernel网络协议栈,可通过kernel网络协议栈的PREROUTING处理点进行路由查找,得到目标路由,然后由目标路由确定网络响应数据是要发送至终端设备,并将所述网络响应数据通过驱动层发送至终端设备。
可选地,上述步骤104中,将所述网络响应数据发送至所述终端设备,可包括以下步骤:
41、将所述网络响应数据通过所述kernel网络协议栈的FARWARD处理点转发至所述kernel网络协议栈的所述POSTROUTING处理点;
42、通过所述驱动层将所述网络响应数据发送至所述终端设备。
其中,当目标路由确定网络响应数据是要发送至目标DNS服务器,可通过FARWARD处理点转发至kernel网络协议栈的POSTROUTING处理点,然后通过电子设备的驱动层将网络响应数据发送至终端设备,本申请发送网络响应数据的方式,无需将网络响应数据从kernel网络协议栈的INPUT处理点发送至应用层,再从应用层发送至kernel网络协议栈的OUTPUT处理点,从而,可减少DNS查询的时间,提升DNS查询的效率。
举例说明,请参阅图1D,图1D为本申请实施例提供的一种电子设备终端设备的接收DNS请求并发送给目标DNS服务器的流程示意图,在电子设备开启Wi-Fi热点时,可启用一个soft ap接口,soft ap接口的第一IP地址为192.168.43.1,电子设备通过soft ap接口将目标IP地址10.10.10.2分配给待接入的终端设备,终端设备可通过第一IP地址192.168.43.1向电子设备的soft ap接口发送DNS请求,DNS请求中携带目的IP地址以及网络请求数据,该目的IP地址为目标IP地址10.10.10.2,当网络请求数据发送至kernel网络协议栈,可通过PREROUTING处理点进行路由查找,得到目标路由,通过目标路由确定DNS请求的目的IP地址为目标IP地址10.10.10.2,并将网络请求数据通过FARWARD处理点转发至 kernel网络协议栈的POSTROUTING处理点,最后,通过电子设备的驱动层将网络请求数据根据目标IP地址发送至目标DNS服务器。
进一步地,当目标DNS服务器解析到DNS请求的结果,可向电子设备发送网络响应数据,当电子设备的kernel网络协议栈接收到网络响应数据,通过PREROUTING处理点进行路由查找,得到目标路由,目标路由确定网络响应数据的发送位置为终端设备,并将网络响应数据通过FARWARD处理点转发至kernel网络协议栈的POSTROUTING处理点,最后,通过驱动层将网络响应数据发送至终端设备,从而实现终端设备的上网功能。
可以看出,本申请实施例中,电子设备首先开启Wi-Fi热点,并将目标IP地址分配给待接入Wi-Fi热点的终端设备,其中,目标IP地址为目标DNS服务器的IP地址,目标DNS服务器为给电子设备提供数据网络的DNS服务器,接收终端设备发送的DNS请求,DNS请求携带网络请求数据,将网络请求数据发送至目标DNS服务器,接收目标DNS服务器发送的网络响应数据,将网络响应数据发送至终端设备,如此,可在通过电子设备的Wi-Fi热点上网时,通过提供数据网络的DNS服务器的IP地址进行DNS查询,减少查询时间,提升查询效率。
与上述图1C所示的实施例一致的,请参阅图2,图2是本申请实施例提供了一种DNS查询方法的流程示意图,应用于如图1A所示的电子设备,如图所示,本DNS查询方法包括:
201、开启Wi-Fi热点,并将目标IP地址分配给待接入所述Wi-Fi热点的终端设备,其中,所述目标IP地址为目标DNS服务器的IP地址,所述目标DNS服务器为给所述电子设备提供数据网络的DNS服务器。
202、接收所述终端设备发送的DNS请求,所述DNS请求携带网络请求数据。
203、当所述电子设备的kernel网络协议栈接收到所述网络请求数据,通过所述kernel网络协议栈的PREROUTING处理点进行路由查找,得到目标路由。
204、通过所述目标路由确定所述DNS请求的目的IP地址为所述目标IP地址,并将所述网络请求数据通过所述kernel网络协议栈的FARWARD处理点转发至所述kernel网络协议栈的POSTROUTING处理点。
205、通过所述电子设备的驱动层将所述网络请求数据根据所述目标IP地址发送至所述目标DNS服务器。
206、接收所述目标DNS服务器发送的网络响应数据。
207、当所述电子设备的kernel网络协议栈接收到所述网络响应数据,通过所述PREROUTING处理点进行路由查找,得到所述目标路由。
208、在所述目标路由确定所述网络响应数据的发送位置为所述终端设备时,将所述网络响应数据通过所述FARWARD处理点转发至所述kernel网络协议栈的所述POSTROUTING处理点。
209、通过所述驱动层将所述网络响应数据发送至所述终端设备。
其中,上述步骤201-步骤209的具体描述可以参照图1C所描述的DNS查询方法的相应描述,在此不再赘述。
可以看出,本申请实施例中,电子设备可开启Wi-Fi热点,并将目标IP地址分配给待接入所述Wi-Fi热点的终端设备,接收所述终端设备发送的DNS请求,DNS请求携带网络请求数据,当电子设备的kernel网络协议栈接收到网络请求数据,通过kernel网络协议栈的PREROUTING处理点进行路由查找,得到目标路由,通过目标路由确定DNS请求的目的IP地址为目标IP地址,并将网络请求数据通过FARWARD处理点转发至kernel网络协议栈的POSTROUTING处理点,通过电子设备的驱动层将网络请求数据根据目标IP地址发送至目标DNS服务器,接收目标DNS服务器发送的网络响应数据,当电子设备的kernel网络协议栈接收到网络响应数据,通过PREROUTING处理点进行路由查找,得到目标路由,在目标路由确定网络响应数据的发送位置为终端设备时,将网络响应数据通过FARWARD处理点转发至kernel网络协议栈的POSTROUTING处理点,通过驱动层将网络响应数据发送至终端设备,如此,可在通过电子设备的Wi-Fi热点上网时,通过提供数据网络的DNS服务器的IP地址进行DNS查询,无需将网络请求数据从kernel网络协议栈的INPUT处理点发送至应用层,再从应用层发送至kernel网络协议栈的OUTPUT处理点,从而,可减少DNS查询的时间,提升DNS查询的效率。。
请参阅图3,图3是本申请实施例提供的一种DNS查询方法的流程示意图,应用于如图1所述的电子设备,如图3所示,本DNS查询方法包括:
301、电子设备开启Wi-Fi热点,并将目标IP地址分配给待接入所述Wi-Fi热点的终端设备,其中,所述目标IP地址为目标DNS服务器的IP地址,所述目标DNS服务器为给所述电子设备提供数据网络的DNS服务器。
302、所述终端设备向所述电子设备发送DNS请求,所述DNS请求携带网络请求数据。
303、所述电子设备将所述网络请求数据发送至所述目标DNS服务器。
304、所述目标DNS服务器向所述电子设备发送网络响应数据。
305、所述电子设备将所述网络响应数据发送至所述终端设备。
可以看出,本申请实施例中,电子设备开启Wi-Fi热点,并将目标IP地址分配给待接入Wi-Fi热点的终端设备,其中,目标IP地址为目标DNS服务器的IP地址,目标DNS服务器为给电子设备提供数据网络的DNS服务器,终端设备向电子设备发送DNS请求,DNS请求携带网络请求数据,电子设备将网络请求数据发送至目标DNS服务器,目标DNS服务器向电子设备发送网络响应数据,电子设备将网络响应数据发送至终端设备,如此,可在通过电子设备的Wi-Fi热点上网时,通过提供数据网络的DNS服务器的IP地址进行DNS查询,减少查询时间,提升查询效率。
请参阅图4,图4是本申请实施例公开的另一种电子设备的结构示意图,如图所示,该电子设备包括处理器、存储器、通信接口,以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,上述程序包括用于执行以下步骤的指令:
开启Wi-Fi热点,并将目标IP地址分配给待接入所述Wi-Fi热点的终端设备,其中,所述目标IP地址为目标DNS服务器的IP地址,所述目标DNS服务器为给所述电子设备提供数据网络的DNS服务器;
接收所述终端设备发送的DNS请求,所述DNS请求携带网络请求数据;
将所述网络请求数据发送至所述目标DNS服务器;
接收所述目标DNS服务器发送的网络响应数据,将所述网络响应数据发送至所述终端设备。
在一个可能的示例中,所述接收所述终端设备发送的DNS请求之后,上述程序还包括用于执行以下步骤的指令:
当所述电子设备的kernel网络协议栈接收到所述网络请求数据,通过所述kernel网络协议栈的PREROUTING处理点进行路由查找,得到目标路由;
通过所述目标路由确定所述DNS请求的目的IP地址为所述目标IP地址,并执行所述将所述网络请求数据发送至所述目标DNS服务器的操作。
在一个可能的示例中,在所述将所述网络请求数据发送至所述目标DNS服务器方面,上述程序包括用于执行以下步骤的指令:
将所述网络请求数据通过所述kernel网络协议栈的FARWARD处理点转发至所述kernel网络协议栈的POSTROUTING处理点;
通过所述电子设备的驱动层将所述网络请求数据根据所述目标IP地址发送至所述目标DNS服务器。。
在一个可能的示例中,所述接收所述目标DNS服务器发送的网络响应数 据之后,上述程序还包括用于执行以下步骤的指令:
当所述电子设备的kernel网络协议栈接收到所述网络响应数据,通过所述kernel网络协议栈的PREROUTING处理点进行路由查找,得到所述目标路由;
在所述目标路由确定所述网络响应数据的发送位置为所述终端设备时,执行所述将所述网络响应数据发送至所述终端设备的操作。
在一个可能的示例中,在所述将所述网络响应数据发送至所述终端设备方面,上述程序包括用于执行以下步骤的指令:
将所述网络响应数据通过所述kernel网络协议栈的FARWARD处理点转发至所述kernel网络协议栈的所述POSTROUTING处理点;
通过所述驱动层将所述网络响应数据发送至所述终端设备。
在一个可能的示例中,在所述将目标IP地址分配给待接入所述Wi-Fi热点的终端设备方面,上述程序包括用于执行以下步骤的指令:
启用一个dnsmasq服务进程,通过所述dnsmasq服务进程将所述目标IP地址分配给待接入所述Wi-Fi热点的终端设备。
在一个可能的示例中,在所述接收所述终端设备发送的DNS请求方面,上述程序包括用于执行以下步骤的指令:
通过软件无线接口soft ap接收所述终端设备发送的所述DNS请求。
在一个可能的示例中,所述soft ap接口的第一IP地址为与所述目标IP地址不同的IP地址。
在一个可能的示例中,所述DNS请求中还包含所述网络请求数据发送的目标位置。
上述主要从方法侧执行过程的角度对本申请实施例的方案进行了介绍。可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所提供的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本申请实施例可以根据上述方法示例对电子设备进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
请参阅图5A,图5A是本申请实施例公开的一种DNS查询装置的结构示意图,应用于图1A所示的电子设备,所述DNS查询装置包括开启单元501、接收单元502和发送单元503,其中,
所述开启单元501,用于开启Wi-Fi热点,并将目标IP地址分配给待接入所述Wi-Fi热点的终端设备,其中,所述目标IP地址为目标DNS服务器的IP地址,所述目标DNS服务器为给所述电子设备提供数据网络的DNS服务器;
所述接收单元502,用于接收所述终端设备发送的DNS请求,所述DNS请求携带网络请求数据;
所述发送单元503,用于将所述网络请求数据发送至所述目标DNS服务器;
所述接收单元502,还用于接收所述目标DNS服务器发送的网络响应数据;
所述发送单元503,还用于将所述网络响应数据发送至所述终端设备。
可选地,如图5B,图5B为图5A所示的DNS查询装置的变型结构,其与图5A相比较,还可以包括:查找单元504和确定单元505,其中,
所述查找单元,用于当所述电子设备的kernel网络协议栈接收到所述网络请求数据,通过所述kernel网络协议栈的PREROUTING处理点进行路由查找,得到目标路由;
所述确定单元,用于通过所述目标路由确定所述DNS请求的目的IP地址为所述目标IP地址,并由所述发送单元执行所述将所述网络请求数据发送至所述目标DNS服务器的操作。
可选地,在所述将所述网络请求数据发送至所述目标DNS服务器方面,所述发送单元具体用于:
将所述网络请求数据通过所述kernel网络协议栈的FARWARD处理点转发至所述kernel网络协议栈的POSTROUTING处理点;
通过所述电子设备的驱动层将所述网络请求数据根据所述目标IP地址发送至所述目标DNS服务器。
可选地,所述查找单元,还用于在所述接收所述目标DNS服务器发送的网络响应数据之后,当所述电子设备的kernel网络协议栈接收到所述网络响应数据,通过所述kernel网络协议栈的PREROUTING处理点进行路由查找,得到所述目标路由;
所述确定单元,还用于在所述目标路由确定所述网络响应数据的发送位置为所述终端设备时,并由所述发送单元执行所述将所述网络响应数据发送至所 述终端设备的操作。
可选地,在所述将所述网络响应数据发送至所述终端设备方面,所述发送单元具体用于:
将所述网络响应数据通过所述kernel网络协议栈的FARWARD处理点转发至所述kernel网络协议栈的POSTROUTING处理点;
通过所述驱动层将所述网络响应数据发送至所述终端设备。
可选地,在所述将目标IP地址分配给待接入所述Wi-Fi热点的终端设备方面,所述开启单元具体用于:
启用一个dnsmasq服务进程,通过所述dnsmasq服务进程将所述目标IP地址分配给待接入所述Wi-Fi热点的终端设备。
可选地,在所述接收所述终端设备发送的DNS请求方面,所述接收单元具体用于:
通过软件无线接口soft ap接收所述终端设备发送的所述DNS请求。
可选地,所述soft ap接口的第一IP地址为与所述目标IP地址不同的IP地址。
可选地,所述DNS请求中还包含所述网络请求数据发送的目标位置。
可以看出,本申请实施例中,电子设备首先开启Wi-Fi热点,并将目标IP地址分配给待接入Wi-Fi热点的终端设备,其中,目标IP地址为目标DNS服务器的IP地址,目标DNS服务器为给电子设备提供数据网络的DNS服务器,接收终端设备发送的DNS请求,DNS请求携带网络请求数据,将网络请求数据发送至目标DNS服务器,接收目标DNS服务器发送的网络响应数据,将网络响应数据发送至终端设备,如此,可在通过电子设备的Wi-Fi热点上网时,通过提供数据网络的DNS服务器的IP地址进行DNS查询,减少查询时间,提升查询效率。
需要注意的是,本申请实施例所描述的电子设备是以功能单元的形式呈现。这里所使用的术语“单元”应当理解为尽可能最宽的含义,用于实现各个“单元”所描述功能的对象例如可以是集成电路ASIC,单个电路,用于执行一个或多个软件或固件程序的处理器(共享的、专用的或芯片组)和存储器,组合逻辑电路,和/或提供实现上述功能的其他合适的组件。
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任何一种音效处理方法的部分或全部步骤。
本申请实施例还提供一种计算机程序产品,所述计算机程序产品包括存储 了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如上述方法实施例中记载的任何一种音效处理方法的部分或全部步骤。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件程序模块的形式实现。
所述集成的单元如果以软件程序模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、ROM、RAM、磁盘或光盘等。
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (20)

  1. 一种DNS查询方法,其特征在于,应用于电子设备,所述方法包括:
    开启Wi-Fi热点,并将目标IP地址分配给待接入所述Wi-Fi热点的终端设备,其中,所述目标IP地址为目标DNS服务器的IP地址,所述目标DNS服务器为给所述电子设备提供数据网络的DNS服务器;
    接收所述终端设备发送的DNS请求,所述DNS请求携带网络请求数据;
    将所述网络请求数据发送至所述目标DNS服务器;
    接收所述目标DNS服务器发送的网络响应数据,将所述网络响应数据发送至所述终端设备。
  2. 根据权利要求1所述的方法,其特征在于,所述接收所述终端设备发送的DNS请求之后,所述方法还包括:
    当所述电子设备的kernel网络协议栈接收到所述网络请求数据,通过所述kernel网络协议栈的PREROUTING处理点进行路由查找,得到目标路由;
    通过所述目标路由确定所述DNS请求的目的IP地址为所述目标IP地址,并执行所述将所述网络请求数据发送至所述目标DNS服务器的操作。
  3. 根据权利要求2所述的方法,其特征在于,所述将所述网络请求数据发送至所述目标DNS服务器,包括:
    将所述网络请求数据通过所述kernel网络协议栈的FARWARD处理点转发至所述kernel网络协议栈的POSTROUTING处理点;
    通过所述电子设备的驱动层将所述网络请求数据根据所述目标IP地址发送至所述目标DNS服务器。
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述接收所述目标DNS服务器发送的网络响应数据之后,所述方法还包括:
    当所述电子设备的kernel网络协议栈接收到所述网络响应数据,通过所述kernel网络协议栈的PREROUTING处理点进行路由查找,得到所述目标路由;
    在所述目标路由确定所述网络响应数据的发送位置为所述终端设备时,执行所述将所述网络响应数据发送至所述终端设备的操作。
  5. 根据权利要求2-4任一项所述的方法,其特征在于,所述将所述网络响应数据发送至所述终端设备,包括:
    将所述网络响应数据通过所述kernel网络协议栈的FARWARD处理点转发至所述kernel网络协议栈的POSTROUTING处理点;
    通过所述驱动层将所述网络响应数据发送至所述终端设备。
  6. 根据权利要求2-4任一项所述的方法,其特征在于,所述将目标IP地址分配给待接入所述Wi-Fi热点的终端设备,包括:
    启用一个dnsmasq服务进程,通过所述dnsmasq服务进程将所述目标IP地址分配给待接入所述Wi-Fi热点的终端设备。
  7. 根据权利要求2-4任一项所述的方法,其特征在于,所述接收所述终端设备发送的DNS请求,包括:
    通过软件无线接口soft ap接收所述终端设备发送的所述DNS请求。
  8. 根据权利要求7所述的方法,其特征在于,所述soft ap接口的第一IP地址为与所述目标IP地址不同的IP地址。
  9. 根据权利要求8所述的方法,其特征在于,所述DNS请求中还包含所述网络请求数据发送的目标位置。
  10. 一种DNS查询装置,其特征在于,应用于电子设备,所述DNS查询装置包括:
    开启单元,用于开启Wi-Fi热点,并将目标IP地址分配给待接入所述Wi-Fi热点的终端设备,其中,所述目标IP地址为目标DNS服务器的IP地址,所述目标DNS服务器为给所述电子设备提供数据网络的DNS服务器;
    接收单元,用于接收所述终端设备发送的DNS请求,所述DNS请求携带网络请求数据;
    发送单元,用于将所述网络请求数据发送至所述目标DNS服务器;
    所述接收单元,还用于接收所述目标DNS服务器发送的网络响应数据;
    所述发送单元,还用于将所述网络响应数据发送至所述终端设备。
  11. 根据权利要求10所述的装置,其特征在于,所述装置还包括:
    查找单元,用于当所述电子设备的kernel网络协议栈接收到所述网络请求数据,通过所述kernel网络协议栈的PREROUTING处理点进行路由查找,得到目标路由;
    确定单元,用于通过所述目标路由确定所述DNS请求的目的IP地址为所述目标IP地址,并由所述发送单元执行所述将所述网络请求数据发送至所述目标DNS服务器的操作。
  12. 根据权利要求7所述的装置,其特征在于,在所述将所述网络请求数据发送至所述目标DNS服务器方面,所述发送单元具体用于:
    将所述网络请求数据通过所述kernel网络协议栈的FARWARD处理点转发至所述kernel网络协议栈的POSTROUTING处理点;
    通过所述电子设备的驱动层将所述网络请求数据根据所述目标IP地址发送至所述目标DNS服务器。
  13. 根据权利要求10-12任一项所述的装置,其特征在于,所述查找单元,还用于在所述接收所述目标DNS服务器发送的网络响应数据之后,当所述电子设备的kernel网络协议栈接收到所述网络响应数据,通过所述kernel网络协议栈的PREROUTING处理点进行路由查找,得到所述目标路由;
    所述确定单元,还用于在所述目标路由确定所述网络响应数据的发送位置为所述终端设备时,并由所述发送单元执行所述将所述网络响应数据发送至所述终端设备的操作。
  14. 根据权利要求12所述的装置,其特征在于,在所述将所述网络响应数据发送至所述终端设备方面,所述发送单元具体用于:
    将所述网络响应数据通过所述kernel网络协议栈的FARWARD处理点转发至所述kernel网络协议栈的POSTROUTING处理点;
    通过所述驱动层将所述网络响应数据发送至所述终端设备。
  15. 根据权利要求11-14任一项所述的装置,其特征在于,在所述将目标IP地址分配给待接入所述Wi-Fi热点的终端设备方面,所述开启单元具体用于:
    启用一个dnsmasq服务进程,通过所述dnsmasq服务进程将所述目标IP地址分配给待接入所述Wi-Fi热点的终端设备。
  16. 根据权利要求1所述的装置,其特征在于,在所述接收所述终端设备发送的DNS请求方面,所述接收单元具体用于:
    通过软件无线接口soft ap接收所述终端设备发送的所述DNS请求。
  17. 根据权利要求1所述的装置,其特征在于,所述DNS请求中还包含所述网络请求数据发送的目标位置。
  18. 一种电子设备,其特征在于,包括处理器、存储器、通信接口,以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行如权利要求1-9任一项所述的方法中的步骤的指令。
  19. 一种计算机可读存储介质,其特征在于,存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-9任一项所述的方法。
  20. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如权利要求1-9任一项所述的方法。
PCT/CN2019/107879 2018-10-16 2019-09-25 Dns查询方法及相关产品 WO2020078183A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811203835.1 2018-10-16
CN201811203835.1A CN109246258A (zh) 2018-10-16 2018-10-16 Dns查询方法及相关产品

Publications (1)

Publication Number Publication Date
WO2020078183A1 true WO2020078183A1 (zh) 2020-04-23

Family

ID=65053723

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/107879 WO2020078183A1 (zh) 2018-10-16 2019-09-25 Dns查询方法及相关产品

Country Status (2)

Country Link
CN (1) CN109246258A (zh)
WO (1) WO2020078183A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109246258A (zh) * 2018-10-16 2019-01-18 Oppo广东移动通信有限公司 Dns查询方法及相关产品

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973704A (zh) * 2014-05-23 2014-08-06 北京奇虎科技有限公司 基于wifi设备的域名解析方法、装置及系统
US20170111851A1 (en) * 2015-10-19 2017-04-20 Time Warner Cable Enterprises Llc Method and apparatus for automatic geoaware access point provisioning
CN108134831A (zh) * 2017-12-21 2018-06-08 美的集团股份有限公司 家用电器及其连接目标服务器的方法和装置
CN109246258A (zh) * 2018-10-16 2019-01-18 Oppo广东移动通信有限公司 Dns查询方法及相关产品

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103517377B (zh) * 2012-06-30 2017-04-12 华为终端有限公司 无线网络访问方法、Wifi接入点及终端
CN106060970A (zh) * 2016-03-11 2016-10-26 北京奇虎科技有限公司 智能终端及其网络配置方法
CN108419234B (zh) * 2018-02-08 2020-05-05 广州视源电子科技股份有限公司 Wi-Fi热点WPS连接方法和装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973704A (zh) * 2014-05-23 2014-08-06 北京奇虎科技有限公司 基于wifi设备的域名解析方法、装置及系统
US20170111851A1 (en) * 2015-10-19 2017-04-20 Time Warner Cable Enterprises Llc Method and apparatus for automatic geoaware access point provisioning
CN108134831A (zh) * 2017-12-21 2018-06-08 美的集团股份有限公司 家用电器及其连接目标服务器的方法和装置
CN109246258A (zh) * 2018-10-16 2019-01-18 Oppo广东移动通信有限公司 Dns查询方法及相关产品

Also Published As

Publication number Publication date
CN109246258A (zh) 2019-01-18

Similar Documents

Publication Publication Date Title
US10831161B2 (en) Method and device for sending communication message
US10069818B2 (en) Method, system, device, and terminal for network initialization of multimedia playback device
WO2020098388A1 (zh) 电磁干扰的调整方法及相关产品
WO2018233484A1 (zh) 会话管理方法、及装置
US20160105412A1 (en) Network connection method, application authentication server, terminal and router
US20170316781A1 (en) Remote electronic service requesting and processing method, server, and terminal
WO2018196468A1 (zh) 一种实现数据业务的方法、装置及终端
TW201839594A (zh) 行動終端、指紋識別控制方法及裝置
WO2020073852A1 (zh) 显示控制方法及相关产品
WO2020097871A1 (zh) 数据传输方法及相关产品
BR112016018783B1 (pt) Método, aparelho, dispositivo e sistema de intercomunicação
JP2021508989A (ja) サービス処理方法及び移動通信端末
KR20210008415A (ko) 액세스 제어 방법, 메시지 브로드캐스트 방법 및 관련 기기
WO2018107802A1 (zh) 网络数据发送方法及移动终端
CN104917905A (zh) 陌生来电的处理方法、终端及服务器
US20200412792A1 (en) Bluetooth transmission control method, control system, and storage medium
WO2020078183A1 (zh) Dns查询方法及相关产品
WO2014183439A1 (en) Method, apparatus and system for switching function mode
WO2021052128A1 (zh) 通知消息控制方法及相关装置
US20140344423A1 (en) Method, apparatus and system for switching function mode
WO2020019775A1 (zh) 网络连接方法及相关产品
CN112839326A (zh) 网络切换方法、装置、存储介质及网关设备
JP2019523941A (ja) データアクセス方法および関連するデバイス
WO2017076279A1 (zh) 一种更新路由表项的方法、装置及系统
WO2020107177A1 (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: 19873872

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19873872

Country of ref document: EP

Kind code of ref document: A1