WO2018137180A1 - Domain name access method and device - Google Patents

Domain name access method and device Download PDF

Info

Publication number
WO2018137180A1
WO2018137180A1 PCT/CN2017/072636 CN2017072636W WO2018137180A1 WO 2018137180 A1 WO2018137180 A1 WO 2018137180A1 CN 2017072636 W CN2017072636 W CN 2017072636W WO 2018137180 A1 WO2018137180 A1 WO 2018137180A1
Authority
WO
WIPO (PCT)
Prior art keywords
domain name
user equipment
location area
address
cache
Prior art date
Application number
PCT/CN2017/072636
Other languages
French (fr)
Chinese (zh)
Inventor
杨娇
李岩
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2017/072636 priority Critical patent/WO2018137180A1/en
Publication of WO2018137180A1 publication Critical patent/WO2018137180A1/en

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

Definitions

  • the present disclosure relates to the field of Internet communications, and in particular, to a domain name access method and apparatus.
  • the Domain Name System is a distributed host information database that provides mapping and translation between domain names and Internet Protocol (IP) addresses.
  • IP Internet Protocol
  • the domain name can be resolved to the corresponding IP address through the DNS server.
  • the user equipment can access the domain name through the domain name resolution service provided by the DNS.
  • the domain name access process is as follows: The user equipment accesses the domain name A as an example.
  • the user device queries the IP address corresponding to the domain name A. If yes, the user equipment can directly obtain the domain name. The IP address is accessed by the IP address. If the domain name is not available, the user equipment can send a domain name resolution request to the DNS server.
  • the domain name resolution request carries the domain name A, and the DNS server returns the IP address corresponding to the domain name A.
  • the device can access the domain name A through the IP address.
  • the user equipment may also save the IP address corresponding to the domain name A to the cache of the user equipment and the DNS server, and set the cache duration for the IP address corresponding to the domain name A.
  • the user equipment can directly read the cache to obtain the IP address corresponding to the domain name A. After the IP address corresponding to the domain name A is stored in the cache for the duration of the cache, the domain name A corresponds to The IP address of the domain name A is automatically invalidated. If the user equipment accesses the domain name A, it needs to re-inquire the DNS server for the IP address corresponding to the domain name A.
  • the user equipment directly accesses the IP address corresponding to the domain name A in the cache when the user equipment accesses the domain name A before the user equipment accesses the domain name A before the cache time is reached.
  • the domain name A can correspond to multiple IP addresses. If the IP address is used for access, the application server corresponding to the IP address may not be the application server closest to the user equipment, and the user equipment accesses the domain name A through the IP address. The time required is longer and the communication efficiency is low.
  • an embodiment of the present disclosure provides a domain name access method and apparatus.
  • the technical solution is as follows:
  • the first aspect provides a domain name access method, where the method includes: the user equipment determines that the user equipment moves from the first location area to the second location area; and the user equipment caches the first Internet Protocol IP in the domain name cache The address is set to be invalid, and the first domain name resolution request message is sent to the domain name system DNS server, where the first IP address is used by the user equipment to access the domain name in the first location area, and the first domain name resolution request message is carried.
  • the user equipment receives the first domain name resolution response message, the first domain name resolution response message carries a second IP address corresponding to the domain name, and the user equipment adds the second IP address to the domain name The domain name cache; the user equipment accesses the domain name through the second IP address.
  • the method provided by the embodiment of the present disclosure caches the domain name if the user equipment determines that the location area moves.
  • the saved first IP address is set to be invalid, and a domain name resolution request message is sent to the DNS server to trigger the update of the domain name cache.
  • the UE receives the second IP address returned by the DNS server, adds the second IP address to the domain name cache, and accesses the domain name through the second IP address.
  • the second IP address is re-determined by the DNS server after the location area of the user equipment is moved, and is the IP address of the application server corresponding to the domain name that is closer to the user equipment after the mobile device, so that the user equipment can access the domain name corresponding to the domain name.
  • the optimal server has short delay and high communication efficiency.
  • the first domain name resolution request message further carries location information of the user equipment, where the location information is used to indicate that the user equipment is currently located in the location area. Two location area.
  • the first domain name resolution request message sent by the user equipment to the DNS server may further carry the location information of the user equipment, so that the DNS server may determine the IP address corresponding to the domain name according to the location information, and determine the IP address. more precise.
  • the user equipment determining that the user equipment moves from the first location area to the second location area comprises: the user equipment receiving a cache update indication message from the control plane device, according to The cache update indication message determines that the user equipment moves from the first location area to the second location area.
  • the user equipment may determine that the location area movement of the user equipment occurs by receiving the cache update indication message from the control plane device, and enrich the manner of determining whether the user equipment has moved the location area.
  • the determining, by the user equipment, the user equipment from the first location area to the second location area includes: the user equipment corresponding to the domain name according to the domain name cache The first location area determines that the user equipment moves from the first location area to the second location area.
  • the user equipment may determine the location area movement of the user equipment by using the first location area corresponding to the domain name in the domain name cache, and enrich the manner of determining whether the user equipment has moved the location area.
  • the first domain name resolution response message further carries location area indication information for indicating the second location area
  • the method further includes: the user equipment is at the location
  • the location area indication information for indicating the second location area is saved in the domain name cache.
  • the first domain name resolution response message received by the user equipment may further include location area indication information for indicating the second location area, and the user equipment may save the location area indication information, so that the user equipment is next time. After the movement occurs, the location area indication information may be used to determine whether the user equipment has moved in the location area, thereby ensuring the accuracy of the determination.
  • the second IP address includes multiple IP addresses
  • the first domain name resolution response message is further configured to indicate multiple corresponding to the multiple IP addresses respectively.
  • the location area indication information of the location area the method further includes: the user equipment storing the location area indication information for indicating a plurality of location areas respectively corresponding to the plurality of IP addresses in the domain name cache.
  • the domain name may correspond to multiple IP addresses
  • the first domain name resolution response message received by the user equipment may further include a location area indication for indicating multiple location areas corresponding to the multiple IP addresses respectively.
  • the user equipment may save the location area indication information, so that after the next time the user equipment moves, the user equipment may determine whether the user equipment has moved in the location area according to the location area indication information, thereby ensuring the accuracy of the determination.
  • the user equipment accessing the domain name by using the second IP address includes: the user equipment querying, in the domain name cache, a current location area of the user equipment Corresponding destination IP address; the user equipment accesses the domain name by using the destination IP address.
  • the method provided by the embodiment of the present disclosure when the domain name corresponds to multiple IP addresses, passes through the current location area of the user equipment. If the corresponding destination IP address is used to access the domain name, the user device can access the optimal server corresponding to the domain name, and the delay is short and the communication efficiency is high.
  • the method before the sending the first domain name resolution request message to the DNS server, the method further includes: sending a second domain name resolution request message to the DNS server, where the second The domain name resolution request message carries the domain name, and receives a second domain name resolution response message, where the second domain name resolution response message carries a first IP address corresponding to the domain name and location area indication information used to indicate the first location area
  • the first IP address is determined by the DNS server according to the domain name; the first IP address corresponding to the domain name and the location area indication information used to indicate the first location area are saved to the user The domain name cache of the device; accessing the domain name by using the first IP address.
  • the user equipment sends a first domain name resolution request message to the DNS server, and receives and saves the IP address returned by the DNS server. And access the domain name through the IP address.
  • the IP address is determined by the DNS server according to the location information, and is the IP address of the application server corresponding to the domain name that is closer to the user equipment. Therefore, the user equipment can access the optimal server corresponding to the domain name, and the delay is short and the communication efficiency is high.
  • the second domain name resolution request message further carries first location information of the user equipment.
  • the second domain name resolution request message sent by the user equipment to the DNS server may further carry the first location information of the user equipment, so that the DNS server may determine the IP address corresponding to the domain name according to the first location information.
  • the determined IP address is more accurate.
  • the second aspect provides a domain name access method, where the method includes: a domain name system DNS server receives a domain name resolution request message from a user equipment, where the domain name resolution request message carries a domain name to be accessed by the user equipment; the DNS server Determining an Internet Protocol IP address corresponding to the domain name and a location area corresponding to the IP address; the DNS server sending a domain name resolution response message to the user equipment, where the domain name resolution response message carries the IP address and is used for A location area indication information indicating the location area.
  • the DNS server may determine the IP address and the location area corresponding to the domain name according to the domain name carried in the domain name resolution request message, and return the IP address and the location area indication for indicating the location area to the user equipment.
  • the information enables the user equipment to access the optimal server corresponding to the domain name through the IP address, with short delay and high communication efficiency.
  • the domain name resolution request message further carries current location information of the user equipment.
  • the domain name resolution request message sent by the user equipment to the DNS server further carries the current location information of the user equipment, so that the DNS server can determine the IP address and the location area corresponding to the domain name according to the current location information of the user equipment.
  • the IP address is the IP address of the application server corresponding to the domain name that is closer to the user equipment after the mobile device, the user equipment can use the IP address to implement the optimal server for the user equipment to access the domain name, with short delay and high communication efficiency. .
  • a third aspect provides a method for accessing a domain name, the method comprising: the control plane device determining that a location area movement of the user equipment occurs; the control plane device sending a cache update indication message to the user equipment, the cache update indication message And is used to instruct the user equipment to update the domain name cache.
  • the method provided by the embodiment of the present disclosure after determining that the user equipment has moved the location area, may send a cache update indication message to the user equipment to trigger the user equipment to update the domain name cache, which enriches the manner in which the user equipment is triggered to update the domain name cache.
  • control plane device determines that the location area movement of the user equipment includes:
  • the control plane device determines that the user equipment has a location area move; or, if the user equipment establishes a new data packet unit PDU session, The control plane device determines that the user equipment has moved a location area.
  • control plane device may send a cache update indication message to the user equipment when the user equipment initiates the location update process, or when the user equipment establishes a new PDU session, to trigger the user equipment to update the domain name.
  • the cache enriches the way the user device is triggered to update the domain name cache.
  • the fourth aspect provides a domain name access device, where the device includes a plurality of function modules, and the plurality of function modules are used to execute the domain name access method provided by the first aspect and any possible implementation manner thereof.
  • a fifth aspect provides a domain name access device, where the device includes a plurality of function modules, and the plurality of function modules are used to execute the domain name access method provided by the second aspect and any possible implementation manner thereof.
  • the sixth aspect provides a domain name access device, where the device includes a plurality of function modules, and the plurality of function modules are used to execute the domain name access method provided by the third aspect, and any possible implementation manner thereof.
  • a user equipment includes: a processor; a memory for storing processor-executable instructions; the executable instruction is configured to: the user equipment determines the user equipment from the first location area Moving to the second location area; the user equipment sets the first Internet Protocol IP address in the domain name cache to be invalid, and sends a first domain name resolution request message to the domain name system DNS server, where the first IP address is used for the The user equipment accesses the domain name in the first location area, the first domain name resolution request message carries the domain name, and the user equipment receives the first domain name resolution response message, where the first domain name resolution response message carries the domain name Corresponding second IP address; the user equipment adds the second IP address to the domain name cache; and the user equipment accesses the domain name by using the second IP address.
  • the first domain name resolution request message further carries the location information of the user equipment, where the location information is used to indicate that the current location area of the user equipment is the second location area.
  • the executable instruction is configured to: the user equipment receives a cache update indication message from the control plane device, and determines, according to the cache update indication message, that the user equipment moves from the first location area To the second location area.
  • the executable instruction is configured to: determine, by the user equipment, that the user equipment is from the first location area according to the first location area corresponding to the domain name in the domain name cache. Move to the second location area.
  • the first domain name resolution response message further carries location area indication information for indicating the second location area; the executable instruction is used to execute: the user equipment is cached in the domain name Save the use The location area indication information indicating the second location area.
  • the second IP address includes multiple IP addresses
  • the first domain name resolution response message further carries a location area that is used to indicate multiple location areas corresponding to the multiple IP addresses respectively.
  • the executable information is used to execute: the user equipment saves, in the domain name cache, the location area indication information used to indicate a plurality of location areas respectively corresponding to the plurality of IP addresses.
  • the executable instruction is used to perform: the user equipment queries, in the domain name cache, a destination IP address corresponding to a location area currently in which the user equipment is located; The IP address accesses the domain name.
  • the executable instruction is configured to: send a second domain name resolution request message to the DNS server, where the second domain name resolution request message carries the domain name; and receive a second domain name resolution response message,
  • the second domain name resolution response message carries a first IP address corresponding to the domain name and location area indication information for indicating the first location area, where the first IP address is determined by the DNS server according to the domain name.
  • the second domain name resolution request message further carries first location information of the user equipment.
  • a DNS server comprising: a processor; a memory for storing processor executable instructions; the executable instruction is configured to: the domain name system DNS server receives a domain name resolution request message from the user equipment The domain name resolution request message carries a domain name to be accessed by the user equipment; the DNS server determines an internet protocol IP address corresponding to the domain name and a location area corresponding to the IP address; and the DNS server sends the domain address to the user The device sends a domain name resolution response message, where the domain name resolution response message carries the IP address and location area indication information used to indicate the location area.
  • the domain name resolution request message further carries current location information of the user equipment.
  • a control plane device comprising: a processor; a memory for storing processor-executable instructions; and the executable instruction is configured to: determine, by the control plane device, that the user equipment is located in a location area The control plane device sends a cache update indication message to the user equipment, where the cache update indication message is used to instruct the user equipment to update the domain name cache.
  • the executable instruction is configured to: if the user equipment initiates a location update process to the control plane device, the control plane device determines that the user equipment occurs a location area move; or The executable instruction is configured to: if the user equipment establishes a new data packet unit PDU session, the control plane device determines that the user equipment occurs a location area move.
  • FIG. 1 is a schematic structural diagram of a system according to an embodiment of the present disclosure.
  • FIG. 2 is a schematic structural diagram of a user equipment 200 according to an embodiment of the present disclosure.
  • FIG. 3 is a schematic structural diagram of a DNS server 300 according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic structural diagram of a control plane device 400 according to an embodiment of the present disclosure.
  • FIG. 5 is a flowchart of a method for accessing a domain name according to an embodiment of the present disclosure.
  • FIG. 6 is a flowchart of a method for accessing a domain name according to an embodiment of the present disclosure.
  • FIG. 7 is a flowchart of a method for accessing a domain name according to an embodiment of the present disclosure.
  • FIG. 8 is a flowchart of a method for accessing a domain name according to an embodiment of the present disclosure.
  • FIG. 9 is a flowchart of a method for accessing a domain name according to an embodiment of the present disclosure.
  • FIG. 10 is a flowchart of a method for accessing a domain name according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic structural diagram of a domain name access apparatus according to an embodiment of the present disclosure.
  • FIG. 12 is a schematic structural diagram of a domain name access apparatus according to an embodiment of the present disclosure.
  • FIG. 13 is a schematic structural diagram of a domain name access apparatus according to an embodiment of the present disclosure.
  • FIG. 14 is a schematic structural diagram of a domain name access apparatus according to an embodiment of the present disclosure.
  • FIG. 1 is a schematic structural diagram of a system according to an embodiment of the present disclosure.
  • the system structure includes: User Equipment (UE), Control Plane (CP), Access Network (AN), User plane (UP), DNS. Server, Application Server (AS).
  • UE User Equipment
  • CP Control Plane
  • AN Access Network
  • UP User plane
  • DNS DNS. Server
  • AS Application Server
  • the UE is a user equipment, such as a mobile phone or a computer.
  • the CP is a control plane device responsible for user and session management, such as a mobile network controller.
  • the AN provides wireless access services.
  • the UP is responsible for forwarding the packets sent by the user equipment.
  • the DNS server provides mapping and conversion between the domain name and the Internet Protocol (IP) address, and the domain name can be resolved to the corresponding IP address through the DNS server.
  • the user equipment can access the domain name through the domain name resolution service provided by the DNS.
  • An AS is a server that provides business services.
  • FIG. 2 is a schematic structural diagram of a user equipment 200 according to an embodiment of the present disclosure.
  • the user equipment may be used to perform the domain name access method provided in the foregoing embodiments.
  • the user equipment 200 includes:
  • the user equipment 200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more computer readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, and a WiFi (Wireless Fidelity,
  • the Wireless Fidelity module 170 includes a processor 180 having one or more processing cores, and a power supply 190 and the like. It will be understood by those skilled in the art that the user equipment structure shown in FIG. 2 does not constitute a limitation to the user equipment, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements. among them:
  • the RF circuit 110 can be used for transmitting and receiving information or during a call, and receiving and transmitting signals. Specifically, after receiving downlink information of the base station, the downlink information is processed by one or more processors 180. In addition, the data related to the uplink is sent to the base station. .
  • the RF circuit 110 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier). , duplexer, etc.
  • RF circuitry 110 can also communicate with the network and other devices via wireless communication.
  • Wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access) Divisional Multiple Access), WCDMA (Wideband Code Division) Multiple Access, Wideband Code Division Multiple Access, LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and so on.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • e-mail Short Messaging Service
  • the memory 120 can be used to store software programs and modules, and the processor 180 executes various functional applications and data processing by running software programs and modules stored in the memory 120.
  • the memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the user device 200 (such as audio data, phone book, etc.), and the like.
  • memory 120 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 120 may also include a memory controller to provide access to memory 120 by processor 180 and input unit 130.
  • the input unit 130 can be configured to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • input unit 130 can include touch-sensitive surface 131 as well as other input devices 132.
  • Touch-sensitive surface 131 also referred to as a touch display or trackpad, can collect touch operations on or near the user (such as a user using a finger, stylus, etc., on any suitable object or accessory on touch-sensitive surface 131 or The operation near the touch-sensitive surface 131) and driving the corresponding connecting device according to a preset program.
  • the touch-sensitive surface 131 can include two portions of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 180 is provided and can receive commands from the processor 180 and execute them.
  • the touch-sensitive surface 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 130 can also include other input devices 132.
  • other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 140 can be used to display information entered by the user or information provided to the user and various graphical user interfaces of the user device 200, which can be composed of graphics, text, icons, video, and any combination thereof.
  • the display unit 140 may include a display panel 141.
  • the display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
  • the touch-sensitive surface 131 may cover the display panel 141, and when the touch-sensitive surface 131 detects a touch operation thereon or nearby, it is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 according to the touch event The type provides a corresponding visual output on display panel 141.
  • touch-sensitive surface 131 and display panel 141 are implemented as two separate components to implement input and input functions, in some embodiments, touch-sensitive surface 131 can be integrated with display panel 141 for input. And output function.
  • User device 200 may also include at least one type of sensor 150, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 141 when the user device 200 moves to the ear. And / or backlight.
  • the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the gesture of the mobile phone can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the user equipment 200 can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, here No longer.
  • the audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the user device 200.
  • the audio circuit 160 can transmit the converted electrical data of the received audio data to the speaker 161 for conversion to the sound signal output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal by the audio circuit 160. After receiving, it is converted into audio data, and then processed by the audio data output processor 180, sent to the other user equipment via the RF circuit 110, or outputted to the memory 120 for further processing.
  • the audio circuit 160 may also include an earbud jack to provide communication of the peripheral earphones with the user device 200.
  • WiFi is a short-range wireless transmission technology
  • the user equipment 200 can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 170, which provides wireless broadband Internet access for users.
  • FIG. 2 shows the WiFi module 170, it can be understood that it does not belong to the essential configuration of the user equipment 200, and may be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 180 is the control center of the user device 200, connecting various portions of the entire handset with various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling data stored in the memory 120.
  • the various functions and processing data of the user equipment 200 are executed to perform overall monitoring of the mobile phone.
  • the processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 180.
  • the user equipment 200 also includes a power source 190, such as a battery, for powering various components.
  • the power source can be logically coupled to the processor 180 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • Power supply 190 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
  • the user equipment 200 may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the display unit of the user device is a touch screen display
  • the user device further includes a memory, and executable instructions, wherein the executable instructions are stored in the memory and configured to be executed by one or more processors.
  • the executable instructions are used to perform the user equipment side method in the embodiments shown in FIGS. 5 to 10 described below.
  • FIG. 3 is a block diagram of a domain name access device 300 according to an embodiment of the present disclosure.
  • device 300 can be a DNS server.
  • apparatus 300 includes a processing component 322 that further includes one or more processors, and memory resources represented by memory 332 for storing instructions executable by processing component 322, such as an application.
  • An application stored in memory 332 may include one or more modules each corresponding to a set of instructions.
  • processing component 322 is configured to execute instructions to perform the server side method of the embodiments illustrated in Figures 5-10 below.
  • Device 300 may also include a power supply component 326 configured to perform power management of device 300, a wired or wireless network interface 350 configured to connect device 300 to the network, and an input/output (I/O) interface 358.
  • Device 300 can operate based on an operating system stored in memory 332, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or the like.
  • non-transitory computer readable storage medium comprising instructions, such as a memory comprising instructions executable by a processor in a DNS server to perform a DNS server side in an embodiment described below Domain access method.
  • the non-transitory computer readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
  • FIG. 4 is a schematic structural diagram of a control plane device 400 according to an embodiment of the present disclosure.
  • the control plane device 400 includes a bus, a processor, a memory, an input and output interface, a display device, and a communication interface.
  • the memory stores executable instructions for performing the control plane device side method in the embodiment shown in FIGS. 5 to 10 described below.
  • a bus is a circuit that connects the elements described and implements transmission between these elements.
  • the processor receives commands from other elements over the bus, decrypts the received commands, and performs calculations or data processing based on the decrypted commands.
  • the memory can include program modules such as a kernel, middleware, application programming interface (AP), and applications.
  • the program module can be composed of software, firmware or hardware, or at least two of them.
  • the input and output interfaces forward commands or data entered by the user through input and output devices (eg, sensors, keyboards, touch screens).
  • the display device displays various information to the user.
  • the communication interface connects the control plane device 400 with other network devices, user equipment, and networks.
  • the communication interface can be connected to the network by wired or wireless to connect to other external network devices or user devices.
  • the wireless communication may include at least one of the following: Wi-Fi (Wireless Fidelity), BT (Bluetooth), NFC (Near Field Communication), GPS (Global Positioning System) (system) and cellular communication (for example, LTE (Long Term Evolution), LTE-A (Long Term Evolution-Advanced, subsequent evolution of Long Term Evolution), CDMA (Code Division Multiple Access, code division) Multiple Access), WCDMA (Wideband CDMA, Wideband Code Division Multiple Access), UMTS (Universal Mobile Telecommunication System), WiBro (Wireless Broadband, Wireless Broadband Access), and GSM (Global System for Mobile communication, Worldwide) Mobile communication system)).
  • Wi-Fi Wireless Fidelity
  • BT Bluetooth
  • NFC Near Field Communication
  • GPS Global Positioning System
  • cellular communication for example, LTE (Long Term Evolution), LTE-A (Long Term Evolution-Advanced, subsequent evolution of Long
  • the wired communication may include at least one of the following: a USB (Universal Serial Bus), an HDMI (High Definition Multimedia Interface), an RS-232 (Recommended Standard 232, an asynchronous transfer standard interface), and POTS (Plain Old Telephone Service).
  • the network can be a telecommunications network and a communication network.
  • the communication network can be a computer network, the Internet, an Internet of Things, or a telephone network.
  • the control plane device 400 can be connected to the network through a communication interface, and the protocol used by the control plane device 400 to communicate with other network devices can be supported by at least one of an application, an API, a middleware, a kernel, and a communication interface.
  • the domain name access method may be briefly described as: the UE determines that the UE is from the first location. The area moves to the second location area; the UE sets the first IP address in the domain name cache and the location area indication information used to indicate the first location area to be invalid, and sends a first domain name resolution request message to the DNS server, where The first IP address is used by the UE to access the domain name in the first location area, and the first domain name resolution request message carries the domain name; the DNS server receives the first domain name resolution request message from the UE; the DNS server determines the second domain corresponding to the domain name An IP address and a second location area corresponding to the second IP address; the DNS server sends a first domain name resolution response message to the UE, where the first domain name resolution response message carries the second IP address and is used to indicate the second a location area indication information of the location area; the UE receives a first domain name resolution response message; the UE receives a first domain name resolution response message; the UE determines that the UE is from
  • FIG. 5 is a brief description of the method for accessing the domain name in the case where the UE determines whether the location area is moved by the UE.
  • the steps of the domain name access method will be specifically described below.
  • 6 is a schematic flowchart of a domain name access method according to an embodiment of the present disclosure. Referring to FIG. 6, the domain name access method includes Next steps:
  • the UE After the session of the packet data unit (PDU) is established (as shown in 601a in FIG. 6), the UE sends a domain name resolution request message 1 to the DNS server, where the domain name resolution request message 1 carries the domain name to be accessed.
  • the location information 1 of the UE shown as 601b in FIG. 6).
  • the domain name resolution request message 1 is used to refer to the second domain name resolution request message
  • the location information 1 is used to refer to the first location information.
  • the UE may send the domain name to be accessed and the location information 1 of the UE to the DNS server in the form of the domain name resolution request message 1.
  • the embodiment of the present disclosure is described by using the domain name resolution request message 1 to carry the location information 1 of the UE as an example.
  • the domain name resolution request message 1 may not carry the location information of the UE. .
  • the DNS server receives the domain name resolution request message 1 and determines, according to the location information 1 of the UE, the IP1 corresponding to the domain name and the location area 1 corresponding to the IP1 corresponding to the domain name (as shown by 602a in FIG. 6), and sends the message to the UE.
  • the domain name resolution response message 1 carries the IP1 and the location area indication information for indicating the location area 1 (shown as 602b in FIG. 6).
  • IP1 is used to refer to the first IP address
  • location area 1 is used to refer to the first location area.
  • the DNS server receives the domain name resolution request message 1
  • the domain name and the location information 1 carried in the domain name resolution request message 1 may be determined, and the IP1 and the location area 1 corresponding to the domain name are determined, and the domain name resolution response message 1 is adopted.
  • the DNS server may maintain a database for storing a domain name, location information, an IP address corresponding to the domain name, and a correspondence between the location areas, where the location information may be location information of the UE, or may be UP.
  • the location information the embodiment of the present disclosure does not limit the device corresponding to the location information. Therefore, the DNS server can query the corresponding relationship according to the domain name and the location information 1 of the UE, thereby determining the IP1 corresponding to the domain name and the location area 1 corresponding to the IP1.
  • the domain name resolution request message 1 in step 601 may not carry the location information 1 of the UE.
  • the domain name may also be The source IP address A of the UE determines the IP1 and location area 1 corresponding to the domain name.
  • the source IP address A of the UE may be allocated to the UE by the CP after the PDU session 1 is established, and may be carried by the domain name resolution request message 1.
  • the UE receives the domain name resolution response message 1, adds the IP1 to the domain name cache of the UE, and saves the location area indication information (shown as 603a in FIG. 6) for indicating the location area 1 in the domain name cache, and passes the IP1 accesses the domain name (as shown in 603b in Figure 6).
  • the domain name resolution response message 1 is used to refer to the second domain name resolution response message.
  • the IP1 carried by the domain name resolution response message 1 and the location area indication information indicating the location area 1 may be saved in the domain name cache of the UE.
  • the IP1 corresponding to the domain name is obtained from the domain name cache of the UE according to the domain name, so that the domain name is accessed through the IP1, that is, the AS1 is communicated.
  • the UE and AS1 perform data transmission during the communication process, such as uplink and downlink data 1 in FIG.
  • the UE moves (as shown by 604a in FIG. 6).
  • the PDU session 2 is established (as shown by 604b in FIG. 6)
  • the UE caches the domain name.
  • IP1 and the location area indication information for indicating the location area 1 are set to be invalid (as shown by 604c in FIG. 6), and send a domain name resolution request message 2 to the DNS server, the domain name resolution request message 2 carrying the domain name and the UE Location information 2, the location information 2 is the current location of the UE (as shown by 604d in FIG. 6).
  • the location area 2 is used to refer to the second location area
  • the domain name resolution request message 2 is used to refer to the first domain name resolution request message
  • the location information 2 is used to refer to the location information of the UE.
  • PDU Session 2 can be established. After the PDU session 2 is established, if the UE determines that the location area is moved, the IP1 corresponding to the domain name in the domain name cache and the location area indication information indicating the location area 1 may be set to be invalid, and the domain name resolution request message 2 is adopted. In the form of sending the domain name and the location information 2 of the UE to the DNS server.
  • the UE may determine, according to the location area indication information used to indicate the location area 1 in the domain name cache, that the UE moves the location area. For example, when the UE determines that it has been unable to connect to any one of the location areas 1, or when the base station to which the current UE is connected is not in the location area 1, it is determined that the location area has moved.
  • the embodiment of the present disclosure is described by using the domain name resolution request message 2 to carry the location information 2 of the UE as an example.
  • the domain name resolution request message 2 may not be used. Carry the location information 2 of the UE.
  • the DNS server receives the domain name resolution request message 2, and according to the location information 2 of the UE, determines the IP2 corresponding to the domain name and the location area 2 corresponding to the IP2 corresponding to the domain name (as shown in 605a in FIG. 6), and sends the domain name to the UE.
  • the response message 2 is parsed, and the domain name resolution response message 2 carries IP2 and location area indication information for indicating the location area 2 (as shown by 605b in FIG. 6).
  • IP2 is used to refer to the second IP address
  • location area 2 is used to refer to the second location area.
  • the DNS server receives the domain name resolution request message 2
  • the IP2 and the location area 2 can be determined according to the domain name and the location information 2 carried in the domain name resolution request message 2.
  • the DNS server may send the IP2 and the location area indication information indicating the location area 2 to the UE in the form of the domain name resolution response message 2.
  • the domain name resolution request message 2 in step 604 may also not carry the location information 2 of the UE.
  • the domain name when the DNS server receives the domain name resolution request message 2, the domain name may also be based on the domain name.
  • the source IP address B of the UE and determine the IP2 and the location area 2 corresponding to the domain name.
  • the source IP address B of the UE may be allocated to the UE by the CP after the PDU session 2 is established, and may be carried by the domain name resolution request message 2.
  • the UE receives the domain name resolution response message 2, adds the IP2 to the domain name cache, and saves the location area indication information (shown as 606a in FIG. 6) for indicating the location area 2 in the domain name cache, and passes the IP2. Access to the domain name (as shown in 606b in Figure 6).
  • the domain name resolution response message 2 is used to refer to the first domain name resolution response message.
  • the IP2 may be added to the domain name cache of the UE, and the location area indication information for indicating the location area 2 may also be saved, for example, used to indicate the location area 2
  • the location area indication information is added to the UE's domain name cache.
  • the IP2 corresponding to the domain name is obtained from the domain name cache of the UE according to the domain name, so that the domain name is accessed through the IP2, that is, the AS2 is communicated.
  • the UE and the AS2 perform data transmission during the communication process, such as the uplink and downlink data 2 in FIG.
  • the method provided by the embodiment of the present disclosure if the UE determines that the location area movement occurs, sets the saved IP1 in the domain name cache to be invalid, and sends a domain name resolution request message to the DNS server to trigger the update of the domain name cache by the DNS server. Re-determine and return the IP2 corresponding to the domain name according to the domain name carried in the domain name resolution request message.
  • the UE can add the IP2 to the domain name cache and can access the domain name through the IP2.
  • the IP2 is re-determined by the DNS server after the location area of the user equipment is moved, and is the IP address of the application server corresponding to the domain name that is closer to the mobile UE. Therefore, the optimal server corresponding to the domain name accessed by the UE can be implemented. The delay is short and the communication efficiency is high.
  • the UE may determine, according to the location area indication information that is saved in the domain name cache for indicating the first location area, whether the UE moves in the location area.
  • the location area indication information for indicating the second location area may also be determined and returned.
  • the UE may save the location area indication information used to indicate the location area of the second location area in the domain name cache, so that the UE may determine, according to the location area indication information used to indicate the location area of the second location area, in the domain name cache. Whether the UE moves in the location area, the accuracy of the judgment is high.
  • the UE determines whether the location area movement of the UE occurs, and triggers the update of the domain name cache. In fact, whether the location area movement of the UE occurs may be determined by other functional modules. In the following, the process of determining whether the UE has a location area movement by replacing the UE with the CP and triggering the domain name cache update will be described.
  • the domain name access method may be briefly described as: the control plane device determines that the location device moves by the user equipment; and the control plane device sends a cache update indication message to the user equipment.
  • the cache update indication message is used to indicate that the user equipment updates the domain name cache; the user equipment receives a cache update indication message from the control plane device, and determines, according to the cache update indication message, that the user equipment moves from the first location area to the location
  • the second location area is configured to set the first IP address in the domain name cache to be invalid, and send a first domain name resolution request message to the DNS server, where the first IP address is used by the user equipment to access the domain name in the first location area.
  • the first domain name resolution request message carries the domain name; the DNS server receives the first domain name resolution request message from the user equipment; the DNS server determines a second IP address corresponding to the domain name; and the DNS server sends the first domain name resolution response to the user equipment Message, the first domain name resolution response message carries the second IP address; the user equipment receives the first domain Name resolution response message; the user equipment adds the second IP address to the domain name cache. The user equipment accesses the domain name through the second IP address.
  • FIG. 7 is a brief description of a method for accessing a domain name for a case where a cell moves in place of a UE instead of a UE.
  • the steps of the domain name access method are specifically performed for the case.
  • FIG. 8 is a schematic flowchart of a method for accessing a domain name according to an embodiment of the present disclosure. Referring to FIG. 8, the method includes:
  • the UE After the PDU session 1 is established (as shown by 801a in FIG. 8), the UE sends a domain name resolution request message 1 to the DNS server, where the domain name resolution request message 1 carries the domain name to be accessed and the location information 1 of the UE (see FIG. 8). In 801b).
  • This step 801 is the same as step 601, and details are not described herein again.
  • the DNS server receives the domain name resolution request message 1 and determines the IP1 corresponding to the domain name according to the location information 1 of the UE (as shown by 802a in FIG. 8), and sends a domain name resolution response message 1 to the UE, where the domain name resolution response message is sent.
  • 1 carries IP1 (shown as 802b in Figure 8).
  • the IP1 when the DNS server receives the domain name resolution request message 1, the IP1 may be determined according to the domain name and the location information 1 carried in the domain name resolution request message 1 without determining the location area 1 corresponding to the IP1. After determining the IP1 corresponding to the domain name, the DNS server may send the IP1 to the UE in the form of the domain name resolution response message 1.
  • the location information 1 of the UE may not be carried.
  • the domain name may also be based on the domain name. Determine the IP1 corresponding to the domain name with the source IP address A of the UE.
  • the source IP address A of the UE may be allocated to the UE by the CP after the PDU session 1 is established, and may be carried by the domain name resolution request message 1.
  • the UE receives the domain name resolution response message 1, adds the IP1 to the domain name cache of the UE (as shown in 803a in FIG. 8), and accesses the domain name through IP1 (as shown by 803b in FIG. 8).
  • the domain name resolution response message 1 when the UE receives the domain name resolution response message 1, the domain name resolution response message 1 may be The carried IP1 is added to the UE's domain name cache.
  • the IP1 corresponding to the domain name is obtained from the domain name cache of the UE according to the domain name, so that the domain name is accessed through the IP1, that is, the AS1 is communicated.
  • the UE and AS1 transmit data during the communication process, such as uplink and downlink data 1 in FIG.
  • the cache update indication may be sent to the UE.
  • the message, the cache update indication message is used to instruct the user equipment to update the domain name cache (as shown by 804d in FIG. 8).
  • the determining that the location area movement of the UE occurs by the CP may include the following two situations:
  • the CP may determine that the UE has a location area move (as shown by 804c in FIG. 8).
  • the CP may determine that the UE has a location area move.
  • the PDU session 1 of the UE, AN1, and UP1 is established before the UE moves.
  • the PDU session 2 of the UE, AN2, and UP2 is established. Therefore, the CP can determine the location area movement of the UE through the establishment of the PDU session 2.
  • the UE receives a buffer update indication message from the CP, determines, according to the cache update indication message, that the UE moves the location area, sets IP1 in the domain name cache of the UE to be invalid, and sends a domain name resolution request message 2 to the DNS server (FIG. 8).
  • the domain name resolution request message 2 carries the domain name and the location information 2 of the UE, where the location information 2 is the current location of the UE.
  • the UE may be determined that the location area movement of the UE occurs. At this time, the UE may set the IP1 corresponding to the domain name in the domain name cache to be invalid, and send the domain name and the location information 2 of the UE to the DNS server in the form of the domain name resolution request message 2. In a possible implementation, the UE may also return a cache update response message (shown as 805a in FIG. 8) to the CP, and the cache update response message is used to notify the CP whether the UE performs a cache update.
  • a cache update response message shown as 805a in FIG. 805
  • the domain name resolution request message 2 may not carry the location information 2 of the UE.
  • the DNS server receives the domain name resolution request message 2, and determines the IP2 corresponding to the domain name according to the location information 2 of the UE (as shown in 806a in FIG. 8), and sends a domain name resolution response message 2 to the UE, and the domain name resolution response message 2 Carry IP2 (as shown in 806b in Figure 8).
  • the IP2 when the DNS server receives the domain name resolution request message 2, the IP2 may be determined according to the domain name and the location information 2 carried in the domain name resolution request message 2, without determining the location area 2 corresponding to the IP2. After determining the IP2 corresponding to the domain name, the DNS server may send the IP2 to the UE in the form of the domain name resolution response message 2.
  • the domain name resolution request message 2 in step 805 may also not carry the location information 2 of the UE.
  • the domain name when the DNS server receives the domain name resolution request message 2, the domain name may also be based on the domain name. Determine the IP2 corresponding to the domain name with the source IP address B of the UE. The source IP address B of the UE may be allocated to the UE by the CP after the PDU session 2 is established, and may be carried by the domain name resolution request message 2.
  • the UE receives the domain name resolution response message 2, adds the IP2 to the domain name cache (as shown in 807a in FIG. 8), and accesses the domain name through the IP2 (as shown by 807b in FIG. 8).
  • This step 807 is the same as step 606, and details are not described herein again.
  • the method provided by the embodiment of the present disclosure sends a cache update indication message to the UE if the UE determines that the location area movement of the UE occurs after the UE moves.
  • the UE sets the saved IP1 in the domain name cache to be invalid, and sends a domain name resolution request message to the DNS server to trigger the update of the domain name cache, which is carried by the DNS server according to the domain name resolution request message.
  • Domain name re-determine and return the IP2 corresponding to the domain name.
  • the UE can add the IP2 to the domain name cache and can access the domain name through the IP2.
  • the IP2 is re-determined by the DNS server after the location area of the user equipment is moved, and is the IP address of the application server corresponding to the domain name that is closer to the mobile UE, so that the UE can access the optimal server corresponding to the domain name. Shortening, high communication efficiency.
  • the UE determines whether the location area movement of the UE occurs, and triggers an update of the domain name cache, and the location area is for a location area.
  • the location area can also be targeted to multiple location areas. The process of updating the domain name cache in the case of multiple location areas will be described below.
  • the domain name access method may be briefly described as: the UE determines that the UE moves from the first location area to the second location area; the UE will cache multiple IP addresses in the domain name cache.
  • the location area indication information used to indicate the plurality of location areas respectively corresponding to the plurality of IP addresses is set to be invalid, and send a first domain name resolution request message to the DNS server, where the multiple IP addresses are used for the UE
  • the location area accesses the domain name, the first domain name resolution request message carries the domain name;
  • the DNS server receives the first domain name resolution request message from the UE;
  • the DNS server determines a plurality of new IP addresses corresponding to the domain name and the plurality of new IP addresses Corresponding multiple new location areas;
  • the DNS server sends a first domain name resolution response message to the UE, where the first domain name resolution response message carries the plurality of new IP addresses and a location area for indicating the plurality of new location areas Instructing information;
  • the UE receives a first domain name resolution response message;
  • the UE adds the plurality of new IP addresses to the domain name cache, and the UE saves the location for indicating the plurality of new location areas in the domain name cache In
  • FIG. 9 is a brief description of a domain name access method for a plurality of location areas. In the embodiment corresponding to FIG. 10, the steps of the domain name access method will be specifically described.
  • FIG. 10 is a schematic flowchart of a domain name access method according to an embodiment of the present disclosure. Referring to FIG. 10, the domain name access method includes the following steps:
  • the UE After the PDU session 1 is established (as shown in 1001a in FIG. 10), the UE sends a domain name resolution request message 1 to the DNS server, where the domain name resolution request message 1 carries the domain name to be accessed and the location information 1 of the UE (see FIG. 10). In 1001b).
  • This step 1001 is the same as step 601, and details are not described herein again.
  • the DNS server receives the domain name resolution request message 1 and determines a plurality of IP addresses corresponding to the domain name and a plurality of location areas corresponding to the plurality of IP addresses according to the location information 1 of the UE (as shown in FIG. 10, 1002a). And sending a domain name resolution response message 1 to the UE, the domain name resolution response message 1 carrying a plurality of IP addresses corresponding to the domain name and location area indication information for indicating the plurality of location areas (as shown in 1002b in FIG. 10) .
  • a plurality of IP addresses are used to refer to the first IP address, and a plurality of location areas are used to refer to the first location area.
  • the DNS server receives the domain name resolution request message 1, the domain name and the location information 1 carried in the domain name resolution request message 1 may be determined, and the multiple IP addresses and the multiple location areas may be determined, and the domain name resolution response message 1 is adopted. And sending the plurality of IP addresses and the location area indication information used to indicate the multiple location areas to the UE.
  • the domain name resolution request message 1 in step 1001 may not carry the location information 1 of the UE.
  • the DNS server may further determine multiple IP addresses and multiple location areas corresponding to the domain name according to the domain name and the source IP address A of the UE.
  • the source IP address A of the UE may be allocated to the UE by the CP after the PDU session 1 is established, and may be carried by the domain name resolution request message 1.
  • the UE receives the domain name resolution response message 1, and adds the multiple IP addresses to the domain name cache of the UE, where the location area indication information indicating the multiple location areas is saved in the domain name cache (as shown in FIG. 10, 1003a). And accessing the domain name through the destination IP address (as shown in 1003b in FIG. 10), the destination IP address being an IP address corresponding to the current location area of the UE among the multiple IP addresses.
  • the multiple IP addresses corresponding to the domain name and the multiple location areas corresponding to the multiple IP addresses are obtained from the domain name cache of the UE, and the domain name is accessed through the destination IP address.
  • the domain name access process may include: querying the destination IP address corresponding to the current location area of the UE according to the multiple location areas corresponding to the multiple IP addresses; accessing the domain name through the destination IP address, that is, communicating with AS1.
  • the UE and AS1 perform data transmission during the communication process, such as uplink and downlink data 1 in FIG.
  • the UE moves (as shown in 1004a in FIG. 10).
  • the PDU session 2 is established (as shown by 1004b in FIG. 10)
  • the UE will cache the multiple IP addresses in the domain name cache.
  • the location area indication information used to indicate the multiple location areas is set to be invalid (as shown by 1004c in FIG. 10)
  • the domain name resolution request message 2 is sent to the DNS server, and the domain name resolution request message 2 carries the domain name and the location information 2
  • the location information 2 is the current location of the UE (as shown by 1004d in FIG. 10).
  • the multiple IP addresses corresponding to the domain name in the domain name cache and the location area indication information used to indicate the multiple location areas may be set as Invalid, and in the form of domain name resolution request message 2, the domain name and the location information 2 of the UE are sent to the DNS server.
  • the UE may determine, according to the location area indication information used to indicate the multiple location areas in the domain name cache, that the location area movement of the UE occurs. For example, when the UE determines that it has been unable to connect to a base station in any one of the plurality of location areas, or when the base station to which the current UE is connected is not in any one of the plurality of location areas, determining the UE A location area move has occurred.
  • the embodiment of the present disclosure is described by using the domain name resolution request message 2 to carry the location information 2 of the UE.
  • the domain name resolution request message 2 may not be used. Carry the location information 2 of the UE.
  • the DNS server receives the domain name resolution request message 2, and according to the location information 2 of the UE, re-determines a plurality of new IP addresses corresponding to the domain name and a plurality of new location areas corresponding to the plurality of new IP addresses corresponding to the domain name (FIG. 10).
  • the domain name resolution response message 2 is sent to the UE, and the domain name resolution response message 2 carries a plurality of new IP addresses corresponding to the redefined domain name and location area indication information for indicating the plurality of new location areas. (As shown in 1005b in Figure 10).
  • a plurality of new IP addresses are used to refer to the second IP address, and a plurality of new location areas are used to refer to the second location area.
  • the DNS server receives the domain name resolution request message 2
  • the domain name and the location information 2 carried in the domain name resolution request message 2 may be determined, and the multiple new IP addresses and the plurality of new location areas may be determined, and the domain name resolution response is adopted.
  • the plurality of new IP addresses and location area indication information indicating the plurality of new location areas are sent to the UE.
  • the domain name resolution request message 2 in step 1004 may not carry the location information 2 of the UE.
  • the domain name when the DNS server receives the domain name resolution request message 2, the domain name may also be based on the domain name.
  • the source IP address B of the UE determining a plurality of new IP addresses corresponding to the domain name and a plurality of new location areas.
  • the address B can be allocated to the UE by the CP after the PDU session 2 is established, and can be carried by the domain name resolution request message 2.
  • the UE receives the domain name resolution response message 2, adds the multiple new IP addresses to the domain name cache, and saves location area indication information (shown as 1006a in FIG. 10) for indicating the multiple new location areas, and passes the Multiple new IP addresses access the domain name (as shown in Figure 10, 1006b).
  • the method provided by the embodiment of the present disclosure if the UE determines that the location area is moved, sets the saved multiple IP addresses in the domain name cache to be invalid, and sends a domain name resolution request message to the DNS server to trigger the domain name cache update.
  • the DNS server re-determines and returns multiple new IP addresses corresponding to the domain name according to the domain name carried in the domain name resolution request message.
  • the UE may add the plurality of new IP addresses to the domain name cache, and may access the domain name through the plurality of new IP addresses.
  • the IP address of the application server corresponding to the domain name that is closer to the mobile UE is determined by the DNS server after the location area of the user equipment is moved, so that the UE can access the domain name corresponding to the domain name. Excellent server, short delay and high communication efficiency.
  • the UE may determine, according to the location area indication information that is saved in the domain name cache for indicating the multiple location areas, whether the UE moves in the location area.
  • the DNS server may further determine and return location area indication information indicating the plurality of new location areas.
  • the UE may save the location area indication information for indicating the multiple new location areas to the domain name cache, so that after the next move, the UE may indicate the multiple according to the multiple new IP addresses in the domain name cache and the The location area indication information of the new location area determines whether the location area movement of the UE occurs.
  • FIG. 11 is a schematic structural diagram of a domain name access apparatus according to an embodiment of the present disclosure.
  • the apparatus includes a determining module 1101, a setting module 1102, a transmitting module 1103, a receiving module 1104, an adding module 1105, and an accessing module 1106.
  • a determining module 1101 configured to determine, by the user equipment, that the user equipment moves from the first location area to the second location area;
  • the setting module 1102 is configured to: the user equipment sets the first Internet Protocol IP address in the domain name cache to be invalid, and the first IP address is used by the user equipment to access the domain name in the first location area;
  • the sending module 1103 is configured to send a first domain name resolution request message to the domain name system DNS server, where the first domain name resolution request message carries the domain name;
  • the receiving module 1104 is configured to receive, by the user equipment, a first domain name resolution response message, where the first domain name resolution response message carries a second IP address corresponding to the domain name;
  • An adding module 1105 configured to add, by the user equipment, the second IP address to the domain name cache
  • the access module 1106 is configured to access, by the user equipment, the domain name by using the second IP address.
  • the first domain name resolution request message further carries the location information of the user equipment, where the location information is used to indicate that the current location area of the user equipment is the second location area.
  • the determining module 1101 is configured to perform the process of determining that the location of the user equipment moves in the foregoing step 805.
  • the determining module 1101 is configured to perform the process of determining that the user equipment occurs the location area movement in steps 604 and 1004 above.
  • the first domain name resolution response message further carries location area indication information for indicating the second location area
  • the apparatus further includes:
  • the saving module 1107 is configured to save the location area indication information used by the user equipment to indicate the second location area in the domain name cache.
  • the second IP address includes multiple IP addresses
  • the first domain name resolution response message further carries location area indication information for indicating a plurality of location areas respectively corresponding to the multiple IP addresses
  • the saving module 1107 is further configured to perform the process of saving the location area indication information in step 1006.
  • the access module 1106 is configured to perform the process of accessing the domain name by using the destination IP address in step 1006.
  • the sending module 1103 is further configured to perform the process of sending the second domain name resolution request message in the foregoing steps 601, 801, and 1001; the receiving module 1104 is further configured to perform the foregoing steps 603, 803 and The process of receiving the second domain name resolution response message in 1003.
  • the saving module 1107 is configured to perform the process of saving the IP address and the location area indication information in the foregoing steps 603 and 1003.
  • the accessing module 1106 is further configured to perform the process of accessing the domain name by using the first IP address in the foregoing steps 603 and 803. .
  • the second domain name resolution request message further carries first location information of the user equipment.
  • the domain name resolution request message is sent to the DNS server to trigger the update of the domain name cache, and the DNS server re-determines and returns the domain name according to the domain name carried in the domain name resolution request message.
  • the IP address corresponding to the domain name The UE may update the saved IP address in the domain name cache to the IP address, and may access the domain name through the IP address. Because the IP address is re-determined by the DNS server after the location area of the user equipment is moved, and is the IP address of the application server corresponding to the domain name that is closer to the mobile UE, the UE can access the optimal server corresponding to the domain name. The delay is short and the communication efficiency is high.
  • FIG. 13 is a schematic structural diagram of a domain name access apparatus according to an embodiment of the present disclosure.
  • the apparatus includes a receiving module 1301, a determining module 1302, and a transmitting module 1303.
  • the receiving module 1301 is configured to receive, by the user equipment, a domain name resolution request message, where the domain name resolution request message carries a domain name to be accessed by the user equipment;
  • a determining module 1302 configured to determine, by the DNS server, an Internet Protocol IP address corresponding to the domain name and a location area corresponding to the IP address;
  • the sending module 1303 is configured to send, by the DNS server, a domain name resolution response message to the user equipment, where the domain name resolution response message carries the IP address and location area indication information used to indicate the location area.
  • the domain name resolution request message further carries current location information of the user equipment.
  • the DNS server may determine the IP address and the location area corresponding to the domain name according to the domain name carried in the domain name resolution request message, and return the IP address and the location area indication information for indicating the location area to the user equipment.
  • the user equipment can enable the user equipment to access the optimal server corresponding to the domain name through the IP address, and the delay is short and the communication efficiency is high.
  • FIG. 14 is a schematic structural diagram of a domain name access apparatus according to an embodiment of the present disclosure.
  • the apparatus includes a determination module 1401 and a transmission module 1402.
  • a determining module 1401, configured to determine, by the control plane device, a location area movement of the user equipment
  • the sending module 1402 is configured to send, by the control plane device, a cache update indication message to the user equipment, where the cache update indication message is used to indicate that the user equipment updates the domain name cache.
  • the determining module 1401 is configured to perform the process of determining that the user equipment generates a location area movement in the foregoing step 804.
  • the control plane device may send a cache update indication message to the user equipment to trigger the user equipment to update the domain name cache, which enriches the manner in which the user equipment is triggered to update the domain name cache.
  • domain name access device provided by the foregoing embodiment is used for domain name access, only the division of the above functional modules is illustrated. In actual applications, the function allocation may be completed by different functional modules as needed. The internal structure of the device is divided into different functional modules to perform all or part of the functions described above.
  • the domain name access device and the domain name access method are provided in the same embodiment. For details, refer to the method embodiment, and details are not described herein.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

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

Abstract

The present application relates to the field of Internet communications, and provides a domain name access method and device. The method comprises: a user equipment determines that the user equipment moves from a first location area to a second location area; the user equipment sets a first Internet Protocol (IP) address in a domain name cache to be invalid and sends a first domain name resolution request message to a domain name system (DNS) server; the user equipment receives a first domain name resolution response message, the first domain name resolution response message carrying a second IP address corresponding to a domain name; the user equipment adds the second IP address to the domain name cache; the user equipment accesses the domain name by means of the second IP address. By triggering the update of a domain name cache when it is determined that a user equipment moves between location areas and accessing a domain name by means of an updated IP address, the present application can implement the access to an optimal server corresponding to a domain name by the user equipment, and features a short delay and high communication efficiency.

Description

域名访问方法及装置Domain name access method and device 技术领域Technical field
本公开涉及互联网通信领域,特别涉及一种域名访问方法及装置。The present disclosure relates to the field of Internet communications, and in particular, to a domain name access method and apparatus.
背景技术Background technique
域名***(Domain Name System,DNS)是一种分布式的主机信息数据库,提供域名和互联网协议(Internet Protocol,IP)地址之间的映射和转换,可以通过DNS服务器将域名解析为对应的IP地址。用户设备可以通过DNS提供的域名解析服务实现对域名的访问。The Domain Name System (DNS) is a distributed host information database that provides mapping and translation between domain names and Internet Protocol (IP) addresses. The domain name can be resolved to the corresponding IP address through the DNS server. . The user equipment can access the domain name through the domain name resolution service provided by the DNS.
目前,域名访问的过程如下:以用户设备访问域名A为例,当用户设备访问该域名A时,查询其缓存中是否存在该域名A对应的IP地址,如果存在,则用户设备可以直接获取该IP地址,通过该IP地址访问该域名A;如果不存在,则用户设备可以向DNS服务器发送域名解析请求,该域名解析请求携带该域名A,由DNS服务器返回该域名A对应的IP地址,用户设备可以通过该IP地址访问该域名A。另外,用户设备还可以将该域名A对应的IP地址保存至用户设备和DNS服务器的缓存中,并为该域名A对应的IP地址设置缓存时长。在缓存时长内如果访问该域名A,用户设备可以直接读取缓存得到该域名A对应的IP地址;当该域名A对应的IP地址在缓存中保存的时长达到该缓存时长后,该域名A对应的IP地址自动失效,用户设备如果访问该域名A,需要重新向DNS服务器查询该域名A对应的IP地址。At present, the domain name access process is as follows: The user equipment accesses the domain name A as an example. When the user equipment accesses the domain name A, the user device queries the IP address corresponding to the domain name A. If yes, the user equipment can directly obtain the domain name. The IP address is accessed by the IP address. If the domain name is not available, the user equipment can send a domain name resolution request to the DNS server. The domain name resolution request carries the domain name A, and the DNS server returns the IP address corresponding to the domain name A. The device can access the domain name A through the IP address. In addition, the user equipment may also save the IP address corresponding to the domain name A to the cache of the user equipment and the DNS server, and set the cache duration for the IP address corresponding to the domain name A. If the domain name A is accessed during the cache time, the user equipment can directly read the cache to obtain the IP address corresponding to the domain name A. After the IP address corresponding to the domain name A is stored in the cache for the duration of the cache, the domain name A corresponds to The IP address of the domain name A is automatically invalidated. If the user equipment accesses the domain name A, it needs to re-inquire the DNS server for the IP address corresponding to the domain name A.
在实现本公开的过程中,发明人发现现有技术至少存在以下问题:In carrying out the process of the present disclosure, the inventors have found that the prior art has at least the following problems:
上述技术在达到缓存时长之前,用户设备如果由于移动而发生了位置区变化,移动后的用户设备访问该域名A时,直接读取缓存中该域名A对应的IP地址。而由于域名A可以对应于多个IP地址,如果使用移动前的IP地址进行访问,该IP地址对应的应用服务器可能不是离用户设备最近的应用服务器,导致用户设备通过该IP地址访问该域名A时所需时延较长,通信效率低。The user equipment directly accesses the IP address corresponding to the domain name A in the cache when the user equipment accesses the domain name A before the user equipment accesses the domain name A before the cache time is reached. The domain name A can correspond to multiple IP addresses. If the IP address is used for access, the application server corresponding to the IP address may not be the application server closest to the user equipment, and the user equipment accesses the domain name A through the IP address. The time required is longer and the communication efficiency is low.
发明内容Summary of the invention
为了解决现有技术的问题,本公开实施例提供了一种域名访问方法及装置。所述技术方案如下:In order to solve the problem of the prior art, an embodiment of the present disclosure provides a domain name access method and apparatus. The technical solution is as follows:
第一方面,提供了一种域名访问方法,所述方法包括:用户设备确定所述用户设备从第一位置区移动至第二位置区;所述用户设备将域名缓存中的第一互联网协议IP地址设置为无效,并向域名***DNS服务器发送第一域名解析请求消息,所述第一IP地址用于所述用户设备在所述第一位置区访问域名,所述第一域名解析请求消息携带所述域名;所述用户设备接收第一域名解析应答消息,所述第一域名解析应答消息携带与所述域名对应的第二IP地址;所述用户设备将所述第二IP地址添加至所述域名缓存;所述用户设备通过所述第二IP地址访问所述域名。The first aspect provides a domain name access method, where the method includes: the user equipment determines that the user equipment moves from the first location area to the second location area; and the user equipment caches the first Internet Protocol IP in the domain name cache The address is set to be invalid, and the first domain name resolution request message is sent to the domain name system DNS server, where the first IP address is used by the user equipment to access the domain name in the first location area, and the first domain name resolution request message is carried. The user equipment receives the first domain name resolution response message, the first domain name resolution response message carries a second IP address corresponding to the domain name, and the user equipment adds the second IP address to the domain name The domain name cache; the user equipment accesses the domain name through the second IP address.
本公开实施例提供的方法,如果用户设备确定其发生位置区移动时,则将域名缓存中 已保存的第一IP地址设置为无效,并向DNS服务器发送域名解析请求消息,以触发域名缓存的更新。UE接收DNS服务器返回的第二IP地址,将该第二IP地址添加至域名缓存,并通过该第二IP地址访问域名。由于该第二IP地址是在用户设备发生位置区移动后由DNS服务器重新确定的,是离移动后的用户设备较近的域名对应的应用服务器的IP地址,因此可以实现用户设备访问域名对应的最优的服务器,时延短,通信效率高。The method provided by the embodiment of the present disclosure caches the domain name if the user equipment determines that the location area moves. The saved first IP address is set to be invalid, and a domain name resolution request message is sent to the DNS server to trigger the update of the domain name cache. The UE receives the second IP address returned by the DNS server, adds the second IP address to the domain name cache, and accesses the domain name through the second IP address. The second IP address is re-determined by the DNS server after the location area of the user equipment is moved, and is the IP address of the application server corresponding to the domain name that is closer to the user equipment after the mobile device, so that the user equipment can access the domain name corresponding to the domain name. The optimal server has short delay and high communication efficiency.
在第一方面的第一种可能实现方式中,所述第一域名解析请求消息还携带所述用户设备的位置信息,所述位置信息用于指示所述用户设备当前所在位置区为所述第二位置区。In a first possible implementation manner of the first aspect, the first domain name resolution request message further carries location information of the user equipment, where the location information is used to indicate that the user equipment is currently located in the location area. Two location area.
本公开实施例提供的方法,用户设备向DNS服务器发送的第一域名解析请求消息还可以携带用户设备的位置信息,使得DNS服务器可以根据该位置信息,确定域名对应的IP地址,确定的IP地址更加准确。In the method provided by the embodiment of the present disclosure, the first domain name resolution request message sent by the user equipment to the DNS server may further carry the location information of the user equipment, so that the DNS server may determine the IP address corresponding to the domain name according to the location information, and determine the IP address. more precise.
在第一方面的第二种可能实现方式中,所述用户设备确定所述用户设备从第一位置区移动至第二位置区包括:所述用户设备从控制面设备接收缓存更新指示消息,根据所述缓存更新指示消息确定所述用户设备从所述第一位置区移动至所述第二位置区。In a second possible implementation manner of the first aspect, the user equipment determining that the user equipment moves from the first location area to the second location area comprises: the user equipment receiving a cache update indication message from the control plane device, according to The cache update indication message determines that the user equipment moves from the first location area to the second location area.
本公开实施例提供的方法,用户设备可以通过从控制面设备接收缓存更新指示消息,来确定用户设备发生位置区移动,丰富了对用户设备是否发生位置区移动进行判断的方式。In the method provided by the embodiment of the present disclosure, the user equipment may determine that the location area movement of the user equipment occurs by receiving the cache update indication message from the control plane device, and enrich the manner of determining whether the user equipment has moved the location area.
在第一方面的第三种可能实现方式中,所述用户设备确定所述用户设备从第一位置区移动至第二位置区,包括:所述用户设备根据所述域名缓存中所述域名对应的所述第一位置区,确定所述用户设备从所述第一位置区移动至所述第二位置区。In a third possible implementation manner of the first aspect, the determining, by the user equipment, the user equipment from the first location area to the second location area, includes: the user equipment corresponding to the domain name according to the domain name cache The first location area determines that the user equipment moves from the first location area to the second location area.
本公开实施例提供的方法,用户设备可以通过域名缓存中域名对应的第一位置区,来确定用户设备发生位置区移动,丰富了对用户设备是否发生位置区移动进行判断的方式。In the method provided by the embodiment of the present disclosure, the user equipment may determine the location area movement of the user equipment by using the first location area corresponding to the domain name in the domain name cache, and enrich the manner of determining whether the user equipment has moved the location area.
在第一方面的第四种可能实现方式中,所述第一域名解析应答消息还携带用于指示所述第二位置区的位置区指示信息;所述方法还包括:所述用户设备在所述域名缓存中保存所述用于指示所述第二位置区的位置区指示信息。In a fourth possible implementation manner of the first aspect, the first domain name resolution response message further carries location area indication information for indicating the second location area, where the method further includes: the user equipment is at the location The location area indication information for indicating the second location area is saved in the domain name cache.
本公开实施例提供的方法,用户设备接收到的第一域名解析应答消息还可以携带用于指示第二位置区的位置区指示信息,用户设备可以保存该位置区指示信息,使得用户设备在下次发生移动后,可以根据该位置区指示信息,判断用户设备是否发生位置区移动,从而保证判断的准确性。In the method provided by the embodiment of the present disclosure, the first domain name resolution response message received by the user equipment may further include location area indication information for indicating the second location area, and the user equipment may save the location area indication information, so that the user equipment is next time. After the movement occurs, the location area indication information may be used to determine whether the user equipment has moved in the location area, thereby ensuring the accuracy of the determination.
在第一方面的第五种可能实现方式中,所述第二IP地址包括多个IP地址,所述第一域名解析应答消息还携带用于指示与所述多个IP地址分别对应的多个位置区的位置区指示信息;所述方法还包括:所述用户设备在所述域名缓存中保存所述用于指示与所述多个IP地址分别对应的多个位置区的位置区指示信息。In a fifth possible implementation manner of the first aspect, the second IP address includes multiple IP addresses, and the first domain name resolution response message is further configured to indicate multiple corresponding to the multiple IP addresses respectively. The location area indication information of the location area; the method further includes: the user equipment storing the location area indication information for indicating a plurality of location areas respectively corresponding to the plurality of IP addresses in the domain name cache.
本公开实施例提供的方法,域名可以对应多个IP地址,用户设备接收到的第一域名解析应答消息还可以携带用于指示与该多个IP地址分别对应的多个位置区的位置区指示信息,用户设备可以保存该位置区指示信息,使得用户设备在下次发生移动后,可以根据该位置区指示信息,判断用户设备是否发生位置区移动,从而保证判断的准确性。In the method provided by the embodiment of the present disclosure, the domain name may correspond to multiple IP addresses, and the first domain name resolution response message received by the user equipment may further include a location area indication for indicating multiple location areas corresponding to the multiple IP addresses respectively. The user equipment may save the location area indication information, so that after the next time the user equipment moves, the user equipment may determine whether the user equipment has moved in the location area according to the location area indication information, thereby ensuring the accuracy of the determination.
在第一方面的第六种可能实现方式中,所述用户设备通过所述第二IP地址访问所述域名包括:所述用户设备在所述域名缓存中查询与所述用户设备当前所在位置区对应的目的IP地址;所述用户设备通过所述目的IP地址访问所述域名。In a sixth possible implementation manner of the foregoing aspect, the user equipment accessing the domain name by using the second IP address includes: the user equipment querying, in the domain name cache, a current location area of the user equipment Corresponding destination IP address; the user equipment accesses the domain name by using the destination IP address.
本公开实施例提供的方法,当域名对应多个IP地址时,通过用户设备当前所在位置区 对应的目的IP地址访问该域名,可以实现用户设备访问域名对应的最优的服务器,时延短,通信效率高。The method provided by the embodiment of the present disclosure, when the domain name corresponds to multiple IP addresses, passes through the current location area of the user equipment. If the corresponding destination IP address is used to access the domain name, the user device can access the optimal server corresponding to the domain name, and the delay is short and the communication efficiency is high.
在第一方面的第七种可能实现方式中,所述向DNS服务器发送第一域名解析请求消息之前,所述方法还包括:向所述DNS服务器发送第二域名解析请求消息,所述第二域名解析请求消息携带所述域名;接收第二域名解析应答消息,所述第二域名解析应答消息携带所述域名对应的第一IP地址和用于指示所述第一位置区的位置区指示信息,所述第一IP地址由所述DNS服务器根据所述域名确定;将所述域名对应的第一IP地址和所述用于指示所述第一位置区的位置区指示信息保存至所述用户设备的域名缓存中;通过所述第一IP地址访问所述域名。In a seventh possible implementation manner of the first aspect, before the sending the first domain name resolution request message to the DNS server, the method further includes: sending a second domain name resolution request message to the DNS server, where the second The domain name resolution request message carries the domain name, and receives a second domain name resolution response message, where the second domain name resolution response message carries a first IP address corresponding to the domain name and location area indication information used to indicate the first location area The first IP address is determined by the DNS server according to the domain name; the first IP address corresponding to the domain name and the location area indication information used to indicate the first location area are saved to the user The domain name cache of the device; accessing the domain name by using the first IP address.
本公开实施例提供的方法,用户设备向DNS服务器发送第一域名解析请求消息,接收并保存DNS服务器返回的IP地址。并通过该IP地址访问该域名。由于该IP地址由DNS服务器根据位置信息确定,是离用户设备较近的域名对应的应用服务器的IP地址,因此可以实现用户设备访问域名对应的最优的服务器,时延短,通信效率高。In the method provided by the embodiment of the present disclosure, the user equipment sends a first domain name resolution request message to the DNS server, and receives and saves the IP address returned by the DNS server. And access the domain name through the IP address. The IP address is determined by the DNS server according to the location information, and is the IP address of the application server corresponding to the domain name that is closer to the user equipment. Therefore, the user equipment can access the optimal server corresponding to the domain name, and the delay is short and the communication efficiency is high.
在第一方面的第八种可能实现方式中,所述第二域名解析请求消息还携带所述用户设备的第一位置信息。In an eighth possible implementation manner of the first aspect, the second domain name resolution request message further carries first location information of the user equipment.
本公开实施例提供的方法,用户设备向DNS服务器发送的第二域名解析请求消息还可以携带用户设备的第一位置信息,使得DNS服务器可以根据该第一位置信息,确定域名对应的IP地址,确定的IP地址更加准确。In the method provided by the embodiment of the present disclosure, the second domain name resolution request message sent by the user equipment to the DNS server may further carry the first location information of the user equipment, so that the DNS server may determine the IP address corresponding to the domain name according to the first location information. The determined IP address is more accurate.
第二方面,提供了一种域名访问方法,所述方法包括:域名***DNS服务器从用户设备接收域名解析请求消息,所述域名解析请求消息携带所述用户设备待访问的域名;所述DNS服务器确定所述域名对应的互联网协议IP地址和与所述IP地址对应的位置区;所述DNS服务器向所述用户设备发送域名解析应答消息,所述域名解析应答消息携带所述IP地址和用于指示所述位置区的位置区指示信息。The second aspect provides a domain name access method, where the method includes: a domain name system DNS server receives a domain name resolution request message from a user equipment, where the domain name resolution request message carries a domain name to be accessed by the user equipment; the DNS server Determining an Internet Protocol IP address corresponding to the domain name and a location area corresponding to the IP address; the DNS server sending a domain name resolution response message to the user equipment, where the domain name resolution response message carries the IP address and is used for A location area indication information indicating the location area.
本公开实施例提供的方法,DNS服务器可以根据域名解析请求消息携带的域名,确定该域名对应的IP地址和位置区,并向用户设备返回该IP地址和用于指示该位置区的位置区指示信息,使得用户设备可以通过该IP地址,实现用户设备访问域名对应的最优的服务器,时延短,通信效率高。According to the method provided by the embodiment of the present disclosure, the DNS server may determine the IP address and the location area corresponding to the domain name according to the domain name carried in the domain name resolution request message, and return the IP address and the location area indication for indicating the location area to the user equipment. The information enables the user equipment to access the optimal server corresponding to the domain name through the IP address, with short delay and high communication efficiency.
在第二方面的第一种可能实现方式中,所述域名解析请求消息还携带所述用户设备当前的位置信息。In a first possible implementation manner of the second aspect, the domain name resolution request message further carries current location information of the user equipment.
本公开实施例提供的方法,用户设备向DNS服务器发送的域名解析请求消息还携带用户设备当前的位置信息,使得DNS服务器可以根据该用户设备当前的位置信息,确定域名对应的IP地址和位置区。由于该IP地址是离移动后的用户设备较近的域名对应的应用服务器的IP地址,用户设备可以通过该IP地址,实现用户设备访问域名对应的最优的服务器,时延短,通信效率高。The method provided by the embodiment of the present disclosure, the domain name resolution request message sent by the user equipment to the DNS server further carries the current location information of the user equipment, so that the DNS server can determine the IP address and the location area corresponding to the domain name according to the current location information of the user equipment. . Because the IP address is the IP address of the application server corresponding to the domain name that is closer to the user equipment after the mobile device, the user equipment can use the IP address to implement the optimal server for the user equipment to access the domain name, with short delay and high communication efficiency. .
第三方面,提供了一种域名访问方法,所述方法包括:控制面设备确定用户设备发生位置区移动;所述控制面设备向所述用户设备发送缓存更新指示消息,所述缓存更新指示消息用于指示所述用户设备更新域名缓存。 A third aspect provides a method for accessing a domain name, the method comprising: the control plane device determining that a location area movement of the user equipment occurs; the control plane device sending a cache update indication message to the user equipment, the cache update indication message And is used to instruct the user equipment to update the domain name cache.
本公开实施例提供的方法,控制面设备在确定用户设备发生位置区移动后,可以向用户设备发送缓存更新指示消息,以触发用户设备更新域名缓存,丰富了触发用户设备更新域名缓存的方式。The method provided by the embodiment of the present disclosure, after determining that the user equipment has moved the location area, may send a cache update indication message to the user equipment to trigger the user equipment to update the domain name cache, which enriches the manner in which the user equipment is triggered to update the domain name cache.
在第三方面的第一种可能实现方式中,所述控制面设备确定用户设备发生位置区移动包括:In a first possible implementation manner of the third aspect, the control plane device determines that the location area movement of the user equipment includes:
如果所述用户设备向所述控制面设备发起位置更新流程,则所述控制面设备确定所述用户设备发生位置区移动;或,如果所述用户设备建立了新的数据包单元PDU会话,则所述控制面设备确定所述用户设备发生位置区移动。If the user equipment initiates a location update procedure to the control plane device, the control plane device determines that the user equipment has a location area move; or, if the user equipment establishes a new data packet unit PDU session, The control plane device determines that the user equipment has moved a location area.
本公开实施例提供的方法,控制面设备既可以在用户设备发起位置更新流程时,也可以在用户设备建立了新的PDU会话时,向用户设备发送缓存更新指示消息,以触发用户设备更新域名缓存,丰富了触发用户设备更新域名缓存的方式。In the method provided by the embodiment of the present disclosure, the control plane device may send a cache update indication message to the user equipment when the user equipment initiates the location update process, or when the user equipment establishes a new PDU session, to trigger the user equipment to update the domain name. The cache enriches the way the user device is triggered to update the domain name cache.
第四方面,提供了一种域名访问装置,所述装置包括多个功能模块,该多个功能模块用于执行上述第一方面所提供的域名访问方法以及其任一种可能实现方式。The fourth aspect provides a domain name access device, where the device includes a plurality of function modules, and the plurality of function modules are used to execute the domain name access method provided by the first aspect and any possible implementation manner thereof.
第五方面,提供了一种域名访问装置,所述装置包括多个功能模块,该多个功能模块用于执行上述第二方面所提供的域名访问方法以及其任一种可能实现方式。A fifth aspect provides a domain name access device, where the device includes a plurality of function modules, and the plurality of function modules are used to execute the domain name access method provided by the second aspect and any possible implementation manner thereof.
第六方面,提供了一种域名访问装置,所述装置包括多个功能模块,该多个功能模块用于执行上述第三方面所提供的域名访问方法以及其任一种可能实现方式。The sixth aspect provides a domain name access device, where the device includes a plurality of function modules, and the plurality of function modules are used to execute the domain name access method provided by the third aspect, and any possible implementation manner thereof.
第七方面,提供了一种用户设备,该用户设备包括:处理器;用于存储处理器可执行指令的存储器;该可执行指令用于执行:用户设备确定所述用户设备从第一位置区移动至第二位置区;所述用户设备将域名缓存中的第一互联网协议IP地址设置为无效,并向域名***DNS服务器发送第一域名解析请求消息,所述第一IP地址用于所述用户设备在所述第一位置区访问域名,所述第一域名解析请求消息携带所述域名;所述用户设备接收第一域名解析应答消息,所述第一域名解析应答消息携带与所述域名对应的第二IP地址;所述用户设备将所述第二IP地址添加至所述域名缓存;所述用户设备通过所述第二IP地址访问所述域名。According to a seventh aspect, a user equipment is provided, the user equipment includes: a processor; a memory for storing processor-executable instructions; the executable instruction is configured to: the user equipment determines the user equipment from the first location area Moving to the second location area; the user equipment sets the first Internet Protocol IP address in the domain name cache to be invalid, and sends a first domain name resolution request message to the domain name system DNS server, where the first IP address is used for the The user equipment accesses the domain name in the first location area, the first domain name resolution request message carries the domain name, and the user equipment receives the first domain name resolution response message, where the first domain name resolution response message carries the domain name Corresponding second IP address; the user equipment adds the second IP address to the domain name cache; and the user equipment accesses the domain name by using the second IP address.
在一种可能实现方式中,所述第一域名解析请求消息还携带所述用户设备的位置信息,所述位置信息用于指示所述用户设备当前所在位置区为所述第二位置区。In a possible implementation manner, the first domain name resolution request message further carries the location information of the user equipment, where the location information is used to indicate that the current location area of the user equipment is the second location area.
在一种可能实现方式中,该可执行指令用于执行:所述用户设备从控制面设备接收缓存更新指示消息,根据所述缓存更新指示消息确定所述用户设备从所述第一位置区移动至所述第二位置区。In a possible implementation, the executable instruction is configured to: the user equipment receives a cache update indication message from the control plane device, and determines, according to the cache update indication message, that the user equipment moves from the first location area To the second location area.
在一种可能实现方式中,该可执行指令用于执行:所述用户设备根据所述域名缓存中所述域名对应的所述第一位置区,确定所述用户设备从所述第一位置区移动至所述第二位置区。In a possible implementation, the executable instruction is configured to: determine, by the user equipment, that the user equipment is from the first location area according to the first location area corresponding to the domain name in the domain name cache. Move to the second location area.
在一种可能实现方式中,所述第一域名解析应答消息还携带用于指示所述第二位置区的位置区指示信息;该可执行指令用于执行:所述用户设备在所述域名缓存中保存所述用 于指示所述第二位置区的位置区指示信息。In a possible implementation, the first domain name resolution response message further carries location area indication information for indicating the second location area; the executable instruction is used to execute: the user equipment is cached in the domain name Save the use The location area indication information indicating the second location area.
在一种可能实现方式中,所述第二IP地址包括多个IP地址,所述第一域名解析应答消息还携带用于指示与所述多个IP地址分别对应的多个位置区的位置区指示信息;该可执行指令用于执行:所述用户设备在所述域名缓存中保存所述用于指示与所述多个IP地址分别对应的多个位置区的位置区指示信息。In a possible implementation, the second IP address includes multiple IP addresses, and the first domain name resolution response message further carries a location area that is used to indicate multiple location areas corresponding to the multiple IP addresses respectively. And the executable information is used to execute: the user equipment saves, in the domain name cache, the location area indication information used to indicate a plurality of location areas respectively corresponding to the plurality of IP addresses.
在一种可能实现方式中,该可执行指令用于执行:所述用户设备在所述域名缓存中查询与所述用户设备当前所在位置区对应的目的IP地址;所述用户设备通过所述目的IP地址访问所述域名。In a possible implementation, the executable instruction is used to perform: the user equipment queries, in the domain name cache, a destination IP address corresponding to a location area currently in which the user equipment is located; The IP address accesses the domain name.
在一种可能实现方式中,该可执行指令用于执行:向所述DNS服务器发送第二域名解析请求消息,所述第二域名解析请求消息携带所述域名;接收第二域名解析应答消息,所述第二域名解析应答消息携带所述域名对应的第一IP地址和用于指示所述第一位置区的位置区指示信息,所述第一IP地址由所述DNS服务器根据所述域名确定;将所述域名对应的第一IP地址和所述用于指示所述第一位置区的位置区指示信息保存至所述用户设备的域名缓存中;通过所述第一IP地址访问所述域名。In a possible implementation, the executable instruction is configured to: send a second domain name resolution request message to the DNS server, where the second domain name resolution request message carries the domain name; and receive a second domain name resolution response message, The second domain name resolution response message carries a first IP address corresponding to the domain name and location area indication information for indicating the first location area, where the first IP address is determined by the DNS server according to the domain name. And storing the first IP address corresponding to the domain name and the location area indication information used to indicate the first location area in a domain name cache of the user equipment; accessing the domain name by using the first IP address .
在一种可能实现方式中,所述第二域名解析请求消息还携带所述用户设备的第一位置信息。In a possible implementation manner, the second domain name resolution request message further carries first location information of the user equipment.
第八方面,提供了一种DNS服务器,该DNS服务器包括:处理器;用于存储处理器可执行指令的存储器;该可执行指令用于执行:域名***DNS服务器从用户设备接收域名解析请求消息,所述域名解析请求消息携带所述用户设备待访问的域名;所述DNS服务器确定所述域名对应的互联网协议IP地址和与所述IP地址对应的位置区;所述DNS服务器向所述用户设备发送域名解析应答消息,所述域名解析应答消息携带所述IP地址和用于指示所述位置区的位置区指示信息。In an eighth aspect, a DNS server is provided, the DNS server comprising: a processor; a memory for storing processor executable instructions; the executable instruction is configured to: the domain name system DNS server receives a domain name resolution request message from the user equipment The domain name resolution request message carries a domain name to be accessed by the user equipment; the DNS server determines an internet protocol IP address corresponding to the domain name and a location area corresponding to the IP address; and the DNS server sends the domain address to the user The device sends a domain name resolution response message, where the domain name resolution response message carries the IP address and location area indication information used to indicate the location area.
在一种可能实现方式中,所述域名解析请求消息还携带所述用户设备当前的位置信息。In a possible implementation manner, the domain name resolution request message further carries current location information of the user equipment.
第九方面,提供了一种控制面设备,该控制面设备包括:处理器;用于存储处理器可执行指令的存储器;该可执行指令用于执行:控制面设备确定用户设备发生位置区移动;所述控制面设备向所述用户设备发送缓存更新指示消息,所述缓存更新指示消息用于指示所述用户设备更新域名缓存。A ninth aspect, a control plane device is provided, the control plane device comprising: a processor; a memory for storing processor-executable instructions; and the executable instruction is configured to: determine, by the control plane device, that the user equipment is located in a location area The control plane device sends a cache update indication message to the user equipment, where the cache update indication message is used to instruct the user equipment to update the domain name cache.
在一种可能实现方式中,该可执行指令用于执行:如果所述用户设备向所述控制面设备发起位置更新流程,则所述控制面设备确定所述用户设备发生位置区移动;或,该可执行指令用于执行:如果所述用户设备建立了新的数据包单元PDU会话,则所述控制面设备确定所述用户设备发生位置区移动。In a possible implementation, the executable instruction is configured to: if the user equipment initiates a location update process to the control plane device, the control plane device determines that the user equipment occurs a location area move; or The executable instruction is configured to: if the user equipment establishes a new data packet unit PDU session, the control plane device determines that the user equipment occurs a location area move.
附图说明DRAWINGS
图1是本公开实施例提供的一种***的结构示意图。FIG. 1 is a schematic structural diagram of a system according to an embodiment of the present disclosure.
图2是本公开实施例提供的一种用户设备200的结构示意图。FIG. 2 is a schematic structural diagram of a user equipment 200 according to an embodiment of the present disclosure.
图3是本公开实施例提供的一种DNS服务器300的结构示意图。FIG. 3 is a schematic structural diagram of a DNS server 300 according to an embodiment of the present disclosure.
图4是本公开实施例提供的一种控制面设备400的结构示意图。 FIG. 4 is a schematic structural diagram of a control plane device 400 according to an embodiment of the present disclosure.
图5是本公开实施例提供的一种域名访问方法流程图。FIG. 5 is a flowchart of a method for accessing a domain name according to an embodiment of the present disclosure.
图6是本公开实施例提供的一种域名访问方法流程图。FIG. 6 is a flowchart of a method for accessing a domain name according to an embodiment of the present disclosure.
图7是本公开实施例提供的一种域名访问方法流程图。FIG. 7 is a flowchart of a method for accessing a domain name according to an embodiment of the present disclosure.
图8是本公开实施例提供的一种域名访问方法流程图。FIG. 8 is a flowchart of a method for accessing a domain name according to an embodiment of the present disclosure.
图9是本公开实施例提供的一种域名访问方法流程图。FIG. 9 is a flowchart of a method for accessing a domain name according to an embodiment of the present disclosure.
图10是本公开实施例提供的一种域名访问方法流程图。FIG. 10 is a flowchart of a method for accessing a domain name according to an embodiment of the present disclosure.
图11是本公开实施例提供的一种域名访问装置结构示意图。FIG. 11 is a schematic structural diagram of a domain name access apparatus according to an embodiment of the present disclosure.
图12是本公开实施例提供的一种域名访问装置结构示意图。FIG. 12 is a schematic structural diagram of a domain name access apparatus according to an embodiment of the present disclosure.
图13是本公开实施例提供的一种域名访问装置结构示意图。FIG. 13 is a schematic structural diagram of a domain name access apparatus according to an embodiment of the present disclosure.
图14是本公开实施例提供的一种域名访问装置结构示意图。FIG. 14 is a schematic structural diagram of a domain name access apparatus according to an embodiment of the present disclosure.
具体实施方式detailed description
为使本公开的目的、技术方案和优点更加清楚,下面将结合附图对本公开实施方式作进一步地详细描述。The embodiments of the present disclosure will be further described in detail below with reference to the accompanying drawings.
图1是本公开实施例提供的一种***结构示意图。参见图1,该***结构包括:用户设备(User Equipment,UE)、控制面设备(Control Plane,CP)、接入网络(Access Network,AN)、转发面网元(User plane,UP)、DNS服务器、应用服务器(Application Server,AS)。FIG. 1 is a schematic structural diagram of a system according to an embodiment of the present disclosure. Referring to FIG. 1 , the system structure includes: User Equipment (UE), Control Plane (CP), Access Network (AN), User plane (UP), DNS. Server, Application Server (AS).
其中,UE为用户设备,如手机、电脑等。CP是负责用户及会话管理的控制面设备,如移动网络控制器等。AN提供无线接入服务。UP负责转发由用户设备发送的报文。DNS服务器提供域名和互联网协议(Internet Protocol,IP)地址之间的映射和转换,可以通过DNS服务器将域名解析为对应的IP地址。用户设备可以通过DNS提供的域名解析服务实现对域名的访问。AS是提供业务服务的服务器。The UE is a user equipment, such as a mobile phone or a computer. The CP is a control plane device responsible for user and session management, such as a mobile network controller. The AN provides wireless access services. The UP is responsible for forwarding the packets sent by the user equipment. The DNS server provides mapping and conversion between the domain name and the Internet Protocol (IP) address, and the domain name can be resolved to the corresponding IP address through the DNS server. The user equipment can access the domain name through the domain name resolution service provided by the DNS. An AS is a server that provides business services.
图2是本公开实施例提供的一种用户设备200的结构示意图,该用户设备可以用于执行上述各个实施例中提供的域名访问方法。参见图2,该用户设备200包括:FIG. 2 is a schematic structural diagram of a user equipment 200 according to an embodiment of the present disclosure. The user equipment may be used to perform the domain name access method provided in the foregoing embodiments. Referring to FIG. 2, the user equipment 200 includes:
用户设备200可以包括RF(Radio Frequency,射频)电路110、包括有一个或一个以上计算机可读存储介质的存储器120、输入单元130、显示单元140、传感器150、音频电路160、WiFi(Wireless Fidelity,无线保真)模块170、包括有一个或者一个以上处理核心的处理器180、以及电源190等部件。本领域技术人员可以理解,图2中示出的用户设备结构并不构成对用户设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:The user equipment 200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more computer readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, and a WiFi (Wireless Fidelity, The Wireless Fidelity module 170 includes a processor 180 having one or more processing cores, and a power supply 190 and the like. It will be understood by those skilled in the art that the user equipment structure shown in FIG. 2 does not constitute a limitation to the user equipment, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements. among them:
RF电路110可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,交由一个或者一个以上处理器180处理;另外,将涉及上行的数据发送给基站。通常,RF电路110包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(SIM)卡、收发信机、耦合器、LNA(Low Noise Amplifier,低噪声放大器)、双工器等。此外,RF电路110还可以通过无线通信与网络和其他设备通信。无线通信可以使用任一通信标准或协议,包括但不限于GSM(Global System of Mobile communication,全球移动通讯***)、GPRS(General Packet Radio Service,通用分组无线服务)、CDMA(Code Division Multiple Access,码分多址)、WCDMA(Wideband Code Division  Multiple Access,宽带码分多址)、LTE(Long Term Evolution,长期演进)、电子邮件、SMS(Short Messaging Service,短消息服务)等。The RF circuit 110 can be used for transmitting and receiving information or during a call, and receiving and transmitting signals. Specifically, after receiving downlink information of the base station, the downlink information is processed by one or more processors 180. In addition, the data related to the uplink is sent to the base station. . Generally, the RF circuit 110 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier). , duplexer, etc. In addition, RF circuitry 110 can also communicate with the network and other devices via wireless communication. Wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access) Divisional Multiple Access), WCDMA (Wideband Code Division) Multiple Access, Wideband Code Division Multiple Access, LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and so on.
存储器120可用于存储软件程序以及模块,处理器180通过运行存储在存储器120的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器120可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作***、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据用户设备200的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器120还可以包括存储器控制器,以提供处理器180和输入单元130对存储器120的访问。The memory 120 can be used to store software programs and modules, and the processor 180 executes various functional applications and data processing by running software programs and modules stored in the memory 120. The memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the user device 200 (such as audio data, phone book, etc.), and the like. Moreover, memory 120 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 120 may also include a memory controller to provide access to memory 120 by processor 180 and input unit 130.
输入单元130可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,输入单元130可包括触敏表面131以及其他输入设备132。触敏表面131,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面131上或在触敏表面131附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面131可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器180,并能接收处理器180发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面131。除了触敏表面131,输入单元130还可以包括其他输入设备132。具体地,其他输入设备132可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 130 can be configured to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls. In particular, input unit 130 can include touch-sensitive surface 131 as well as other input devices 132. Touch-sensitive surface 131, also referred to as a touch display or trackpad, can collect touch operations on or near the user (such as a user using a finger, stylus, etc., on any suitable object or accessory on touch-sensitive surface 131 or The operation near the touch-sensitive surface 131) and driving the corresponding connecting device according to a preset program. Alternatively, the touch-sensitive surface 131 can include two portions of a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. The processor 180 is provided and can receive commands from the processor 180 and execute them. In addition, the touch-sensitive surface 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 can also include other input devices 132. Specifically, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
显示单元140可用于显示由用户输入的信息或提供给用户的信息以及用户设备200的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元140可包括显示面板141,可选的,可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板141。进一步的,触敏表面131可覆盖显示面板141,当触敏表面131检测到在其上或附近的触摸操作后,传送给处理器180以确定触摸事件的类型,随后处理器180根据触摸事件的类型在显示面板141上提供相应的视觉输出。虽然在图2中,触敏表面131与显示面板141是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面131与显示面板141集成而实现输入和输出功能。The display unit 140 can be used to display information entered by the user or information provided to the user and various graphical user interfaces of the user device 200, which can be composed of graphics, text, icons, video, and any combination thereof. The display unit 140 may include a display panel 141. Alternatively, the display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and when the touch-sensitive surface 131 detects a touch operation thereon or nearby, it is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 according to the touch event The type provides a corresponding visual output on display panel 141. Although in FIG. 2, touch-sensitive surface 131 and display panel 141 are implemented as two separate components to implement input and input functions, in some embodiments, touch-sensitive surface 131 can be integrated with display panel 141 for input. And output function.
用户设备200还可包括至少一种传感器150,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板141的亮度,接近传感器可在用户设备200移动到耳边时,关闭显示面板141和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于用户设备200还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。 User device 200 may also include at least one type of sensor 150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 141 when the user device 200 moves to the ear. And / or backlight. As a kind of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the user equipment 200 can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, here No longer.
音频电路160、扬声器161,传声器162可提供用户与用户设备200之间的音频接口。音频电路160可将接收到的音频数据转换后的电信号,传输到扬声器161,由扬声器161转换为声音信号输出;另一方面,传声器162将收集的声音信号转换为电信号,由音频电路160接收后转换为音频数据,再将音频数据输出处理器180处理后,经RF电路110以发送给比如另一用户设备,或者将音频数据输出至存储器120以便进一步处理。音频电路160还可能包括耳塞插孔,以提供外设耳机与用户设备200的通信。The audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the user device 200. The audio circuit 160 can transmit the converted electrical data of the received audio data to the speaker 161 for conversion to the sound signal output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal by the audio circuit 160. After receiving, it is converted into audio data, and then processed by the audio data output processor 180, sent to the other user equipment via the RF circuit 110, or outputted to the memory 120 for further processing. The audio circuit 160 may also include an earbud jack to provide communication of the peripheral earphones with the user device 200.
WiFi属于短距离无线传输技术,用户设备200通过WiFi模块170可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图2示出了WiFi模块170,但是可以理解的是,其并不属于用户设备200的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-range wireless transmission technology, and the user equipment 200 can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 170, which provides wireless broadband Internet access for users. Although FIG. 2 shows the WiFi module 170, it can be understood that it does not belong to the essential configuration of the user equipment 200, and may be omitted as needed within the scope of not changing the essence of the invention.
处理器180是用户设备200的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行用户设备200的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器180可包括一个或多个处理核心;优选的,处理器180可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作***、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器180中。The processor 180 is the control center of the user device 200, connecting various portions of the entire handset with various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling data stored in the memory 120. The various functions and processing data of the user equipment 200 are executed to perform overall monitoring of the mobile phone. Optionally, the processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like. The modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 180.
用户设备200还包括给各个部件供电的电源190比如电池),优选的,电源可以通过电源管理***与处理器180逻辑相连,从而通过电源管理***实现管理充电、放电、以及功耗管理等功能。电源190还可以包括一个或一个以上的直流或交流电源、再充电***、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The user equipment 200 also includes a power source 190, such as a battery, for powering various components. Preferably, the power source can be logically coupled to the processor 180 through a power management system to manage functions such as charging, discharging, and power management through the power management system. Power supply 190 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
尽管未示出,用户设备200还可以包括摄像头、蓝牙模块等,在此不再赘述。具体在本实施例中,用户设备的显示单元是触摸屏显示器,用户设备还包括有存储器,以及可执行指令,其中可执行指令存储于存储器中,且经配置以由一个或者一个以上处理器执行。该可执行指令用于执行下述图5至图10所示实施例中用户设备侧方法。Although not shown, the user equipment 200 may further include a camera, a Bluetooth module, and the like, and details are not described herein again. Specifically in this embodiment, the display unit of the user device is a touch screen display, the user device further includes a memory, and executable instructions, wherein the executable instructions are stored in the memory and configured to be executed by one or more processors. The executable instructions are used to perform the user equipment side method in the embodiments shown in FIGS. 5 to 10 described below.
图3是本公开实施例提供的一种域名访问装置300的框图。例如,装置300可以为DNS服务器。参照图3,装置300包括处理组件322,其进一步包括一个或多个处理器,以及由存储器332所代表的存储器资源,用于存储可由处理部件322的执行的指令,例如应用程序。存储器332中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件322被配置为执行指令,以执行下述图5至图10所示实施例中服务器侧方法。FIG. 3 is a block diagram of a domain name access device 300 according to an embodiment of the present disclosure. For example, device 300 can be a DNS server. Referring to FIG. 3, apparatus 300 includes a processing component 322 that further includes one or more processors, and memory resources represented by memory 332 for storing instructions executable by processing component 322, such as an application. An application stored in memory 332 may include one or more modules each corresponding to a set of instructions. Moreover, processing component 322 is configured to execute instructions to perform the server side method of the embodiments illustrated in Figures 5-10 below.
装置300还可以包括一个电源组件326被配置为执行装置300的电源管理,一个有线或无线网络接口350被配置为将装置300连接到网络,和一个输入输出(I/O)接口358。装置300可以操作基于存储在存储器332的操作***,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。 Device 300 may also include a power supply component 326 configured to perform power management of device 300, a wired or wireless network interface 350 configured to connect device 300 to the network, and an input/output (I/O) interface 358. Device 300 can operate based on an operating system stored in memory 332, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or the like.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器,上述指令可由DNS服务器中的处理器执行以完成下述实施例中DNS服务器侧的域名访问方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。 In an exemplary embodiment, there is also provided a non-transitory computer readable storage medium comprising instructions, such as a memory comprising instructions executable by a processor in a DNS server to perform a DNS server side in an embodiment described below Domain access method. For example, the non-transitory computer readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
图4是本公开实施例提供的一种控制面设备400的结构示意图。参见图4,该控制面设备400包括总线、处理器、存储器、输入输出接口、显示设备和通信接口。该存储器存储有可执行指令,该可执行指令用于执行下述图5至图10所示实施例中控制面设备侧方法。FIG. 4 is a schematic structural diagram of a control plane device 400 according to an embodiment of the present disclosure. Referring to FIG. 4, the control plane device 400 includes a bus, a processor, a memory, an input and output interface, a display device, and a communication interface. The memory stores executable instructions for performing the control plane device side method in the embodiment shown in FIGS. 5 to 10 described below.
总线是连接所描述的元素的电路并且在这些元素之间实现传输。例如,处理器通过总线从其它元素接收到命令,解密接收到的命令,根据解密的命令执行计算或数据处理。存储器可以包括程序模块,例如内核(kernel),中间件(middleware),应用程序接口(AP)和应用。该程序模块可以是有软件、固件或硬件、或其中的至少两种组成。输入输出接口转发用户通过输入输出设备(例如感应器、键盘、触摸屏)输入的命令或数据。显示设备显示各种信息给用户。通信接口将该控制面设备400与其它网络设备、用户设备、网络进行连接。例如,通信接口可以通过有线或无线连接到网络以连接到外部其它的网络设备或用户设备。无线通信可以包括以下至少一种:Wi-Fi(Wireless Fidelity,无线保真),BT(Bluetooth,蓝牙),NFC(Near Field Communication,近距离无线通信技术),GPS(Global Positioning System,全球卫星定位***)和cellular communication(蜂窝通信)(例如,LTE(Long Term Evolution,长期演进技术),LTE-A(Long Term Evolution–Advanced,长期演进技术的后续演进),CDMA(Code Division Multiple Access,码分多址),WCDMA(Wideband CDMA,宽带码分多址),UMTS(Universal Mobile Telecommunication System,通用移动通信***),WiBro(Wireless Broadband,无线宽带接入),和GSM(Global System for Mobile communication,全球移动通讯***))。有线通信可以包括以下至少一种:USB(Universal Serial Bus,通用串行总线),HDMI(High Definition Multimedia Interface,高清晰度多媒体接口),RS-232(Recommended Standard 232,异步传输标准接口),和POTS(Plain Old Telephone Service,普通老式电话业务)。网络可以是电信网络和通信网络。通信网络可以为计算机网络、因特网、物联网、电话网络。控制面设备400可以通过通信接口连接网络,控制面设备400和其它网络设备通信所用的协议可以被应用、API、中间件、内核和通信接口至少一个支持。A bus is a circuit that connects the elements described and implements transmission between these elements. For example, the processor receives commands from other elements over the bus, decrypts the received commands, and performs calculations or data processing based on the decrypted commands. The memory can include program modules such as a kernel, middleware, application programming interface (AP), and applications. The program module can be composed of software, firmware or hardware, or at least two of them. The input and output interfaces forward commands or data entered by the user through input and output devices (eg, sensors, keyboards, touch screens). The display device displays various information to the user. The communication interface connects the control plane device 400 with other network devices, user equipment, and networks. For example, the communication interface can be connected to the network by wired or wireless to connect to other external network devices or user devices. The wireless communication may include at least one of the following: Wi-Fi (Wireless Fidelity), BT (Bluetooth), NFC (Near Field Communication), GPS (Global Positioning System) (system) and cellular communication (for example, LTE (Long Term Evolution), LTE-A (Long Term Evolution-Advanced, subsequent evolution of Long Term Evolution), CDMA (Code Division Multiple Access, code division) Multiple Access), WCDMA (Wideband CDMA, Wideband Code Division Multiple Access), UMTS (Universal Mobile Telecommunication System), WiBro (Wireless Broadband, Wireless Broadband Access), and GSM (Global System for Mobile communication, Worldwide) Mobile communication system)). The wired communication may include at least one of the following: a USB (Universal Serial Bus), an HDMI (High Definition Multimedia Interface), an RS-232 (Recommended Standard 232, an asynchronous transfer standard interface), and POTS (Plain Old Telephone Service). The network can be a telecommunications network and a communication network. The communication network can be a computer network, the Internet, an Internet of Things, or a telephone network. The control plane device 400 can be connected to the network through a communication interface, and the protocol used by the control plane device 400 to communicate with other network devices can be supported by at least one of an application, an API, a middleware, a kernel, and a communication interface.
以UE判断UE是否发生位置区移动,并触发域名缓存的更新为例,参见图5,基于UE与DNS服务器之间的交互,该域名访问方法可以简述为:UE确定该UE从第一位置区移动至第二位置区;该UE将域名缓存中的第一IP地址和用于指示该第一位置区的位置区指示信息设置为无效,并向DNS服务器发送第一域名解析请求消息,该第一IP地址用于该UE在该第一位置区访问域名,该第一域名解析请求消息携带该域名;DNS服务器从UE接收第一域名解析请求消息;该DNS服务器确定该域名对应的第二IP地址和与该第二IP地址对应的第二位置区;该DNS服务器向该UE发送第一域名解析应答消息,该第一域名解析应答消息携带该第二IP地址和用于指示该第二位置区的位置区指示信息;该UE接收第一域名解析应答消息;该UE将该第二IP地址添加至该域名缓存,该UE在域名缓存中保存该用于指示该第二位置区的位置区指示信息;该UE通过该第二IP地址访问该域名。For example, as shown in FIG. 5, based on the interaction between the UE and the DNS server, the domain name access method may be briefly described as: the UE determines that the UE is from the first location. The area moves to the second location area; the UE sets the first IP address in the domain name cache and the location area indication information used to indicate the first location area to be invalid, and sends a first domain name resolution request message to the DNS server, where The first IP address is used by the UE to access the domain name in the first location area, and the first domain name resolution request message carries the domain name; the DNS server receives the first domain name resolution request message from the UE; the DNS server determines the second domain corresponding to the domain name An IP address and a second location area corresponding to the second IP address; the DNS server sends a first domain name resolution response message to the UE, where the first domain name resolution response message carries the second IP address and is used to indicate the second a location area indication information of the location area; the UE receives a first domain name resolution response message; the UE adds the second IP address to the domain name cache, and the UE saves the domain name cache to indicate the Two location area information indicating a location area; the UE to access the domain through the second IP address.
图5是针对UE判断UE是否发生位置区移动的情况,对域名访问方法的简要说明,下面将在图6对应的实施例中,针对该情况,对该域名访问方法的步骤进行具体说明。图6是本公开实施例提供的一种域名访问方法的流程示意图,参见图6,该域名访问方法包括以 下步骤:FIG. 5 is a brief description of the method for accessing the domain name in the case where the UE determines whether the location area is moved by the UE. In the embodiment corresponding to FIG. 6 , the steps of the domain name access method will be specifically described below. 6 is a schematic flowchart of a domain name access method according to an embodiment of the present disclosure. Referring to FIG. 6, the domain name access method includes Next steps:
601、在数据包单元(Packet Data Unit,PDU)会话1建立后(如图6中601a所示),UE向DNS服务器发送域名解析请求消息1,该域名解析请求消息1携带待访问的域名和UE的位置信息1(如图6中601b所示)。601. After the session of the packet data unit (PDU) is established (as shown in 601a in FIG. 6), the UE sends a domain name resolution request message 1 to the DNS server, where the domain name resolution request message 1 carries the domain name to be accessed. The location information 1 of the UE (shown as 601b in FIG. 6).
本公开实施例中,用域名解析请求消息1来指代第二域名解析请求消息,用位置信息1来指代第一位置信息。在经过UE、AN1、UP1的PDU会话1建立后,UE可以采用域名解析请求消息1的形式,将待访问的域名和UE的位置信息1发送给DNS服务器。In the embodiment of the present disclosure, the domain name resolution request message 1 is used to refer to the second domain name resolution request message, and the location information 1 is used to refer to the first location information. After the PDU session 1 of the UE, AN1, and UP1 is established, the UE may send the domain name to be accessed and the location information 1 of the UE to the DNS server in the form of the domain name resolution request message 1.
需要说明的是:本公开实施例是以域名解析请求消息1携带UE的位置信息1为例进行说明,在一种可能实现方式中,该域名解析请求消息1还可以不携带UE的位置信息1。It should be noted that the embodiment of the present disclosure is described by using the domain name resolution request message 1 to carry the location information 1 of the UE as an example. In a possible implementation manner, the domain name resolution request message 1 may not carry the location information of the UE. .
602、DNS服务器接收该域名解析请求消息1,并根据UE的位置信息1,确定域名对应的IP1和域名对应的IP1所对应的位置区1(如图6中602a所示),并向UE发送域名解析应答消息1,该域名解析应答消息1携带该IP1和用于指示该位置区1的位置区指示信息(如图6中602b所示)。602. The DNS server receives the domain name resolution request message 1 and determines, according to the location information 1 of the UE, the IP1 corresponding to the domain name and the location area 1 corresponding to the IP1 corresponding to the domain name (as shown by 602a in FIG. 6), and sends the message to the UE. The domain name resolution response message 1 carries the IP1 and the location area indication information for indicating the location area 1 (shown as 602b in FIG. 6).
本公开实施例中,用IP1来指代第一IP地址,用位置区1来指代第一位置区。当DNS服务器接收到该域名解析请求消息1时,可以根据该域名解析请求消息1中携带的域名和位置信息1,确定该域名对应的IP1和位置区1,并采用域名解析应答消息1的形式,将该IP1和位置区1发送给UE。In the embodiment of the present disclosure, IP1 is used to refer to the first IP address, and location area 1 is used to refer to the first location area. When the DNS server receives the domain name resolution request message 1, the domain name and the location information 1 carried in the domain name resolution request message 1 may be determined, and the IP1 and the location area 1 corresponding to the domain name are determined, and the domain name resolution response message 1 is adopted. Send the IP1 and location area 1 to the UE.
例如,DNS服务器可以维护一个数据库,该数据库用于保存域名、位置信息、域名对应的IP地址以及位置区之间的对应关系,其中,该位置信息可以是UE的位置信息,也可以是UP的位置信息,本公开实施例对位置信息所对应的设备不做限制。因此,DNS服务器可以根据域名和UE的位置信息1,查询该对应关系,从而确定域名对应的IP1以及IP1所对应的位置区1。For example, the DNS server may maintain a database for storing a domain name, location information, an IP address corresponding to the domain name, and a correspondence between the location areas, where the location information may be location information of the UE, or may be UP. The location information, the embodiment of the present disclosure does not limit the device corresponding to the location information. Therefore, the DNS server can query the corresponding relationship according to the domain name and the location information 1 of the UE, thereby determining the IP1 corresponding to the domain name and the location area 1 corresponding to the IP1.
需要说明的是:针对步骤601中域名解析请求消息1还可以不携带UE的位置信息1,在一种可能实现方式中,当DNS服务器接收到域名解析请求消息1时,还可以根据该域名和UE的源IP地址A,确定域名对应的IP1和位置区1。其中,UE的源IP地址A可以由CP在PDU会话1建立后分配给UE,并可以由域名解析请求消息1携带。It should be noted that the domain name resolution request message 1 in step 601 may not carry the location information 1 of the UE. In a possible implementation manner, when the DNS server receives the domain name resolution request message 1, the domain name may also be The source IP address A of the UE determines the IP1 and location area 1 corresponding to the domain name. The source IP address A of the UE may be allocated to the UE by the CP after the PDU session 1 is established, and may be carried by the domain name resolution request message 1.
603、UE接收域名解析应答消息1,将该IP1添加至UE的域名缓存,在该域名缓存中保存该用于指示位置区1的位置区指示信息(如图6中603a所示),并通过IP1访问域名(如图6中603b所示)。603. The UE receives the domain name resolution response message 1, adds the IP1 to the domain name cache of the UE, and saves the location area indication information (shown as 603a in FIG. 6) for indicating the location area 1 in the domain name cache, and passes the IP1 accesses the domain name (as shown in 603b in Figure 6).
本公开实施例中,用域名解析应答消息1来指代第二域名解析应答消息。当UE接收到域名解析应答消息1时,可以将该域名解析应答消息1携带的IP1和用于指示位置区1的位置区指示信息保存至UE的域名缓存中。当UE访问该域名时,可以根据该域名,从该UE的域名缓存中获取该域名对应的IP1,从而通过该IP1访问该域名,即与AS1通信。UE与AS1在通信过程中会进行数据的传输,如图6中的上下行数据1。In the embodiment of the present disclosure, the domain name resolution response message 1 is used to refer to the second domain name resolution response message. When the UE receives the domain name resolution response message 1, the IP1 carried by the domain name resolution response message 1 and the location area indication information indicating the location area 1 may be saved in the domain name cache of the UE. When the UE accesses the domain name, the IP1 corresponding to the domain name is obtained from the domain name cache of the UE according to the domain name, so that the domain name is accessed through the IP1, that is, the AS1 is communicated. The UE and AS1 perform data transmission during the communication process, such as uplink and downlink data 1 in FIG.
604、UE发生移动(如图6中604a所示),在PDU会话2建立后(如图6中604b所示),当确定UE从位置区1移动至位置区2时,UE将域名缓存中的IP1和用于指示该位置区1的位置区指示信息设置为无效(如图6中604c所示),并向DNS服务器发送域名解析请求消息2,该域名解析请求消息2携带域名和UE的位置信息2,该位置信息2为UE当前所在位置(如图6中604d所示)。 604. The UE moves (as shown by 604a in FIG. 6). After the PDU session 2 is established (as shown by 604b in FIG. 6), when it is determined that the UE moves from the location area 1 to the location area 2, the UE caches the domain name. IP1 and the location area indication information for indicating the location area 1 are set to be invalid (as shown by 604c in FIG. 6), and send a domain name resolution request message 2 to the DNS server, the domain name resolution request message 2 carrying the domain name and the UE Location information 2, the location information 2 is the current location of the UE (as shown by 604d in FIG. 6).
本公开实施例中,用位置区2来指代第二位置区,用域名解析请求消息2来指代第一域名解析请求消息,用位置信息2来指代UE的位置信息。当UE发生移动后,可以建立PDU会话2。该PDU会话2建立后,如果UE确定其发生位置区移动,则可以将域名缓存中域名对应的IP1和用于指示该位置区1的位置区指示信息设置为无效,且采用域名解析请求消息2的形式,将域名和UE的位置信息2发送给DNS服务器。In the embodiment of the present disclosure, the location area 2 is used to refer to the second location area, the domain name resolution request message 2 is used to refer to the first domain name resolution request message, and the location information 2 is used to refer to the location information of the UE. After the UE moves, PDU Session 2 can be established. After the PDU session 2 is established, if the UE determines that the location area is moved, the IP1 corresponding to the domain name in the domain name cache and the location area indication information indicating the location area 1 may be set to be invalid, and the domain name resolution request message 2 is adopted. In the form of sending the domain name and the location information 2 of the UE to the DNS server.
其中,UE可以根据域名缓存中该用于指示该位置区1的位置区指示信息,确定该UE发生位置区移动。例如,UE在确定已经无法连接至位置区1中的任一个基站时,或者,当前UE所连接的基站不在该位置区1中时,确定UE已经发生了位置区移动。The UE may determine, according to the location area indication information used to indicate the location area 1 in the domain name cache, that the UE moves the location area. For example, when the UE determines that it has been unable to connect to any one of the location areas 1, or when the base station to which the current UE is connected is not in the location area 1, it is determined that the location area has moved.
需要说明的是:与步骤601同理,本公开实施例是以域名解析请求消息2携带UE的位置信息2为例进行说明,在一种可能实现方式中,该域名解析请求消息2还可以不携带UE的位置信息2。It should be noted that, in the same manner as the step 601, the embodiment of the present disclosure is described by using the domain name resolution request message 2 to carry the location information 2 of the UE as an example. In a possible implementation manner, the domain name resolution request message 2 may not be used. Carry the location information 2 of the UE.
605、DNS服务器接收域名解析请求消息2,并根据UE的位置信息2,确定域名对应的IP2和域名对应的IP2所对应的位置区2(如图6中605a所示),并向UE发送域名解析应答消息2,该域名解析应答消息2携带IP2和用于指示位置区2的位置区指示信息(如图6中605b所示)。605. The DNS server receives the domain name resolution request message 2, and according to the location information 2 of the UE, determines the IP2 corresponding to the domain name and the location area 2 corresponding to the IP2 corresponding to the domain name (as shown in 605a in FIG. 6), and sends the domain name to the UE. The response message 2 is parsed, and the domain name resolution response message 2 carries IP2 and location area indication information for indicating the location area 2 (as shown by 605b in FIG. 6).
本公开实施例中,用IP2来指代第二IP地址,用位置区2来指代第二位置区。当DNS服务器接收到该域名解析请求消息2时,可以根据该域名解析请求消息2中携带的域名和位置信息2确定IP2和位置区2。DNS服务器在确定域名对应的IP2和该IP2所对应的位置区2后,可以采用域名解析应答消息2的形式,将该IP2和该用于指示位置区2的位置区指示信息发送给UE。In the embodiment of the present disclosure, IP2 is used to refer to the second IP address, and location area 2 is used to refer to the second location area. When the DNS server receives the domain name resolution request message 2, the IP2 and the location area 2 can be determined according to the domain name and the location information 2 carried in the domain name resolution request message 2. After determining the IP2 corresponding to the domain name and the location area 2 corresponding to the IP2, the DNS server may send the IP2 and the location area indication information indicating the location area 2 to the UE in the form of the domain name resolution response message 2.
需要说明的是:针对步骤604中域名解析请求消息2还可以不携带UE的位置信息2,在一种可能实现方式中,当DNS服务器接收到该域名解析请求消息2时,还可以根据该域名和UE的源IP地址B,确定域名对应的IP2和位置区2。其中,UE的源IP地址B可以由CP在PDU会话2建立后分配给UE,并可以由域名解析请求消息2携带。It should be noted that the domain name resolution request message 2 in step 604 may also not carry the location information 2 of the UE. In a possible implementation manner, when the DNS server receives the domain name resolution request message 2, the domain name may also be based on the domain name. And the source IP address B of the UE, and determine the IP2 and the location area 2 corresponding to the domain name. The source IP address B of the UE may be allocated to the UE by the CP after the PDU session 2 is established, and may be carried by the domain name resolution request message 2.
606、UE接收域名解析应答消息2,将该IP2添加至域名缓存,在该域名缓存中保存该用于指示位置区2的位置区指示信息(如图6中606a所示),并通过该IP2对访问域名(如图6中606b所示)。606. The UE receives the domain name resolution response message 2, adds the IP2 to the domain name cache, and saves the location area indication information (shown as 606a in FIG. 6) for indicating the location area 2 in the domain name cache, and passes the IP2. Access to the domain name (as shown in 606b in Figure 6).
本公开实施例中,用域名解析应答消息2来指代第一域名解析应答消息。当UE接收到域名解析应答消息2时,可以将该IP2添加至UE的域名缓存中,同时还可以保存该用于指示位置区2的位置区指示信息,例如,将该用于指示位置区2的位置区指示信息添加至UE的域名缓存。当UE访问该域名时,可以根据该域名,从该UE的域名缓存中获取该域名对应的IP2,从而通过该IP2访问该域名,即与AS2通信。UE与AS2在通信过程中会进行数据的传输,如图6中的上下行数据2。In the embodiment of the present disclosure, the domain name resolution response message 2 is used to refer to the first domain name resolution response message. When the UE receives the domain name resolution response message 2, the IP2 may be added to the domain name cache of the UE, and the location area indication information for indicating the location area 2 may also be saved, for example, used to indicate the location area 2 The location area indication information is added to the UE's domain name cache. When the UE accesses the domain name, the IP2 corresponding to the domain name is obtained from the domain name cache of the UE according to the domain name, so that the domain name is accessed through the IP2, that is, the AS2 is communicated. The UE and the AS2 perform data transmission during the communication process, such as the uplink and downlink data 2 in FIG.
本公开实施例提供的方法,如果UE确定其发生位置区移动,则将域名缓存中已保存的IP1设置为无效,并向DNS服务器发送域名解析请求消息,以触发域名缓存的更新,由DNS服务器根据域名解析请求消息中携带的域名,重新确定并返回该域名对应的IP2。UE可以将该IP2添加至域名缓存,并可以通过该IP2访问域名。由于该IP2是在用户设备发生位置区移动后由DNS服务器重新确定的,是离移动后的UE较近的域名对应的应用服务器的IP地址,因此可以实现UE访问域名对应的最优的服务器,时延短,通信效率高。 The method provided by the embodiment of the present disclosure, if the UE determines that the location area movement occurs, sets the saved IP1 in the domain name cache to be invalid, and sends a domain name resolution request message to the DNS server to trigger the update of the domain name cache by the DNS server. Re-determine and return the IP2 corresponding to the domain name according to the domain name carried in the domain name resolution request message. The UE can add the IP2 to the domain name cache and can access the domain name through the IP2. The IP2 is re-determined by the DNS server after the location area of the user equipment is moved, and is the IP address of the application server corresponding to the domain name that is closer to the mobile UE. Therefore, the optimal server corresponding to the domain name accessed by the UE can be implemented. The delay is short and the communication efficiency is high.
其中,UE可以根据域名缓存中已保存的用于指示第一位置区的位置区指示信息,判断UE是否发生位置区移动。另外,DNS服务器在确定并返回域名对应的IP2时,还可以确定并返回用于指示第二位置区的位置区指示信息。UE可以在域名缓存中保存该用于指示第二位置区的位置区指示信息,使得UE在下次发生移动后,可以根据域名缓存中的该用于指示第二位置区的位置区指示信息,判断UE是否发生位置区移动,判断的准确性高。The UE may determine, according to the location area indication information that is saved in the domain name cache for indicating the first location area, whether the UE moves in the location area. In addition, when the DNS server determines and returns the IP2 corresponding to the domain name, the location area indication information for indicating the second location area may also be determined and returned. The UE may save the location area indication information used to indicate the location area of the second location area in the domain name cache, so that the UE may determine, according to the location area indication information used to indicate the location area of the second location area, in the domain name cache. Whether the UE moves in the location area, the accuracy of the judgment is high.
图6对应的实施例中,由UE判断UE是否发生位置区移动,并触发域名缓存的更新,而实际上,该UE是否发生位置区移动还可以由其他功能模块来判断。下面将对CP代替UE来对UE是否发生位置区移动进行判断,并触发域名缓存更新的过程进行说明。In the corresponding embodiment of FIG. 6, the UE determines whether the location area movement of the UE occurs, and triggers the update of the domain name cache. In fact, whether the location area movement of the UE occurs may be determined by other functional modules. In the following, the process of determining whether the UE has a location area movement by replacing the UE with the CP and triggering the domain name cache update will be described.
参见图7,基于UE、CP和DNS服务器之间的交互,该域名访问方法可以简述为:控制面设备确定用户设备发生位置区移动;该控制面设备向该用户设备发送缓存更新指示消息,该缓存更新指示消息用于指示该用户设备更新域名缓存;该用户设备从控制面设备接收缓存更新指示消息,根据所述缓存更新指示消息确定所述用户设备从所述第一位置区移动至所述第二位置区;将域名缓存中的第一IP地址设置为无效,并向DNS服务器发送第一域名解析请求消息,该第一IP地址用于该用户设备在该第一位置区访问域名,该第一域名解析请求消息携带该域名;DNS服务器从用户设备接收第一域名解析请求消息;该DNS服务器确定该域名对应的第二IP地址;该DNS服务器向该用户设备发送第一域名解析应答消息,该第一域名解析应答消息携带该第二IP地址;该用户设备接收第一域名解析应答消息;该用户设备将该第二IP地址添加至该域名缓存。该用户设备通过该第二IP地址访问该域名。Referring to FIG. 7 , based on the interaction between the UE, the CP, and the DNS server, the domain name access method may be briefly described as: the control plane device determines that the location device moves by the user equipment; and the control plane device sends a cache update indication message to the user equipment. The cache update indication message is used to indicate that the user equipment updates the domain name cache; the user equipment receives a cache update indication message from the control plane device, and determines, according to the cache update indication message, that the user equipment moves from the first location area to the location The second location area is configured to set the first IP address in the domain name cache to be invalid, and send a first domain name resolution request message to the DNS server, where the first IP address is used by the user equipment to access the domain name in the first location area. The first domain name resolution request message carries the domain name; the DNS server receives the first domain name resolution request message from the user equipment; the DNS server determines a second IP address corresponding to the domain name; and the DNS server sends the first domain name resolution response to the user equipment Message, the first domain name resolution response message carries the second IP address; the user equipment receives the first domain Name resolution response message; the user equipment adds the second IP address to the domain name cache. The user equipment accesses the domain name through the second IP address.
图7是针对CP代替UE来对UE是否发生位置区移动的情况,对域名访问方法的简要说明,下面将在图8对应的实施例中,针对该情况,对该域名访问方法的步骤进行具体说明。图8是本公开实施例提供的一种域名访问方法的流程示意图,参见图8,包括:FIG. 7 is a brief description of a method for accessing a domain name for a case where a cell moves in place of a UE instead of a UE. In the embodiment corresponding to FIG. 8, the steps of the domain name access method are specifically performed for the case. Description. FIG. 8 is a schematic flowchart of a method for accessing a domain name according to an embodiment of the present disclosure. Referring to FIG. 8, the method includes:
801、在PDU会话1建立后(如图8中801a所示),UE向DNS服务器发送域名解析请求消息1,该域名解析请求消息1携带待访问的域名和UE的位置信息1(如图8中801b所示)。801. After the PDU session 1 is established (as shown by 801a in FIG. 8), the UE sends a domain name resolution request message 1 to the DNS server, where the domain name resolution request message 1 carries the domain name to be accessed and the location information 1 of the UE (see FIG. 8). In 801b).
该步骤801与步骤601同理,在此不再赘述。This step 801 is the same as step 601, and details are not described herein again.
802、DNS服务器接收该域名解析请求消息1,并根据UE的位置信息1,确定域名对应的IP1(如图8中802a所示),并向UE发送域名解析应答消息1,该域名解析应答消息1携带IP1(如图8中802b所示)。802. The DNS server receives the domain name resolution request message 1 and determines the IP1 corresponding to the domain name according to the location information 1 of the UE (as shown by 802a in FIG. 8), and sends a domain name resolution response message 1 to the UE, where the domain name resolution response message is sent. 1 carries IP1 (shown as 802b in Figure 8).
本公开实施例中,当DNS服务器接收到该域名解析请求消息1时,可以根据该域名解析请求消息1中携带的域名和位置信息1确定IP1,而无需确定该IP1所对应的位置区1。DNS服务器在确定域名对应的IP1后,可以采用域名解析应答消息1的形式,将该IP1发送给UE。In the embodiment of the present disclosure, when the DNS server receives the domain name resolution request message 1, the IP1 may be determined according to the domain name and the location information 1 carried in the domain name resolution request message 1 without determining the location area 1 corresponding to the IP1. After determining the IP1 corresponding to the domain name, the DNS server may send the IP1 to the UE in the form of the domain name resolution response message 1.
需要说明的是:针对步骤801中域名解析请求消息1还可以不携带UE的位置信息1,在一种可能实现方式中,当DNS服务器接收到该域名解析请求消息1时,还可以根据该域名和UE的源IP地址A,确定域名对应的IP1。其中,UE的源IP地址A可以由CP在PDU会话1建立后分配给UE,并可以由域名解析请求消息1携带。It should be noted that, for the domain name resolution request message 1 in step 801, the location information 1 of the UE may not be carried. In a possible implementation manner, when the DNS server receives the domain name resolution request message 1, the domain name may also be based on the domain name. Determine the IP1 corresponding to the domain name with the source IP address A of the UE. The source IP address A of the UE may be allocated to the UE by the CP after the PDU session 1 is established, and may be carried by the domain name resolution request message 1.
803、UE接收域名解析应答消息1,将该IP1添加至UE的域名缓存(如图8中803a所示),并通过IP1访问域名(如图8中803b所示)。803. The UE receives the domain name resolution response message 1, adds the IP1 to the domain name cache of the UE (as shown in 803a in FIG. 8), and accesses the domain name through IP1 (as shown by 803b in FIG. 8).
本公开实施例中,当UE接收到域名解析应答消息1时,可以将该域名解析应答消息1 携带的IP1添加至UE的域名缓存。当UE访问该域名时,可以根据该域名,从该UE的域名缓存中获取该域名对应的IP1,从而通过该IP1访问该域名,即与AS1通信。UE与AS1在通信过程中会进行数据的传输,如图8中的上下行数据1。In the embodiment of the present disclosure, when the UE receives the domain name resolution response message 1, the domain name resolution response message 1 may be The carried IP1 is added to the UE's domain name cache. When the UE accesses the domain name, the IP1 corresponding to the domain name is obtained from the domain name cache of the UE according to the domain name, so that the domain name is accessed through the IP1, that is, the AS1 is communicated. The UE and AS1 transmit data during the communication process, such as uplink and downlink data 1 in FIG.
804、当UE发生移动后(如图8中804a所示),在PDU会话2建立后(如图8中804b所示),如果CP确定UE发生位置区移动,则可以向UE发送缓存更新指示消息,该缓存更新指示消息用于指示该用户设备更新域名缓存(如图8中804d所示)。804. After the UE moves (as shown by 804a in FIG. 8), after the PDU session 2 is established (as shown by 804b in FIG. 8), if the CP determines that the location area movement of the UE occurs, the cache update indication may be sent to the UE. The message, the cache update indication message is used to instruct the user equipment to update the domain name cache (as shown by 804d in FIG. 8).
本公开实施例中,该CP确定UE发生位置区移动可以包括以下两种情况:In the embodiment of the present disclosure, the determining that the location area movement of the UE occurs by the CP may include the following two situations:
第一种情况,如果UE向CP发起位置更新流程,则CP可以确定UE发生位置区移动(如图8中804c所示)。In the first case, if the UE initiates a location update procedure to the CP, the CP may determine that the UE has a location area move (as shown by 804c in FIG. 8).
第二种情况,如果CP确定该UE建立了新的PDU会话(如图8中804c所示),则CP可以确定UE发生位置区移动。In the second case, if the CP determines that the UE has established a new PDU session (as shown by 804c in FIG. 8), the CP may determine that the UE has a location area move.
本公开实施例中,UE发生移动前,建立经过UE、AN1、UP1的PDU会话1,UE发生移动后,建立经过UE、AN2、UP2的PDU会话2。因此,CP可以通过PDU会话2的建立,确定UE发生位置区移动。In the embodiment of the present disclosure, before the UE moves, the PDU session 1 of the UE, AN1, and UP1 is established. After the UE moves, the PDU session 2 of the UE, AN2, and UP2 is established. Therefore, the CP can determine the location area movement of the UE through the establishment of the PDU session 2.
805、UE从CP接收缓存更新指示消息,根据该缓存更新指示消息确定UE发生位置区移动,将UE的域名缓存中的IP1设置为无效,并向DNS服务器发送域名解析请求消息2(如图8中805b所示),该域名解析请求消息2携带域名和UE的位置信息2,该位置信息2为UE当前所在位置。805. The UE receives a buffer update indication message from the CP, determines, according to the cache update indication message, that the UE moves the location area, sets IP1 in the domain name cache of the UE to be invalid, and sends a domain name resolution request message 2 to the DNS server (FIG. 8). In the 805b, the domain name resolution request message 2 carries the domain name and the location information 2 of the UE, where the location information 2 is the current location of the UE.
本公开实施例中,如果UE接收到CP的缓存更新指示消息,则可以确定UE发生位置区移动。此时,UE可以将域名缓存中域名对应的IP1设置为无效,且采用域名解析请求消息2的形式,将域名和UE的位置信息2发送给DNS服务器。在一种可能实现方式中,UE还可以向CP返回缓存更新应答消息(如图8中805a所示),该缓存更新应答消息用于通知CP该UE是否进行缓存更新。In the embodiment of the present disclosure, if the UE receives the buffer update indication message of the CP, it may be determined that the location area movement of the UE occurs. At this time, the UE may set the IP1 corresponding to the domain name in the domain name cache to be invalid, and send the domain name and the location information 2 of the UE to the DNS server in the form of the domain name resolution request message 2. In a possible implementation, the UE may also return a cache update response message (shown as 805a in FIG. 8) to the CP, and the cache update response message is used to notify the CP whether the UE performs a cache update.
需要说明的是:与步骤801同理,在一种可能实现方式中,该域名解析请求消息2还可以不携带UE的位置信息2。It should be noted that, similarly to the step 801, in a possible implementation manner, the domain name resolution request message 2 may not carry the location information 2 of the UE.
806、DNS服务器接收域名解析请求消息2,并根据UE的位置信息2,确定域名对应的IP2(如图8中806a所示),并向UE发送域名解析应答消息2,该域名解析应答消息2携带IP2(如图8中806b所示)。806. The DNS server receives the domain name resolution request message 2, and determines the IP2 corresponding to the domain name according to the location information 2 of the UE (as shown in 806a in FIG. 8), and sends a domain name resolution response message 2 to the UE, and the domain name resolution response message 2 Carry IP2 (as shown in 806b in Figure 8).
本公开实施例中,当DNS服务器接收到该域名解析请求消息2时,可以根据该域名解析请求消息2中携带的域名和位置信息2确定IP2,而无需确定该IP2所对应的位置区2。DNS服务器在确定域名对应的IP2后,可以采用域名解析应答消息2的形式,将该IP2发送给UE。In the embodiment of the present disclosure, when the DNS server receives the domain name resolution request message 2, the IP2 may be determined according to the domain name and the location information 2 carried in the domain name resolution request message 2, without determining the location area 2 corresponding to the IP2. After determining the IP2 corresponding to the domain name, the DNS server may send the IP2 to the UE in the form of the domain name resolution response message 2.
需要说明的是:针对步骤805中域名解析请求消息2还可以不携带UE的位置信息2,在一种可能实现方式中,当DNS服务器接收到该域名解析请求消息2时,还可以根据该域名和UE的源IP地址B,确定域名对应的IP2。其中,UE的源IP地址B可以由CP在PDU会话2建立后分配给UE,并可以由域名解析请求消息2携带。It should be noted that the domain name resolution request message 2 in step 805 may also not carry the location information 2 of the UE. In a possible implementation manner, when the DNS server receives the domain name resolution request message 2, the domain name may also be based on the domain name. Determine the IP2 corresponding to the domain name with the source IP address B of the UE. The source IP address B of the UE may be allocated to the UE by the CP after the PDU session 2 is established, and may be carried by the domain name resolution request message 2.
807、UE接收域名解析应答消息2,将该IP2添加至域名缓存(如图8中807a所示),并通过该IP2访问域名(如图8中807b所示)。807. The UE receives the domain name resolution response message 2, adds the IP2 to the domain name cache (as shown in 807a in FIG. 8), and accesses the domain name through the IP2 (as shown by 807b in FIG. 8).
该步骤807与步骤606同理,在此不再赘述。 This step 807 is the same as step 606, and details are not described herein again.
本公开实施例提供的方法,UE发生移动后,如果CP确定UE发生位置区移动,则向UE发送缓存更新指示消息。UE在接收到该缓存更新指示消息时,将域名缓存中已保存的IP1设置为无效,并向DNS服务器发送域名解析请求消息,以触发域名缓存的更新,由DNS服务器根据域名解析请求消息中携带的域名,重新确定并返回该域名对应的IP2。UE可以该IP2添加至域名缓存,并可以通过该IP2访问该域名。由于该IP2是在用户设备发生位置区移动后由DNS服务器重新确定的,是离移动后的UE较近的域名对应的应用服务器的IP地址,可以实现UE访问域名对应的最优的服务器,时延短,通信效率高。The method provided by the embodiment of the present disclosure sends a cache update indication message to the UE if the UE determines that the location area movement of the UE occurs after the UE moves. When receiving the cache update indication message, the UE sets the saved IP1 in the domain name cache to be invalid, and sends a domain name resolution request message to the DNS server to trigger the update of the domain name cache, which is carried by the DNS server according to the domain name resolution request message. Domain name, re-determine and return the IP2 corresponding to the domain name. The UE can add the IP2 to the domain name cache and can access the domain name through the IP2. The IP2 is re-determined by the DNS server after the location area of the user equipment is moved, and is the IP address of the application server corresponding to the domain name that is closer to the mobile UE, so that the UE can access the optimal server corresponding to the domain name. Shortening, high communication efficiency.
图6对应的实施例中,由UE判断UE是否发生位置区移动,并触发域名缓存的更新,该位置区针对的是一个位置区。实际上,为了减少域名缓存更新的频率,该位置区还可以针对多个位置区的情况。下面将对多个位置区情况下,对域名缓存进行更新的过程进行说明。In the corresponding embodiment of FIG. 6, the UE determines whether the location area movement of the UE occurs, and triggers an update of the domain name cache, and the location area is for a location area. In fact, in order to reduce the frequency of domain name cache updates, the location area can also be targeted to multiple location areas. The process of updating the domain name cache in the case of multiple location areas will be described below.
参见图9,基于UE与DNS服务器之间的交互,该域名访问方法可以简述为:UE确定该UE从第一位置区移动至第二位置区;该UE将域名缓存中的多个IP地址和用于指示与该多个IP地址分别对应的多个位置区的位置区指示信息设置为无效,并向DNS服务器发送第一域名解析请求消息,该多个IP地址用于该UE在该多个位置区访问域名,该第一域名解析请求消息携带该域名;DNS服务器从UE接收第一域名解析请求消息;该DNS服务器确定该域名对应的多个新IP地址和与该多个新IP地址分别对应的多个新位置区;该DNS服务器向该UE发送第一域名解析应答消息,该第一域名解析应答消息携带该多个新IP地址和用于指示该多个新位置区的位置区指示信息;该UE接收第一域名解析应答消息;该UE将该多个新IP地址添加至该域名缓存,该UE在域名缓存中保存该用于指示该多个新位置区的位置区指示信息;该UE通过目的IP地址访问该域名,该目的IP地址为该多个新IP地址中与UE当前所在位置区对应的IP地址。Referring to FIG. 9, based on the interaction between the UE and the DNS server, the domain name access method may be briefly described as: the UE determines that the UE moves from the first location area to the second location area; the UE will cache multiple IP addresses in the domain name cache. And the location area indication information used to indicate the plurality of location areas respectively corresponding to the plurality of IP addresses is set to be invalid, and send a first domain name resolution request message to the DNS server, where the multiple IP addresses are used for the UE The location area accesses the domain name, the first domain name resolution request message carries the domain name; the DNS server receives the first domain name resolution request message from the UE; the DNS server determines a plurality of new IP addresses corresponding to the domain name and the plurality of new IP addresses Corresponding multiple new location areas; the DNS server sends a first domain name resolution response message to the UE, where the first domain name resolution response message carries the plurality of new IP addresses and a location area for indicating the plurality of new location areas Instructing information; the UE receives a first domain name resolution response message; the UE adds the plurality of new IP addresses to the domain name cache, and the UE saves the location for indicating the plurality of new location areas in the domain name cache Indication information; destination IP address for the new IP addresses and a plurality of current location area corresponding to the UE IP address of the UE to access the domain through the destination IP address.
图9是针对多个位置区的情况,对域名访问方法的简要说明,下面将在图10对应的实施例中,针对该情况,对该域名访问方法的步骤进行具体说明。图10是本公开实施例提供的一种域名访问方法的流程示意图,参见图10,该域名访问方法包括以下步骤:FIG. 9 is a brief description of a domain name access method for a plurality of location areas. In the embodiment corresponding to FIG. 10, the steps of the domain name access method will be specifically described. FIG. 10 is a schematic flowchart of a domain name access method according to an embodiment of the present disclosure. Referring to FIG. 10, the domain name access method includes the following steps:
1001、在PDU会话1建立后(如图10中1001a所示),UE向DNS服务器发送域名解析请求消息1,该域名解析请求消息1携带待访问的域名和UE的位置信息1(如图10中1001b所示)。After the PDU session 1 is established (as shown in 1001a in FIG. 10), the UE sends a domain name resolution request message 1 to the DNS server, where the domain name resolution request message 1 carries the domain name to be accessed and the location information 1 of the UE (see FIG. 10). In 1001b).
该步骤1001与步骤601同理,在此不再赘述。This step 1001 is the same as step 601, and details are not described herein again.
1002、DNS服务器接收该域名解析请求消息1,并根据UE的位置信息1,确定域名对应的多个IP地址和与该多个IP地址分别对应的多个位置区(如图10中1002a所示),并向UE发送域名解析应答消息1,该域名解析应答消息1携带域名对应的多个IP地址和用于指示与该多个位置区的位置区指示信息(如图10中1002b所示)。1002. The DNS server receives the domain name resolution request message 1 and determines a plurality of IP addresses corresponding to the domain name and a plurality of location areas corresponding to the plurality of IP addresses according to the location information 1 of the UE (as shown in FIG. 10, 1002a). And sending a domain name resolution response message 1 to the UE, the domain name resolution response message 1 carrying a plurality of IP addresses corresponding to the domain name and location area indication information for indicating the plurality of location areas (as shown in 1002b in FIG. 10) .
本公开实施例中,用多个IP地址来指代第一IP地址,用多个位置区来指代第一位置区。当DNS服务器接收到该域名解析请求消息1时,可以根据该域名解析请求消息1中携带的域名和位置信息1,确定该多个IP地址和该多个位置区,并采用域名解析应答消息1的形式,将该多个IP地址和用于指示与该多个位置区的位置区指示信息发送给UE。In the embodiment of the present disclosure, a plurality of IP addresses are used to refer to the first IP address, and a plurality of location areas are used to refer to the first location area. When the DNS server receives the domain name resolution request message 1, the domain name and the location information 1 carried in the domain name resolution request message 1 may be determined, and the multiple IP addresses and the multiple location areas may be determined, and the domain name resolution response message 1 is adopted. And sending the plurality of IP addresses and the location area indication information used to indicate the multiple location areas to the UE.
需要说明的是:针对步骤1001中域名解析请求消息1还可以不携带UE的位置信息1, 在一种可能实现方式中,当DNS服务器接收到该域名解析请求消息1时,还可以根据该域名和UE的源IP地址A,确定域名对应的多个IP地址和多个位置区。其中,UE的源IP地址A可以由CP在PDU会话1建立后分配给UE,并可以由域名解析请求消息1携带。It should be noted that the domain name resolution request message 1 in step 1001 may not carry the location information 1 of the UE. In a possible implementation manner, when the DNS server receives the domain name resolution request message 1, the DNS server may further determine multiple IP addresses and multiple location areas corresponding to the domain name according to the domain name and the source IP address A of the UE. The source IP address A of the UE may be allocated to the UE by the CP after the PDU session 1 is established, and may be carried by the domain name resolution request message 1.
1003、UE接收域名解析应答消息1,将该多个IP地址添加至UE的域名缓存,在该域名缓存中保存用于指示该多个位置区的位置区指示信息(如图10中1003a所示),并通过目的IP地址访问该域名(如图10中1003b所示),该目的IP地址为该多个IP地址中与UE当前所在位置区对应的IP地址。1003. The UE receives the domain name resolution response message 1, and adds the multiple IP addresses to the domain name cache of the UE, where the location area indication information indicating the multiple location areas is saved in the domain name cache (as shown in FIG. 10, 1003a). And accessing the domain name through the destination IP address (as shown in 1003b in FIG. 10), the destination IP address being an IP address corresponding to the current location area of the UE among the multiple IP addresses.
当UE访问该域名时,可以根据该域名,从该UE的域名缓存中获取该域名对应的该多个IP地址和该多个IP地址对应的多个位置区,并通过目的IP地址访问该域名。该域名访问过程可以包括:根据该多个IP地址对应的该多个位置区,查询该UE当前所在位置区对应的目的IP地址;通过该目的IP地址访问该域名,即与AS1通信。UE与AS1在通信过程中会进行数据的传输,如图10中的上下行数据1。When the UE accesses the domain name, the multiple IP addresses corresponding to the domain name and the multiple location areas corresponding to the multiple IP addresses are obtained from the domain name cache of the UE, and the domain name is accessed through the destination IP address. . The domain name access process may include: querying the destination IP address corresponding to the current location area of the UE according to the multiple location areas corresponding to the multiple IP addresses; accessing the domain name through the destination IP address, that is, communicating with AS1. The UE and AS1 perform data transmission during the communication process, such as uplink and downlink data 1 in FIG.
1004、UE发生移动(如图10中1004a所示),在PDU会话2建立后(如图10中1004b所示),如果确定UE发生位置区移动,UE将域名缓存中的该多个IP地址和用于指示该多个位置区的位置区指示信息设置为无效(如图10中1004c所示),并向DNS服务器发送域名解析请求消息2,该域名解析请求消息2携带域名和位置信息2,该位置信息2为UE当前所在位置(如图10中1004d所示)。1004. The UE moves (as shown in 1004a in FIG. 10). After the PDU session 2 is established (as shown by 1004b in FIG. 10), if it is determined that the UE moves in the location area, the UE will cache the multiple IP addresses in the domain name cache. And the location area indication information used to indicate the multiple location areas is set to be invalid (as shown by 1004c in FIG. 10), and the domain name resolution request message 2 is sent to the DNS server, and the domain name resolution request message 2 carries the domain name and the location information 2 The location information 2 is the current location of the UE (as shown by 1004d in FIG. 10).
本公开实施例中,该PDU会话2建立后,如果UE确定其发生位置区移动,则可以将域名缓存中域名对应的多个IP和用于指示该多个位置区的位置区指示信息设置为无效,且采用域名解析请求消息2的形式,将域名和UE的位置信息2发送给DNS服务器。In the embodiment of the present disclosure, after the PDU session 2 is established, if the UE determines that the location area is moved, the multiple IP addresses corresponding to the domain name in the domain name cache and the location area indication information used to indicate the multiple location areas may be set as Invalid, and in the form of domain name resolution request message 2, the domain name and the location information 2 of the UE are sent to the DNS server.
其中,UE可以根据域名缓存中用于指示该多个位置区的位置区指示信息,确定该UE发生位置区移动。例如,UE在确定已经无法连接至该多个位置区中的任一个位置区中的基站时,或者,当前UE所连接的基站不在该多个位置区中的任一个位置区中时,确定UE已经发生了位置区移动。The UE may determine, according to the location area indication information used to indicate the multiple location areas in the domain name cache, that the location area movement of the UE occurs. For example, when the UE determines that it has been unable to connect to a base station in any one of the plurality of location areas, or when the base station to which the current UE is connected is not in any one of the plurality of location areas, determining the UE A location area move has occurred.
需要说明的是:与步骤1001同理,本公开实施例是以域名解析请求消息2携带UE的位置信息2为例进行说明,在一种可能实现方式中,该域名解析请求消息2还可以不携带UE的位置信息2。It should be noted that, in the same manner as the step 1001, the embodiment of the present disclosure is described by using the domain name resolution request message 2 to carry the location information 2 of the UE. In a possible implementation manner, the domain name resolution request message 2 may not be used. Carry the location information 2 of the UE.
1005、DNS服务器接收域名解析请求消息2,并根据UE的位置信息2,重新确定域名对应的多个新IP地址和域名对应的多个新IP地址所对应的多个新位置区(如图10中1005a所示),并向UE发送域名解析应答消息2,该域名解析应答消息2携带该重新确定的域名对应的多个新IP地址和用于指示该多个新位置区的位置区指示信息(如图10中1005b所示)。1005. The DNS server receives the domain name resolution request message 2, and according to the location information 2 of the UE, re-determines a plurality of new IP addresses corresponding to the domain name and a plurality of new location areas corresponding to the plurality of new IP addresses corresponding to the domain name (FIG. 10). In the medium 1005a), the domain name resolution response message 2 is sent to the UE, and the domain name resolution response message 2 carries a plurality of new IP addresses corresponding to the redefined domain name and location area indication information for indicating the plurality of new location areas. (As shown in 1005b in Figure 10).
本公开实施例中,用多个新IP地址来指代第二IP地址,用多个新位置区来指代第二位置区。当DNS服务器接收到该域名解析请求消息2时,可以根据该域名解析请求消息2中携带的域名和位置信息2,确定该多个新IP地址和该多个新位置区,并采用域名解析应答消息2的形式,将该多个新IP地址和用于指示该多个新位置区的位置区指示信息发送给UE。In the disclosed embodiment, a plurality of new IP addresses are used to refer to the second IP address, and a plurality of new location areas are used to refer to the second location area. When the DNS server receives the domain name resolution request message 2, the domain name and the location information 2 carried in the domain name resolution request message 2 may be determined, and the multiple new IP addresses and the plurality of new location areas may be determined, and the domain name resolution response is adopted. In the form of message 2, the plurality of new IP addresses and location area indication information indicating the plurality of new location areas are sent to the UE.
需要说明的是:针对步骤1004中域名解析请求消息2还可以不携带UE的位置信息2,在一种可能实现方式中,当DNS服务器接收到该域名解析请求消息2时,还可以根据该域名和UE的源IP地址B,确定域名对应的多个新IP地址和多个新位置区。其中,UE的源IP 地址B可以由CP在PDU会话2建立后分配给UE,并可以由域名解析请求消息2携带。It should be noted that the domain name resolution request message 2 in step 1004 may not carry the location information 2 of the UE. In a possible implementation manner, when the DNS server receives the domain name resolution request message 2, the domain name may also be based on the domain name. And the source IP address B of the UE, determining a plurality of new IP addresses corresponding to the domain name and a plurality of new location areas. Where the source IP of the UE The address B can be allocated to the UE by the CP after the PDU session 2 is established, and can be carried by the domain name resolution request message 2.
1006、UE接收域名解析应答消息2,将该多个新IP地址添加至域名缓存,保存用于指示该多个新位置区的位置区指示信息(如图10中1006a所示),并通过该多个新IP地址访问域名(如图10中1006b所示)。1006. The UE receives the domain name resolution response message 2, adds the multiple new IP addresses to the domain name cache, and saves location area indication information (shown as 1006a in FIG. 10) for indicating the multiple new location areas, and passes the Multiple new IP addresses access the domain name (as shown in Figure 10, 1006b).
其中,通过该多个新IP地址访问域名的过程与步骤1003同理,在此不再赘述。The process of accessing the domain name by using the multiple new IP addresses is the same as that of step 1003, and details are not described herein again.
本公开实施例提供的方法,如果UE确定其发生位置区移动,则将域名缓存中已保存的多个IP地址设置为无效,并向DNS服务器发送域名解析请求消息,以触发域名缓存的更新,由DNS服务器根据域名解析请求消息中携带的域名,重新确定并返回该域名对应的多个新IP地址。UE可以将该多个新IP地址添加至域名缓存,并可以通过该多个新IP地址访问该域名。由于该多个新IP地址是在用户设备发生位置区移动后由DNS服务器重新确定的,是离移动后的UE较近的域名对应的应用服务器的IP地址,因此可以实现UE访问域名对应的最优的服务器,时延短,通信效率高。The method provided by the embodiment of the present disclosure, if the UE determines that the location area is moved, sets the saved multiple IP addresses in the domain name cache to be invalid, and sends a domain name resolution request message to the DNS server to trigger the domain name cache update. The DNS server re-determines and returns multiple new IP addresses corresponding to the domain name according to the domain name carried in the domain name resolution request message. The UE may add the plurality of new IP addresses to the domain name cache, and may access the domain name through the plurality of new IP addresses. The IP address of the application server corresponding to the domain name that is closer to the mobile UE is determined by the DNS server after the location area of the user equipment is moved, so that the UE can access the domain name corresponding to the domain name. Excellent server, short delay and high communication efficiency.
其中,UE可以根据域名缓存中已保存的用于指示该多个位置区的位置区指示信息,判断UE是否发生位置区移动。另外,DNS服务器在确定并返回域名对应的多个新IP地址时,还可以确定并返回用于指示该多个新位置区的位置区指示信息。UE可以将该用于指示该多个新位置区的位置区指示信息保存至域名缓存,使得UE在下次移动后,可以根据域名缓存中的该多个新IP地址和该用于指示该多个新位置区的位置区指示信息,判断UE是否发生位置区移动。The UE may determine, according to the location area indication information that is saved in the domain name cache for indicating the multiple location areas, whether the UE moves in the location area. In addition, when determining and returning a plurality of new IP addresses corresponding to the domain name, the DNS server may further determine and return location area indication information indicating the plurality of new location areas. The UE may save the location area indication information for indicating the multiple new location areas to the domain name cache, so that after the next move, the UE may indicate the multiple according to the multiple new IP addresses in the domain name cache and the The location area indication information of the new location area determines whether the location area movement of the UE occurs.
图11是本公开实施例提供的一种域名访问装置的结构示意图。参照图11,该装置包括确定模块1101、设置模块1102、发送模块1103、接收模块1104、添加模块1105和访问模块1106。FIG. 11 is a schematic structural diagram of a domain name access apparatus according to an embodiment of the present disclosure. Referring to FIG. 11, the apparatus includes a determining module 1101, a setting module 1102, a transmitting module 1103, a receiving module 1104, an adding module 1105, and an accessing module 1106.
确定模块1101,用于用户设备确定该用户设备从第一位置区移动至第二位置区;a determining module 1101, configured to determine, by the user equipment, that the user equipment moves from the first location area to the second location area;
设置模块1102,用于该用户设备将域名缓存中的第一互联网协议IP地址设置为无效,该第一IP地址用于该用户设备在该第一位置区访问域名;The setting module 1102 is configured to: the user equipment sets the first Internet Protocol IP address in the domain name cache to be invalid, and the first IP address is used by the user equipment to access the domain name in the first location area;
发送模块1103,用于向域名***DNS服务器发送第一域名解析请求消息,该第一域名解析请求消息携带该域名;The sending module 1103 is configured to send a first domain name resolution request message to the domain name system DNS server, where the first domain name resolution request message carries the domain name;
接收模块1104,用于该用户设备接收第一域名解析应答消息,该第一域名解析应答消息携带与该域名对应的第二IP地址;The receiving module 1104 is configured to receive, by the user equipment, a first domain name resolution response message, where the first domain name resolution response message carries a second IP address corresponding to the domain name;
添加模块1105,用于该用户设备将该第二IP地址添加至该域名缓存;An adding module 1105, configured to add, by the user equipment, the second IP address to the domain name cache;
访问模块1106,用于该用户设备通过该第二IP地址访问该域名。The access module 1106 is configured to access, by the user equipment, the domain name by using the second IP address.
在一种可能实现方式中,该第一域名解析请求消息还携带该用户设备的位置信息,该位置信息用于指示该用户设备当前所在位置区为该第二位置区。In a possible implementation manner, the first domain name resolution request message further carries the location information of the user equipment, where the location information is used to indicate that the current location area of the user equipment is the second location area.
在一种可能实现方式中,该确定模块1101,用于执行上述步骤805中确定用户设备发生位置区移动的过程。In a possible implementation, the determining module 1101 is configured to perform the process of determining that the location of the user equipment moves in the foregoing step 805.
在一种可能实现方式中,该确定模块1101,用于执行上述步骤604和1004中确定用户设备发生位置区移动的过程。In a possible implementation manner, the determining module 1101 is configured to perform the process of determining that the user equipment occurs the location area movement in steps 604 and 1004 above.
在一种可能实现方式中,该第一域名解析应答消息还携带用于指示该第二位置区的位置区指示信息; In a possible implementation, the first domain name resolution response message further carries location area indication information for indicating the second location area;
参见图12,该装置还包括:Referring to Figure 12, the apparatus further includes:
保存模块1107,用于该用户设备在该域名缓存中保存该用于指示该第二位置区的位置区指示信息。The saving module 1107 is configured to save the location area indication information used by the user equipment to indicate the second location area in the domain name cache.
在一种可能实现方式中,该第二IP地址包括多个IP地址,该第一域名解析应答消息还携带用于指示与该多个IP地址分别对应的多个位置区的位置区指示信息;该保存模块1107,还用于执行上述步骤1006中保存位置区指示信息的过程。In a possible implementation manner, the second IP address includes multiple IP addresses, and the first domain name resolution response message further carries location area indication information for indicating a plurality of location areas respectively corresponding to the multiple IP addresses; The saving module 1107 is further configured to perform the process of saving the location area indication information in step 1006.
在一种可能实现方式中,该访问模块1106用于执行上述步骤1006中通过该目的IP地址访问该域名的过程。In a possible implementation, the access module 1106 is configured to perform the process of accessing the domain name by using the destination IP address in step 1006.
在一种可能实现方式中,该发送模块1103,还用于执行上述步骤601、801和1001中发送第二域名解析请求消息的过程;该接收模块1104,还用于执行上述步骤603、803和1003中接收第二域名解析应答消息的过程。In a possible implementation, the sending module 1103 is further configured to perform the process of sending the second domain name resolution request message in the foregoing steps 601, 801, and 1001; the receiving module 1104 is further configured to perform the foregoing steps 603, 803 and The process of receiving the second domain name resolution response message in 1003.
保存模块1107,用于执行上述步骤603和1003中保存IP地址和位置区指示信息的过程;该访问模块1106,还用于执行上述步骤603和803中通过该第一IP地址访问该域名的过程。The saving module 1107 is configured to perform the process of saving the IP address and the location area indication information in the foregoing steps 603 and 1003. The accessing module 1106 is further configured to perform the process of accessing the domain name by using the first IP address in the foregoing steps 603 and 803. .
在一种可能实现方式中,该第二域名解析请求消息还携带该用户设备的第一位置信息。In a possible implementation manner, the second domain name resolution request message further carries first location information of the user equipment.
本公开实施例中,如果UE确定其发生位置区移动,则向DNS服务器发送域名解析请求消息,以触发域名缓存的更新,由DNS服务器根据域名解析请求消息中携带的域名,重新确定并返回该域名对应的IP地址。UE可以将域名缓存中已保存的IP地址更新为该IP地址,并可以通过该IP地址访问该域名。由于该IP地址是在用户设备发生位置区移动后由DNS服务器重新确定的,是离移动后的UE较近的域名对应的应用服务器的IP地址,因此可以实现UE访问域名对应的最优的服务器,时延短,通信效率高。In the embodiment of the present disclosure, if the UE determines that the location area is moved, the domain name resolution request message is sent to the DNS server to trigger the update of the domain name cache, and the DNS server re-determines and returns the domain name according to the domain name carried in the domain name resolution request message. The IP address corresponding to the domain name. The UE may update the saved IP address in the domain name cache to the IP address, and may access the domain name through the IP address. Because the IP address is re-determined by the DNS server after the location area of the user equipment is moved, and is the IP address of the application server corresponding to the domain name that is closer to the mobile UE, the UE can access the optimal server corresponding to the domain name. The delay is short and the communication efficiency is high.
图13是本公开实施例提供的一种域名访问装置的结构示意图。参照图13,该装置包括接收模块1301、确定模块1302和发送模块1303。FIG. 13 is a schematic structural diagram of a domain name access apparatus according to an embodiment of the present disclosure. Referring to FIG. 13, the apparatus includes a receiving module 1301, a determining module 1302, and a transmitting module 1303.
接收模块1301,用于域名***DNS服务器从用户设备接收域名解析请求消息,该域名解析请求消息携带该用户设备待访问的域名;The receiving module 1301 is configured to receive, by the user equipment, a domain name resolution request message, where the domain name resolution request message carries a domain name to be accessed by the user equipment;
确定模块1302,用于该DNS服务器确定该域名对应的互联网协议IP地址和与该IP地址对应的位置区;a determining module 1302, configured to determine, by the DNS server, an Internet Protocol IP address corresponding to the domain name and a location area corresponding to the IP address;
发送模块1303,用于该DNS服务器向该用户设备发送域名解析应答消息,该域名解析应答消息携带该IP地址和用于指示该位置区的位置区指示信息。The sending module 1303 is configured to send, by the DNS server, a domain name resolution response message to the user equipment, where the domain name resolution response message carries the IP address and location area indication information used to indicate the location area.
在一种可能实现方式中,该域名解析请求消息还携带该用户设备当前的位置信息。In a possible implementation manner, the domain name resolution request message further carries current location information of the user equipment.
本公开实施例中,DNS服务器可以根据域名解析请求消息携带的域名,确定该域名对应的IP地址和位置区,并向用户设备返回该IP地址和用于指示该位置区的位置区指示信息,使得用户设备可以通过该IP地址,实现用户设备访问域名对应的最优的服务器,时延短,通信效率高。In the embodiment of the present disclosure, the DNS server may determine the IP address and the location area corresponding to the domain name according to the domain name carried in the domain name resolution request message, and return the IP address and the location area indication information for indicating the location area to the user equipment. The user equipment can enable the user equipment to access the optimal server corresponding to the domain name through the IP address, and the delay is short and the communication efficiency is high.
图14是本公开实施例提供的一种域名访问装置的结构示意图。参照图10,该装置包括确定模块1401和发送模块1402。FIG. 14 is a schematic structural diagram of a domain name access apparatus according to an embodiment of the present disclosure. Referring to FIG. 10, the apparatus includes a determination module 1401 and a transmission module 1402.
确定模块1401,用于控制面设备确定用户设备发生位置区移动; a determining module 1401, configured to determine, by the control plane device, a location area movement of the user equipment;
发送模块1402,用于该控制面设备向该用户设备发送缓存更新指示消息,该缓存更新指示消息用于指示该用户设备更新域名缓存。The sending module 1402 is configured to send, by the control plane device, a cache update indication message to the user equipment, where the cache update indication message is used to indicate that the user equipment updates the domain name cache.
在一种可能实现方式中,该确定模块1401用于执行上述步骤804中确定该用户设备发生位置区移动的过程。In a possible implementation manner, the determining module 1401 is configured to perform the process of determining that the user equipment generates a location area movement in the foregoing step 804.
本公开实施例中,控制面设备在确定用户设备发生位置区移动后,可以向用户设备发送缓存更新指示消息,以触发用户设备更新域名缓存,丰富了触发用户设备更新域名缓存的方式。In the embodiment of the present disclosure, after determining that the user equipment is in the location area, the control plane device may send a cache update indication message to the user equipment to trigger the user equipment to update the domain name cache, which enriches the manner in which the user equipment is triggered to update the domain name cache.
需要说明的是:上述实施例提供的域名访问装置在域名访问时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的域名访问装置与域名访问方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that, when the domain name access device provided by the foregoing embodiment is used for domain name access, only the division of the above functional modules is illustrated. In actual applications, the function allocation may be completed by different functional modules as needed. The internal structure of the device is divided into different functional modules to perform all or part of the functions described above. In addition, the domain name access device and the domain name access method are provided in the same embodiment. For details, refer to the method embodiment, and details are not described herein.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。A person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium. The storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.
以上所述仅为本公开的较佳实施例,并不用以限制本公开,凡在本公开的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。 The above description is only the preferred embodiment of the present disclosure, and is not intended to limit the disclosure. Any modifications, equivalent substitutions, improvements, etc., which are within the spirit and principles of the present disclosure, should be included in the protection of the present disclosure. Within the scope.

Claims (26)

  1. 一种域名访问方法,其特征在于,所述方法包括:A domain name access method, characterized in that the method comprises:
    用户设备确定所述用户设备从第一位置区移动至第二位置区;The user equipment determines that the user equipment moves from the first location area to the second location area;
    所述用户设备将域名缓存中的第一互联网协议IP地址设置为无效,并向域名***DNS服务器发送第一域名解析请求消息,所述第一IP地址用于所述用户设备在所述第一位置区访问域名,所述第一域名解析请求消息携带所述域名;The user equipment sets the first Internet Protocol IP address in the domain name cache to be invalid, and sends a first domain name resolution request message to the domain name system DNS server, where the first IP address is used by the user equipment in the first The location area accesses the domain name, and the first domain name resolution request message carries the domain name;
    所述用户设备接收第一域名解析应答消息,所述第一域名解析应答消息携带与所述域名对应的第二IP地址;Receiving, by the user equipment, a first domain name resolution response message, where the first domain name resolution response message carries a second IP address corresponding to the domain name;
    所述用户设备将所述第二IP地址添加至所述域名缓存;The user equipment adds the second IP address to the domain name cache;
    所述用户设备通过所述第二IP地址访问所述域名。The user equipment accesses the domain name through the second IP address.
  2. 根据权利要求1所述的方法,其特征在于,所述第一域名解析请求消息还携带所述用户设备的位置信息,所述位置信息用于指示所述用户设备当前所在位置区为所述第二位置区。The method according to claim 1, wherein the first domain name resolution request message further carries location information of the user equipment, and the location information is used to indicate that the user equipment is currently located in the location area. Two location area.
  3. 根据权利要求1或2所述的方法,其特征在于,所述用户设备确定所述用户设备从第一位置区移动至第二位置区包括:The method according to claim 1 or 2, wherein the determining, by the user equipment, that the user equipment moves from the first location area to the second location area comprises:
    所述用户设备从控制面设备接收缓存更新指示消息,根据所述缓存更新指示消息确定所述用户设备从所述第一位置区移动至所述第二位置区。The user equipment receives a cache update indication message from the control plane device, and determines, according to the cache update indication message, that the user equipment moves from the first location area to the second location area.
  4. 根据权利要求1或2所述的方法,其特征在于,所述用户设备确定所述用户设备从第一位置区移动至第二位置区,包括:The method according to claim 1 or 2, wherein the determining, by the user equipment, that the user equipment moves from the first location area to the second location area comprises:
    所述用户设备根据所述域名缓存中所述域名对应的所述第一位置区,确定所述用户设备从所述第一位置区移动至所述第二位置区。Determining, by the user equipment, that the user equipment moves from the first location area to the second location area according to the first location area corresponding to the domain name in the domain name cache.
  5. 根据权利要求1至4任一项所述的方法,其特征在于,所述第一域名解析应答消息还携带用于指示所述第二位置区的位置区指示信息;The method according to any one of claims 1 to 4, wherein the first domain name resolution response message further carries location area indication information for indicating the second location area;
    所述方法还包括:The method further includes:
    所述用户设备在所述域名缓存中保存所述用于指示所述第二位置区的位置区指示信息。And the user equipment saves the location area indication information used to indicate the second location area in the domain name cache.
  6. 根据权利要求1至4任一项所述的方法,其特征在于,所述第二IP地址包括多个IP地址,所述第一域名解析应答消息还携带用于指示与所述多个IP地址分别对应的多个位置区的位置区指示信息;The method according to any one of claims 1 to 4, wherein the second IP address comprises a plurality of IP addresses, and the first domain name resolution response message is further carried to indicate with the plurality of IP addresses. Location area indication information corresponding to a plurality of location areas respectively;
    所述方法还包括:The method further includes:
    所述用户设备在所述域名缓存中保存所述用于指示与所述多个IP地址分别对应的多个位置区的位置区指示信息。The user equipment saves the location area indication information for indicating a plurality of location areas respectively corresponding to the plurality of IP addresses in the domain name cache.
  7. 根据权利要求6所述的方法,其特征在于,所述用户设备通过所述第二IP地址访问所述域名包括: The method according to claim 6, wherein the accessing the domain name by the user equipment by using the second IP address comprises:
    所述用户设备在所述域名缓存中查询与所述用户设备当前所在位置区对应的目的IP地址;The user equipment queries, in the domain name cache, a destination IP address corresponding to a current location area of the user equipment;
    所述用户设备通过所述目的IP地址访问所述域名。The user equipment accesses the domain name by using the destination IP address.
  8. 根据权利要求1至7任一项所述的方法,其特征在于,所述向DNS服务器发送第一域名解析请求消息之前,所述方法还包括:The method according to any one of claims 1 to 7, wherein before the sending the first domain name resolution request message to the DNS server, the method further includes:
    向所述DNS服务器发送第二域名解析请求消息,所述第二域名解析请求消息携带所述域名;Sending a second domain name resolution request message to the DNS server, where the second domain name resolution request message carries the domain name;
    接收第二域名解析应答消息,所述第二域名解析应答消息携带所述域名对应的第一IP地址和用于指示所述第一位置区的位置区指示信息,所述第一IP地址由所述DNS服务器根据所述域名确定;Receiving a second domain name resolution response message, where the second domain name resolution response message carries a first IP address corresponding to the domain name and location area indication information used to indicate the first location area, where the first IP address is Said DNS server is determined according to the domain name;
    将所述域名对应的第一IP地址和所述用于指示所述第一位置区的位置区指示信息保存至所述用户设备的域名缓存中;And saving the first IP address corresponding to the domain name and the location area indication information used to indicate the first location area to a domain name cache of the user equipment;
    通过所述第一IP地址访问所述域名。Accessing the domain name through the first IP address.
  9. 根据权利要求8所述的方法,其特征在于,所述第二域名解析请求消息还携带所述用户设备的第一位置信息。The method according to claim 8, wherein the second domain name resolution request message further carries first location information of the user equipment.
  10. 一种域名访问方法,其特征在于,所述方法包括:A domain name access method, characterized in that the method comprises:
    域名***DNS服务器从用户设备接收域名解析请求消息,所述域名解析请求消息携带所述用户设备待访问的域名;The domain name system DNS server receives a domain name resolution request message from the user equipment, where the domain name resolution request message carries the domain name to be accessed by the user equipment;
    所述DNS服务器确定所述域名对应的互联网协议IP地址和与所述IP地址对应的位置区;Determining, by the DNS server, an Internet Protocol IP address corresponding to the domain name and a location area corresponding to the IP address;
    所述DNS服务器向所述用户设备发送域名解析应答消息,所述域名解析应答消息携带所述IP地址和用于指示所述位置区的位置区指示信息。The DNS server sends a domain name resolution response message to the user equipment, where the domain name resolution response message carries the IP address and location area indication information used to indicate the location area.
  11. 根据权利要求10所述的方法,其特征在于,所述域名解析请求消息还携带所述用户设备当前的位置信息。The method according to claim 10, wherein the domain name resolution request message further carries current location information of the user equipment.
  12. 一种域名访问方法,其特征在于,所述方法包括:A domain name access method, characterized in that the method comprises:
    控制面设备确定用户设备发生位置区移动;The control plane device determines that the location area of the user equipment moves;
    所述控制面设备向所述用户设备发送缓存更新指示消息,所述缓存更新指示消息用于指示所述用户设备更新域名缓存。The control plane device sends a cache update indication message to the user equipment, where the cache update indication message is used to instruct the user equipment to update the domain name cache.
  13. 根据权利要求12所述的方法,其特征在于,所述控制面设备确定用户设备发生位置区移动包括:The method according to claim 12, wherein the control plane device determines that the location area movement of the user equipment comprises:
    如果所述用户设备向所述控制面设备发起位置更新流程,则所述控制面设备确定所述用户设备发生位置区移动;或,If the user equipment initiates a location update process to the control plane device, the control plane device determines that the user equipment occurs a location area move; or
    如果所述用户设备建立了新的数据包单元PDU会话,则所述控制面设备确定所述用户设备发生位置区移动。 If the user equipment establishes a new data packet unit PDU session, the control plane device determines that the user equipment has moved a location area.
  14. 一种域名访问装置,其特征在于,所述装置包括:A domain name access device, characterized in that the device comprises:
    确定模块,用于用户设备确定所述用户设备从第一位置区移动至第二位置区;a determining module, configured for the user equipment to determine that the user equipment moves from the first location area to the second location area;
    设置模块,用于所述用户设备将域名缓存中的第一互联网协议IP地址设置为无效,所述第一IP地址用于所述用户设备在所述第一位置区访问域名;a setting module, configured to set, by the user equipment, the first Internet Protocol IP address in the domain name cache to be invalid, where the first IP address is used by the user equipment to access the domain name in the first location area;
    发送模块,用于向域名***DNS服务器发送第一域名解析请求消息,所述第一域名解析请求消息携带所述域名;a sending module, configured to send a first domain name resolution request message to the domain name system DNS server, where the first domain name resolution request message carries the domain name;
    接收模块,用于所述用户设备接收第一域名解析应答消息,所述第一域名解析应答消息携带与所述域名对应的第二IP地址;a receiving module, configured to receive, by the user equipment, a first domain name resolution response message, where the first domain name resolution response message carries a second IP address corresponding to the domain name;
    添加模块,用于所述用户设备将所述第二IP地址添加至所述域名缓存;Adding a module, configured to add, by the user equipment, the second IP address to the domain name cache;
    访问模块,用于所述用户设备通过所述第二IP地址访问所述域名。And an access module, configured to access, by the user equipment, the domain name by using the second IP address.
  15. 根据权利要求14所述的装置,其特征在于,所述第一域名解析请求消息还携带所述用户设备的位置信息,所述位置信息用于指示所述用户设备当前所在位置区为所述第二位置区。The device according to claim 14, wherein the first domain name resolution request message further carries location information of the user equipment, and the location information is used to indicate that the user equipment is currently located in the location area. Two location area.
  16. 根据权利要求14或15所述的装置,其特征在于,所述确定模块,用于所述用户设备从控制面设备接收缓存更新指示消息,根据所述缓存更新指示消息确定所述用户设备从所述第一位置区移动至所述第二位置区。The device according to claim 14 or 15, wherein the determining module is configured to receive, by the user equipment, a cache update indication message from the control plane device, and determine, according to the cache update indication message, the user equipment from the device The first location area is moved to the second location area.
  17. 根据权利要求14或15所述的装置,其特征在于,所述确定模块,用于所述用户设备根据所述域名缓存中所述域名对应的所述第一位置区,确定所述用户设备从所述第一位置区移动至所述第二位置区。The device according to claim 14 or 15, wherein the determining module is configured to determine, by the user equipment, that the user equipment is from the first location area corresponding to the domain name in the domain name cache. The first location area moves to the second location area.
  18. 根据权利要求14至17任一项所述的装置,其特征在于,所述第一域名解析应答消息还携带用于指示所述第二位置区的位置区指示信息;The device according to any one of claims 14 to 17, wherein the first domain name resolution response message further carries location area indication information for indicating the second location area;
    所述装置还包括:The device also includes:
    保存模块,用于所述用户设备在所述域名缓存中保存所述用于指示所述第二位置区的位置区指示信息。And a saving module, configured to save, by the user equipment, the location area indication information used to indicate the second location area in the domain name cache.
  19. 根据权利要求14至17任一项所述的装置,其特征在于,所述第二IP地址包括多个IP地址,所述第一域名解析应答消息还携带用于指示与所述多个IP地址分别对应的多个位置区的位置区指示信息;The device according to any one of claims 14 to 17, wherein the second IP address comprises a plurality of IP addresses, and the first domain name resolution response message is further carried to indicate with the plurality of IP addresses. Location area indication information corresponding to a plurality of location areas respectively;
    所述保存模块,还用于所述用户设备在所述域名缓存中保存所述用于指示与所述多个IP地址分别对应的多个位置区的位置区指示信息。The saving module is further configured to save the location area indication information used by the user equipment to indicate a plurality of location areas respectively corresponding to the plurality of IP addresses in the domain name cache.
  20. 根据权利要求19所述的装置,其特征在于,所述访问模块用于:所述用户设备在所述域名缓存中查询与所述用户设备当前所在位置区对应的目的IP地址;所述用户设备通过所 述目的IP地址访问所述域名。The device according to claim 19, wherein the access module is configured to: the user equipment queries, in the domain name cache, a destination IP address corresponding to a current location area of the user equipment; the user equipment Pass through The destination IP address is accessed to access the domain name.
  21. 根据权利要求14至20任一项所述的装置,其特征在于,Apparatus according to any one of claims 14 to 20, wherein
    所述发送模块,还用于向所述DNS服务器发送第二域名解析请求消息,所述第二域名解析请求消息携带所述域名;The sending module is further configured to send a second domain name resolution request message to the DNS server, where the second domain name resolution request message carries the domain name;
    所述接收模块,还用于接收第二域名解析应答消息,所述第二域名解析应答消息携带所述域名对应的第一IP地址和用于指示所述第一位置区的位置区指示信息,所述第一IP地址由所述DNS服务器根据所述域名确定;The receiving module is further configured to receive a second domain name resolution response message, where the second domain name resolution response message carries a first IP address corresponding to the domain name and location area indication information used to indicate the first location area, The first IP address is determined by the DNS server according to the domain name;
    保存模块,用于将所述域名对应的第一IP地址和所述用于指示所述第一位置区的位置区指示信息保存至所述用户设备的域名缓存中;a saving module, configured to save the first IP address corresponding to the domain name and the location area indication information used to indicate the first location area to a domain name cache of the user equipment;
    所述访问模块,还用于通过所述第一IP地址访问所述域名。The access module is further configured to access the domain name by using the first IP address.
  22. 根据权利要求21所述的装置,其特征在于,所述第二域名解析请求消息还携带所述用户设备的第一位置信息。The device according to claim 21, wherein the second domain name resolution request message further carries first location information of the user equipment.
  23. 一种域名访问装置,其特征在于,所述装置包括:A domain name access device, characterized in that the device comprises:
    接收模块,用于域名***DNS服务器从用户设备接收域名解析请求消息,所述域名解析请求消息携带所述用户设备待访问的域名;a receiving module, configured to receive, by the user equipment, a domain name resolution request message from the user equipment, where the domain name resolution request message carries a domain name to be accessed by the user equipment;
    确定模块,用于所述DNS服务器确定所述域名对应的互联网协议IP地址和与所述IP地址对应的位置区;a determining module, configured to determine, by the DNS server, an Internet Protocol IP address corresponding to the domain name and a location area corresponding to the IP address;
    发送模块,用于所述DNS服务器向所述用户设备发送域名解析应答消息,所述域名解析应答消息携带所述IP地址和用于指示所述位置区的位置区指示信息。And a sending module, configured to send, by the DNS server, a domain name resolution response message to the user equipment, where the domain name resolution response message carries the IP address and location area indication information used to indicate the location area.
  24. 根据权利要求23所述的装置,其特征在于,所述域名解析请求消息还携带所述用户设备当前的位置信息。The device according to claim 23, wherein the domain name resolution request message further carries current location information of the user equipment.
  25. 一种域名访问装置,其特征在于,所述装置包括:A domain name access device, characterized in that the device comprises:
    确定模块,用于控制面设备确定用户设备发生位置区移动;a determining module, configured to determine, by the control plane device, a location area movement of the user equipment;
    发送模块,用于所述控制面设备向所述用户设备发送缓存更新指示消息,所述缓存更新指示消息用于指示所述用户设备更新域名缓存。And a sending module, configured to send, by the control plane device, a cache update indication message to the user equipment, where the cache update indication message is used to instruct the user equipment to update a domain name cache.
  26. 根据权利要求25所述的装置,其特征在于,所述确定模块用于:如果所述用户设备向所述控制面设备发起位置更新流程,则所述控制面设备确定所述用户设备发生位置区移动;或,The device according to claim 25, wherein the determining module is configured to: if the user equipment initiates a location update process to the control plane device, the control plane device determines that the user equipment occurs a location area Move; or,
    所述确定模块用于:如果所述用户设备建立了新的数据包单元PDU会话,则所述控制面设备确定所述用户设备发生位置区移动。 The determining module is configured to: if the user equipment establishes a new data packet unit PDU session, the control plane device determines that the user equipment occurs a location area move.
PCT/CN2017/072636 2017-01-25 2017-01-25 Domain name access method and device WO2018137180A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/072636 WO2018137180A1 (en) 2017-01-25 2017-01-25 Domain name access method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/072636 WO2018137180A1 (en) 2017-01-25 2017-01-25 Domain name access method and device

Publications (1)

Publication Number Publication Date
WO2018137180A1 true WO2018137180A1 (en) 2018-08-02

Family

ID=62977896

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/072636 WO2018137180A1 (en) 2017-01-25 2017-01-25 Domain name access method and device

Country Status (1)

Country Link
WO (1) WO2018137180A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114143230A (en) * 2020-09-02 2022-03-04 ***通信集团安徽有限公司 Method and device for calculating DNS (Domain name Server) resolution time of dual-stack user

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080086574A1 (en) * 2006-10-05 2008-04-10 Limelight Networks, Inc. Remote Domain Name Service
CN103348656A (en) * 2011-02-08 2013-10-09 瑞典爱立信有限公司 Method and system for mobility support for caching adaptive http streaming content in cellular networks
CN104168340A (en) * 2014-07-24 2014-11-26 深圳市腾讯计算机***有限公司 Domain name resolution method, server, terminal and system
CN106331213A (en) * 2016-08-29 2017-01-11 广东欧珀移动通信有限公司 Domain name system DNS processing method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080086574A1 (en) * 2006-10-05 2008-04-10 Limelight Networks, Inc. Remote Domain Name Service
CN103348656A (en) * 2011-02-08 2013-10-09 瑞典爱立信有限公司 Method and system for mobility support for caching adaptive http streaming content in cellular networks
CN104168340A (en) * 2014-07-24 2014-11-26 深圳市腾讯计算机***有限公司 Domain name resolution method, server, terminal and system
CN106331213A (en) * 2016-08-29 2017-01-11 广东欧珀移动通信有限公司 Domain name system DNS processing method and apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114143230A (en) * 2020-09-02 2022-03-04 ***通信集团安徽有限公司 Method and device for calculating DNS (Domain name Server) resolution time of dual-stack user
CN114143230B (en) * 2020-09-02 2023-07-21 ***通信集团安徽有限公司 Dual-stack user DNS analysis duration calculation method and device

Similar Documents

Publication Publication Date Title
US10831161B2 (en) Method and device for sending communication message
WO2021190166A1 (en) Network slice determination method and related apparatus
WO2018103492A1 (en) Method for setting wifi roaming, and terminal device
US11579946B2 (en) Method for managing multiple operating systems in a terminal
US10813057B2 (en) Method for processing information and terminal device
US20170316781A1 (en) Remote electronic service requesting and processing method, server, and terminal
US11258708B2 (en) Communication method and communications apparatus
US20220201571A1 (en) Method for transmitting radio capability identifier, terminal device, and network node
CN109002547B (en) Log file storage method, mobile terminal and computer readable storage medium
WO2019144768A1 (en) Network registration mode switching method and terminal
EP3547752B1 (en) Cell switching method and terminal device
WO2017000495A1 (en) Method and device for adding contacts
WO2017076279A1 (en) Method of updating forward information base item, and device and system utilizing same
WO2018137180A1 (en) Domain name access method and device
CN107483468B (en) Obtain the methods, devices and systems of configuration information
CN108476465B (en) CSFB network holding method and user terminal
CN111314900B (en) Wireless connection method, wireless connection device and mobile terminal
WO2017049930A1 (en) Resource usage method and terminal
WO2016179773A1 (en) Signal transmission method, base station and user equipment
CN106879046B (en) Network scanning method and terminal equipment
WO2018068319A1 (en) Routing method and device in multi-host scenario
CN113973326B (en) Wireless capability identifier transmission method, terminal equipment and network node
CN107862199B (en) Data access method, terminal and computer readable storage medium
CN110870289B (en) Method and device for restoring surfing Internet of local area network equipment
CN117294788A (en) Icon display method, intelligent terminal and storage medium

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: 17894036

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: 17894036

Country of ref document: EP

Kind code of ref document: A1