WO2021081712A1 - Dns query method and apparatus - Google Patents

Dns query method and apparatus Download PDF

Info

Publication number
WO2021081712A1
WO2021081712A1 PCT/CN2019/113739 CN2019113739W WO2021081712A1 WO 2021081712 A1 WO2021081712 A1 WO 2021081712A1 CN 2019113739 W CN2019113739 W CN 2019113739W WO 2021081712 A1 WO2021081712 A1 WO 2021081712A1
Authority
WO
WIPO (PCT)
Prior art keywords
domain name
terminal device
message
dns
information
Prior art date
Application number
PCT/CN2019/113739
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/CN2019/113739 priority Critical patent/WO2021081712A1/en
Publication of WO2021081712A1 publication Critical patent/WO2021081712A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Definitions

  • This application relates to the field of mobile communication technology, and in particular to a DNS query method and device.
  • IP Internet Protocol
  • DNS Domain Name System
  • the domain name system is a distributed host information database that provides mapping and conversion between domain names and IP addresses, and can resolve domain names to corresponding IP addresses through DNS servers.
  • the terminal device can realize the access to the domain name through the domain name resolution service provided by the DNS server.
  • the process of domain name access is as follows: Take the terminal device accessing domain name A as an example.
  • the terminal device accesses the domain name A, query whether the IP address corresponding to the domain name A exists in the DNS resource record of the terminal device. If it exists, the terminal device You can directly obtain the IP address, and then access the domain name A through the IP address; if it does not exist, the terminal device 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 corresponding domain name A
  • the terminal device can access the domain name A through the IP address.
  • the terminal device After obtaining the IP address corresponding to the domain name, the terminal device generates and caches a DNS resource record.
  • the DNS resource record is used to indicate the correspondence between the domain name and the IP address.
  • the terminal device maintains a corresponding time to live (TTL) for each cached DNS resource record.
  • TTL time to live
  • TTL indicates the storage or cache time of the DNS resource record corresponding to the IP address in the cache of the terminal device.
  • a time of 0 means that it can only be transmitted but cannot be cached.
  • the business corresponding to the domain name may be deployed in a distributed manner.
  • a terminal device accesses the service at a different location, it can access the distributed application server to achieve nearby access.
  • the terminal device obtains the DNS resource record corresponding to a certain domain name before the move, if the TTL of the DNS resource record is still valid after the terminal device moves, it will be unable to access at the current location.
  • the service of the application server corresponding to the domain name is a certain domain name before the move.
  • This application provides a DNS query method and device, which are used to enable terminal equipment to access services in the application server corresponding to the IP address nearby.
  • this application provides a DNS query method, including: in the case that the terminal device moves and the retention time of the DNS resource record corresponding to the domain name of the terminal device application has not expired, if the first condition is met, Sending a first message to the DNS server, the first message being used to query the IP address corresponding to the domain name; receiving a second message sent by the DNS server, the second message including the IP address corresponding to the domain name, The application server indicated by the IP address corresponds to the moved position of the terminal device.
  • the terminal device after the terminal device is moved, if the retention time of the DNS resource record has not expired, as long as the first condition is met, the terminal device will initiate a query to the DNS server for the IP address corresponding to the domain name, and the IP address indicates The application server corresponds to the location of the terminal device after it has moved. Therefore, what the terminal device accesses is the service of the application server corresponding to the position of the terminal device after it is moved, and the nearby access of the service is realized.
  • this application provides a DNS query method, which includes: in the case that the terminal device moves and the retention time of the DNS resource record corresponding to the domain name of the terminal device application has not expired, if the first condition is met, Sending a first message to the DNS server, the first message being used to query the Internet Protocol IP address corresponding to the domain name; receiving a second message sent by the DNS server, the second message including the indication information, the The indication information is used to indicate that the IP address corresponding to the domain name has not changed, and the application server indicated by the IP address corresponds to the position of the terminal device after it has moved.
  • the terminal device after the terminal device is moved, if the retention time of the DNS resource record has not expired, as long as the first condition is met, the terminal device will initiate a query to the DNS server for the IP address corresponding to the domain name, when the IP address before and after the query When it does not change, the DNS server sends instruction information to the terminal device to indicate that the IP address corresponding to the domain name has not changed, and the application server indicated by the IP address corresponds to the position of the terminal device after it has moved. Therefore, what the terminal device accesses is the service of the application server corresponding to the position of the terminal device after it is moved, and the nearby access of the service is realized.
  • the first condition includes any one of the following: there are multiple application servers corresponding to the domain name; or, there are multiple application servers corresponding to the domain name, and the terminal device is removed
  • the intersection area of the terminal device is the intersection area between the registration area and the domain name range of the domain name; or, the retention time of the DNS resource record is less than a preset threshold.
  • the movement of the terminal device includes: inter-cell movement of the terminal device; or, the movement of the terminal device causes the data network access identifier DNAI corresponding to the terminal device to change; or , The terminal device moves between tracking areas; or, the terminal device moves out of the intersection area between the registration area of the terminal device and the domain name range of the domain name.
  • this application provides a DNS query method, including: obtaining domain name information of an application of a terminal device, where the domain name information is used to indicate whether there are multiple application servers corresponding to the domain name; and sending the domain name to the terminal device Information, the domain name information is used for the terminal device to determine whether to send a first message, and the first message is used for querying the IP address corresponding to the domain name.
  • domain name information is sent to the terminal device, so that after the terminal device is moved, if the retention time of the DNS resource record has not expired, the domain name information can be used to determine whether to initiate a query to the DNS server for the IP address corresponding to the domain name, which is helpful
  • the terminal equipment realizes the nearby visit of the business.
  • the device determines whether to send the first message.
  • obtaining the domain name information of the application includes: receiving the domain name information from a centralized control network element; or, receiving the service description information and the service description information corresponding to the domain name from the centralized control network element The corresponding service location determines the domain name information according to the service description information and the service location.
  • the domain name information includes the domain name and indication information, and the indication information is used to indicate whether there are multiple application servers corresponding to the domain name.
  • this application provides a DNS query method, including: receiving a DNS query request from a terminal device, where the DNS query request includes a domain name of an application of the terminal device; and setting a retention time according to the domain name information of the domain name, The retention time is the retention time of the DNS resource record corresponding to the domain name; the IP address corresponding to the domain name and the retention time are sent to the terminal device, and the retention time is used by the terminal device to determine whether to send the first A message, the first message is used to query the IP address corresponding to the domain name.
  • the retention time is set according to the domain name information, and the retention time is sent to the terminal device, so that after the terminal device moves, if the retention time of the DNS resource record has not expired, it can be judged whether to initiate a query to the DNS server according to the retention time
  • the IP address corresponding to the domain name helps the terminal device to realize the nearby access of the business.
  • setting the retention time according to the domain name information of the domain name includes: if the domain name information indicates that there are multiple application servers corresponding to the domain name, setting the retention time to be less than a preset threshold; Alternatively, if the domain name information indicates that there is one application server corresponding to the domain name, the retention time is set to be greater than a preset threshold.
  • the present application provides a communication device, which may be a terminal device or a chip for the terminal device.
  • the device has the function of realizing the foregoing first aspect, or second aspect, or each embodiment of the first aspect, or each embodiment of the second aspect.
  • This function can be realized by hardware, or by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above-mentioned functions.
  • this application provides a communication device, which may be a policy control network element or a DNS server, or a chip used for a policy control network element or a DNS server.
  • the device has the function of realizing the foregoing third aspect or the embodiments of the third aspect. This function can be realized by hardware, or by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above-mentioned functions.
  • the present application provides a communication device, which may be a DNS server or a chip used for the DNS server.
  • the device has the function of realizing the foregoing fourth aspect or the embodiments of the fourth aspect. This function can be realized by hardware, or by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above-mentioned functions.
  • the present application provides a communication device, including: a processor and a memory; the memory is used to store computer execution instructions, and when the device is running, the processor executes the computer execution instructions stored in the memory to enable the The device executes the methods described in the above aspects.
  • the device may be a terminal device, or a chip used for a terminal device, or a policy control network element, or a chip used for a policy control network element, or a DNS server, or a chip used for a DNS server.
  • the present application provides a communication device, including: including units or means for performing each step of the above-mentioned aspects.
  • the device can be a policy control network element, or a terminal device, or a DNS server.
  • the present application provides a communication device including a processor and an interface circuit, and the processor is configured to implement the methods described in the foregoing aspects through the interface circuit.
  • the processor includes one or more.
  • the device may be a chip used for session management network elements, terminal equipment, or DNS server.
  • the present application provides a communication device, including a processor, configured to be connected to a memory, and configured to call a program stored in the memory to execute the methods described in the foregoing aspects.
  • the memory can be located inside the device or outside the device.
  • the processor includes one or more.
  • the device may be a terminal device, or a chip used for a terminal device, or a policy control network element, or a chip used for a policy control network element, or a DNS server, or a chip used for a DNS server.
  • this application also provides a computer-readable storage medium having instructions stored in the computer-readable storage medium, which when run on a computer, cause a processor to execute the methods described in the above aspects.
  • this application also provides a computer program product including instructions, which when run on a computer, causes the computer to execute the methods described in the above aspects.
  • this application also provides a chip system, including a processor, configured to execute the methods described in the foregoing aspects.
  • this application provides a communication system including a policy control network element and a mobility management network element.
  • the system also includes terminal equipment.
  • the policy control network element is used to obtain domain name information of the application of the terminal device, the domain name information is used to indicate whether there are multiple application servers corresponding to the domain name; and the domain name information is sent to the mobility management network element;
  • the mobility management network element is configured to send the domain name information to the terminal device, where the domain name information is used by the terminal device to determine whether to send a first message, and the first message is used to query the corresponding domain name Internet Protocol IP address.
  • the policy control network element is also used to determine the intersection area between the registration area of the terminal device and the domain name range of the domain name; The intersection area; the mobility management network element is also used to send the intersection area to the terminal device, and the intersection area is used by the terminal device to determine whether to send the first message.
  • the policy control network element is used to obtain the domain name information of the terminal device application, which specifically includes: used to receive the domain name information from the centralized control network element; or, used to receive the domain name information from the centralized control
  • the network element receives the service description information corresponding to the domain name and the service location corresponding to the service description information, and determines the domain name information according to the service description information and the service location.
  • the terminal device is configured to: when the terminal device moves and the retention time of the DNS resource record corresponding to the domain name of the terminal device application does not expire, if it is satisfied
  • the first condition is to send a first message to the DNS server, where the first message is used to query the IP address corresponding to the domain name; and to receive a second message sent by the DNS server, the second message includes information corresponding to the domain name An IP address, where the application server indicated by the IP address corresponds to the position of the terminal device after it has moved.
  • the terminal device is configured to: when the terminal device moves and the retention time of the DNS resource record corresponding to the domain name of the terminal device application does not expire, if it is satisfied
  • the first condition is to send a first message to the DNS server, where the first message is used to query the IP address corresponding to the domain name; and to receive a second message sent by the DNS server, where the second message includes indication information, so
  • the indication information is used to indicate that the IP address corresponding to the domain name has not changed, and the application server indicated by the IP address corresponds to the position of the terminal device after it has moved.
  • the first condition includes any one of the following: there are multiple application servers corresponding to the domain name; or, there are multiple application servers corresponding to the domain name, and the terminal device is removed
  • the intersection area is an intersection area between the registration area of the terminal device and the domain name range of the domain name.
  • the movement of the terminal device includes: inter-cell movement of the terminal device; or, the movement of the terminal device causes the data network access identifier DNAI corresponding to the terminal device to change; or , The terminal device moves between tracking areas; or, the terminal device moves out of the intersection area between the registration area of the terminal device and the domain name range of the domain name.
  • this application provides a communication system including a terminal device and a DNS server.
  • the DNS server is used for a DNS query request from the terminal device, the DNS query request includes the domain name of the terminal device application; the retention time is set according to the domain name information of the domain name, and the retention time is the The retention time of the DNS resource record corresponding to the domain name; sending the Internet Protocol IP address corresponding to the domain name and the retention time to the terminal device; the terminal device is used to determine whether to send the first message according to the retention time, The first message is used to query the IP address corresponding to the domain name.
  • the DNS server is configured to set the retention time according to the domain name information of the domain name, specifically including: if the domain name information indicates that there are multiple application servers corresponding to the domain name, then Set the retention time to be less than a preset threshold; or, if the domain name information indicates that there is one application server corresponding to the domain name, set the retention time to be greater than the preset threshold.
  • this application provides a communication method, including: a policy control network element obtains domain name information of an application of a terminal device, where the domain name information is used to indicate whether there are multiple application servers corresponding to the domain name; the policy control network Element sends the domain name information to the mobility management network element; the mobility management network element sends the domain name information to the terminal device, and the domain name information is used by the terminal device to determine whether to send the first message, the The first message is used to query the Internet Protocol IP address corresponding to the domain name.
  • the policy control network element determines the intersection area between the registration area of the terminal device and the domain name range of the domain name; sends the intersection area to the mobility management network element; The mobility management network element sends the intersection area to the terminal device, where the intersection area is used by the terminal device to determine whether to send the first message.
  • acquiring, by the policy control network element, the domain name information of the application of the terminal device includes: the policy control network element receives the domain name information from a centralized control network element; or, the policy control network The element receives the service description information corresponding to the domain name and the service location corresponding to the service description information from the centralized control network element, and determines the domain name information according to the service description information and the service location.
  • the terminal device when the terminal device moves and the retention time of the DNS resource record corresponding to the domain name of the terminal device application does not expire, if the first condition is met, the terminal device Send a first message to the DNS server, the first message is used to query the IP address corresponding to the domain name; the terminal device receives the second message sent by the DNS server, the second message includes the corresponding domain name An IP address, where the application server indicated by the IP address corresponds to the position of the terminal device after it has moved.
  • the terminal device when the terminal device moves and the retention time of the DNS resource record corresponding to the domain name of the terminal device application does not expire, if the first condition is met, the terminal device Send a first message to the DNS server, the first message is used to query the IP address corresponding to the domain name; the terminal device receives a second message sent by the DNS server, the second message includes indication information, so The indication information is used to indicate that the IP address corresponding to the domain name has not changed, and the application server indicated by the IP address corresponds to the position of the terminal device after it has moved.
  • Figure 1 is a schematic diagram of a possible network architecture applicable to this application
  • FIG. 2 is a schematic diagram of another possible network architecture to which this application applies;
  • FIG. 3 is a schematic diagram of an MEC scenario provided by this application.
  • FIG. 4A is a schematic flowchart of a DNS query method provided by this application.
  • FIG. 4B is a schematic flowchart of another DNS query method provided by this application.
  • FIG. 5 is a schematic flow diagram of another DNS query method provided by this application.
  • FIG. 6 is a schematic flow diagram of another DNS query method provided by this application.
  • FIG. 7 is a schematic diagram of a communication device provided by this application.
  • FIG. 8 is a schematic diagram of another communication device provided by this application.
  • FIG. 9 is a schematic diagram of another communication device provided by this application.
  • FIG. 10 is a schematic diagram of a terminal device provided by this application.
  • FIG. 11 is a schematic diagram of a policy control network element provided by this application.
  • FIG 12 is a schematic diagram of a DNS server provided by this application.
  • FIG. 13 is a schematic diagram of a communication system provided by this application.
  • FIG. 14 is a schematic diagram of another communication system provided by this application.
  • FIG. 1 it is a schematic diagram of a 5G network architecture based on a service-oriented architecture.
  • the 5G network architecture shown in FIG. 1 may include three parts, namely a terminal equipment part, a data network (DN), and an operator network part.
  • DN data network
  • Operator network part The functions of some of the network elements are briefly introduced below.
  • the operator network may include one or more of the following network elements: network exposure function (NEF) network elements, network storage function (Network Repository Function, NRF) network elements, policy control function (policy control function) , PCF) network element, unified data management (UDM) network element, network data analysis function network element (Network Data Analytics Function, NWDAF) network element, application function (AF) network element, access and Mobility management function (access and mobility management function, AMF) network elements, session management function (session management function, SMF) network elements, radio access network (RAN), unified data repository (Unified Data Repository, UDR) (not shown in the figure) and user plane function (UPF) network elements.
  • NRF network exposure function
  • NRF Network Repository Function
  • policy control function policy control function
  • PCF Policy control function
  • UDM unified data management
  • NWDAF Network Data Analytics Function
  • AF application function
  • AMF access and Mobility management function
  • SMF session management function
  • RAN radio access network
  • UDR Unified Data Repository
  • Terminal device also called user equipment (user equipment, UE)
  • UE user equipment
  • UE user equipment
  • UE user equipment
  • UE wireless transceiver function
  • land including indoor or outdoor, handheld or vehicle-mounted; it can also be deployed on water On board (such as ships, etc.); it can also be deployed in the air (such as airplanes, balloons, and satellites, etc.).
  • the terminal device may be a mobile phone (mobile phone), a tablet computer (pad), a computer with wireless transceiver function, a virtual reality (VR) terminal, an augmented reality (AR) terminal, an industrial control (industrial control) Wireless terminals in ), wireless terminals in self-driving, wireless terminals in remote medical, wireless terminals in smart grid, and wireless terminals in transportation safety , Wireless terminals in smart cities, wireless terminals in smart homes, etc.
  • this application will use UE instead of the terminal device for description in the following.
  • the above-mentioned terminal equipment can establish a connection with the operator's network through an interface (such as N1, etc.) provided by the operator's network, and use the data and/or voice services provided by the operator's network.
  • the terminal device can also access the DN through the operator's network, and use the operator's service deployed on the DN and/or the service provided by a third party.
  • the above-mentioned third party may be a service party other than the operator's network and terminal equipment, and may provide other services such as data and/or voice for the terminal equipment.
  • the specific form of expression of the above-mentioned third party can be determined according to actual application scenarios, and is not limited here.
  • RAN is a sub-network of an operator's network, and an implementation system between service nodes and terminal equipment in the operator's network.
  • the terminal device To access the operator's network, the terminal device first passes through the RAN, and then can be connected to the service node of the operator's network through the RAN.
  • the RAN device in this application is a device that provides wireless communication functions for terminal devices, and the RAN device is also called an access network device.
  • the RAN equipment in this application includes but is not limited to: next-generation base stations (gnodeB, gNB), evolved node B (evolved node B, eNB), radio network controller (RNC), node B in 5G (node B, NB), base station controller (BSC), base transceiver station (BTS), home base station (for example, home evolved nodeB, or home node B, HNB), baseband unit (baseBand) unit, BBU), transmission point (transmitting and receiving point, TRP), transmission point (transmitting point, TP), mobile switching center, etc.
  • next-generation base stations gnodeB, gNB
  • evolved node B evolved node B
  • RNC radio network controller
  • node B in 5G node B, NB
  • BSC base station controller
  • BTS base transceiver station
  • home base station for example, home evolved nodeB, or home node B, HNB
  • TRP transmission point
  • AMF network element responsible for user mobility management, including mobility status management, assigning user temporary identities, authenticating and authorizing users.
  • SMF network element responsible for UPF selection, UPF reselection, IP address allocation, responsible for bearer establishment, modification and release, and QoS control.
  • UPF network elements support all or part of the following functions: Interconnect protocol data unit (PDU) sessions with data networks; packet routing and forwarding (for example, support for Uplink classifier and forwarding of traffic to the data network, support for Branching point to support multi-homed PDU session); data packet inspection.
  • PDU Interconnect protocol data unit
  • packet routing and forwarding for example, support for Uplink classifier and forwarding of traffic to the data network, support for Branching point to support multi-homed PDU session
  • data packet inspection for example, support for Uplink classifier and forwarding of traffic to the data network, support for Branching point to support multi-homed PDU session.
  • a DN is a network located outside the operator's network.
  • the operator's network can access multiple DNs, and multiple services can be deployed on the DN, which can provide data and/or voice services for terminal devices.
  • DN is a private network of a smart factory.
  • the sensors installed in the workshop of the smart factory can be terminal devices.
  • a control server for the sensors is deployed in the DN, and the control server can provide services for the sensors.
  • the sensor can communicate with the control server, obtain instructions from the control server, and transmit the collected sensor data to the control server according to the instructions.
  • the DN is the internal office network of a company.
  • the mobile phones or computers of the employees of the company can be terminal devices, and the mobile phones or computers of the employees can access the information and data resources on the internal office network of the company.
  • the UDM network element is responsible for managing the contracted data, and when the contracted data is modified, it is responsible for notifying the corresponding network element.
  • UDR is used to store and retrieve contract data, policy data and public structure data, etc.; for UDM, PCF and NEF to obtain relevant data.
  • UDR must be able to have different data access authentication mechanisms for different types of data such as contract data and policy data to ensure the security of data access; UDR must be able to return and carry appropriate data for illegal servicing operations or data access requests The failure response for the reason value.
  • NEF network elements are mainly used to support the opening of capabilities and events.
  • the AF network element provides certain application layer services to the UE.
  • the AF provides services to the UE, it has requirements for QoS policies and charging policies (Charging) and needs to notify the network.
  • AF also needs application-related information fed back from the core network.
  • PCF network elements include policy control decision-making and flow-based charging control functions, including user subscription data management functions, policy control functions, charging policy control functions, QoS control, etc.
  • the NRF network element can be used to provide the network element discovery function, and provide the network element information corresponding to the network element type based on the request of other network elements.
  • NRF also provides network element management services, such as network element registration, update, de-registration, and network element status subscription and push.
  • the NWDAF network element is used to provide the big data analysis information of the contracted terminal according to the request of the policy module PCF, and help the PCF optimize the strategy control; it can provide the big data analysis information according to the slice dimension.
  • Nnef, Nnrf, Npcf, Nudm, Nnwdaf, Naf, Namf, Nsmf, N1, N2, N3, N4, and N6 are interface serial numbers.
  • the meanings of these interface serial numbers can be referred to the meanings defined in the 3rd generation partnership project (3rd generation partnership project, 3GPP) standard protocol, which is not limited here.
  • FIG. 2 it is a schematic diagram of a 5G network architecture based on a point-to-point interface.
  • the interfaces between the various network elements in Figure 2 are point-to-point interfaces rather than service-oriented interfaces.
  • FIG. 2 also includes other network elements, such as NEF network elements, NRF network elements, UDR network elements, and NWDAF network elements, which are not shown in FIG. 2.
  • the interface between the UE and the AMF network element is called the N1 interface
  • the interface between the AMF network element and the RAN device is called the N2 interface
  • the interface between the RAN device and the UPF network element It can be called N3 interface
  • the interface between SMF network element and UPF network element is called N4 interface
  • the interface between PCF network element and AF network element is called N5 interface
  • the interface between UPF network element and DN is called N6 Interface
  • the interface between SMF network element and PCF network element is called N7 interface
  • the interface between AMF network element and UDM network element is called N8 interface
  • the interface between different UPF network elements is called N9 interface
  • UDM network element The interface with the SMF network element is called the N10 interface
  • the interface between the AMF network element and the SMF network element is called the N11 interface
  • the interface between different AMF network elements is called the N14 interface
  • the one between the AMF network element and the PCF network element The interface between is called N15 interface.
  • the aforementioned network elements or functions may be network elements in hardware devices, software functions running on dedicated hardware, or virtualization functions instantiated on a platform (for example, a cloud platform).
  • a platform for example, a cloud platform.
  • the foregoing network element or function may be implemented by one device, or jointly implemented by multiple devices, or may be a functional module in one device, which is not specifically limited in the embodiment of the present application.
  • the mobility management network element, session management network element, policy control network element, application function network element, access network device, network opening function network element, and user plane network element in this application may be those in Figure 1 or Figure 2 respectively.
  • AMF, SMF, PCF, AF, RAN, NEF, UPF, or future communications such as the 6th generation (6G) network with the above-mentioned functions of AMF, SMF, PCF, AF, RAN, NEF, UPF Yuan, this application is not limited.
  • mobility management network elements, session management network elements, policy control network elements, application function network elements, access network equipment, network open function network elements, and user plane network elements are respectively the above-mentioned AMF, SMF, and SMF.
  • the terminal device is referred to as UE for short in this application.
  • MEC Mobile Edge Computing
  • AR Augmented Reality
  • VR Virtual Reality
  • IoT Internet of Things
  • ETSI European Telecommunication Standard Institute
  • the MEC architecture has evolved: Compared with the central data network (central DN), the edge location closer to the end user can provide the network architecture that users need services and cloud computing functions, combining applications, content, and core The functions of network service processing and resource scheduling are deployed together at the edge of the network close to the end user, and the service is close to the user processing, as well as the collaboration of applications, content and the network to provide a reliable and extreme service experience.
  • Figure 3 it is a schematic diagram of the MEC scene. Among them, the MEC platform is deployed at the sinking UPF (that is, the local UPF) and the DN is deployed at the remote UPF. Compared with the path for the UE to access the DN, the path for the UE to access the MEC platform is greatly shortened. Therefore, MEC technology can provide users with low-latency, high-bandwidth services.
  • the DNS query process is:
  • the UE starts an application (APP), initiates a session establishment process or reuses an existing session of the UE to establish a user plane connection between the UE and the UPF.
  • APP application
  • the SMF sends the address of the DNS server to the UE.
  • the UE determines whether there is a DNS record related to the domain name of the service locally.
  • the DNS record contains the correspondence between the domain name and the IP address.
  • the UE determines the IP address corresponding to the domain name according to the DNS record, and uses the IP address as the destination IP of the service.
  • TTL time-to-live
  • One or more applications are installed in the UE, and each application corresponds to one or more services.
  • each application corresponds to one or more services.
  • the UE initiates the service, it initiates the service through the pre-configured domain name corresponding to the application.
  • the SMF sends the DNS server address to the UE.
  • the UE initiates a DNS query process to the DNS server to query the address corresponding to the domain name of APP1. Specifically, the UE sends a DNS query request to the DNS server, carrying the domain name; the DNS server returns a DNS response message, carrying the TTL and IP address corresponding to the domain name. Then, the UE saves the correspondence between the domain name, TTL, and IP address.
  • the UE starts APP2, assuming that APP2 reuses the current session; the UE initiates a DNS query to the DNS server to query the address corresponding to the domain name of APP2. The UE saves the corresponding relationship between the domain name, TTL, and IP address.
  • the UE starts APP3, assuming that APP3 reuses the current session; the UE initiates a DNS query to the DNS server to query the address corresponding to the domain name of APP3.
  • the UE saves the corresponding relationship between the domain name, TTL, and IP address.
  • the UE moves, assuming that the UE moves to the MEC platform corresponding to APP1, that is, APP1 is a distributed deployment. Assuming that the DNS record of APP1 has not timed out, that is, TTL1 has not changed to 0, the UE will not re-initiate a DNS query for APP1, so that for APP1, the UE cannot realize the service of accessing the application server nearby.
  • a session carries the services of APP1, APP2, and APP3 at the same time. If only APP1 is deployed in a distributed manner, when the UE moves to the MEC platform corresponding to APP1 When, how can the UE initiate a DNS query only for APP1?
  • the problem to be solved by the present invention is: for distributed deployment services, how to realize the service of accessing the application server nearby when the TTL does not time out.
  • the domain name can be identified by the APP ID, can also be a fully qualified domain name (FQDN), or can be a symbol composed of English letters, Arabic numerals, "-", ".”, etc.
  • FQDN fully qualified domain name
  • the business corresponding to a domain name is a distributed deployment business, and the domain name corresponds to a distributed deployment application server, that is, the domain name corresponds to multiple application servers.
  • the UE can request access to the service from the application server of the central data network element or the application server of the local data network, so that nearby access to the service can be realized.
  • the service corresponding to the domain name is a centralized deployment service, and the domain name corresponds to a centralized deployment application server, that is, the domain name corresponds to an application server.
  • RA consists of one or more tracking area identifiers (TAI).
  • the domain name range refers to the coverage of the IP address corresponding to the domain name, that is, the coverage of the application server corresponding to the domain name.
  • the domain name range indicates the service range of the application server. The UE moves within the domain name range, and the IP address corresponding to the domain name of the service corresponding to the application server does not change.
  • This range can be represented by a data network access identifier (DN access identifier, DNAI), or can be represented by TAI.
  • Table 2 shows the correspondence between the domain name, the application server corresponding to the domain name, and the domain name range.
  • the domain name range includes DNAI1 and DNAI2.
  • the domain name range is PLMN, which means that the domain name range is the entire operator network.
  • the domain name range includes DNAI1, DNAI3, and DNAI5.
  • the domain name range of domain name 2 may also be empty or other special values to indicate that the domain name range of the domain name covers the entire operator network.
  • UE1's RA ⁇ TA1, TA2, TA3 ⁇
  • the domain names accessed by UE1 include domain name 1 and domain name 2
  • domain name 1 range ⁇ DNAI1, DNAI2 ⁇
  • domain name 2 range ⁇ DNAI3 ⁇
  • DNAI1 ⁇ TA1, TA2 ⁇
  • DNAI2 ⁇ TA4 ⁇
  • domain name 2 range ⁇ TA4 ⁇ .
  • the intersection area of the range of RA and domain name 1 is ⁇ TA1, TA2 ⁇ . It can be understood that the domain name 1 exists in the RA coverage of UE1. That is to say, when UE1 moves in the intersection area, if it visits domain name 1, it can visit nearby.
  • intersection area of the range of RA and domain name 2 is an empty set. It can be understood that the domain name 2 does not exist in the RA coverage of UE1. Since there is no intersection area within the RA range, UE1 cannot achieve nearby access when it moves within the RA range. UE1 can access the service corresponding to domain name 2 by accessing the center DN, or by accessing application servers deployed in other locations. Access the business corresponding to domain name 2.
  • the present application provides a DNS query method.
  • the method can be executed by PCF, DNS server, and UE, and can also be used for PCF components (such as chips, circuits, etc.), components used for DNS server (such as chips, circuits, etc.), and components used for UE (such as chips). , Circuit, etc.) execution.
  • the method may also be executed by the DNS server and the UE, or executed by components (such as chips, circuits, etc.) used for the DNS server and components (such as chips, circuits, etc.) used for the UE.
  • the method includes the following steps:
  • Step 401a Obtain domain name information of an application of the UE, where the domain name information is used to indicate whether there are multiple application servers corresponding to the domain name.
  • the domain name information may also be used to indicate whether there is one application server corresponding to the domain name.
  • the domain name information includes a domain name and indication information
  • the indication information is used to indicate whether there are multiple application servers corresponding to the domain name, or the indication information is used to indicate whether there is one application server corresponding to the domain name.
  • the indication information here may be 1-bit information.
  • the indication information of "1" is used to indicate that there is one application server corresponding to the domain name
  • the indication information of "0" is used to indicate that there are multiple application servers corresponding to the domain name.
  • the indication information being "0” is used to indicate that there is one application server corresponding to the domain name
  • the indication information being "1” is used to indicate that there are multiple application servers corresponding to the domain name.
  • the indication information is used to indicate that there is one application server corresponding to the domain name, and the indication information may be any information.
  • the domain name information only contains the domain name, and when it does not contain the instruction information, it is used to indicate that there are multiple application servers corresponding to the domain name.
  • the indication information is used to indicate that there are multiple application servers corresponding to the domain name, and the indication information may be any information.
  • the domain name information only contains the domain name, and when it does not contain the instruction information, there is one application server used to indicate the domain name.
  • the methods for PCF to obtain the domain name information of the application domain name include but are not limited to:
  • the PCF receives domain name information from the centralized control network element.
  • the centralized control network element here can be a centralized MEC platform, a UDR, or a management and control platform (such as an Operation, Administration and Management (OAM) platform), or an NRF.
  • OAM Operation, Administration and Management
  • NRF Network-to-Network Interface
  • the PCF may request the centralized control network element for domain name information, or the centralized control network element may actively send the domain name information to the PCF.
  • the PCF may also request the centralized control network element to obtain the domain name range of the domain name, or the centralized control network element may actively send the domain name range to the PCF.
  • Method 2 The PCF receives the service description information corresponding to the domain name and the service location corresponding to the service description information from the centralized control network element, and determines the domain name information of the domain name according to the service description information and the service location.
  • the PCF determines that the domain name information of the domain name of the service corresponding to the service description information is used to indicate that there are multiple application servers corresponding to the domain name; when the service description information corresponds to When there is only one service location, the PCF determines that the domain name information of the domain name of the service corresponding to the service description information is used to indicate that there is one application server corresponding to the domain name.
  • Step 402a the PCF sends domain name information to the UE.
  • the UE can receive the domain name information.
  • the domain name information is used by the UE to determine whether to send the first message, and the first message is used to query the IP address corresponding to the domain name.
  • the PCF may also determine the intersection area between the registration area of the UE and the domain name range of the domain name, and then the PCF sends the intersection area to the UE.
  • the AMF may determine the intersection area between the registration area of the UE and the domain name range of the domain name, and then the AMF sends the intersection area to the UE.
  • intersection area can be included in the domain name information, or can be used as an independent cell.
  • the PCF or AMF sends the domain name and the corresponding intersection area to the UE.
  • the domain name information can be issued to the UE by the PCF through the UE policy.
  • the UE policy may specifically be a UE Route Selection Policy (URSP), that is, the URSP includes domain name information.
  • URSP UE Route Selection Policy
  • step 403a the UE determines that it moves.
  • the movement of the UE here may be cell-granular movement, that is, when the UE moves from one cell to another cell, the UE determines that the movement occurs.
  • the movement of the UE here may also be a movement of TA granularity, that is, when the UE moves from one TA to another TA, the UE determines that the movement occurs.
  • the movement of the UE here may also be a movement of DNAI granularity, or understood as: the movement of the UE causes the corresponding DNAI change of the UE. That is, when the UE moves from one DNAI to another DNAI, the UE determines that the movement occurs.
  • the movement of the UE with the granularity of DNAI refers to the movement between the UPF corresponding to the DNAI of the UE, that is, the UE moves out of the UPF corresponding to the DNAI.
  • the UE can sense DNAI changes in the following ways:
  • Manner 1 Configure the corresponding relationship between TA and DNAI on the UE.
  • Manner 2 SMF sends a DNAI change notification to the UE. That is, when the SMF detects a change in DNAI, it sends a notification to the UE.
  • the movement of the UE here can also be a movement of the granularity of the intersection area between the UE's registration area and the domain name range, that is, for a certain domain name, when the UE moves out of the intersection area between the UE's registration area and the domain name range When the time, the UE determines that it is moving.
  • Step 404a In the case that the retention time of the DNS resource record corresponding to the domain name of the application has not expired, the UE determines that the first condition is met, and then sends a first message to the DNS server. The first message is used to query the domain name corresponding to the domain name. IP address.
  • the first condition here is: there are multiple application servers corresponding to the domain name.
  • the first condition is: there are multiple application servers corresponding to the domain name, and the UE has moved out of the intersection area, and the intersection area is the intersection area between the registration area of the UE and the domain name range of the domain name.
  • the first implementation method as long as it is determined that there are multiple application servers corresponding to the domain name, it is determined that the first condition is satisfied, and it is not necessary to judge whether other conditions are satisfied, such as judging whether the UE has moved out of the intersection area.
  • the second implementation method on the one hand, it is necessary to determine that there are multiple application servers corresponding to the domain name, and on the other hand, it is also necessary to determine that the UE moves out of the intersection area. Therefore, the conditions of the first realization method are more relaxed and the judgment actions are less, and the conditions of the second realization method are more stringent and the judgment actions are more.
  • This second implementation method can reduce the number of times the UE initiates DNS queries.
  • the DNS server can be an application server deployed by a third party or an operator, or it can be integrated as a function on PCF, AMF, or SMF, and the DNS server can also be a configuration server or an enable server in the MEC platform.
  • Step 405a The DNS server sends a second message to the UE, and correspondingly, the UE can receive the second message.
  • the DNS server will re-send the IP address to the UE.
  • the second message includes the IP address corresponding to the domain name, the application server indicated by the IP address corresponds to the location of the UE after it has moved, and the IP address may be the IP address corresponding to the domain name sent to the UE last time. The address is the same, it may be different.
  • the second message may also include the domain name.
  • the DNS server when the IP address corresponding to the domain name queried by the DNS server is different from the IP address corresponding to the domain name sent to the UE last time, the DNS server will resend the IP address to the UE; when the DNS server queries When the IP address corresponding to the domain name is the same as the IP address corresponding to the domain name sent to the UE last time, the DNS server will not re-send the IP address to the UE, but send an indication message, which is used to indicate the domain name The IP address of the corresponding application server has not changed, or the indication information is used to instruct the UE to use the original DNS resource record.
  • the second message may include indication information, and may also include an IP address. Further, the second message may also include the domain name.
  • the UE may also update the DNS resource record according to the IP address.
  • one update method is: replacing the IP address in the original DNS resource record with the newly received IP address.
  • another update method is: delete the original DNS resource record, and regenerate a DNS resource record, which contains the domain name and the newly received IP address.
  • the second message also contains a TTL, the TTL corresponding to the DNS resource record also needs to be updated.
  • another update method is: the UE deletes the original DNS resource record before sending 404a, and generates a new DNS resource record after receiving 405a.
  • the above-mentioned first message is a DNS query request, or a DNS query message, or a query request, or a query message.
  • the aforementioned second message is a DNS query response, or a DNS response message, or a query response, or a response message.
  • the UE when the UE moves, if the retention time of the DNS resource record corresponding to the applied domain name does not expire at the location after the move, the UE will use the IP address in the DNS resource record for service access at this time. , The UE does not access the application server corresponding to the location where the UE is located after moving, and therefore cannot achieve nearby access.
  • the UE after the UE moves, if the retention time of the DNS resource record does not expire, as long as the first condition is met, the UE will initiate a query to the DNS server for the IP address corresponding to the domain name, and the IP The application server indicated by the address corresponds to the location of the UE after it has moved, thereby realizing nearby access to the service.
  • any of the steps described above for the PCF to send relevant information to the UE may be actually executed by the PCF sending the information to the UE through other network elements, such as AMF and RAN.
  • this application provides yet another DNS query method.
  • the method can be executed by the DNS server and the UE, and can also be executed by components (such as chips, circuits, etc.) used for the DNS server and components (such as chips, circuits, etc.) used for the UE.
  • the following takes the method executed by the DNS server and the UE as an example for description.
  • the method includes the following steps:
  • step 401b the UE sends a DNS query request to the DNS server, and the DNS query request includes the domain name of the application.
  • the DNS server can receive the DNS query request.
  • Step 402b The DNS server sets a TTL according to the domain name information of the domain name, where the TTL is the TTL of the DNS resource record corresponding to the domain name.
  • the TTL is set to be less than a preset threshold. For another example, if the domain name information indicates that there is one application server corresponding to the domain name, then the TTL is set to be greater than a preset threshold.
  • the DNS server may obtain the preset threshold through a pre-configuration method.
  • Step 403b The DNS server sends the IP address and TTL corresponding to the domain name to the UE.
  • the TTL is used by the UE to determine whether to send a first message, and the first message is used to query the IP address corresponding to the domain name.
  • the UE can receive the IP address and TTL corresponding to the domain name.
  • step 404b the UE determines that it moves.
  • step 403a of the embodiment in FIG. 4A For the implementation method of this step, refer to step 403a of the embodiment in FIG. 4A.
  • Step 405b In the case that the retention time of the DNS resource record corresponding to the domain name of the application has not expired, the UE determines that the first condition is satisfied, and then sends a first message to the DNS server, and the first message is used to query the domain corresponding to the domain name. IP address.
  • the first condition here is: the TTL of the DNS resource record is less than the preset threshold.
  • the TTL is the TTL sent to the UE in step 403b.
  • the first condition may also be: the TTL of the DNS resource record is less than the preset threshold, and the UE has moved out of the intersection area between the registration area of the UE and the domain name range of the domain name. That is, before step 401b described in this method, the AMF or PCF may also determine the intersection area between the registration area of the UE and the domain name range of the domain name, and send the intersection area to the UE. For details, refer to the description of step 402a.
  • step 406b the DNS server sends a second message to the UE, and correspondingly, the UE can receive the second message.
  • This step is the same as step 405a in the embodiment of FIG. 4A, and reference may be made to the foregoing description.
  • the UE can obtain the preset threshold of TTL through, but not limited to, the following methods:
  • Method 1 Pre-configuration method.
  • the preset threshold is configured on the UE.
  • Manner 2 In the process, the AMF or SMF sends the preset threshold to the UE.
  • a preset threshold is configured on the AMF; in the registration process, the AMF sends the preset threshold to the UE through a registration acceptance message.
  • a preset threshold is configured on the UDM; in the registration process, the AMF obtains the preset threshold from the UDM, and sends the preset threshold to the UE through a registration acceptance message.
  • a preset threshold is configured on the SMF; in the session establishment process, the SMF sends the preset threshold to the UE through a registration acceptance message.
  • a preset threshold is configured on the UDM; in the session establishment process, the SMF obtains the preset threshold from the UDM, and sends the preset threshold to the UE through a session establishment acceptance message.
  • the UE when the UE moves, if the retention time of the DNS resource record corresponding to the applied domain name does not expire at the location after the move, the UE will use the IP address in the DNS resource record for service access at this time. , The UE does not access the application server corresponding to the location where the UE is located after moving, and therefore cannot achieve nearby access.
  • the UE after the UE moves, if the retention time of the DNS resource record does not expire, as long as the first condition is met, the UE will initiate a query to the DNS server for the IP address corresponding to the domain name, and the IP The application server corresponding to the address corresponds to the location of the UE after it has moved, thereby realizing nearby access to the service.
  • FIG. 5 it is a schematic flowchart of another DNS query method provided by this application.
  • This embodiment is a specific implementation of the embodiment shown in FIG. 4A.
  • the method includes the following steps:
  • Step 500 The MEC platform sends a registration message to the PCF.
  • the PCF can receive the registration message.
  • the registration message carries domain name information.
  • the registration message may specifically be an application function request message (AF request).
  • AF request application function request message
  • the registration message may also carry a domain name range.
  • the PCF saves the corresponding relationship between the domain name information and the domain name range.
  • the registration message can be sent directly to the PCF by the MEC platform, or sent to the PCF via the NEF.
  • step 501 the AMF sends a UE policy association request to the PCF. Accordingly, the PCF can receive the UE policy association request.
  • the UE policy association request carries a permanent subscription identifier (Subscription Permanent Identifier, SUPI), registration area, access type (access type), user location information (User location information, ULI), and radio access technology type (Radio Access Technology type, RAT type) and other information.
  • SUPI Subscriber Permanent Identifier
  • ULI User Location information
  • RAT Radio Access Technology type
  • the AMF sends a UE policy association request to the PCF during the registration process of the UE. That is, after the AMF receives the registration request sent by the UE, it sends a UE policy association request to the PCF.
  • the AMF also sends the registration area to the PCF.
  • the UE policy association request can be described as Npcf_UEPolicyControl_Create Request.
  • step 502 the PCF returns a UE policy association response to the AMF, and accordingly, the AMF can receive the UE policy association response.
  • the UE policy association response carries a UE policy association ID (UE policy association ID), and the UE policy association ID is used to index the UE policy of the UE on the PCF.
  • UE policy association ID UE policy association ID
  • the UE policy association response can be described as Npcf_UEPolicyControl_Create Response.
  • step 503a the PCF determines the intersection area between the registration area of the UE and the domain name range of the domain name.
  • step 503a can be executed.
  • the PCF can determine the domain name range according to the domain name range in step 500.
  • This step is optional.
  • step 503 the PCF determines the UE policy.
  • the PCF determines the UE policy according to the domain name information in the registration message in step 500 and the SUPI obtained in step 501, that is, determines the domain name information related to a certain UE from multiple domain names.
  • the UE policy includes domain name information.
  • the UE policy includes domain name information, the intersection area between the registration area of the UE and the domain name range of the domain name.
  • the UE strategy can be implemented by URSP. That is, the URSP includes domain name information, and optionally also includes the intersection area between the registration area of the UE and the domain name range of the domain name.
  • step 504 the PCF sends a delivery message to the AMF, which carries the UE policy.
  • the AMF can receive the delivery message.
  • the transfer message can be described as Namf_Communication_N1N2MessageTransfer.
  • Step 505 When the UE is in an idle state, the AMF triggers paging to the UE.
  • This step is optional.
  • Step 506 When the UE is in the connected state, the AMF sends the UE policy to the UE.
  • Step 507 The UE sends a response message to the AMF.
  • the UE after receiving the UE policy, the UE sends a response message to the AMF.
  • This step is optional.
  • step 508 the AMF sends a response message to the PCF.
  • the AMF After the AMF receives the UE policy, it sends a response message to the PCF.
  • This step is optional.
  • the response message can be described as Namf_Communication_N1MessageNotify.
  • step 509 the UE determines that it moves.
  • step 403a of the embodiment in FIG. 4A For the implementation method of this step, refer to step 403a of the embodiment in FIG. 4A.
  • step 510 the UE determines to re-initiate the DNS query.
  • the following describes how the UE determines to re-initiate the DNS query in different situations.
  • the IP address corresponding to the domain name in the DNS resource record is invalid, and the UE determines to re-initiate the DNS query to obtain the IP address corresponding to the domain name again.
  • this application provides two different implementation methods to determine whether to re-initiate the DNS query.
  • Method 1 The UE determines whether to re-initiate the DNS query according to the domain name information.
  • This method is aimed at the situation where the UE receives domain name information.
  • the UE When the UE moves, it is judged according to the domain name information whether the domain name corresponding to the session of the UE needs to re-initiate the DNS query. If the domain name information indicates that there are multiple application servers corresponding to the domain name, that is, there are multiple IP addresses corresponding to the application servers, it is determined to re-initiate a DNS query for the domain name. If the domain name information indicates that there is one application server corresponding to the domain name, that is, there is one IP address corresponding to the application server, it is determined not to initiate a DNS query for the domain name.
  • the session of the UE has service 1, service 2, and service 3, corresponding to domain name 1, domain name 2, and domain name 3, respectively, and the respective domain name information indicates that there are multiple, one, and one IP addresses corresponding to the application server. Then, when the UE moves, the UE only needs to re-initiate the DNS query for the domain name 1, but does not need to initiate the DNS query for the domain name 2 and the domain name 3.
  • Method 2 The UE determines whether to re-initiate the DNS query according to the domain name information and the intersection area between the registration area of the UE and the domain name range of the domain name.
  • This method is aimed at the situation where the UE receives the domain name information and the intersection area between the registration area of the UE and the domain name range of the domain name.
  • the UE moves, according to the domain name information and the intersection area between the registration area of the UE and the domain name range of the domain name, it is judged whether the domain name corresponding to the session of the UE needs to re-initiate the DNS query.
  • the UE determines that the UE has moved out of the intersection area between the registration area of the UE and the domain name range of the domain name, and the domain name information indicates that the domain name corresponds to multiple application servers, then the UE determines to re-initiate a DNS query for the domain name; otherwise, the above conditions are not met , The UE does not initiate a DNS query for the domain name.
  • the UE’s session has service 1, service 2, and service 3, which correspond to domain name 1, domain name 2, and domain name 3, respectively.
  • the respective domain name information indicates that the IP address corresponding to the application server is multiple, 1, and 1, respectively.
  • the intersection area between the registration area and the domain name range of the domain name is ⁇ TA1, TA2 ⁇ , ⁇ PLMN ⁇ , ⁇ TA1; TA3, TA4, TA5, TA8 ⁇ .
  • domain name 1 when the UE moves out of the intersection area of domain name 1, that is ⁇ TA1, TA2 ⁇ , just re-initiate DNS query; for domain name 2, the domain name information of domain name 2 indicates that the IP address corresponding to the application server is 1 , There is still no need to initiate a DNS query; for domain name 3, since the domain name information of domain name 3 indicates that the IP address corresponding to the application server is 1, although the UE moves out of the intersection area of domain name 3, there is still no need to initiate a DNS query.
  • Step 511 The UE initiates a DNS query process.
  • the UE After the UE initiates the DNS query process, it can retrieve the IP address and TTL corresponding to the domain name, and then the UE updates the DNS resource record according to the IP address and TTL.
  • the UE uses the IP address in the updated DNS resource record to access the service, and the new IP address is the IP address of the application server closest to the UE, thereby realizing the nearby access service of the UE.
  • the PCF in the embodiment of FIG. 5 determines the intersection area between the registration area of the UE and the domain name range of the domain name. Modified to: the AMF determines the intersection area between the registration area of the UE and the domain name range of the domain name and sends it To UE.
  • Delete step 503a, and the UE policies of steps 503, 504, and 506 do not include the intersection area between the registration area of the UE and the domain name range of the domain name.
  • step 501 the registration area (RA) of the UE is not carried.
  • the domain name range can be sent to AMF in step 504 or the domain name range can be sent to AMF through a new step; for example, the domain name range can be sent to AMF in step 502.
  • AMF determines the intersection area between the registration area of the UE and the domain name range of the domain name, and sends the intersection area to the UE.
  • the specific implementation may be that the AMF modifies the UE policy in step 504 so that the UE policy includes the intersection area; it may also be that the AMF sends the intersection area to the UE through a registration acceptance message. This process occurs after step 502 and before step 503.
  • the MEC platform actively sends a registration message to the PCF, which is modified as follows: the PCF actively requests domain name information from the centralized control network element, and optionally also requests domain name range.
  • Step 500a to step 500b are added, and step 500a to step 500b are executed in any step before step 503a.
  • the PCF sends a domain name query request to the centralized control network element.
  • the domain name query request is used to request domain name information, or the domain name query request is used to request domain name information and domain name range.
  • step 500b the centralized control network element sends a domain name query response to the PCF, where the domain name query response includes domain name information, or the domain name query response includes domain name information and a domain name range.
  • the interaction between the PCF and the centralized control network element can be implemented through NEF.
  • the registration message in step 500 carries domain name information and domain name range (optional), and is modified as follows: the registration message does not carry domain name information, but carries location (DNAI) and service Descriptive information and domain name range (optional).
  • the service description information here can be represented by any one or more of the following: application identifier (application identifier), data network name (Data Network Name, DNN), single network slice selection assistance information (single network slice selection assistance information, S- NSSAI), domain name, etc.
  • the registration message in step 500 does not carry domain name information, but carries location (DNAI) and service description information, and optionally, also carries domain name range.
  • PCF determines the domain name information based on the received location and service description information.
  • the PCF determines that the domain name information of the domain name of the service corresponding to the service description information indicates that the application server corresponds to multiple IP addresses; when there is only one location corresponding to the service description information , The PCF determines that the domain name information of the domain name of the service corresponding to the service description information indicates that the IP address corresponding to the application server is one.
  • the MEC platform actively sends a registration message to the PCF, which is modified as follows: the PCF actively requests the location (DNAI), service description information, and domain name range (optional) from the centralized control network element.
  • the PCF actively requests the location (DNAI), service description information, and domain name range (optional) from the centralized control network element.
  • Step 500c to step 500d are added, and step 500c to step 500d are executed in any step before step 503a.
  • step 500c the PCF sends a domain name query request to the centralized control network element, where the domain name query request is used to request the location, service description information, and domain name range (optional).
  • Step 500d The centralized control network element sends a domain name query response to the PCF.
  • the domain name query response includes location, service description information, and domain name range (optional).
  • the PCF determines that the domain name information of the domain name of the service corresponding to the service description information indicates that the application server corresponds to multiple IP addresses; when there is only one location corresponding to the service description information , The PCF determines that the domain name information of the domain name of the service corresponding to the service description information indicates that the IP address corresponding to the application server is one.
  • FIG. 6 a schematic flowchart of another DNS query method provided by this application.
  • This embodiment is a specific implementation of the embodiment shown in FIG. 4B.
  • This process occurs when the UE has established a protocol data unit (protocol data unit, PDU) session.
  • PDU protocol data unit
  • the corresponding services are all running on the PDU session.
  • the method includes the following steps:
  • step 600 the DNS server saves the domain name information.
  • the DNS server can obtain the above-mentioned domain name information through a management and control platform (such as an OAM platform).
  • a management and control platform such as an OAM platform.
  • Step 601 The UE sends a DNS query request to the DNS server, carrying the domain name.
  • Step 602 The DNS server sets the value of TTL according to the domain name information.
  • the DNS server sets TTL, which is described as follows:
  • the value of the TTL is set to be less than the preset threshold.
  • the value of the TTL is set to be greater than the preset threshold.
  • Step 603 The DNS server sends a DNS query response to the UE.
  • the UE can receive the DNS query response.
  • the DNS query response includes the IP address and TTL corresponding to the domain name.
  • step 604 the UE determines that it moves.
  • step 509 for the specific implementation manner of this step, reference may be made to the related description of step 509 in the embodiment of FIG. 5, which will not be repeated here.
  • step 605 the UE determines to re-initiate the DNS query.
  • the UE determines that the domain name information indicates that there are multiple IP addresses corresponding to the application server, and then determines to re-initiate the DNS query. Conversely, when the value of TTL is greater than the preset threshold, the UE determines that the domain name information indicates that the IP address corresponding to the application server is 1, and then determines not to initiate a DNS query.
  • the above description method can also be described as that when the value of TTL is less than the preset threshold, the UE determines to re-initiate a DNS query for the domain name corresponding to TTL; on the contrary, when the value of TT; is greater than the preset threshold, the UE Make sure not to re-initiate the DNS query.
  • the UE obtains the preset threshold value reference may be made to the description of step 406b, which will not be repeated here.
  • step 606 the UE initiates a DNS query process.
  • the UE After the UE initiates the DNS query process, it can retrieve the IP address and TTL corresponding to the domain name, and then the UE updates the DNS resource record according to the IP address and TTL.
  • the UE uses the IP address in the updated DNS resource record to access the service, and the new IP address is the IP address of the application server closest to the UE, thereby realizing the nearby access service of the UE.
  • AMF or PCF sends the intersection area of the registration area and domain name range to the UE, and the UE determines whether to re-initiate the DNS query based on the preset threshold and the intersection area.
  • the AMF allocates a registration area for the UE, determines the intersection area between the registration area and the domain name range, and sends the intersection area to the UE through a registration acceptance message.
  • AMF can obtain the domain name range through configuration or from PCF.
  • the AMF sends the registration area to the PCF, and the PCF determines the intersection area according to the registration area and the domain name range, and sends it to the UE in the form of a UE policy, or the PCF sends the intersection area to the AMF, and the AMF sends it to the UE through a registration acceptance message .
  • the PCF can obtain the domain name range through configuration or from the management and control platform.
  • step 605 can be described as: when the value of TTL is less than the preset threshold and the UE moves out of the intersection area corresponding to the domain name, the UE determines to re-initiate the DNS query. Conversely, when the value of TTL is greater than the preset threshold, or the UE does not move out of the intersection area corresponding to the domain name, the UE determines not to re-initiate the DNS query.
  • each network element described above includes hardware structures and/or software modules corresponding to each function.
  • the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software-driven hardware depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered as going beyond the scope of the present invention.
  • a device for implementing any of the above methods.
  • a device is provided that includes units (or means) for implementing each step performed by the terminal device in any of the above methods.
  • another device is also provided, including a unit (or means) for implementing each step performed by the policy control network element in any of the above methods.
  • another device is also provided, including a unit (or means) for implementing each step executed by the DNS server in any of the above methods.
  • FIG. 7 is a schematic diagram of a communication device provided by an embodiment of the application.
  • the device is used for terminal equipment.
  • the device 700 includes a sending unit 710 and a receiving unit 720.
  • the sending unit 710 is configured to send the DNS resource record to the DNS if the first condition is met when the terminal device moves and the retention time of the DNS resource record corresponding to the domain name of the terminal device application has not expired.
  • the server sends a first message, and the first message is used to query the Internet Protocol IP address corresponding to the domain name.
  • the receiving unit 720 is configured to receive a second message sent by the DNS server, where the second message includes an IP address corresponding to the domain name, and the application server indicated by the IP address corresponds to the moved position of the terminal device .
  • the sending unit 710 is configured to send the DNS resource record to the DNS if the first condition is met when the terminal device moves and the retention time of the DNS resource record corresponding to the domain name of the terminal device does not expire.
  • the server sends a first message, and the first message is used to query the Internet Protocol IP address corresponding to the domain name.
  • the receiving unit 720 is configured to receive a second message sent by the DNS server, where the second message includes indication information, and the indication information is used to indicate that the IP address corresponding to the domain name has not changed, and the IP address indicates The application server of corresponds to the position of the terminal device after it has moved.
  • the first condition includes any one of the following: there are multiple application servers corresponding to the domain name; or, there are multiple application servers corresponding to the domain name, and the terminal device is removed
  • the intersection area is an intersection area between the registration area of the terminal device and the domain name range of the domain name; or, the retention time of the DNS resource record is less than a preset threshold.
  • the movement of the terminal device includes: inter-cell movement of the terminal device; or, the movement of the terminal device causes the data network access identifier DNAI corresponding to the terminal device to change; or , The terminal device moves between tracking areas; or, the terminal device moves out of the intersection area between the registration area of the terminal device and the domain name range of the domain name.
  • FIG. 8 is a schematic diagram of a communication device provided by an embodiment of the application.
  • the device is used for a policy control network element or a DNS server.
  • the device 800 includes an acquiring unit 810 and a sending unit 820.
  • a determining unit 830 may also be included.
  • the obtaining unit 810 is configured to obtain domain name information of an application of the terminal device, where the domain name information is used to indicate whether there are multiple application servers corresponding to the domain name.
  • the sending unit 820 is configured to send the domain name information to the terminal device, where the domain name information is used by the terminal device to determine whether to send a first message, and the first message is used to query the IP address corresponding to the domain name.
  • the determining unit 830 is configured to determine the intersection area between the registration area of the terminal device and the domain name range of the domain name; the sending unit 820 is further configured to send the terminal device to the terminal device.
  • the intersection area, the intersection area is used by the terminal device to determine whether to send the first message.
  • the acquiring unit 810 is specifically configured to receive the domain name information from the centralized control network element; or, receive the service description information corresponding to the domain name and the service description information corresponding to the centralized control network element.
  • the business location of, the domain name information is determined according to the business description information and the business location.
  • the domain name information includes the domain name and indication information, and the indication information is used to indicate whether there are multiple application servers corresponding to the domain name.
  • FIG. 9 is a schematic diagram of a communication device provided by an embodiment of the application.
  • the device is used for a DNS server.
  • the device 900 includes a receiving unit 910, a sending unit 920, and a determining unit 930.
  • the receiving unit 910 is configured to receive a DNS query request from a terminal device, where the DNS query request includes a domain name of an application of the terminal device.
  • the determining unit 930 is configured to set a retention time according to the domain name information of the domain name, where the retention time is the retention time of the DNS resource record corresponding to the domain name.
  • the sending unit 920 is configured to send the Internet Protocol IP address corresponding to the domain name and the retention time to the terminal device, where the retention time is used by the terminal device to determine whether to send a first message, and the first message is used To query the IP address corresponding to the domain name.
  • the determining unit 930 is specifically configured to: if the domain name information indicates that there are multiple application servers corresponding to the domain name, set the retention time to be less than a preset threshold; or, if the domain name information The domain name information indicates that there is one application server corresponding to the domain name, and the retention time is set to be greater than a preset threshold.
  • each unit in the device can be all implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; part of the units can also be implemented in the form of software called by the processing elements, and some of the units can be implemented in the form of hardware.
  • each unit can be a separate processing element, or it can be integrated in a certain chip of the device for implementation.
  • it can also be stored in the memory in the form of a program, which is called and executed by a certain processing element of the device.
  • each step of the above method or each of the above units may be implemented by an integrated logic circuit of hardware in a processor element or implemented in a form of being called by software through a processing element.
  • the unit in any of the above devices may be one or more integrated circuits configured to implement the above methods, for example: one or more application specific integrated circuits (ASICs), or, one or Multiple microprocessors (digital singnal processors, DSPs), or, one or more field programmable gate arrays (Field Programmable Gate Arrays, FPGAs), or a combination of at least two of these integrated circuits.
  • ASICs application specific integrated circuits
  • DSPs digital singnal processors
  • FPGAs Field Programmable Gate Arrays
  • the unit in the device can be implemented in the form of a processing element scheduler
  • the processing element can be a general-purpose processor, such as a central processing unit (CPU) or other processors that can call programs.
  • CPU central processing unit
  • these units can be integrated together and implemented in the form of a system-on-a-chip (SOC).
  • the above receiving unit is an interface circuit of the device for receiving signals from other devices.
  • the receiving unit is an interface circuit used by the chip to receive signals from other chips or devices.
  • the above unit for sending is an interface circuit of the device for sending signals to other devices.
  • the sending unit is an interface circuit used by the chip to send signals to other chips or devices.
  • the terminal equipment includes: an antenna 1010, a radio frequency device 1020, and a signal processing part 1030.
  • the antenna 1010 is connected to the radio frequency device 1020.
  • the radio frequency device 1020 receives the information sent by the access network device through the antenna 1010, and sends the information sent by the access network device to the signal processing part 1030 for processing.
  • the signal processing part 1030 processes the information of the terminal equipment and sends it to the radio frequency device 1020.
  • the radio frequency device 1020 processes the information of the terminal equipment and sends it to the access network equipment via the antenna 1010.
  • the signal processing part 1030 is used to realize the processing of each communication protocol layer of the data.
  • the signal processing part 1030 may be a subsystem of the terminal device, and the terminal device may also include other subsystems, such as a central processing subsystem, which is used to process the terminal device operating system and application layer; another example is peripheral sub-systems.
  • the system is used to realize the connection with other equipment.
  • the signal processing part 1030 may be a separately provided chip.
  • the above devices may be located in the signal processing part 1030.
  • the signal processing part 1030 may include one or more processing elements 1031, for example, including a main control CPU and other integrated circuits.
  • the signal processing part 1030 may further include a storage element 1032 and an interface circuit 1033.
  • the storage element 1032 is used to store data and programs.
  • the program used to execute the method executed by the terminal device in the above method may or may not be stored in the storage element 1032, for example, stored in a memory other than the signal processing part 1030 During use, the signal processing part 1030 loads the program into the cache for use.
  • the interface circuit 1033 is used to communicate with the device.
  • the above device may be located in the signal processing part 1030, the signal processing part 1030 may be realized by a chip, the chip includes at least one processing element and an interface circuit, wherein the processing element is used to perform each step of any method executed by the above terminal device, the interface The circuit is used to communicate with other devices.
  • the unit that implements each step in the above method can be implemented in the form of a processing element scheduler.
  • the device includes a processing element and a storage element, and the processing element calls a program stored by the storage element to execute the above method embodiments.
  • the storage element may be a storage element whose processing element is on the same chip, that is, an on-chip storage element.
  • the program used to execute the method executed by the terminal device in the above method may be a storage element on a different chip from the processing element, that is, an off-chip storage element.
  • the processing element calls or loads a program from the off-chip storage element on the on-chip storage element to call and execute the method executed by the terminal device in the above method embodiment.
  • the unit of the terminal device that implements each step in the above method may be configured as one or more processing elements, and these processing elements are provided on the signal processing part 1030, where the processing elements may be integrated circuits, such as : One or more ASICs, or, one or more DSPs, or, one or more FPGAs, or a combination of these types of integrated circuits. These integrated circuits can be integrated together to form a chip.
  • the units that implement each step in the above method can be integrated together and implemented in the form of a system-on-a-chip (SOC), and the SOC chip is used to implement the above method.
  • SOC system-on-a-chip
  • the chip can integrate at least one processing element and a storage element, and the processing element can call the stored program of the storage element to implement the method executed by the above terminal device; or, the chip can integrate at least one integrated circuit to implement the above terminal The method executed by the device; or, it can be combined with the above implementations.
  • the functions of some units are implemented in the form of calling programs by processing elements, and the functions of some units are implemented in the form of integrated circuits.
  • the above apparatus may include at least one processing element and an interface circuit, wherein at least one processing element is used to execute any method executed by the terminal device provided in the above method embodiment.
  • the processing element can execute part or all of the steps executed by the terminal device in the first way: calling the program stored in the storage element; or in the second way: combining instructions through the integrated logic circuit of the hardware in the processor element Part or all of the steps executed by the terminal device are executed in a manner; of course, part or all of the steps executed by the terminal device may also be executed in combination with the first manner and the second manner.
  • the processing element here is the same as the above description, and it may be a general-purpose processor, such as a CPU, or one or more integrated circuits configured to implement the above method, such as: one or more ASICs, or, one or more micro-processing DSP, or, one or more FPGAs, etc., or a combination of at least two of these integrated circuit forms.
  • the storage element can be a memory or a collective term for multiple storage elements.
  • the policy control network element includes: a processor 1110, a memory 1120, and an interface 1130, and the processor 1110, a memory 1120, and the interface 1130 are signal-connected.
  • the method for the execution of the policy control network element in the above embodiment can be implemented by the processor 1110 calling a program stored in the memory 1120. That is, the device for the policy control network element includes a memory and a processor, and the memory is used to store a program, and the program is called by the processor to execute the method executed by the policy control network element in the above method embodiment.
  • the processor here may be an integrated circuit with signal processing capability, such as a CPU.
  • the device for the policy control network element may be implemented by one or more integrated circuits configured to implement the above method. For example: one or more ASICs, or, one or more microprocessors DSP, or, one or more FPGAs, etc., or a combination of at least two of these integrated circuit forms. Or, the above implementations can be combined.
  • the DNS server includes: a processor 1210, a memory 1220, and an interface 1230, and the processor 1210, the memory 1220, and the interface 1230 are signal-connected.
  • the method executed by the DNS server in the above embodiment may be implemented by the processor 1210 calling a program stored in the memory 1220. That is, the device for the DNS server includes a memory and a processor, and the memory is used to store a program, which is called by the processor to execute the method executed by the DNS server in the above method embodiment.
  • the processor here may be an integrated circuit with signal processing capability, such as a CPU.
  • the means for the DNS server may be realized by one or more integrated circuits configured to implement the above method. For example: one or more ASICs, or, one or more microprocessors DSP, or, one or more FPGAs, etc., or a combination of at least two of these integrated circuit forms. Or, the above implementations can be combined.
  • the system includes a policy control network element and a mobility management network element.
  • the system also includes terminal equipment.
  • the policy control network element is used to obtain domain name information of the application of the terminal device, the domain name information is used to indicate whether there are multiple application servers corresponding to the domain name; and the domain name information is sent to the mobility management network element.
  • the mobility management network element is configured to send the domain name information to the terminal device, where the domain name information is used by the terminal device to determine whether to send a first message, and the first message is used to query the corresponding domain name IP address.
  • the policy control network element is also used to determine the intersection area between the registration area of the terminal device and the domain name range of the domain name; The intersection area; the mobility management network element is also used to send the intersection area to the terminal device, and the intersection area is used by the terminal device to determine whether to send the first message.
  • the policy control network element is used to obtain the domain name information of the terminal device application, which specifically includes: used to receive the domain name information from the centralized control network element; or, used to receive the domain name information from the centralized control
  • the network element receives the service description information corresponding to the domain name and the service location corresponding to the service description information, and determines the domain name information according to the service description information and the service location.
  • the terminal device is configured to: when the terminal device moves and the retention time of the DNS resource record corresponding to the domain name of the terminal device application does not expire, if it is satisfied
  • the first condition is to send a first message to the DNS server, where the first message is used to query the IP address corresponding to the domain name; and to receive a second message sent by the DNS server, the second message includes information corresponding to the domain name An IP address, where the application server indicated by the IP address corresponds to the position of the terminal device after it has moved.
  • the terminal device is configured to: when the terminal device moves and the retention time of the DNS resource record corresponding to the domain name of the terminal device application does not expire, if it is satisfied
  • the first condition is to send a first message to the DNS server, where the first message is used to query the IP address corresponding to the domain name; and to receive a second message sent by the DNS server, where the second message includes indication information, so
  • the indication information is used to indicate that the IP address corresponding to the domain name has not changed, and the application server indicated by the IP address corresponds to the position of the terminal device after it has moved.
  • the first condition includes any one of the following: there are multiple application servers corresponding to the domain name; or, there are multiple application servers corresponding to the domain name, and the terminal device is removed
  • the intersection area is an intersection area between the registration area of the terminal device and the domain name range of the domain name.
  • the movement of the terminal device includes: inter-cell movement of the terminal device; or, the movement of the terminal device causes the data network access identifier DNAI corresponding to the terminal device to change; or , The terminal device moves between tracking areas; or, the terminal device moves out of the intersection area between the registration area of the terminal device and the domain name range of the domain name.
  • the system includes a terminal device and a DNS server.
  • the DNS server is used for a DNS query request from the terminal device, the DNS query request includes the domain name of the terminal device application; the retention time is set according to the domain name information of the domain name, and the retention time is the The retention time of the DNS resource record corresponding to the domain name; sending the IP address corresponding to the domain name and the retention time to the terminal device; the terminal device is configured to determine whether to send the first message according to the retention time, the The first message is used to query the IP address corresponding to the domain name.
  • the DNS server is configured to set the retention time according to the domain name information of the domain name, specifically including: if the domain name information indicates that there are multiple application servers corresponding to the domain name, then Set the retention time to be less than a preset threshold; or, if the domain name information indicates that there is one application server corresponding to the domain name, set the retention time to be greater than the preset threshold.
  • the computer may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software it can be implemented in the form of a computer program product in whole or in part.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • the computer instructions may be transmitted from a website, computer, server, or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).
  • the various illustrative logic units and circuits described in the embodiments of this application can be implemented by general-purpose processors, digital signal processors, application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, Discrete gates or transistor logic, discrete hardware components, or any combination of the above are designed to implement or operate the described functions.
  • the general-purpose processor may be a microprocessor.
  • the general-purpose processor may also be any traditional processor, controller, microcontroller, or state machine.
  • the processor can also be implemented by a combination of computing devices, such as a digital signal processor and a microprocessor, multiple microprocessors, one or more microprocessors combined with a digital signal processor core, or any other similar configuration. achieve.
  • the aforementioned functions described in this application can be implemented in hardware, software, firmware, or any combination of the three. If implemented in software, these functions can be stored on a computer-readable medium, or transmitted on the computer-readable medium in the form of one or more instructions or codes.
  • Computer-readable media include computer storage media and communication media that facilitate the transfer of computer programs from one place to another. The storage medium can be any available medium that can be accessed by a general-purpose or special computer.
  • Such computer-readable media may include, but are not limited to, RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other device that can be used to carry or store instructions or data structures and Other program code media that can be read by general-purpose or special computers, or general-purpose or special processors.
  • any connection can be appropriately defined as a computer-readable medium, for example, if the software is from a website, server, or other remote source through a coaxial cable, fiber optic computer, twisted pair, or digital subscriber line (DSL) Or transmitted by wireless means such as infrared, wireless and microwave are also included in the definition of computer-readable media.
  • DSL digital subscriber line
  • disks and discs include compressed disks, laser disks, optical discs, digital versatile discs (English: Digital Versatile Disc, abbreviated as: DVD), floppy disks and Blu-ray discs.
  • Disks usually copy data with magnetism.
  • Discs usually use lasers to copy data optically.
  • the combination of the above can also be contained in a computer readable medium.
  • the functions described in this application can be implemented by hardware, software, firmware, or any combination thereof. When implemented by software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on the computer-readable medium.
  • the computer-readable medium includes a computer storage medium and a communication medium, where the communication medium includes any medium that facilitates the transfer of a computer program from one place to another.
  • the storage medium may be any available medium that can be accessed by a general-purpose or special-purpose computer.

Abstract

Provided are a DNS query method and apparatus. The method comprises: when a terminal device is moved and the time to live of a DNS resource record corresponding to a domain name of an application of the terminal device has not expired, if a first condition is satisfied, sending a first message to a DNS server, wherein the first message is used for querying an IP address corresponding to the domain name; and receiving a second message sent by the DNS server, wherein the second message comprises the IP address corresponding to the domain name, and an application server indicated by the IP address corresponds to the position, after movement, of the terminal device. In the solution, after a terminal device is moved, when the time to live of a DNS resource record has not expired, as long as a first condition is satisfied, a query for an IP address corresponding to a domain name is initiated to a DNS server, and an application server indicated by the IP address corresponds to the position, after movement, of the terminal device, thereby realizing nearby access to a service.

Description

一种DNS查询方法及装置A DNS query method and device 技术领域Technical field
本申请涉及移动通信技术领域,尤其涉及一种DNS查询方法及装置。This application relates to the field of mobile communication technology, and in particular to a DNS query method and device.
背景技术Background technique
随着移动手机用户数量的不断增长,各类手机终端支持的业务功能不断增加,例如手机证券、手机浏览、文件下载等功能已逐步成为手机终端,尤其是智能手机的主流应用。在上网过程中,手机需要查询域名对应的应用服务器的互联网协议(internet protocol,IP)地址,以便发送数据包。这项操作需要通过查询域名系统(Domain Name System,DNS)服务器才能完成。As the number of mobile phone users continues to grow, the business functions supported by various mobile phone terminals continue to increase. For example, functions such as mobile securities, mobile browsing, and file download have gradually become mainstream applications for mobile terminals, especially smart phones. In the process of surfing the Internet, the mobile phone needs to query the Internet Protocol (IP) address of the application server corresponding to the domain name in order to send data packets. This operation needs to be completed by querying the Domain Name System (DNS) server.
域名系统是一种分布式的主机信息数据库,提供域名和IP地址之间的映射和转换,可以通过DNS服务器将域名解析为对应的IP地址。终端设备可以通过DNS服务器提供的域名解析服务实现对域名的访问。The domain name system is a distributed host information database that provides mapping and conversion between domain names and IP addresses, and can resolve domain names to corresponding IP addresses through DNS servers. The terminal device can realize the access to the domain name through the domain name resolution service provided by the DNS server.
目前,域名访问的过程如下:以终端设备访问域名A为例,当终端设备访问该域名A时,查询终端设备的DNS资源记录中是否存在该域名A对应的IP地址,如果存在,则终端设备可以直接获取该IP地址,然后通过该IP地址访问该域名A;如果不存在,则终端设备可以向DNS服务器发送域名解析请求,该域名解析请求携带该域名A,由DNS服务器返回该域名A对应的IP地址,然后终端设备可以通过该IP地址访问该域名A。At present, the process of domain name access is as follows: Take the terminal device accessing domain name A as an example. When the terminal device accesses the domain name A, query whether the IP address corresponding to the domain name A exists in the DNS resource record of the terminal device. If it exists, the terminal device You can directly obtain the IP address, and then access the domain name A through the IP address; if it does not exist, the terminal device 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 corresponding domain name A The terminal device can access the domain name A through the IP address.
终端设备在获得域名对应的IP地址后,生成并缓存一条DNS资源记录。该DNS资源记录用于表示域名与IP地址的对应关系。此外,终端设备针对缓存的每条DNS资源记录维护相应的存留时间(time to live,TTL)。After obtaining the IP address corresponding to the domain name, the terminal device generates and caches a DNS resource record. The DNS resource record is used to indicate the correspondence between the domain name and the IP address. In addition, the terminal device maintains a corresponding time to live (TTL) for each cached DNS resource record.
TTL表示IP地址对应的DNS资源记录在终端设备的缓存中的存留或缓存的时间,时间为0代表只能被传输,但是不能被缓存。若在DNS资源记录的TTL内,终端设备需要再次访问该DNS资源记录中的相同域名时,则终端设备可以直接根据DNS资源记录,获取域名对应的IP地址;若超过DNS资源记录的TTL后,当终端设备需要再次访问该域名时,则终端设备需要通过上述过程,通过DNS服务器解析得到域名对应的IP地址。TTL indicates the storage or cache time of the DNS resource record corresponding to the IP address in the cache of the terminal device. A time of 0 means that it can only be transmitted but cannot be cached. If in the TTL of the DNS resource record, when the terminal device needs to access the same domain name in the DNS resource record again, the terminal device can directly obtain the IP address corresponding to the domain name based on the DNS resource record; if the TTL of the DNS resource record is exceeded, When the terminal device needs to access the domain name again, the terminal device needs to resolve the IP address corresponding to the domain name through the DNS server through the above process.
第五代(5th generation,5G)通信中,通过将业务靠近用户来实现为用户提供更可靠、极致的业务体验。也就是说,域名对应的业务可能是分布式部署的。终端设备在不同的位置访问该业务时,通过访问分布式部署的应用服务器,以实现就近访问。然而,对于具有移动性的终端设备,当终端设备在移动之前获得了某个域名对应的DNS资源记录,若该DNS资源记录的TTL在终端设备移动之后仍有效,将导致无法在当前位置就近访问该域名对应的应用服务器的业务。In the 5th generation (5G) communication, by bringing services closer to users, it is possible to provide users with a more reliable and ultimate service experience. In other words, the business corresponding to the domain name may be deployed in a distributed manner. When a terminal device accesses the service at a different location, it can access the distributed application server to achieve nearby access. However, for mobile terminal devices, when the terminal device obtains the DNS resource record corresponding to a certain domain name before the move, if the TTL of the DNS resource record is still valid after the terminal device moves, it will be unable to access at the current location. The service of the application server corresponding to the domain name.
发明内容Summary of the invention
本申请提供一种DNS查询方法及装置,用以实现终端设备就近访问IP地址对应的应用服务器中的业务。This application provides a DNS query method and device, which are used to enable terminal equipment to access services in the application server corresponding to the IP address nearby.
第一方面,本申请提供一种DNS查询方法,包括:在终端设备发生移动、且所述终端设备的应用的域名对应的DNS资源记录的存留时间未超时的情况下,若满足第一条件, 则向DNS服务器发送第一消息,所述第一消息用于查询所述域名对应的IP地址;接收所述DNS服务器发送的第二消息,所述第二消息包括所述域名对应的IP地址,所述IP地址所指示的应用服务器与所述终端设备移动后的位置对应。In the first aspect, this application provides a DNS query method, including: in the case that the terminal device moves and the retention time of the DNS resource record corresponding to the domain name of the terminal device application has not expired, if the first condition is met, Sending a first message to the DNS server, the first message being used to query the IP address corresponding to the domain name; receiving a second message sent by the DNS server, the second message including the IP address corresponding to the domain name, The application server indicated by the IP address corresponds to the moved position of the terminal device.
该方案,终端设备发生移动之后,在DNS资源记录的存留时间未超时的情况下,只要满足第一条件,则终端设备将会向DNS服务器发起查询域名对应的IP地址,且该IP地址所指示的应用服务器与终端设备移动后的位置对应。从而终端设备访问的是与终端设备移动后的位置对应的应用服务器的业务,实现了业务的就近访问。In this solution, after the terminal device is moved, if the retention time of the DNS resource record has not expired, as long as the first condition is met, the terminal device will initiate a query to the DNS server for the IP address corresponding to the domain name, and the IP address indicates The application server corresponds to the location of the terminal device after it has moved. Therefore, what the terminal device accesses is the service of the application server corresponding to the position of the terminal device after it is moved, and the nearby access of the service is realized.
第二方面,本申请提供一种DNS查询方法,包括:在终端设备发生移动、且所述终端设备的应用的域名对应的DNS资源记录的存留时间未超时的情况下,若满足第一条件,则向DNS服务器发送第一消息,所述第一消息用于查询所述域名对应的互联网协议IP地址;接收所述DNS服务器发送的第二消息,所述第二消息包括包含指示信息,所述指示信息用于指示所述域名对应的IP地址没有改变,所述IP地址所指示的应用服务器与所述终端设备移动后的位置对应。In a second aspect, this application provides a DNS query method, which includes: in the case that the terminal device moves and the retention time of the DNS resource record corresponding to the domain name of the terminal device application has not expired, if the first condition is met, Sending a first message to the DNS server, the first message being used to query the Internet Protocol IP address corresponding to the domain name; receiving a second message sent by the DNS server, the second message including the indication information, the The indication information is used to indicate that the IP address corresponding to the domain name has not changed, and the application server indicated by the IP address corresponds to the position of the terminal device after it has moved.
该方案,终端设备发生移动之后,在DNS资源记录的存留时间未超时的情况下,只要满足第一条件,则终端设备将会向DNS服务器发起查询域名对应的IP地址,当查询前后的IP地址不变时,DNS服务器向终端设备发送指示信息,用于指示域名对应的IP地址没有改变,且该IP地址所指示的应用服务器与终端设备移动后的位置对应。从而终端设备访问的是与终端设备移动后的位置对应的应用服务器的业务,实现了业务的就近访问。In this solution, after the terminal device is moved, if the retention time of the DNS resource record has not expired, as long as the first condition is met, the terminal device will initiate a query to the DNS server for the IP address corresponding to the domain name, when the IP address before and after the query When it does not change, the DNS server sends instruction information to the terminal device to indicate that the IP address corresponding to the domain name has not changed, and the application server indicated by the IP address corresponds to the position of the terminal device after it has moved. Therefore, what the terminal device accesses is the service of the application server corresponding to the position of the terminal device after it is moved, and the nearby access of the service is realized.
基于上述第一方面、或第二方面:Based on the above-mentioned first aspect or second aspect:
在一种可能的实现方法中,所述第一条件包括以下任意一项:所述域名对应的应用服务器为多个;或者,所述域名对应的应用服务器为多个、且所述终端设备移出了所述终端设备交集区域,所述交集区域为的注册区域与所述域名的域名范围之间的交集区域;或者,所述DNS资源记录的存留时间小于预设阈值。In a possible implementation method, the first condition includes any one of the following: there are multiple application servers corresponding to the domain name; or, there are multiple application servers corresponding to the domain name, and the terminal device is removed The intersection area of the terminal device is the intersection area between the registration area and the domain name range of the domain name; or, the retention time of the DNS resource record is less than a preset threshold.
在一种可能的实现方法中,所述终端设备发生移动,包括:所述终端设备发生小区间移动;或者,所述终端设备移动使得所述终端设备对应的数据网络接入标识DNAI改变;或者,所述终端设备发生跟踪区域间移动;或者,所述终端设备移出了所述终端设备的注册区域与所述域名的域名范围之间的交集区域。In a possible implementation method, the movement of the terminal device includes: inter-cell movement of the terminal device; or, the movement of the terminal device causes the data network access identifier DNAI corresponding to the terminal device to change; or , The terminal device moves between tracking areas; or, the terminal device moves out of the intersection area between the registration area of the terminal device and the domain name range of the domain name.
第三方面,本申请提供一种DNS查询方法,包括:获取终端设备的应用的域名信息,所述域名信息用于指示域名对应的应用服务器是否为多个;向所述终端设备发送所述域名信息,所述域名信息用于所述终端设备判断是否发送第一消息,所述第一消息用于查询所述域名对应的IP地址。In a third aspect, this application provides a DNS query method, including: obtaining domain name information of an application of a terminal device, where the domain name information is used to indicate whether there are multiple application servers corresponding to the domain name; and sending the domain name to the terminal device Information, the domain name information is used for the terminal device to determine whether to send a first message, and the first message is used for querying the IP address corresponding to the domain name.
该方案,向终端设备发送域名信息,从而终端设备发生移动之后,在DNS资源记录的存留时间未超时的情况下,可以根据域名信息判断是否向DNS服务器发起查询域名对应的IP地址,有助于终端设备实现业务的就近访问。In this solution, domain name information is sent to the terminal device, so that after the terminal device is moved, if the retention time of the DNS resource record has not expired, the domain name information can be used to determine whether to initiate a query to the DNS server for the IP address corresponding to the domain name, which is helpful The terminal equipment realizes the nearby visit of the business.
在一种可能的实现方法中,确定所述终端设备的注册区域与所述域名的域名范围之间的交集区域;向所述终端设备发送所述交集区域,所述交集区域用于所述终端设备判断是否发送所述第一消息。In a possible implementation method, determine the intersection area between the registration area of the terminal device and the domain name range of the domain name; send the intersection area to the terminal device, and the intersection area is used for the terminal The device determines whether to send the first message.
在一种可能的实现方法中,获取应用的域名信息,包括:从集中控制网元接收所述域名信息;或者,从集中控制网元接收所述域名对应的业务描述信息和所述业务描述信息对应的业务位置,根据所述业务描述信息和所述业务位置确定所述域名信息。In a possible implementation method, obtaining the domain name information of the application includes: receiving the domain name information from a centralized control network element; or, receiving the service description information and the service description information corresponding to the domain name from the centralized control network element The corresponding service location determines the domain name information according to the service description information and the service location.
在一种可能的实现方法中,所述域名信息包含所述域名和指示信息,所述指示信息用于指示所述域名对应的应用服务器是否为多个。In a possible implementation method, the domain name information includes the domain name and indication information, and the indication information is used to indicate whether there are multiple application servers corresponding to the domain name.
第四方面,本申请提供一种DNS查询方法,包括:接收来自终端设备的DNS查询请求,所述DNS查询请求包含所述终端设备的应用的域名;根据所述域名的域名信息设置存留时间,所述存留时间为所述域名对应的DNS资源记录的存留时间;向所述终端设备发送所述域名对应的IP地址和所述存留时间,所述存留时间用于所述终端设备判断是否发送第一消息,所述第一消息用于查询所述域名对应的IP地址。In a fourth aspect, this application provides a DNS query method, including: receiving a DNS query request from a terminal device, where the DNS query request includes a domain name of an application of the terminal device; and setting a retention time according to the domain name information of the domain name, The retention time is the retention time of the DNS resource record corresponding to the domain name; the IP address corresponding to the domain name and the retention time are sent to the terminal device, and the retention time is used by the terminal device to determine whether to send the first A message, the first message is used to query the IP address corresponding to the domain name.
该方案,根据域名信息设置存留时间,向终端设备发送该存留时间,从而终端设备发生移动之后,在DNS资源记录的存留时间未超时的情况下,可以根据该存留时间判断是否向DNS服务器发起查询域名对应的IP地址,有助于终端设备实现业务的就近访问。In this solution, the retention time is set according to the domain name information, and the retention time is sent to the terminal device, so that after the terminal device moves, if the retention time of the DNS resource record has not expired, it can be judged whether to initiate a query to the DNS server according to the retention time The IP address corresponding to the domain name helps the terminal device to realize the nearby access of the business.
在一种可能的实现方法中,根据所述域名的域名信息设置存留时间,包括:若所述域名信息指示所述域名对应的应用服务器为多个,则设置所述存留时间小于预设阈值;或者,若所述域名信息指示所述域名对应的应用服务器为一个,则设置所述存留时间大于预设阈值。In a possible implementation method, setting the retention time according to the domain name information of the domain name includes: if the domain name information indicates that there are multiple application servers corresponding to the domain name, setting the retention time to be less than a preset threshold; Alternatively, if the domain name information indicates that there is one application server corresponding to the domain name, the retention time is set to be greater than a preset threshold.
第五方面,本申请提供一种通信装置,该装置可以是终端设备,还可以是用于终端设备的芯片。该装置具有实现上述第一方面、或第二方面、或第一方面的各实施例、或第二方面的各实施例的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a fifth aspect, the present application provides a communication device, which may be a terminal device or a chip for the terminal device. The device has the function of realizing the foregoing first aspect, or second aspect, or each embodiment of the first aspect, or each embodiment of the second aspect. This function can be realized by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-mentioned functions.
第六方面,本申请提供一种通信装置,该装置可以是策略控制网元或DNS服务器,还可以是用于策略控制网元或DNS服务器的芯片。该装置具有实现上述第三方面或第三方面的各实施例的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a sixth aspect, this application provides a communication device, which may be a policy control network element or a DNS server, or a chip used for a policy control network element or a DNS server. The device has the function of realizing the foregoing third aspect or the embodiments of the third aspect. This function can be realized by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-mentioned functions.
第七方面,本申请提供一种通信装置,该装置可以是DNS服务器,还可以是用于DNS服务器的芯片。该装置具有实现上述第四方面或第四方面的各实施例的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a seventh aspect, the present application provides a communication device, which may be a DNS server or a chip used for the DNS server. The device has the function of realizing the foregoing fourth aspect or the embodiments of the fourth aspect. This function can be realized by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-mentioned functions.
第八方面,本申请提供一种通信装置,包括:处理器和存储器;该存储器用于存储计算机执行指令,当该装置运行时,该处理器执行该存储器存储的该计算机执行指令,以使该装置执行如上述各方面所述的方法。该装置可以是终端设备、或用于终端设备的芯片、或策略控制网元、或用于策略控制网元的芯片、或DNS服务器、或用于DNS服务器的芯片。In an eighth aspect, the present application provides a communication device, including: a processor and a memory; the memory is used to store computer execution instructions, and when the device is running, the processor executes the computer execution instructions stored in the memory to enable the The device executes the methods described in the above aspects. The device may be a terminal device, or a chip used for a terminal device, or a policy control network element, or a chip used for a policy control network element, or a DNS server, or a chip used for a DNS server.
第九方面,本申请提供一种通信装置,包括:包括用于执行上述各方面的各个步骤的单元或手段(means)。该装置可以是策略控制网元、或终端设备、或DNS服务器。In a ninth aspect, the present application provides a communication device, including: including units or means for performing each step of the above-mentioned aspects. The device can be a policy control network element, or a terminal device, or a DNS server.
第十方面,本申请提供一种通信装置,包括处理器和接口电路,所述处理器用于通过接口电路实现上述各方面所述的方法。该处理器包括一个或多个。该装置可以是用于会话管理网元、或终端设备、或DNS服务器的芯片。In a tenth aspect, the present application provides a communication device including a processor and an interface circuit, and the processor is configured to implement the methods described in the foregoing aspects through the interface circuit. The processor includes one or more. The device may be a chip used for session management network elements, terminal equipment, or DNS server.
第十一方面,本申请提供一种通信装置,包括处理器,用于与存储器相连,用于调用所述存储器中存储的程序,以执行上述各方面所述的方法。该存储器可以位于该装置之内,也可以位于该装置之外。且该处理器包括一个或多个。该装置可以是终端设备、或用于终端设备的芯片、或策略控制网元、或用于策略控制网元的芯片、或DNS服务器、或用于 DNS服务器的芯片。In an eleventh aspect, the present application provides a communication device, including a processor, configured to be connected to a memory, and configured to call a program stored in the memory to execute the methods described in the foregoing aspects. The memory can be located inside the device or outside the device. And the processor includes one or more. The device may be a terminal device, or a chip used for a terminal device, or a policy control network element, or a chip used for a policy control network element, or a DNS server, or a chip used for a DNS server.
第十二方面,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得处理器执行上述各方面所述的方法。In a twelfth aspect, this application also provides a computer-readable storage medium having instructions stored in the computer-readable storage medium, which when run on a computer, cause a processor to execute the methods described in the above aspects.
第十三方面,本申请还提供一种包括指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述各方面所述的方法。In the thirteenth aspect, this application also provides a computer program product including instructions, which when run on a computer, causes the computer to execute the methods described in the above aspects.
第十四方面,本申请还提供一种芯片系统,包括:处理器,用于执行上述各方面所述的方法。In a fourteenth aspect, this application also provides a chip system, including a processor, configured to execute the methods described in the foregoing aspects.
第十五方面,本申请提供一种通信系统,包括策略控制网元和移动性管理网元。可选的,该系统还包括终端设备。In a fifteenth aspect, this application provides a communication system including a policy control network element and a mobility management network element. Optionally, the system also includes terminal equipment.
所述策略控制网元,用于获取终端设备的应用的域名信息,所述域名信息用于指示域名对应的应用服务器是否为多个;向所述移动性管理网元发送所述域名信息;The policy control network element is used to obtain domain name information of the application of the terminal device, the domain name information is used to indicate whether there are multiple application servers corresponding to the domain name; and the domain name information is sent to the mobility management network element;
所述移动性管理网元,用于向所述终端设备发送所述域名信息,所述域名信息用于所述终端设备判断是否发送第一消息,所述第一消息用于查询所述域名对应的互联网协议IP地址。The mobility management network element is configured to send the domain name information to the terminal device, where the domain name information is used by the terminal device to determine whether to send a first message, and the first message is used to query the corresponding domain name Internet Protocol IP address.
在一种可能的实现方法中,所述策略控制网元,还用于确定所述终端设备的注册区域与所述域名的域名范围之间的交集区域;向所述移动性管理网元发送所述交集区域;所述移动性管理网元,还用于向所述终端设备发送所述交集区域,所述交集区域用于所述终端设备判断是否发送所述第一消息。In a possible implementation method, the policy control network element is also used to determine the intersection area between the registration area of the terminal device and the domain name range of the domain name; The intersection area; the mobility management network element is also used to send the intersection area to the terminal device, and the intersection area is used by the terminal device to determine whether to send the first message.
在一种可能的实现方法中,所述策略控制网元,用于获取终端设备的应用的域名信息,具体包括:用于从集中控制网元接收所述域名信息;或者,用于从集中控制网元接收所述域名对应的业务描述信息和所述业务描述信息对应的业务位置,根据业务描述信息和所述业务位置确定所述域名信息。In a possible implementation method, the policy control network element is used to obtain the domain name information of the terminal device application, which specifically includes: used to receive the domain name information from the centralized control network element; or, used to receive the domain name information from the centralized control The network element receives the service description information corresponding to the domain name and the service location corresponding to the service description information, and determines the domain name information according to the service description information and the service location.
在一种可能的实现方法中,所述终端设备,用于:在所述终端设备发生移动、且所述终端设备的应用的域名对应的DNS资源记录的存留时间未超时的情况下,若满足第一条件,向DNS服务器发送第一消息,所述第一消息用于查询所述域名对应的IP地址;接收所述DNS服务器发送的第二消息,所述第二消息包括所述域名对应的IP地址,所述IP地址所指示的应用服务器与所述终端设备移动后的位置对应。In a possible implementation method, the terminal device is configured to: when the terminal device moves and the retention time of the DNS resource record corresponding to the domain name of the terminal device application does not expire, if it is satisfied The first condition is to send a first message to the DNS server, where the first message is used to query the IP address corresponding to the domain name; and to receive a second message sent by the DNS server, the second message includes information corresponding to the domain name An IP address, where the application server indicated by the IP address corresponds to the position of the terminal device after it has moved.
在一种可能的实现方法中,所述终端设备,用于:在所述终端设备发生移动、且所述终端设备的应用的域名对应的DNS资源记录的存留时间未超时的情况下,若满足第一条件,向DNS服务器发送第一消息,所述第一消息用于查询所述域名对应的IP地址;接收所述DNS服务器发送的第二消息,所述第二消息包括包含指示信息,所述指示信息用于指示所述域名对应的IP地址没有改变,所述IP地址所指示的应用服务器与所述终端设备移动后的位置对应。In a possible implementation method, the terminal device is configured to: when the terminal device moves and the retention time of the DNS resource record corresponding to the domain name of the terminal device application does not expire, if it is satisfied The first condition is to send a first message to the DNS server, where the first message is used to query the IP address corresponding to the domain name; and to receive a second message sent by the DNS server, where the second message includes indication information, so The indication information is used to indicate that the IP address corresponding to the domain name has not changed, and the application server indicated by the IP address corresponds to the position of the terminal device after it has moved.
在一种可能的实现方法中,所述第一条件包括以下任意一项:所述域名对应的应用服务器为多个;或者,所述域名对应的应用服务器为多个、且所述终端设备移出了交集区域,所述交集区域为所述终端设备的注册区域与所述域名的域名范围之间的交集区域。In a possible implementation method, the first condition includes any one of the following: there are multiple application servers corresponding to the domain name; or, there are multiple application servers corresponding to the domain name, and the terminal device is removed The intersection area is an intersection area between the registration area of the terminal device and the domain name range of the domain name.
在一种可能的实现方法中,所述终端设备发生移动,包括:所述终端设备发生小区间移动;或者,所述终端设备移动使得所述终端设备对应的数据网络接入标识DNAI改变;或者,所述终端设备发生跟踪区域间移动;或者,所述终端设备移出了所述终端设备的注册区域与所述域名的域名范围之间的交集区域。In a possible implementation method, the movement of the terminal device includes: inter-cell movement of the terminal device; or, the movement of the terminal device causes the data network access identifier DNAI corresponding to the terminal device to change; or , The terminal device moves between tracking areas; or, the terminal device moves out of the intersection area between the registration area of the terminal device and the domain name range of the domain name.
第十六方面,本申请提供一种通信系统,包括终端设备和DNS服务器。所述DNS服务器,用于来自所述终端设备的DNS查询请求,所述DNS查询请求包含所述终端设备的应用的域名;根据所述域名的域名信息设置存留时间,所述存留时间为所述域名对应的DNS资源记录的存留时间;向所述终端设备发送所述域名对应的互联网协议IP地址和所述存留时间;所述终端设备,用于根据所述存留时间判断是否发送第一消息,所述第一消息用于查询所述域名对应的IP地址。In a sixteenth aspect, this application provides a communication system including a terminal device and a DNS server. The DNS server is used for a DNS query request from the terminal device, the DNS query request includes the domain name of the terminal device application; the retention time is set according to the domain name information of the domain name, and the retention time is the The retention time of the DNS resource record corresponding to the domain name; sending the Internet Protocol IP address corresponding to the domain name and the retention time to the terminal device; the terminal device is used to determine whether to send the first message according to the retention time, The first message is used to query the IP address corresponding to the domain name.
在一种可能的实现方法中,所述DNS服务器,用于根据所述域名的域名信息设置存留时间,具体包括:用于若所述域名信息指示所述域名对应的应用服务器为多个,则设置所述存留时间小于预设阈值;或者,用于若所述域名信息指示所述域名对应的应用服务器为一个,则设置所述存留时间大于预设阈值。In a possible implementation method, the DNS server is configured to set the retention time according to the domain name information of the domain name, specifically including: if the domain name information indicates that there are multiple application servers corresponding to the domain name, then Set the retention time to be less than a preset threshold; or, if the domain name information indicates that there is one application server corresponding to the domain name, set the retention time to be greater than the preset threshold.
第十七方面,本申请提供一种通信方法,包括:策略控制网元获取终端设备的应用的域名信息,所述域名信息用于指示域名对应的应用服务器是否为多个;所述策略控制网元向移动性管理网元发送所述域名信息;所述移动性管理网元向所述终端设备发送所述域名信息,所述域名信息用于所述终端设备判断是否发送第一消息,所述第一消息用于查询所述域名对应的互联网协议IP地址。In a seventeenth aspect, this application provides a communication method, including: a policy control network element obtains domain name information of an application of a terminal device, where the domain name information is used to indicate whether there are multiple application servers corresponding to the domain name; the policy control network Element sends the domain name information to the mobility management network element; the mobility management network element sends the domain name information to the terminal device, and the domain name information is used by the terminal device to determine whether to send the first message, the The first message is used to query the Internet Protocol IP address corresponding to the domain name.
在一种可能的实现方法中,所述策略控制网元确定所述终端设备的注册区域与所述域名的域名范围之间的交集区域;向所述移动性管理网元发送所述交集区域;所述移动性管理网元向所述终端设备发送所述交集区域,所述交集区域用于所述终端设备判断是否发送所述第一消息。In a possible implementation method, the policy control network element determines the intersection area between the registration area of the terminal device and the domain name range of the domain name; sends the intersection area to the mobility management network element; The mobility management network element sends the intersection area to the terminal device, where the intersection area is used by the terminal device to determine whether to send the first message.
在一种可能的实现方法中,所述策略控制网元获取终端设备的应用的域名信息,包括:所述策略控制网元从集中控制网元接收所述域名信息;或者,所述策略控制网元从集中控制网元接收所述域名对应的业务描述信息和所述业务描述信息对应的业务位置,根据所述业务描述信息和所述业务位置确定所述域名信息。In a possible implementation method, acquiring, by the policy control network element, the domain name information of the application of the terminal device includes: the policy control network element receives the domain name information from a centralized control network element; or, the policy control network The element receives the service description information corresponding to the domain name and the service location corresponding to the service description information from the centralized control network element, and determines the domain name information according to the service description information and the service location.
在一种可能的实现方法中,在所述终端设备发生移动、且所述终端设备的应用的域名对应的DNS资源记录的存留时间未超时的情况下,若满足第一条件,所述终端设备向DNS服务器发送第一消息,所述第一消息用于查询所述域名对应的IP地址;所述终端设备接收所述DNS服务器发送的第二消息,所述第二消息包括所述域名对应的IP地址,所述IP地址所指示的应用服务器与所述终端设备移动后的位置对应。In a possible implementation method, when the terminal device moves and the retention time of the DNS resource record corresponding to the domain name of the terminal device application does not expire, if the first condition is met, the terminal device Send a first message to the DNS server, the first message is used to query the IP address corresponding to the domain name; the terminal device receives the second message sent by the DNS server, the second message includes the corresponding domain name An IP address, where the application server indicated by the IP address corresponds to the position of the terminal device after it has moved.
在一种可能的实现方法中,在所述终端设备发生移动、且所述终端设备的应用的域名对应的DNS资源记录的存留时间未超时的情况下,若满足第一条件,所述终端设备向DNS服务器发送第一消息,所述第一消息用于查询所述域名对应的IP地址;所述终端设备接收所述DNS服务器发送的第二消息,所述第二消息包括包含指示信息,所述指示信息用于指示所述域名对应的IP地址没有改变,所述IP地址所指示的应用服务器与所述终端设备移动后的位置对应。In a possible implementation method, when the terminal device moves and the retention time of the DNS resource record corresponding to the domain name of the terminal device application does not expire, if the first condition is met, the terminal device Send a first message to the DNS server, the first message is used to query the IP address corresponding to the domain name; the terminal device receives a second message sent by the DNS server, the second message includes indication information, so The indication information is used to indicate that the IP address corresponding to the domain name has not changed, and the application server indicated by the IP address corresponds to the position of the terminal device after it has moved.
附图说明Description of the drawings
图1为本申请适用的一种可能的网络架构示意图;Figure 1 is a schematic diagram of a possible network architecture applicable to this application;
图2为本申请适用的又一种可能的网络架构示意图;Figure 2 is a schematic diagram of another possible network architecture to which this application applies;
图3为本申请提供的一种MEC场景示意图;Figure 3 is a schematic diagram of an MEC scenario provided by this application;
图4A为本申请提供的一种DNS查询方法流程示意图;FIG. 4A is a schematic flowchart of a DNS query method provided by this application;
图4B为本申请提供的又一种DNS查询方法流程示意图;FIG. 4B is a schematic flowchart of another DNS query method provided by this application;
图5为本申请提供的又一种DNS查询方法流程示意图;Figure 5 is a schematic flow diagram of another DNS query method provided by this application;
图6为本申请提供的又一种DNS查询方法流程示意图;Figure 6 is a schematic flow diagram of another DNS query method provided by this application;
图7为本申请提供的一种通信装置示意图;FIG. 7 is a schematic diagram of a communication device provided by this application;
图8为本申请提供的又一种通信装置示意图;FIG. 8 is a schematic diagram of another communication device provided by this application;
图9为本申请提供的又一种通信装置示意图;FIG. 9 is a schematic diagram of another communication device provided by this application;
图10为本申请提供的一种终端设备示意图;FIG. 10 is a schematic diagram of a terminal device provided by this application;
图11为本申请提供的一种策略控制网元示意图;FIG. 11 is a schematic diagram of a policy control network element provided by this application;
图12为本申请提供的一种DNS服务器示意图;Figure 12 is a schematic diagram of a DNS server provided by this application;
图13为本申请提供的一种通信系统示意图;FIG. 13 is a schematic diagram of a communication system provided by this application;
图14为本申请提供的又一种通信系统示意图。FIG. 14 is a schematic diagram of another communication system provided by this application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请作进一步地详细描述。方法实施例中的具体操作方法也可以应用于装置实施例或系统实施例中。其中,在本申请的描述中,除非另有说明,“多个”的含义是两个或两个以上。In order to make the purpose, technical solutions, and advantages of the application more clear, the application will be further described in detail below with reference to the accompanying drawings. The specific operation method in the method embodiment can also be applied to the device embodiment or the system embodiment. Among them, in the description of the present application, unless otherwise specified, "multiple" means two or more.
如图1所示,为基于服务化架构的5G网络架构示意图。图1所示的5G网络架构中可包括三部分,分别是终端设备部分、数据网络(data network,DN)和运营商网络部分。下面对其中的部分网元的功能进行简单介绍说明。As shown in Figure 1, it is a schematic diagram of a 5G network architecture based on a service-oriented architecture. The 5G network architecture shown in FIG. 1 may include three parts, namely a terminal equipment part, a data network (DN), and an operator network part. The functions of some of the network elements are briefly introduced below.
其中,运营商网络可包括以下网元中的一个或多个:网络开放功能(network exposure function,NEF)网元、网络存储功能(Network Repository Function,NRF)网元、策略控制功能(policy control function,PCF)网元、统一数据管理(unified data management,UDM)网元、网络数据分析功能网元(Network Data Analytics Function,NWDAF)网元、应用功能(application function,AF)网元、接入与移动性管理功能(access and mobility management function,AMF)网元、会话管理功能(session management function,SMF)网元、无线接入网(radioaccess network,RAN)、统一的数据存储库(Unified Data Repository,UDR)(图中未示出)以及用户面功能(user plane function,UPF)网元等。上述运营商网络中,除无线接入网部分之外的部分可以称为核心网络部分。Among them, the operator network may include one or more of the following network elements: network exposure function (NEF) network elements, network storage function (Network Repository Function, NRF) network elements, policy control function (policy control function) , PCF) network element, unified data management (UDM) network element, network data analysis function network element (Network Data Analytics Function, NWDAF) network element, application function (AF) network element, access and Mobility management function (access and mobility management function, AMF) network elements, session management function (session management function, SMF) network elements, radio access network (RAN), unified data repository (Unified Data Repository, UDR) (not shown in the figure) and user plane function (UPF) network elements. In the above-mentioned operator network, parts other than the radio access network part may be referred to as the core network part.
终端设备(terminal device),也可以称为用户设备(user equipment,UE),是一种具有无线收发功能的设备,可以部署在陆地上,包括室内或室外、手持或车载;也可以部署在水面上(如轮船等);还可以部署在空中(例如飞机、气球和卫星上等)。所述终端设备可以是手机(mobile phone)、平板电脑(pad)、带无线收发功能的电脑、虚拟现实(virtual reality,VR)终端、增强现实(augmented reality,AR)终端、工业控制(industrial control)中的无线终端、无人驾驶(self driving)中的无线终端、远程医疗(remote medical)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端等。为便于说明,本申请后续用UE代替终端设备进行说明。Terminal device (terminal device), also called user equipment (user equipment, UE), is a device with wireless transceiver function, which can be deployed on land, including indoor or outdoor, handheld or vehicle-mounted; it can also be deployed on water On board (such as ships, etc.); it can also be deployed in the air (such as airplanes, balloons, and satellites, etc.). The terminal device may be a mobile phone (mobile phone), a tablet computer (pad), a computer with wireless transceiver function, a virtual reality (VR) terminal, an augmented reality (AR) terminal, an industrial control (industrial control) Wireless terminals in ), wireless terminals in self-driving, wireless terminals in remote medical, wireless terminals in smart grid, and wireless terminals in transportation safety , Wireless terminals in smart cities, wireless terminals in smart homes, etc. For ease of description, this application will use UE instead of the terminal device for description in the following.
上述终端设备可通过运营商网络提供的接口(例如N1等)与运营商网络建立连接,使用运营商网络提供的数据和/或语音等服务。终端设备还可通过运营商网络访问DN,使用DN上部署的运营商业务,和/或第三方提供的业务。其中,上述第三方可为运营商网络 和终端设备之外的服务方,可为终端设备提供他数据和/或语音等服务。其中,上述第三方的具体表现形式,具体可根据实际应用场景确定,在此不做限制。The above-mentioned terminal equipment can establish a connection with the operator's network through an interface (such as N1, etc.) provided by the operator's network, and use the data and/or voice services provided by the operator's network. The terminal device can also access the DN through the operator's network, and use the operator's service deployed on the DN and/or the service provided by a third party. Among them, the above-mentioned third party may be a service party other than the operator's network and terminal equipment, and may provide other services such as data and/or voice for the terminal equipment. Among them, the specific form of expression of the above-mentioned third party can be determined according to actual application scenarios, and is not limited here.
RAN是运营商网络的子网络,是运营商网络中业务节点与终端设备之间的实施系统。终端设备要接入运营商网络,首先是经过RAN,进而可通过RAN与运营商网络的业务节点连接。本申请中的RAN设备,是一种为终端设备提供无线通信功能的设备,RAN设备也称为接入网设备。本申请中的RAN设备包括但不限于:5G中的下一代基站(g nodeB,gNB)、演进型节点B(evolved node B,eNB)、无线网络控制器(radio network controller,RNC)、节点B(node B,NB)、基站控制器(base station controller,BSC)、基站收发台(base transceiver station,BTS)、家庭基站(例如,home evolved nodeB,或home node B,HNB)、基带单元(baseBand unit,BBU)、传输点(transmitting and receiving point,TRP)、发射点(transmitting point,TP)、移动交换中心等。RAN is a sub-network of an operator's network, and an implementation system between service nodes and terminal equipment in the operator's network. To access the operator's network, the terminal device first passes through the RAN, and then can be connected to the service node of the operator's network through the RAN. The RAN device in this application is a device that provides wireless communication functions for terminal devices, and the RAN device is also called an access network device. The RAN equipment in this application includes but is not limited to: next-generation base stations (gnodeB, gNB), evolved node B (evolved node B, eNB), radio network controller (RNC), node B in 5G (node B, NB), base station controller (BSC), base transceiver station (BTS), home base station (for example, home evolved nodeB, or home node B, HNB), baseband unit (baseBand) unit, BBU), transmission point (transmitting and receiving point, TRP), transmission point (transmitting point, TP), mobile switching center, etc.
AMF网元,移动性管理功能,负责用户的移动性管理,包括移动状态管理,分配用户临时身份标识,认证和授权用户。AMF network element, mobility management function, responsible for user mobility management, including mobility status management, assigning user temporary identities, authenticating and authorizing users.
SMF网元,会话管理功能,负责UPF选择,UPF重选,IP地址分配,负责承载的建立、修改和释放,QoS控制。SMF network element, session management function, responsible for UPF selection, UPF reselection, IP address allocation, responsible for bearer establishment, modification and release, and QoS control.
UPF网元,支持以下全部或者部分功能:将协议数据单元(protocol data unit,PDU)会话与数据网络互连;分组路由和转发(例如,支持对流量进行Uplink classifier后转发到数据网络,支持Branching point以支持multi-homed PDU会话);数据包检测。UPF network elements support all or part of the following functions: Interconnect protocol data unit (PDU) sessions with data networks; packet routing and forwarding (for example, support for Uplink classifier and forwarding of traffic to the data network, support for Branching point to support multi-homed PDU session); data packet inspection.
DN,是位于运营商网络之外的网络,运营商网络可以接入多个DN,DN上可部署多种业务,可为终端设备提供数据和/或语音等服务。例如,DN是某智能工厂的私有网络,智能工厂安装在车间的传感器可为终端设备,DN中部署了传感器的控制服务器,控制服务器可为传感器提供服务。传感器可与控制服务器通信,获取控制服务器的指令,根据指令将采集的传感器数据传送给控制服务器等。又例如,DN是某公司的内部办公网络,该公司员工的手机或者电脑可为终端设备,员工的手机或者电脑可以访问公司内部办公网络上的信息、数据资源等。A DN is a network located outside the operator's network. The operator's network can access multiple DNs, and multiple services can be deployed on the DN, which can provide data and/or voice services for terminal devices. For example, DN is a private network of a smart factory. The sensors installed in the workshop of the smart factory can be terminal devices. A control server for the sensors is deployed in the DN, and the control server can provide services for the sensors. The sensor can communicate with the control server, obtain instructions from the control server, and transmit the collected sensor data to the control server according to the instructions. For another example, the DN is the internal office network of a company. The mobile phones or computers of the employees of the company can be terminal devices, and the mobile phones or computers of the employees can access the information and data resources on the internal office network of the company.
UDM网元,负责管理签约数据,当签约数据修改的时候,负责通知相应的网元。The UDM network element is responsible for managing the contracted data, and when the contracted data is modified, it is responsible for notifying the corresponding network element.
UDR,用于存储和检索签约数据、策略数据和公共架构数据等;供UDM、PCF和NEF获取相关数据。UDR要能够针对不同类型的数据如签约数据、策略数据有不同的数据接入鉴权机制,以保证数据接入的安全性;UDR对于非法的服务化操作或者数据接入请求要能够返回携带合适原因值的失败响应。UDR is used to store and retrieve contract data, policy data and public structure data, etc.; for UDM, PCF and NEF to obtain relevant data. UDR must be able to have different data access authentication mechanisms for different types of data such as contract data and policy data to ensure the security of data access; UDR must be able to return and carry appropriate data for illegal servicing operations or data access requests The failure response for the reason value.
NEF网元,主要用于支持能力和事件的开放。NEF network elements are mainly used to support the opening of capabilities and events.
AF网元,向UE提供某种应用层服务,AF在向UE提供服务时,对QoS策略和计费策略(Charging)有要求,且需要通知网络。同时,AF也需要核心网反馈的应用相关的信息。The AF network element provides certain application layer services to the UE. When the AF provides services to the UE, it has requirements for QoS policies and charging policies (Charging) and needs to notify the network. At the same time, AF also needs application-related information fed back from the core network.
PCF网元,包含策略控制决策和基于流计费控制的功能,包含用户签约数据管理功能,策略控制功能,计费策略控制功能,QoS控制等。PCF network elements include policy control decision-making and flow-based charging control functions, including user subscription data management functions, policy control functions, charging policy control functions, QoS control, etc.
NRF网元,可用于提供网元发现功能,基于其他网元的请求,提供网元类型对应的网元信息。NRF还提供网元管理服务,如网元注册、更新、去注册以及网元状态订阅和推送等。The NRF network element can be used to provide the network element discovery function, and provide the network element information corresponding to the network element type based on the request of other network elements. NRF also provides network element management services, such as network element registration, update, de-registration, and network element status subscription and push.
NWDAF网元,用于根据策略模块PCF请求,提供签约终端的大数据分析信息,帮助PCF优化策略控制;可按照切片维度提供大数据分析信息。The NWDAF network element is used to provide the big data analysis information of the contracted terminal according to the request of the policy module PCF, and help the PCF optimize the strategy control; it can provide the big data analysis information according to the slice dimension.
图1中Nnef、Nnrf、Npcf、Nudm、Nnwdaf、Naf、Namf、Nsmf、N1、N2、N3、N4,以及N6为接口序列号。这些接口序列号的含义可参见第三代合作伙伴计划(3rd generation partnership project,3GPP)标准协议中定义的含义,在此不做限制。In Figure 1, Nnef, Nnrf, Npcf, Nudm, Nnwdaf, Naf, Namf, Nsmf, N1, N2, N3, N4, and N6 are interface serial numbers. The meanings of these interface serial numbers can be referred to the meanings defined in the 3rd generation partnership project (3rd generation partnership project, 3GPP) standard protocol, which is not limited here.
如图2所示,为基于点对点接口的5G网络架构示意图,其中的网元的功能的介绍可以参考图1中对应的网元的功能的介绍,不再赘述。图2与图1的主要区别在于:图2中的各个网元之间的接口是点对点的接口,而不是服务化的接口。需要说明的是,图2中还包括其他网元,如NEF网元、NRF网元、UDR、NWDAF网元等,图2中未示出。As shown in Fig. 2, it is a schematic diagram of a 5G network architecture based on a point-to-point interface. For the introduction of the functions of the network elements therein, reference may be made to the introduction of the functions of the corresponding network elements in Fig. 1, which will not be repeated. The main difference between Figure 2 and Figure 1 is that the interfaces between the various network elements in Figure 2 are point-to-point interfaces rather than service-oriented interfaces. It should be noted that FIG. 2 also includes other network elements, such as NEF network elements, NRF network elements, UDR network elements, and NWDAF network elements, which are not shown in FIG. 2.
在图2所示的架构中,其中,UE与AMF网元之间的接口称为N1接口,AMF网元与RAN设备之间的接口称为N2接口,RAN设备与UPF网元之间的接口可以称为N3接口,SMF网元与UPF网元之间的接口称为N4接口,PCF网元与AF网元之间的接口称为N5接口,UPF网元与DN之间的接口称为N6接口,SMF网元与PCF网元之间的接口称为N7接口,AMF网元与UDM网元之间的接口称为N8接口,不同UPF网元之间的接口称为N9接口,UDM网元与SMF网元之间的接口称为N10接口,AMF网元与SMF网元之间的接口称为N11接口,不同AMF网元之间的接口称为N14接口,AMF网元与PCF网元之间的接口称为N15接口。In the architecture shown in Figure 2, the interface between the UE and the AMF network element is called the N1 interface, the interface between the AMF network element and the RAN device is called the N2 interface, and the interface between the RAN device and the UPF network element It can be called N3 interface, the interface between SMF network element and UPF network element is called N4 interface, the interface between PCF network element and AF network element is called N5 interface, and the interface between UPF network element and DN is called N6 Interface, the interface between SMF network element and PCF network element is called N7 interface, the interface between AMF network element and UDM network element is called N8 interface, the interface between different UPF network elements is called N9 interface, UDM network element The interface with the SMF network element is called the N10 interface, the interface between the AMF network element and the SMF network element is called the N11 interface, the interface between different AMF network elements is called the N14 interface, and the one between the AMF network element and the PCF network element The interface between is called N15 interface.
可以理解的是,上述网元或者功能既可以是硬件设备中的网络元件,也可以是在专用硬件上运行软件功能,或者是平台(例如,云平台)上实例化的虚拟化功能。可选的,上述网元或者功能可以由一个设备实现,也可以由多个设备共同实现,还可以是一个设备内的一个功能模块,本申请实施例对此不作具体限定。It is understandable that the aforementioned network elements or functions may be network elements in hardware devices, software functions running on dedicated hardware, or virtualization functions instantiated on a platform (for example, a cloud platform). Optionally, the foregoing network element or function may be implemented by one device, or jointly implemented by multiple devices, or may be a functional module in one device, which is not specifically limited in the embodiment of the present application.
本申请中的移动性管理网元、会话管理网元、策略控制网元、应用功能网元、接入网设备、网络开放功能网元、用户面网元分别可以是图1或图2中的AMF、SMF、PCF、AF、RAN、NEF、UPF,也可以是未来通信如第六代(6th generation,6G)网络中具有上述AMF、SMF、PCF、AF、RAN、NEF、UPF的功能的网元,本申请对此不限定。为方便说明,本申请以移动性管理网元、会话管理网元、策略控制网元、应用功能网元、接入网设备、网络开放功能网元、用户面网元分别为上述AMF、SMF、PCF、AF、RAN、NEF、UPF为例进行说明。并且,本申请中将终端设备简称为UE。The mobility management network element, session management network element, policy control network element, application function network element, access network device, network opening function network element, and user plane network element in this application may be those in Figure 1 or Figure 2 respectively. AMF, SMF, PCF, AF, RAN, NEF, UPF, or future communications such as the 6th generation (6G) network with the above-mentioned functions of AMF, SMF, PCF, AF, RAN, NEF, UPF Yuan, this application is not limited. For the convenience of explanation, in this application, mobility management network elements, session management network elements, policy control network elements, application function network elements, access network equipment, network open function network elements, and user plane network elements are respectively the above-mentioned AMF, SMF, and SMF. Take PCF, AF, RAN, NEF, UPF as examples for description. In addition, the terminal device is referred to as UE for short in this application.
为便于理解本发明,下面先对本发明的背景知识进行介绍说明。In order to facilitate the understanding of the present invention, the background knowledge of the present invention will be introduced and explained below.
一、移动边缘计算(Mobile Edge Computing,MEC)1. Mobile Edge Computing (MEC)
移动通信的飞速发展促进了各种新型业务的不断涌现,除了传统的移动宽带、物联网之外,移动通信催生了许多新的应用领域如增强现实(Augmented Reality,AR)、虚拟现实(Virtual Reaity,VR)、车联网、工业控制、物联网(Internet of Things,IoT)等,同时对网络带宽、时延等性能也提出了更高的需求,网络负荷进一步加重。The rapid development of mobile communication has promoted the continuous emergence of various new services. In addition to traditional mobile broadband and the Internet of Things, mobile communication has spawned many new application areas such as Augmented Reality (AR) and Virtual Reality (Virtual Reality). , VR), Internet of Vehicles, Industrial Control, Internet of Things (IoT), etc. At the same time, higher requirements for network bandwidth, delay and other performance are also put forward, and the network load is further increased.
为了有效满足移动互联网、物联网高速发展所需的高带宽、低时延的要求并减轻网络负荷,欧洲电信标准化协会(European Telecommunication Standard Institute,ETSI)于2014年提出了MEC技术。In order to effectively meet the high-bandwidth and low-latency requirements for the rapid development of mobile Internet and Internet of Things and reduce network load, the European Telecommunication Standard Institute (ETSI) proposed MEC technology in 2014.
基于5G架构,演进出了MEC架构:相比于中心数据网络(central DN)而言,更靠近终端用户的边缘位置可以提供用户所需服务和云端计算功能的网络架构,将应用、内容和核心网部分业务处理和资源调度的功能一同部署到靠近终端用户的网络边缘,通过业务 靠近用户处理,以及应用、内容与网络的协同,来提供可靠、极致的业务体验。如图3所示,为MEC场景示意图。其中,MEC平台部署在下沉的UPF(即本地UPF)处DN部署在远端UPF处。与UE访问DN的路径相比,UE访问MEC平台的路径大大缩短。因此,MEC技术可以为用户提供低时延、高带宽服务。Based on the 5G architecture, the MEC architecture has evolved: Compared with the central data network (central DN), the edge location closer to the end user can provide the network architecture that users need services and cloud computing functions, combining applications, content, and core The functions of network service processing and resource scheduling are deployed together at the edge of the network close to the end user, and the service is close to the user processing, as well as the collaboration of applications, content and the network to provide a reliable and extreme service experience. As shown in Figure 3, it is a schematic diagram of the MEC scene. Among them, the MEC platform is deployed at the sinking UPF (that is, the local UPF) and the DN is deployed at the remote UPF. Compared with the path for the UE to access the DN, the path for the UE to access the MEC platform is greatly shortened. Therefore, MEC technology can provide users with low-latency, high-bandwidth services.
二、域名系统(DNS)2. Domain Name System (DNS)
DNS查询过程为:The DNS query process is:
UE启动应用(APP),发起会话建立流程或重用UE现有会话,以建立UE与UPF之间的用户面连接。在会话建立过程中,SMF将DNS服务器的地址发送至UE。The UE starts an application (APP), initiates a session establishment process or reuses an existing session of the UE to establish a user plane connection between the UE and the UPF. During the session establishment process, the SMF sends the address of the DNS server to the UE.
针对该APP(或者说,该业务),UE判断本地是否有该业务的域名相关的DNS记录。其中,DNS记录包含域名和IP地址的对应关系。For the APP (or the service), the UE determines whether there is a DNS record related to the domain name of the service locally. Among them, the DNS record contains the correspondence between the domain name and the IP address.
若UE本地有该业务的域名相关的DNS记录,则UE根据DNS记录,确定该域名对应的IP地址,并使用该IP地址作为该业务的目的IP。If the UE locally has a DNS record related to the domain name of the service, the UE determines the IP address corresponding to the domain name according to the DNS record, and uses the IP address as the destination IP of the service.
若UE本地没有该业务的域名相关的DNS记录,则UE发起DNS查询过程。具体的,UE向DNS服务器发送DNS查询请求,该DNS查询请求携带该业务的域名。DNS服务器接收到DNS查询请求后,查询数据库,得到该域名对应的IP地址,并向UE返回DNS响应消息,其中携带域名对应的IP地址和存留时间(TTL)。TTL表明DNS记录可以缓存的时间,TTL为4字节的无符号整数,TTL=0代表该DNS记录不能被缓存。然后,UE保存DNS记录,并使用该DNS记录中的IP地址作为该业务的目的IP。If the UE does not have a DNS record related to the domain name of the service locally, the UE initiates a DNS query process. Specifically, the UE sends a DNS query request to the DNS server, and the DNS query request carries the domain name of the service. After receiving the DNS query request, the DNS server queries the database to obtain the IP address corresponding to the domain name, and returns a DNS response message to the UE, which carries the IP address and time-to-live (TTL) corresponding to the domain name. TTL indicates the time that the DNS record can be cached. TTL is an unsigned integer of 4 bytes. TTL=0 means that the DNS record cannot be cached. Then, the UE saves the DNS record and uses the IP address in the DNS record as the destination IP of the service.
下面对本发明要解决的问题进行介绍说明。The problems to be solved by the present invention are introduced and explained below.
UE内安装有一个或多个应用,每个应用对应一个或多个业务。UE在发起业务时,是通过预先配置的应用对应的域名,发起业务的。One or more applications are installed in the UE, and each application corresponds to one or more services. When the UE initiates the service, it initiates the service through the pre-configured domain name corresponding to the application.
UE移动之前,启动APP1,发起会话建立流程,在该过程中,SMF将DNS服务器地址发送至UE。UE向DNS服务器发起DNS查询过程,以查询APP1的域名对应的地址。具体的,UE向DNS服务器发送DNS查询请求,携带域名;DNS服务器返回DNS响应消息,携带域名对应的TTL和IP地址。然后,UE保存域名、TTL、IP地址的对应关系。Before the UE moves, it starts APP1 and initiates a session establishment process. In this process, the SMF sends the DNS server address to the UE. The UE initiates a DNS query process to the DNS server to query the address corresponding to the domain name of APP1. Specifically, the UE sends a DNS query request to the DNS server, carrying the domain name; the DNS server returns a DNS response message, carrying the TTL and IP address corresponding to the domain name. Then, the UE saves the correspondence between the domain name, TTL, and IP address.
以此类推,UE启动APP2,假设APP2重用当前会话;UE向DNS服务器发起DNS查询,以查询APP2的域名对应的地址。UE保存域名、TTL、IP地址的对应关系。By analogy, the UE starts APP2, assuming that APP2 reuses the current session; the UE initiates a DNS query to the DNS server to query the address corresponding to the domain name of APP2. The UE saves the corresponding relationship between the domain name, TTL, and IP address.
以此类推,UE启动APP3,假设APP3重用当前会话;UE向DNS服务器发起DNS查询,以查询APP3的域名对应的地址。UE保存域名、TTL、IP地址的对应关系。By analogy, the UE starts APP3, assuming that APP3 reuses the current session; the UE initiates a DNS query to the DNS server to query the address corresponding to the domain name of APP3. The UE saves the corresponding relationship between the domain name, TTL, and IP address.
至此,UE上保存的DNS记录(域名、TTL、IP地址的对应关系)如下表1所示。So far, the DNS records (correspondence between domain name, TTL, and IP address) saved on the UE are shown in Table 1 below.
表1Table 1
域名domain name IP地址IP address TTLTTL
域名1Domain name 1 IP1IP1 TTL1TTL1
域名2Domain name 2 IP2IP2 TTL2TTL2
域名3Domain 3 IP3IP3 TTL3TTL3
UE发生移动,假设UE移动到APP1对应的MEC平台下,即APP1为分布式部署。假设APP1的DNS记录未超时,即TTL1还没有变为0,则UE不会针对APP1重新发起DNS查询,从而对于APP1,UE无法实现就近访问应用服务器的业务。The UE moves, assuming that the UE moves to the MEC platform corresponding to APP1, that is, APP1 is a distributed deployment. Assuming that the DNS record of APP1 has not timed out, that is, TTL1 has not changed to 0, the UE will not re-initiate a DNS query for APP1, so that for APP1, the UE cannot realize the service of accessing the application server nearby.
另外,在会话承载多个业务的场景下,如前述示例中,某会话同时承载APP1、APP2和APP3的业务,如果仅有APP1是分布式部署的,当UE移动到该APP1对应的MEC平台下时,UE如何只针对APP1发起DNS查询呢?In addition, in the scenario where the session carries multiple services, as in the previous example, a session carries the services of APP1, APP2, and APP3 at the same time. If only APP1 is deployed in a distributed manner, when the UE moves to the MEC platform corresponding to APP1 When, how can the UE initiate a DNS query only for APP1?
因此,本发明要解决的问题是:针对分布式部署的业务,在TTL没有超时的情况下,如何实现就近访问应用服务器的业务。Therefore, the problem to be solved by the present invention is: for distributed deployment services, how to realize the service of accessing the application server nearby when the TTL does not time out.
为解决上述问题,本申请提供多种不同的DNS查询方法。为便于理解本发明,下面先对本申请实施例出现的一些名词或术语进行解释说明。In order to solve the above-mentioned problems, this application provides a variety of different DNS query methods. To facilitate the understanding of the present invention, some terms or terms appearing in the embodiments of the present application will be explained below.
1、域名1. Domain name
本申请实施例中,域名可以用APP ID标识,也可以是全限定域名(Fully Qualified Domain Name,FQDN),也可以是由英文字母、阿拉伯数字、“-”、“.”等组成的符号。In the embodiments of this application, the domain name can be identified by the APP ID, can also be a fully qualified domain name (FQDN), or can be a symbol composed of English letters, Arabic numerals, "-", ".", etc.
2、域名对应的应用服务器2. Application server corresponding to the domain name
在分布式部署场景中,域名对应的业务为分布式部署的业务,该域名对应分布式部署的应用服务器,也即该域名对应多个应用服务器。在分布式部署场景中,UE可以向中心数据网元的应用服务器或本地数据网络的应用服务器请求访问业务,因而可以实现业务的就近访问。In a distributed deployment scenario, the business corresponding to a domain name is a distributed deployment business, and the domain name corresponds to a distributed deployment application server, that is, the domain name corresponds to multiple application servers. In a distributed deployment scenario, the UE can request access to the service from the application server of the central data network element or the application server of the local data network, so that nearby access to the service can be realized.
在集中部署场景中,域名对应的业务为集中部署的业务,该域名对应集中部署的应用服务器,也即该域名对应一个应用服务器。In a centralized deployment scenario, the service corresponding to the domain name is a centralized deployment service, and the domain name corresponds to a centralized deployment application server, that is, the domain name corresponds to an application server.
3、注册区域(Registration Area,RA)3. Registration Area (RA)
AMF收到UE的注册请求后,会为UE分配RA,UE在RA内移动时,不会发起移动注册流程。RA由一个或多个跟踪区域标识(Tracking Area identifier,TAI)构成。After the AMF receives the registration request from the UE, it will allocate an RA to the UE. When the UE moves within the RA, it will not initiate a mobile registration process. RA consists of one or more tracking area identifiers (TAI).
4、域名范围4. Domain name scope
域名范围指的是域名对应的IP地址的覆盖范围,即域名对应的应用服务器的覆盖范围。域名范围表明了该应用服务器的服务范围。UE在该域名范围内移动,该应用服务器对应的业务的域名对应的IP地址不发生变化。该范围可以由数据网络接入标识(DN access identifier,DNAI)表示,也可以由TAI表示。The domain name range refers to the coverage of the IP address corresponding to the domain name, that is, the coverage of the application server corresponding to the domain name. The domain name range indicates the service range of the application server. The UE moves within the domain name range, and the IP address corresponding to the domain name of the service corresponding to the application server does not change. This range can be represented by a data network access identifier (DN access identifier, DNAI), or can be represented by TAI.
作为示例,表2给出了域名、域名对应的应用服务器、域名范围之间的对应关系。As an example, Table 2 shows the correspondence between the domain name, the application server corresponding to the domain name, and the domain name range.
表2Table 2
Figure PCTCN2019113739-appb-000001
Figure PCTCN2019113739-appb-000001
针对表2,可以看出,域名对应的应用服务器为多个,且域名范围包括DNAI1和DNAI2。域名2对应的应用服务器为一个,且域名范围为PLMN,表示域名范围为整个运营商网络。域名3对应的应用服务器为多个,且域名范围包括DNAI1、DNAI3和DNAI5。可选的, 域名2的域名范围还可以为空或其他特殊值,以表明该域名的域名范围为整个运营商网络。Regarding Table 2, it can be seen that there are multiple application servers corresponding to the domain name, and the domain name range includes DNAI1 and DNAI2. There is one application server corresponding to domain name 2, and the domain name range is PLMN, which means that the domain name range is the entire operator network. There are multiple application servers corresponding to domain name 3, and the domain name range includes DNAI1, DNAI3, and DNAI5. Optionally, the domain name range of domain name 2 may also be empty or other special values to indicate that the domain name range of the domain name covers the entire operator network.
5、UE的注册区域与域名范围之间的交集区域5. The intersection area between the UE's registration area and the domain name range
比如,UE1的RA={TA1,TA2,TA3},UE1访问的域名包括域名1和域名2,且域名1范围={DNAI1,DNAI2},域名2范围={DNAI3},DNAI1={TA1,TA2},DNAI2={TA4},DNAI3={TA4},也即域名1范围={TA1,TA2,TA4},域名2范围={TA4}。For example, UE1's RA={TA1, TA2, TA3}, the domain names accessed by UE1 include domain name 1 and domain name 2, and domain name 1 range = {DNAI1, DNAI2}, domain name 2 range = {DNAI3}, DNAI1 = {TA1, TA2 }, DNAI2={TA4}, DNAI3={TA4}, that is, domain name 1 range={TA1, TA2, TA4}, domain name 2 range={TA4}.
因此,RA与域名1范围的交集区域为{TA1,TA2}。可以理解为在UE1的RA覆盖范围内,存在域名1。就是说,UE1在该交集区域内移动时,如果访问域名1,则可以实现就近访问。Therefore, the intersection area of the range of RA and domain name 1 is {TA1, TA2}. It can be understood that the domain name 1 exists in the RA coverage of UE1. That is to say, when UE1 moves in the intersection area, if it visits domain name 1, it can visit nearby.
RA与域名2范围的交集区域为空集。可以理解为在UE1的RA覆盖范围内,不存在域名2。由于在该RA范围内,没有交集区域,因此UE1在该RA范围内移动时,无法实现就近访问,UE1可以通过访问中心DN来访问域名2对应的业务,或者通过访问其它位置部署的应用服务器来访问域名2对应的业务。The intersection area of the range of RA and domain name 2 is an empty set. It can be understood that the domain name 2 does not exist in the RA coverage of UE1. Since there is no intersection area within the RA range, UE1 cannot achieve nearby access when it moves within the RA range. UE1 can access the service corresponding to domain name 2 by accessing the center DN, or by accessing application servers deployed in other locations. Access the business corresponding to domain name 2.
下面对本申请提供的解决方案进行介绍说明。The following describes the solutions provided by this application.
基于图1或图2所示的架构,如图4A所示,本申请提供一种DNS查询方法。该方法可以由PCF、DNS服务器和UE执行,也可以是用于PCF的部件(如芯片、电路等)、用于DNS服务器的部件(如芯片、电路等)和用于UE的部件(如芯片、电路等)执行。该方法还可以由DNS服务器和UE执行,或者是用于DNS服务器的部件(如芯片、电路等)和用于UE的部件(如芯片、电路等)执行。Based on the architecture shown in FIG. 1 or FIG. 2, as shown in FIG. 4A, the present application provides a DNS query method. The method can be executed by PCF, DNS server, and UE, and can also be used for PCF components (such as chips, circuits, etc.), components used for DNS server (such as chips, circuits, etc.), and components used for UE (such as chips). , Circuit, etc.) execution. The method may also be executed by the DNS server and the UE, or executed by components (such as chips, circuits, etc.) used for the DNS server and components (such as chips, circuits, etc.) used for the UE.
为方便说明,下面以该方法由PCF、DNS服务器和UE执行为例进行说明。For the convenience of description, the following takes the method executed by the PCF, DNS server and UE as an example for description.
该方法包括以下步骤:The method includes the following steps:
步骤401a,获取UE的应用的域名信息,所述域名信息用于指示域名对应的应用服务器是否为多个。Step 401a: Obtain domain name information of an application of the UE, where the domain name information is used to indicate whether there are multiple application servers corresponding to the domain name.
可选的,作为另一种实现方法,该域名信息也可以用于指示域名对应的应用服务器是否为1个。Optionally, as another implementation method, the domain name information may also be used to indicate whether there is one application server corresponding to the domain name.
可选的,该域名信息包含域名和指示信息,该指示信息用于指示域名对应的应用服务器是否为多个,或该指示信息用于指示域名对应的应用服务器是否为1个。Optionally, the domain name information includes a domain name and indication information, and the indication information is used to indicate whether there are multiple application servers corresponding to the domain name, or the indication information is used to indicate whether there is one application server corresponding to the domain name.
在第一种实现方法中,这里的指示信息可以是1比特的信息。指示信息为“1”用于指示域名对应的应用服务器为1个,指示信息为“0”用于指示域名对应的应用服务器为多个。或者,指示信息为“0”用于指示域名对应的应用服务器为1个,指示信息为“1”用于指示域名对应的应用服务器为多个。In the first implementation method, the indication information here may be 1-bit information. The indication information of "1" is used to indicate that there is one application server corresponding to the domain name, and the indication information of "0" is used to indicate that there are multiple application servers corresponding to the domain name. Alternatively, the indication information being "0" is used to indicate that there is one application server corresponding to the domain name, and the indication information being "1" is used to indicate that there are multiple application servers corresponding to the domain name.
在第二种实现方法中,域名信息包含域名和指示信息时,该指示信息用于指示域名对应的应用服务器为1个,该指示信息可以是任意信息。域名信息仅包含域名,不包含指示信息时,用于指示域名对应的应用服务器为多个。In the second implementation method, when the domain name information includes a domain name and indication information, the indication information is used to indicate that there is one application server corresponding to the domain name, and the indication information may be any information. The domain name information only contains the domain name, and when it does not contain the instruction information, it is used to indicate that there are multiple application servers corresponding to the domain name.
在第三种实现方法中,域名信息包含域名和指示信息时,该指示信息用于指示域名对应的应用服务器为多个,该指示信息可以是任意信息。域名信息仅包含域名,不包含指示信息时,用于指示域名对应的应用服务器为1个。In the third implementation method, when the domain name information includes a domain name and indication information, the indication information is used to indicate that there are multiple application servers corresponding to the domain name, and the indication information may be any information. The domain name information only contains the domain name, and when it does not contain the instruction information, there is one application server used to indicate the domain name.
其中,PCF获取应用的域名的域名信息的方法包括但不限于:Among them, the methods for PCF to obtain the domain name information of the application domain name include but are not limited to:
方法1,PCF从集中控制网元接收域名信息。Method 1. The PCF receives domain name information from the centralized control network element.
这里的集中控制网元可以是集中部署的MEC平台,也可以是UDR,也可以是管控平 台(如运维操作维护(Operation,Administration and Management,OAM)平台),还可以是NRF。当集中控制网元为UDR、OAM或NRF时,则可以由MEC平台将域名信息注册到UDR、OAM或NRF上,或者是由MEC平台将域名信息和域名范围注册到UDR、OAM或NRF上。The centralized control network element here can be a centralized MEC platform, a UDR, or a management and control platform (such as an Operation, Administration and Management (OAM) platform), or an NRF. When the centralized control network element is UDR, OAM, or NRF, the MEC platform can register the domain name information on the UDR, OAM, or NRF, or the MEC platform can register the domain name information and domain name range on the UDR, OAM, or NRF.
该方法中,可以是由PCF向集中控制网元请求获取域名信息,或者是由集中控制网元主动向PCF发送域名信息。In this method, the PCF may request the centralized control network element for domain name information, or the centralized control network element may actively send the domain name information to the PCF.
可选的,PCF还可以向集中控制网元请求获取域名的域名范围,或者是由集中控制网元主动向PCF发送域名范围。Optionally, the PCF may also request the centralized control network element to obtain the domain name range of the domain name, or the centralized control network element may actively send the domain name range to the PCF.
方法2,PCF从集中控制网元接收域名对应的业务描述信息和所述业务描述信息对应的业务位置,并根据业务描述信息和所述业务位置确定域名的域名信息。Method 2: The PCF receives the service description information corresponding to the domain name and the service location corresponding to the service description information from the centralized control network element, and determines the domain name information of the domain name according to the service description information and the service location.
具体的,当业务描述信息对应的业务位置有多个时,PCF确定该业务描述信息对应的业务的域名的域名信息用于指示所述域名对应的应用服务器为多个;当业务描述信息对应的业务位置只有一个时,PCF确定该业务描述信息对应的业务的域名的域名信息用于指示所述域名对应的应用服务器为一个。Specifically, when there are multiple service locations corresponding to the service description information, the PCF determines that the domain name information of the domain name of the service corresponding to the service description information is used to indicate that there are multiple application servers corresponding to the domain name; when the service description information corresponds to When there is only one service location, the PCF determines that the domain name information of the domain name of the service corresponding to the service description information is used to indicate that there is one application server corresponding to the domain name.
步骤402a,PCF向UE发送域名信息。相应的,UE可以接收到该域名信息。Step 402a, the PCF sends domain name information to the UE. Correspondingly, the UE can receive the domain name information.
该域名信息用于UE判断是否发送第一消息,所述第一消息用于查询所述域名对应的IP地址。The domain name information is used by the UE to determine whether to send the first message, and the first message is used to query the IP address corresponding to the domain name.
可选的,PCF还可以确定UE的注册区域和域名的域名范围的交集区域,然后PCF向UE发送该交集区域。Optionally, the PCF may also determine the intersection area between the registration area of the UE and the domain name range of the domain name, and then the PCF sends the intersection area to the UE.
可选的,也可以是由AMF确定UE的注册区域和域名的域名范围的交集区域,然后AMF向UE发送该交集区域。Optionally, the AMF may determine the intersection area between the registration area of the UE and the domain name range of the domain name, and then the AMF sends the intersection area to the UE.
可选的,交集区域可以包含在域名信息中,也可以作为独立的信元。当交集区域作为独立的信元时,PCF或AMF向UE发送域名和对应的交集区域。Optionally, the intersection area can be included in the domain name information, or can be used as an independent cell. When the intersection area is used as an independent cell, the PCF or AMF sends the domain name and the corresponding intersection area to the UE.
可选的,该域名信息可以由PCF通过UE策略下发给UE。UE策略具体可以是UE路由选择策略(UE Route Selection Policy,URSP),即URSP中包含域名信息。Optionally, the domain name information can be issued to the UE by the PCF through the UE policy. The UE policy may specifically be a UE Route Selection Policy (URSP), that is, the URSP includes domain name information.
步骤403a,UE确定发生移动。In step 403a, the UE determines that it moves.
比如,这里的UE发生移动可以是小区粒度的移动,即当UE从一个小区移动至另一个小区时,则UE确定发生移动。For example, the movement of the UE here may be cell-granular movement, that is, when the UE moves from one cell to another cell, the UE determines that the movement occurs.
再比如,这里的UE发生移动还可以是TA粒度的移动,即当UE从一个TA移动至另一个TA时,则UE确定发生移动。For another example, the movement of the UE here may also be a movement of TA granularity, that is, when the UE moves from one TA to another TA, the UE determines that the movement occurs.
再比如,这里的UE发生移动还可以是DNAI粒度的移动,或者理解为:所述UE移动使得所述UE发生对应的DNAI改变。即当UE从一个DNAI移动至另一个DNAI时,则UE确定发生移动。其中,UE发生DNAI粒度的移动指的是UE发生DNAI对应的UPF间移动,即UE移出了DNAI对应的UPF。可选的,UE可以通过如下方式感知DNAI变化:For another example, the movement of the UE here may also be a movement of DNAI granularity, or understood as: the movement of the UE causes the corresponding DNAI change of the UE. That is, when the UE moves from one DNAI to another DNAI, the UE determines that the movement occurs. Among them, the movement of the UE with the granularity of DNAI refers to the movement between the UPF corresponding to the DNAI of the UE, that is, the UE moves out of the UPF corresponding to the DNAI. Optionally, the UE can sense DNAI changes in the following ways:
方式1:UE上配置TA与DNAI的对应关系。Manner 1: Configure the corresponding relationship between TA and DNAI on the UE.
UE发生TA移动后,可以根据TA的移动判断是否发生了DNAI的移动。例如,DNAI={TA1,TA2},DNAI2={TA3},当UE从TA1移动到TA3时,UE发生DNAI粒度的移动;当UE从TA1移动到TA2时,UE发生TA粒度的移动,未发生DNAI粒度的移动。After the UE moves in TA, it can judge whether DNAI moves in accordance with the movement of TA. For example, DNAI={TA1, TA2}, DNAI2={TA3}, when the UE moves from TA1 to TA3, the UE moves with the granularity of DNAI; when the UE moves from TA1 to TA2, the UE moves with the granularity of TA, but no The movement of DNAI granularity.
方式2:SMF向UE发送DNAI变化通知。即,当SMF检测到DNAI变化时,向UE发送通知。Manner 2: SMF sends a DNAI change notification to the UE. That is, when the SMF detects a change in DNAI, it sends a notification to the UE.
再比如,这里的UE发生移动还可以是UE的注册区域与域名范围之间的交集区域粒度的移动,即针对某个域名,当UE移出了该UE的注册区域与域名范围之间的交集区域时,则UE确定发生移动。For another example, the movement of the UE here can also be a movement of the granularity of the intersection area between the UE's registration area and the domain name range, that is, for a certain domain name, when the UE moves out of the intersection area between the UE's registration area and the domain name range When the time, the UE determines that it is moving.
步骤404a,在应用的域名对应的DNS资源记录的存留时间未超时的情况下,UE确定满足第一条件,则向DNS服务器发送第一消息,所述第一消息用于查询所述域名对应的IP地址。Step 404a: In the case that the retention time of the DNS resource record corresponding to the domain name of the application has not expired, the UE determines that the first condition is met, and then sends a first message to the DNS server. The first message is used to query the domain name corresponding to the domain name. IP address.
这里的第一条件为:所述域名对应的应用服务器为多个。或者第一条件为:所述域名对应的应用服务器为多个、且UE移出了交集区域,所述交集区域为UE的注册区域与域名的域名范围之间的交集区域。The first condition here is: there are multiple application servers corresponding to the domain name. Or the first condition is: there are multiple application servers corresponding to the domain name, and the UE has moved out of the intersection area, and the intersection area is the intersection area between the registration area of the UE and the domain name range of the domain name.
上述第一种实现方法中,只要确定域名对应的应用服务器为多个,即确定满足第一条件,而不需要判断其他条件是否满足,比如判断UE是否移出了交集区域。而第二种实现方法中,一方面需要确定域名对应的应用服务器为多个,另一方面还需要确定UE移出了交集区域。因此该第一种实现方法的条件更为宽松,且判断的动作要少,第二种实现方法的条件更为严苛,且判断的动作要多。该第二种实现方法可以减少UE发起DNS查询的次数。In the foregoing first implementation method, as long as it is determined that there are multiple application servers corresponding to the domain name, it is determined that the first condition is satisfied, and it is not necessary to judge whether other conditions are satisfied, such as judging whether the UE has moved out of the intersection area. In the second implementation method, on the one hand, it is necessary to determine that there are multiple application servers corresponding to the domain name, and on the other hand, it is also necessary to determine that the UE moves out of the intersection area. Therefore, the conditions of the first realization method are more relaxed and the judgment actions are less, and the conditions of the second realization method are more stringent and the judgment actions are more. This second implementation method can reduce the number of times the UE initiates DNS queries.
需要说明的是,DNS服务器可以是第三方或运营商部署的应用服务器,也可以作为一种功能集成在PCF或AMF或SMF上,DNS服务器还可以是MEC平台中的配置服务器或使能服务器。It should be noted that the DNS server can be an application server deployed by a third party or an operator, or it can be integrated as a function on PCF, AMF, or SMF, and the DNS server can also be a configuration server or an enable server in the MEC platform.
步骤405a,DNS服务器向UE发送第二消息,相应的,UE可以接收到该第二消息。Step 405a: The DNS server sends a second message to the UE, and correspondingly, the UE can receive the second message.
作为一种实现方式,不管DNS服务器查询到的该域名对应的IP地址与上一次向UE发送的该域名对应的IP地址是否相同,DNS服务器都会向UE重新发送IP地址。该情形下,则该第二消息包括所述域名对应的IP地址,该IP地址所指示的应用服务器与UE移动后的位置对应,该IP地址可能与上一次向UE发送的该域名对应的IP地址相同,也可能不同。可选的,该第二消息还可以包含该域名。As an implementation manner, regardless of whether the IP address corresponding to the domain name queried by the DNS server is the same as the IP address corresponding to the domain name sent to the UE last time, the DNS server will re-send the IP address to the UE. In this case, the second message includes the IP address corresponding to the domain name, the application server indicated by the IP address corresponds to the location of the UE after it has moved, and the IP address may be the IP address corresponding to the domain name sent to the UE last time. The address is the same, it may be different. Optionally, the second message may also include the domain name.
作为又一种实现方式,当DNS服务器查询到的该域名对应的IP地址与上一次向UE发送的该域名对应的IP地址不相同时,DNS服务器会向UE重新发送IP地址;当DNS服务器查询到的该域名对应的IP地址与上一次向UE发送的该域名对应的IP地址相同时,DNS服务器不会向UE重新发送IP地址,而是发送一个指示信息,该指示信息用于指示该域名对应的应用服务器的IP地址没有改变,或者,该指示信息用于指示UE采用原DNS资源记录。该情形下,则该第二消息可能包含指示信息,也可能包含IP地址。进一步的,该第二消息还可以包含该域名。As another implementation method, when the IP address corresponding to the domain name queried by the DNS server is different from the IP address corresponding to the domain name sent to the UE last time, the DNS server will resend the IP address to the UE; when the DNS server queries When the IP address corresponding to the domain name is the same as the IP address corresponding to the domain name sent to the UE last time, the DNS server will not re-send the IP address to the UE, but send an indication message, which is used to indicate the domain name The IP address of the corresponding application server has not changed, or the indication information is used to instruct the UE to use the original DNS resource record. In this case, the second message may include indication information, and may also include an IP address. Further, the second message may also include the domain name.
需要说明的是,UE接收到上述第二消息后,若第二消息包含IP地址,则UE还可以根据该IP地址更新DNS资源记录。比如一种更新方式为:将原来的DNS资源记录中的IP地址替换为新接收到的IP地址。再比如又一种更新方式为:删除原来的DNS资源记录,重新生成一个DNS资源记录,其中包含域名和新接收到的IP地址。需要说明的是,若第二消息还包含TTL,则还需要对DNS资源记录对应的TTL进行更新。再比如又一种更新方式为:UE在发送404a之前就删除原来的DNS资源记录,收到405a之后,生成新的DNS资源记录。It should be noted that after the UE receives the above second message, if the second message includes an IP address, the UE may also update the DNS resource record according to the IP address. For example, one update method is: replacing the IP address in the original DNS resource record with the newly received IP address. For another example, another update method is: delete the original DNS resource record, and regenerate a DNS resource record, which contains the domain name and the newly received IP address. It should be noted that if the second message also contains a TTL, the TTL corresponding to the DNS resource record also needs to be updated. For another example, another update method is: the UE deletes the original DNS resource record before sending 404a, and generates a new DNS resource record after receiving 405a.
可选的,上述第一消息为DNS查询请求、或DNS查询消息、或查询请求、或查询消息。上述第二消息为DNS查询响应、或DNS响应消息、或查询响应、或响应消息。Optionally, the above-mentioned first message is a DNS query request, or a DNS query message, or a query request, or a query message. The aforementioned second message is a DNS query response, or a DNS response message, or a query response, or a response message.
按照现有技术,当UE发生移动,在移动后所在的位置,若应用的域名对应的DNS资源记录的存留时间未超时,此时UE将使用DNS资源记录中的IP地址进行业务访问,此时,UE访问的并不是UE在移动后所在的位置对应的应用服务器,因而无法实现就近访问。According to the prior art, when the UE moves, if the retention time of the DNS resource record corresponding to the applied domain name does not expire at the location after the move, the UE will use the IP address in the DNS resource record for service access at this time. , The UE does not access the application server corresponding to the location where the UE is located after moving, and therefore cannot achieve nearby access.
而基于本申请上述实施例,UE发生移动之后,在DNS资源记录的存留时间未超时的情况下,只要满足第一条件,则UE将会向DNS服务器发起查询域名对应的IP地址,且该IP地址所指示的应用服务器与UE移动后的位置对应,从而实现了业务的就近访问。Based on the above-mentioned embodiments of this application, after the UE moves, if the retention time of the DNS resource record does not expire, as long as the first condition is met, the UE will initiate a query to the DNS server for the IP address corresponding to the domain name, and the IP The application server indicated by the address corresponds to the location of the UE after it has moved, thereby realizing nearby access to the service.
需要说明的是,作为一种可替代实现方案,上述实施例中由PCF执行的操作也可以由DNS服务器执行。It should be noted that, as an alternative implementation solution, the operations performed by the PCF in the above embodiments may also be performed by the DNS server.
需要说明的是,上述任意描述的PCF向UE发送相关信息的步骤,在实际执行中可以是PCF通过其他网元,如AMF、RAN等向UE发送该信息的。It should be noted that any of the steps described above for the PCF to send relevant information to the UE may be actually executed by the PCF sending the information to the UE through other network elements, such as AMF and RAN.
基于图1或图2所示的架构,如图4B所示,本申请提供又一种DNS查询方法。该方法可以由DNS服务器和UE执行,也可以是用于DNS服务器的部件(如芯片、电路等)和用于UE的部件(如芯片、电路等)执行。Based on the architecture shown in FIG. 1 or FIG. 2, as shown in FIG. 4B, this application provides yet another DNS query method. The method can be executed by the DNS server and the UE, and can also be executed by components (such as chips, circuits, etc.) used for the DNS server and components (such as chips, circuits, etc.) used for the UE.
为方便说明,下面以该方法由DNS服务器和UE执行为例进行说明。For the convenience of description, the following takes the method executed by the DNS server and the UE as an example for description.
该方法包括以下步骤:The method includes the following steps:
步骤401b,UE向DNS服务器发送DNS查询请求,DNS查询请求包含应用的域名。相应的,DNS服务器可以接收到该DNS查询请求。In step 401b, the UE sends a DNS query request to the DNS server, and the DNS query request includes the domain name of the application. Correspondingly, the DNS server can receive the DNS query request.
步骤402b,DNS服务器根据所述域名的域名信息设置TTL,所述TTL为所述域名对应的DNS资源记录的TTL。Step 402b: The DNS server sets a TTL according to the domain name information of the domain name, where the TTL is the TTL of the DNS resource record corresponding to the domain name.
比如,若所述域名信息指示所述域名对应的应用服务器为多个,则设置所述TTL小于预设阈值。再比如,若所述域名信息指示所述域名对应的应用服务器为一个,则设置所述TTL大于预设阈值。可选的,DNS服务器可以通过预配置方式获取到预设阈值。For example, if the domain name information indicates that there are multiple application servers corresponding to the domain name, the TTL is set to be less than a preset threshold. For another example, if the domain name information indicates that there is one application server corresponding to the domain name, then the TTL is set to be greater than a preset threshold. Optionally, the DNS server may obtain the preset threshold through a pre-configuration method.
步骤403b,DNS服务器向UE发送域名对应的IP地址和TTL,所述TTL用于UE判断是否发送第一消息,所述第一消息用于查询所述域名对应的IP地址。相应的,UE可以接收到该域名对应的IP地址和TTL。Step 403b: The DNS server sends the IP address and TTL corresponding to the domain name to the UE. The TTL is used by the UE to determine whether to send a first message, and the first message is used to query the IP address corresponding to the domain name. Correspondingly, the UE can receive the IP address and TTL corresponding to the domain name.
步骤404b,UE确定发生移动。In step 404b, the UE determines that it moves.
该步骤的实现方法可以参考图4A实施例的步骤403a。For the implementation method of this step, refer to step 403a of the embodiment in FIG. 4A.
步骤405b,在应用的域名对应的DNS资源记录的存留时间未超时的情况下,UE确定满足第一条件,则向DNS服务器发送第一消息,所述第一消息用于查询所述域名对应的IP地址。Step 405b: In the case that the retention time of the DNS resource record corresponding to the domain name of the application has not expired, the UE determines that the first condition is satisfied, and then sends a first message to the DNS server, and the first message is used to query the domain corresponding to the domain name. IP address.
这里的第一条件为:DNS资源记录的TTL小于预设阈值。该TTL即为步骤403b中发送至UE的TTL。The first condition here is: the TTL of the DNS resource record is less than the preset threshold. The TTL is the TTL sent to the UE in step 403b.
需要说明的是,第一条件还可以为:DNS资源记录的TTL小于预设阀值,且UE移出了UE的注册区域与域名的域名范围之间的交集区域。也就是说,在本方法中描述的步骤401b之前,AMF或PCF还可以确定UE的注册区域和域名的域名范围的交集区域,并向UE发送该交集区域。具体可以参考步骤402a的描述。It should be noted that the first condition may also be: the TTL of the DNS resource record is less than the preset threshold, and the UE has moved out of the intersection area between the registration area of the UE and the domain name range of the domain name. That is, before step 401b described in this method, the AMF or PCF may also determine the intersection area between the registration area of the UE and the domain name range of the domain name, and send the intersection area to the UE. For details, refer to the description of step 402a.
步骤406b,DNS服务器向UE发送第二消息,相应的,UE可以接收到该第二消息。In step 406b, the DNS server sends a second message to the UE, and correspondingly, the UE can receive the second message.
该步骤与图4A实施例中的步骤405a相同,可参考前述描述。This step is the same as step 405a in the embodiment of FIG. 4A, and reference may be made to the foregoing description.
需要说明的是,UE可以通过但不限于如下方式获取到TTL的预设阈值:It should be noted that the UE can obtain the preset threshold of TTL through, but not limited to, the following methods:
方式1:预配置方式。Method 1: Pre-configuration method.
管控平台或者UE出厂时,将预设阀值配置到UE上。When the control platform or UE leaves the factory, the preset threshold is configured on the UE.
方式2:在流程中,AMF或SMF将预设阀值发送至UE。Manner 2: In the process, the AMF or SMF sends the preset threshold to the UE.
比如,AMF上配置有预设阀值;在注册流程中,AMF通过注册接受消息向UE发送预设阀值。For example, a preset threshold is configured on the AMF; in the registration process, the AMF sends the preset threshold to the UE through a registration acceptance message.
又比如,UDM上配置有预设阀值;在注册流程中,AMF从UDM获取到该预设阀值,并通过注册接受消息向UE发送预设阀值。For another example, a preset threshold is configured on the UDM; in the registration process, the AMF obtains the preset threshold from the UDM, and sends the preset threshold to the UE through a registration acceptance message.
又比如,SMF上配置有预设阀值;在会话建立流程中,SMF通过注册接受消息向UE发送预设阀值。For another example, a preset threshold is configured on the SMF; in the session establishment process, the SMF sends the preset threshold to the UE through a registration acceptance message.
再比如,UDM上配置有预设阀值;在会话建立流程中,SMF从UDM获取到该预设阀值,并通过会话建立接受消息向UE发送预设阀值。For another example, a preset threshold is configured on the UDM; in the session establishment process, the SMF obtains the preset threshold from the UDM, and sends the preset threshold to the UE through a session establishment acceptance message.
按照现有技术,当UE发生移动,在移动后所在的位置,若应用的域名对应的DNS资源记录的存留时间未超时,此时UE将使用DNS资源记录中的IP地址进行业务访问,此时,UE访问的并不是UE在移动后所在的位置对应的应用服务器,因而无法实现就近访问。According to the prior art, when the UE moves, if the retention time of the DNS resource record corresponding to the applied domain name does not expire at the location after the move, the UE will use the IP address in the DNS resource record for service access at this time. , The UE does not access the application server corresponding to the location where the UE is located after moving, and therefore cannot achieve nearby access.
而基于本申请上述实施例,UE发生移动之后,在DNS资源记录的存留时间未超时的情况下,只要满足第一条件,则UE将会向DNS服务器发起查询域名对应的IP地址,且该IP地址对应的应用服务器与UE移动后的位置对应,从而实现了业务的就近访问。Based on the above-mentioned embodiments of this application, after the UE moves, if the retention time of the DNS resource record does not expire, as long as the first condition is met, the UE will initiate a query to the DNS server for the IP address corresponding to the domain name, and the IP The application server corresponding to the address corresponds to the location of the UE after it has moved, thereby realizing nearby access to the service.
下面结合具体实施例,对上述图4A至图4B所示的实施例进行介绍说明。The following describes the embodiments shown in FIGS. 4A to 4B in combination with specific embodiments.
如图5所示,为本申请提供的又一种DNS查询方法流程示意图。该实施例是上述图4A所示实施例的一种具体实现。As shown in Fig. 5, it is a schematic flowchart of another DNS query method provided by this application. This embodiment is a specific implementation of the embodiment shown in FIG. 4A.
该方法包括以下步骤:The method includes the following steps:
步骤500,MEC平台向PCF发送注册消息。相应的,PCF可以接收到该注册消息。Step 500: The MEC platform sends a registration message to the PCF. Correspondingly, the PCF can receive the registration message.
该注册消息携带域名信息。该注册消息具体可以是应用功能请求消息(AF request)。The registration message carries domain name information. The registration message may specifically be an application function request message (AF request).
可选的,该注册消息还可携带域名范围。此时,PCF保存域名信息、域名范围的对应关系。Optionally, the registration message may also carry a domain name range. At this time, the PCF saves the corresponding relationship between the domain name information and the domain name range.
该注册消息可以由MEC平台直接发送至PCF,也可以通过NEF发送至PCF。The registration message can be sent directly to the PCF by the MEC platform, or sent to the PCF via the NEF.
步骤501,AMF向PCF发送UE策略关联请求,相应地,PCF可以接收到该UE策略关联请求。In step 501, the AMF sends a UE policy association request to the PCF. Accordingly, the PCF can receive the UE policy association request.
该UE策略关联请求携带永久签约标识(Subscription Permanent Identifier,SUPI)、注册区域、接入类型(access type)、用户位置信息(User location informaiton,ULI)、无线接入技术类型(Radio Access Technology type,RAT type)等信息。The UE policy association request carries a permanent subscription identifier (Subscription Permanent Identifier, SUPI), registration area, access type (access type), user location information (User location information, ULI), and radio access technology type (Radio Access Technology type, RAT type) and other information.
需要说明的是,AMF是在UE的注册流程中向PCF发送UE策略关联请求。即,AMF接收UE发送的注册请求后,向PCF发送UE策略关联请求。It should be noted that the AMF sends a UE policy association request to the PCF during the registration process of the UE. That is, after the AMF receives the registration request sent by the UE, it sends a UE policy association request to the PCF.
可选的,AMF还向PCF发送注册区域。Optionally, the AMF also sends the registration area to the PCF.
作为一种实现方法,对应的服务化操作上,UE策略关联请求可以描述为Npcf_UEPolicyControl_Create Request。As an implementation method, in the corresponding service operation, the UE policy association request can be described as Npcf_UEPolicyControl_Create Request.
步骤502,PCF向AMF返回UE策略关联响应,相应的,AMF可以接收到该UE策 略关联响应。In step 502, the PCF returns a UE policy association response to the AMF, and accordingly, the AMF can receive the UE policy association response.
该UE策略关联响应携带UE策略关联标识(UE policy association ID),该UE策略关联标识用于索引PCF上的该UE的UE策略。The UE policy association response carries a UE policy association ID (UE policy association ID), and the UE policy association ID is used to index the UE policy of the UE on the PCF.
同理,对应的服务化操作上,UE策略关联响应可以描述为Npcf_UEPolicyControl_Create Response。Similarly, in the corresponding servicing operation, the UE policy association response can be described as Npcf_UEPolicyControl_Create Response.
步骤503a,PCF确定UE的注册区域与域名的域名范围之间的交集区域。In step 503a, the PCF determines the intersection area between the registration area of the UE and the domain name range of the domain name.
当步骤500的注册消息携带域名范围且步骤501的UE策略关联请求携带注册区域时,则可以执行该步骤503a。当步骤501的UE策略关联请求没有携带注册区域时,PCF根据步骤500中的域名范围,确定域名范围即可。When the registration message of step 500 carries the domain name range and the UE policy association request of step 501 carries the registration area, step 503a can be executed. When the UE policy association request in step 501 does not carry the registration area, the PCF can determine the domain name range according to the domain name range in step 500.
该步骤可选。This step is optional.
步骤503,PCF确定UE策略。In step 503, the PCF determines the UE policy.
比如,PCF根据步骤500的注册消息中的域名信息以及步骤501中获取的SUPI,确定UE策略,即从多个域名中确定出与某个UE相关的域名信息。其中,UE策略包含域名信息。当执行步骤503a时,则UE策略包含域名信息,UE的注册区域与域名的域名范围之间的交集区域。For example, the PCF determines the UE policy according to the domain name information in the registration message in step 500 and the SUPI obtained in step 501, that is, determines the domain name information related to a certain UE from multiple domain names. Among them, the UE policy includes domain name information. When step 503a is executed, the UE policy includes domain name information, the intersection area between the registration area of the UE and the domain name range of the domain name.
作为一种实现方法,UE策略可以由URSP实现。即在URSP中包含域名信息,可选的还包含UE的注册区域与域名的域名范围之间的交集区域。As an implementation method, the UE strategy can be implemented by URSP. That is, the URSP includes domain name information, and optionally also includes the intersection area between the registration area of the UE and the domain name range of the domain name.
步骤504,PCF向AMF发送传递消息,携带UE策略。相应的,AMF可以接收到该传递消息。In step 504, the PCF sends a delivery message to the AMF, which carries the UE policy. Correspondingly, the AMF can receive the delivery message.
作为一种实现方法,对应到服务化操作上,该传递消息可以描述为Namf_Communication_N1N2MessageTransfer。As an implementation method, corresponding to the service operation, the transfer message can be described as Namf_Communication_N1N2MessageTransfer.
步骤505,当UE处于空闲态时,AMF触发对UE的寻呼。Step 505: When the UE is in an idle state, the AMF triggers paging to the UE.
该步骤可选。This step is optional.
步骤506,当UE处于连接态时,AMF向UE发送UE策略。Step 506: When the UE is in the connected state, the AMF sends the UE policy to the UE.
步骤507,UE向AMF发送响应消息。Step 507: The UE sends a response message to the AMF.
即UE接收到UE策略后,向AMF发送响应消息。That is, after receiving the UE policy, the UE sends a response message to the AMF.
该步骤可选。This step is optional.
步骤508,AMF向PCF发送响应消息。In step 508, the AMF sends a response message to the PCF.
即AMF接收到UE策略后,向PCF发送响应消息。That is, after the AMF receives the UE policy, it sends a response message to the PCF.
该步骤可选。This step is optional.
作为一种实现方法,对应到服务化操作上,该响应消息可以描述为Namf_Communication_N1MessageNotify。As an implementation method, corresponding to the service operation, the response message can be described as Namf_Communication_N1MessageNotify.
步骤509,UE确定发生移动。In step 509, the UE determines that it moves.
该步骤的实现方法可以参考图4A实施例的步骤403a。For the implementation method of this step, refer to step 403a of the embodiment in FIG. 4A.
步骤510,UE确定重新发起DNS查询。In step 510, the UE determines to re-initiate the DNS query.
下面分不同情形说明UE确定重新发起DNS查询的实现方法。The following describes how the UE determines to re-initiate the DNS query in different situations.
情形一,UE本地存储的DNS资源记录中的TTL超时。Case 1: The TTL in the DNS resource records stored locally by the UE expires.
由于TTL超时,因此该DNS资源记录中的域名对应的IP地址无效,进而UE确定重新发起DNS查询,以重新获取域名对应的IP地址。Due to the TTL timeout, the IP address corresponding to the domain name in the DNS resource record is invalid, and the UE determines to re-initiate the DNS query to obtain the IP address corresponding to the domain name again.
情形二,UE本地存储的DNS资源记录中的TTL没有超时。Case 2: The TTL in the DNS resource records stored locally by the UE does not expire.
针对该情形,本申请提供两种不同的实现方法,用以确定是否重新发起DNS查询。In view of this situation, this application provides two different implementation methods to determine whether to re-initiate the DNS query.
方法1,UE根据域名信息,判断是否重新发起DNS查询。Method 1: The UE determines whether to re-initiate the DNS query according to the domain name information.
该方法是针对UE接收到域名信息的情形。This method is aimed at the situation where the UE receives domain name information.
当UE发生移动,根据域名信息判断UE的会话对应的域名是否需要重新发起DNS查询。若域名信息指示域名对应的应用服务器为多个,即应用服务器对应的IP地址为多个,则确定针对该域名重新发起DNS查询。若域名信息指示域名对应的应用服务器为1个,即应用服务器对应的IP地址为1个,则确定针对该域名不发起DNS查询。When the UE moves, it is judged according to the domain name information whether the domain name corresponding to the session of the UE needs to re-initiate the DNS query. If the domain name information indicates that there are multiple application servers corresponding to the domain name, that is, there are multiple IP addresses corresponding to the application servers, it is determined to re-initiate a DNS query for the domain name. If the domain name information indicates that there is one application server corresponding to the domain name, that is, there is one IP address corresponding to the application server, it is determined not to initiate a DNS query for the domain name.
作为示例,UE的会话具有业务1、业务2、业务3,分别对应域名1、域名2、域名3,各自的域名信息指示应用服务器对应的IP地址分别为多个、1个、1个。那么,当UE发生移动时,UE只需针对域名1重新发起DNS查询即可,而对于域名2和域名3无需发起DNS查询。As an example, the session of the UE has service 1, service 2, and service 3, corresponding to domain name 1, domain name 2, and domain name 3, respectively, and the respective domain name information indicates that there are multiple, one, and one IP addresses corresponding to the application server. Then, when the UE moves, the UE only needs to re-initiate the DNS query for the domain name 1, but does not need to initiate the DNS query for the domain name 2 and the domain name 3.
方法2,UE根据域名信息以及UE的注册区域与域名的域名范围之间的交集区域,判断是否重新发起DNS查询。Method 2: The UE determines whether to re-initiate the DNS query according to the domain name information and the intersection area between the registration area of the UE and the domain name range of the domain name.
该方法是针对UE接收到域名信息及UE的注册区域与域名的域名范围之间的交集区域的情形。This method is aimed at the situation where the UE receives the domain name information and the intersection area between the registration area of the UE and the domain name range of the domain name.
当UE发生移动,根据域名信息及UE的注册区域与域名的域名范围之间的交集区域,判断UE的会话对应的域名是否需要重新发起DNS查询。UE确定UE移出了UE的注册区域与域名的域名范围之间的交集区域、且域名信息指示域名对应的应用服务器为多个,则UE确定针对该域名重新发起DNS查询;反之,不满足上述条件,则UE针对该域名不发起DNS查询。When the UE moves, according to the domain name information and the intersection area between the registration area of the UE and the domain name range of the domain name, it is judged whether the domain name corresponding to the session of the UE needs to re-initiate the DNS query. The UE determines that the UE has moved out of the intersection area between the registration area of the UE and the domain name range of the domain name, and the domain name information indicates that the domain name corresponds to multiple application servers, then the UE determines to re-initiate a DNS query for the domain name; otherwise, the above conditions are not met , The UE does not initiate a DNS query for the domain name.
作为示例,UE的会话具有业务1、业务2、业务3,分别对应域名1、域名2、域名3,各自的域名信息指示应用服务器对应的IP地址分别为多个、1个、1个,UE的注册区域与域名的域名范围之间的交集区域分别为{TA1,TA2}、{PLMN}、{TA1;TA3,TA4,TA5,TA8}。那么,对于域名1,当UE移出域名1交集区域,即{TA1,TA2}时,重新发起DNS查询即可;而对于域名2,由于域名2的域名信息指示应用服务器对应的IP地址为1个,仍无需发起DNS查询;对于域名3,由于域名3的域名信息指示应用服务器对应的IP地址为1个,虽然UE移出了该域名3的交集区域,仍无需发起DNS查询。As an example, the UE’s session has service 1, service 2, and service 3, which correspond to domain name 1, domain name 2, and domain name 3, respectively. The respective domain name information indicates that the IP address corresponding to the application server is multiple, 1, and 1, respectively. The intersection area between the registration area and the domain name range of the domain name is {TA1, TA2}, {PLMN}, {TA1; TA3, TA4, TA5, TA8}. Then, for domain name 1, when the UE moves out of the intersection area of domain name 1, that is {TA1, TA2}, just re-initiate DNS query; for domain name 2, the domain name information of domain name 2 indicates that the IP address corresponding to the application server is 1 , There is still no need to initiate a DNS query; for domain name 3, since the domain name information of domain name 3 indicates that the IP address corresponding to the application server is 1, although the UE moves out of the intersection area of domain name 3, there is still no need to initiate a DNS query.
步骤511,UE发起DNS查询过程。Step 511: The UE initiates a DNS query process.
UE发送DNS查询过程为现有技术,可以参考本申请前述描述,这里不再赘述。The process of sending the DNS query by the UE is in the prior art, and the foregoing description of this application can be referred to, which is not repeated here.
UE发起DNS查询过程之后,可以重新获取到域名对应的IP地址及TTL,然后UE根据该IP地址和TTL更新DNS资源记录。After the UE initiates the DNS query process, it can retrieve the IP address and TTL corresponding to the domain name, and then the UE updates the DNS resource record according to the IP address and TTL.
后续,UE使用更新后的DNS资源记录中的IP地址访问业务,且该新的IP地址是距离UE最近的应用服务器的IP地址,从而实现了UE就近访问业务。Subsequently, the UE uses the IP address in the updated DNS resource record to access the service, and the new IP address is the IP address of the application server closest to the UE, thereby realizing the nearby access service of the UE.
针对图5所示的实施例,下面给出几种其它可选实现方案。For the embodiment shown in FIG. 5, several other optional implementation schemes are given below.
可选方案1:图5实施例中的由PCF确定UE的注册区域与域名的域名范围之间的交集区域修改为:由AMF确定UE的注册区域与域名的域名范围之间的交集区域并发送至UE。Alternative 1: The PCF in the embodiment of FIG. 5 determines the intersection area between the registration area of the UE and the domain name range of the domain name. Modified to: the AMF determines the intersection area between the registration area of the UE and the domain name range of the domain name and sends it To UE.
基于该方案,对图5实施例改动如下:Based on this solution, the changes to the embodiment in FIG. 5 are as follows:
1、删除步骤503a,且步骤503、504、506的UE策略中不包含UE的注册区域与域名 的域名范围之间的交集区域。1. Delete step 503a, and the UE policies of steps 503, 504, and 506 do not include the intersection area between the registration area of the UE and the domain name range of the domain name.
2、步骤501中不携带UE的注册区域(RA)。2. In step 501, the registration area (RA) of the UE is not carried.
3、增加“PCF向AMF发送域名范围”的操作,比如可以在步骤504中向AMF发送域名范围或者是通过新的步骤向AMF发送域名范围;又比如可以在步骤502中向AMF发送域名范围。3. The operation of "PCF sending domain name range to AMF" is added. For example, the domain name range can be sent to AMF in step 504 or the domain name range can be sent to AMF through a new step; for example, the domain name range can be sent to AMF in step 502.
或者是,在AMF上配置域名和域名范围,此时无需增加“PCF向AMF发送域名范围”的操作。Or, configure the domain name and domain name range on the AMF, and there is no need to add the operation of "PCF sending domain name range to AMF" at this time.
4、增加“AMF确定UE的注册区域与域名的域名范围之间的交集区域,并向UE发送该交集区域”的操作。具体的实现方式可以是AMF修改步骤504中的UE策略,使UE策略包含交集区域;还可以是AMF通过注册接受消息向UE发送该交集区域,该过程发生在步骤502之后,步骤503之前。4. Add the operation of "AMF determines the intersection area between the registration area of the UE and the domain name range of the domain name, and sends the intersection area to the UE". The specific implementation may be that the AMF modifies the UE policy in step 504 so that the UE policy includes the intersection area; it may also be that the AMF sends the intersection area to the UE through a registration acceptance message. This process occurs after step 502 and before step 503.
可选方案2:图5实施例中,MEC平台主动向PCF发送注册消息,修改为:PCF主动从集中控制网元请求获取域名信息,可选的还请求获取域名范围。Alternative 2: In the embodiment of FIG. 5, the MEC platform actively sends a registration message to the PCF, which is modified as follows: the PCF actively requests domain name information from the centralized control network element, and optionally also requests domain name range.
基于该方案,对图5实施例改动如下:Based on this solution, the changes to the embodiment in FIG. 5 are as follows:
1、删除步骤500。1. Delete step 500.
2、增加步骤500a至步骤500b,且步骤500a至步骤500b是在步骤503a之前的任意步骤执行。2. Step 500a to step 500b are added, and step 500a to step 500b are executed in any step before step 503a.
其中:among them:
步骤500a,PCF向集中控制网元发送域名查询请求,该域名查询请求用于请求获取域名信息,或者,域名查询请求用于请求获取域名信息和域名范围。In step 500a, the PCF sends a domain name query request to the centralized control network element. The domain name query request is used to request domain name information, or the domain name query request is used to request domain name information and domain name range.
步骤500b,集中控制网元向PCF发送域名查询响应,该域名查询响应包含域名信息,或者,该域名查询响应包含域名信息和域名范围。In step 500b, the centralized control network element sends a domain name query response to the PCF, where the domain name query response includes domain name information, or the domain name query response includes domain name information and a domain name range.
作为一种实现方法,PCF与集中控制网元之间的交互,可以通过NEF实现。As an implementation method, the interaction between the PCF and the centralized control network element can be implemented through NEF.
可选方案3:图5实施例中,由步骤500的注册消息中携带域名信息及域名范围(可选),修改为:该注册消息中不携带域名信息,而是携带位置(DNAI)、业务描述信息及域名范围(可选)。Alternative 3: In the embodiment of FIG. 5, the registration message in step 500 carries domain name information and domain name range (optional), and is modified as follows: the registration message does not carry domain name information, but carries location (DNAI) and service Descriptive information and domain name range (optional).
这里的业务描述信息可以用以下任一项或多项表示:应用标识(application identifier)、数据网名称(Data Network Name,DNN)、单网络切片选择辅助信息(single network slice selection assistance information,S-NSSAI)、域名等。The service description information here can be represented by any one or more of the following: application identifier (application identifier), data network name (Data Network Name, DNN), single network slice selection assistance information (single network slice selection assistance information, S- NSSAI), domain name, etc.
基于该方案,对图5实施例改动如下:Based on this solution, the changes to the embodiment in FIG. 5 are as follows:
1、步骤500的注册消息中不携带域名信息,而是携带位置(DNAI)和业务描述信息,可选的,还携带域名范围。1. The registration message in step 500 does not carry domain name information, but carries location (DNAI) and service description information, and optionally, also carries domain name range.
2、增加步骤“PCF根据接收到的位置、业务描述信息,确定域名信息”。2. Add the step "PCF determines the domain name information based on the received location and service description information".
具体的,当业务描述信息对应的位置有多个时,PCF确定该业务描述信息对应的业务的域名的域名信息指示应用服务器对应的IP地址为多个;当业务描述信息对应的位置只有一个时,PCF确定该业务描述信息对应的业务的域名的域名信息指示应用服务器对应的IP地址为1个。Specifically, when there are multiple locations corresponding to the service description information, the PCF determines that the domain name information of the domain name of the service corresponding to the service description information indicates that the application server corresponds to multiple IP addresses; when there is only one location corresponding to the service description information , The PCF determines that the domain name information of the domain name of the service corresponding to the service description information indicates that the IP address corresponding to the application server is one.
可选方案4:图5实施例中,MEC平台主动向PCF发送注册消息,修改为:PCF主动从集中控制网元请求位置(DNAI)、业务描述信息和域名范围(可选)。Alternative 4: In the embodiment of FIG. 5, the MEC platform actively sends a registration message to the PCF, which is modified as follows: the PCF actively requests the location (DNAI), service description information, and domain name range (optional) from the centralized control network element.
基于该方案,对图5实施例改动如下:Based on this solution, the changes to the embodiment in FIG. 5 are as follows:
1、删除步骤500。1. Delete step 500.
2、增加步骤500c至步骤500d,且步骤500c至步骤500d是在步骤503a之前的任意步骤执行。2. Step 500c to step 500d are added, and step 500c to step 500d are executed in any step before step 503a.
其中:among them:
步骤500c,PCF向集中控制网元发送域名查询请求,该域名查询请求用于请求获取位置、业务描述信息和域名范围(可选)。In step 500c, the PCF sends a domain name query request to the centralized control network element, where the domain name query request is used to request the location, service description information, and domain name range (optional).
步骤500d,集中控制网元向PCF发送域名查询响应,该域名查询响应包含位置、业务描述信息和域名范围(可选)。Step 500d: The centralized control network element sends a domain name query response to the PCF. The domain name query response includes location, service description information, and domain name range (optional).
3、增加步骤“PCF根据接收到的位置、业务描述信息确定域名信息”。3. Add the step "PCF determines the domain name information based on the received location and service description information".
具体的,当业务描述信息对应的位置有多个时,PCF确定该业务描述信息对应的业务的域名的域名信息指示应用服务器对应的IP地址为多个;当业务描述信息对应的位置只有一个时,PCF确定该业务描述信息对应的业务的域名的域名信息指示应用服务器对应的IP地址为1个。Specifically, when there are multiple locations corresponding to the service description information, the PCF determines that the domain name information of the domain name of the service corresponding to the service description information indicates that the application server corresponds to multiple IP addresses; when there is only one location corresponding to the service description information , The PCF determines that the domain name information of the domain name of the service corresponding to the service description information indicates that the IP address corresponding to the application server is one.
需要说明的是,上述多种可选方案可以相互结合,对实施例5进行扩展。比如将可选方案1和可选方案2相结合应用于实施例5,再比如将可选方案1和可选方案3相结合应用于实施例5,再比如将可选方案1和可选方案4相结合应用于实施例5。It should be noted that the above-mentioned multiple optional solutions can be combined with each other to extend Embodiment 5. For example, the combination of Option 1 and Option 2 is applied to Embodiment 5, and the combination of Option 1 and Option 3 is applied to Embodiment 5, or the combination of Option 1 and Option 3 is applied to Embodiment 5. The combination of 4 is applied to embodiment 5.
如图6所示,为本申请提供的又一种DNS查询方法流程示意图。该实施例是上述图4B所示实施例的一种具体实现。该流程发生在UE已经建立了协议数据单元(protocol data unit,PDU)会话。下文描述的域名,其相应的业务都在该PDU会话上运行。As shown in Fig. 6, a schematic flowchart of another DNS query method provided by this application. This embodiment is a specific implementation of the embodiment shown in FIG. 4B. This process occurs when the UE has established a protocol data unit (protocol data unit, PDU) session. For the domain names described below, the corresponding services are all running on the PDU session.
该方法包括以下步骤:The method includes the following steps:
步骤600,DNS服务器保存域名信息。In step 600, the DNS server saves the domain name information.
其中,DNS服务器可以通过管控平台(如OAM平台)获取到上述域名信息。Among them, the DNS server can obtain the above-mentioned domain name information through a management and control platform (such as an OAM platform).
步骤601,UE向DNS服务器发送DNS查询请求,携带域名。Step 601: The UE sends a DNS query request to the DNS server, carrying the domain name.
步骤602,DNS服务器根据域名信息设置TTL的取值。Step 602: The DNS server sets the value of TTL according to the domain name information.
DNS服务器设置TTL,具体描述如下:The DNS server sets TTL, which is described as follows:
当域名信息指示应用服务器对应的IP地址为多个时,设置TTL的取值小于预设阈值。When the domain name information indicates that there are multiple IP addresses corresponding to the application server, the value of the TTL is set to be less than the preset threshold.
当域名信息指示应用服务器对应的IP地址为1个时,设置TTL的取值大于预设阈值。When the domain name information indicates that the IP address corresponding to the application server is one, the value of the TTL is set to be greater than the preset threshold.
步骤603,DNS服务器向UE发送DNS查询响应。相应的,UE可以接收到该DNS查询响应。Step 603: The DNS server sends a DNS query response to the UE. Correspondingly, the UE can receive the DNS query response.
该DNS查询响应包含域名对应的IP地址及TTL。The DNS query response includes the IP address and TTL corresponding to the domain name.
步骤604,UE确定发生移动。In step 604, the UE determines that it moves.
该步骤的具体实现方式可以参考图5实施例的步骤509的相关描述,这里不再赘述。For the specific implementation manner of this step, reference may be made to the related description of step 509 in the embodiment of FIG. 5, which will not be repeated here.
步骤605,UE确定重新发起DNS查询。In step 605, the UE determines to re-initiate the DNS query.
具体的,当TTL的取值小于预设阈值时,UE确定域名信息指示应用服务器对应的IP地址为多个,则确定重新发起DNS查询。反之,当TTL的取值大于预设阈值时,UE确定域名信息指示应用服务器对应的IP地址为1个,则确定不发起DNS查询。Specifically, when the value of TTL is less than the preset threshold, the UE determines that the domain name information indicates that there are multiple IP addresses corresponding to the application server, and then determines to re-initiate the DNS query. Conversely, when the value of TTL is greater than the preset threshold, the UE determines that the domain name information indicates that the IP address corresponding to the application server is 1, and then determines not to initiate a DNS query.
上述描述方式,还可以描述为,当TTL的取值小于预设阈值时,则UE确定针对TTL相应的域名重新发起DNS查询;反之,即当TT;的取值大于预设阀值时,UE确定不重新发起DNS查询。其中,UE获取预设阀值的方式,可以参考步骤406b的描述,此处不再赘述。The above description method can also be described as that when the value of TTL is less than the preset threshold, the UE determines to re-initiate a DNS query for the domain name corresponding to TTL; on the contrary, when the value of TT; is greater than the preset threshold, the UE Make sure not to re-initiate the DNS query. Wherein, for the manner in which the UE obtains the preset threshold value, reference may be made to the description of step 406b, which will not be repeated here.
步骤606,UE发起DNS查询过程。In step 606, the UE initiates a DNS query process.
UE发送DNS查询过程为现有技术,可以参考本申请前述描述,这里不再赘述。The process of sending the DNS query by the UE is in the prior art, and the foregoing description of this application can be referred to, which is not repeated here.
UE发起DNS查询过程之后,可以重新获取到域名对应的IP地址及TTL,然后UE根据该IP地址和TTL更新DNS资源记录。After the UE initiates the DNS query process, it can retrieve the IP address and TTL corresponding to the domain name, and then the UE updates the DNS resource record according to the IP address and TTL.
后续,UE使用更新后的DNS资源记录中的IP地址访问业务,且该新的IP地址是距离UE最近的应用服务器的IP地址,从而实现了UE就近访问业务。Subsequently, the UE uses the IP address in the updated DNS resource record to access the service, and the new IP address is the IP address of the application server closest to the UE, thereby realizing the nearby access service of the UE.
针对图6所示的实施例,下面给出一种可选实现方案:AMF或PCF向UE发送注册区域和域名范围的交集区域,UE结合预设阀值和交集区域确定是否重新发起DNS查询。For the embodiment shown in FIG. 6, an optional implementation scheme is given below: AMF or PCF sends the intersection area of the registration area and domain name range to the UE, and the UE determines whether to re-initiate the DNS query based on the preset threshold and the intersection area.
关于交集区域的确定方式如下:The way to determine the intersection area is as follows:
比如,在注册流程中,AMF为UE分配注册区域,并确定注册区域与域名范围的交集区域,通过注册接受消息将交集区域发送至UE。其中AMF可以通过配置方式、或从PCF处获取域名范围。For example, in the registration process, the AMF allocates a registration area for the UE, determines the intersection area between the registration area and the domain name range, and sends the intersection area to the UE through a registration acceptance message. Among them, AMF can obtain the domain name range through configuration or from PCF.
又比如,AMF将注册区域发送至PCF,PCF根据注册区域和域名范围确定交集区域,并以UE策略的形式发送至UE,或者PCF将交集区域发送至AMF,由AMF通过注册接受消息发送至UE。其中,PCF可以通过配置方式、或从管控平台处获取域名范围。For another example, the AMF sends the registration area to the PCF, and the PCF determines the intersection area according to the registration area and the domain name range, and sends it to the UE in the form of a UE policy, or the PCF sends the intersection area to the AMF, and the AMF sends it to the UE through a registration acceptance message . Among them, the PCF can obtain the domain name range through configuration or from the management and control platform.
根据上述描述,步骤605可以描述为:当TTL的取值小于预设阈值,且UE移出了域名对应的交集区域时,则UE确定重新发起DNS查询。反之,当TTL的取值大于预设阀值,或UE没有移出域名对应的交集区域,UE确定不重新发起DNS查询。According to the above description, step 605 can be described as: when the value of TTL is less than the preset threshold and the UE moves out of the intersection area corresponding to the domain name, the UE determines to re-initiate the DNS query. Conversely, when the value of TTL is greater than the preset threshold, or the UE does not move out of the intersection area corresponding to the domain name, the UE determines not to re-initiate the DNS query.
上述主要从各个网元之间交互的角度对本申请提供的方案进行了介绍。可以理解的是,上述实现各网元为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本发明能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。The foregoing mainly introduces the solution provided by this application from the perspective of interaction between various network elements. It can be understood that, in order to realize the above-mentioned functions, each network element described above includes hardware structures and/or software modules corresponding to each function. Those skilled in the art should easily realize that in combination with the units and algorithm steps of the examples described in the embodiments disclosed herein, the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software-driven hardware depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered as going beyond the scope of the present invention.
本申请实施例还提供用于实现以上任一种方法的装置,例如,提供一种装置包括用以实现以上任一种方法中终端设备所执行的各个步骤的单元(或手段)。再如,还提供另一种装置,包括用以实现以上任一种方法中策略控制网元所执行的各个步骤的单元(或手段)。再如,还提供另一种装置,包括用以实现以上任一种方法中DNS服务器所执行的各个步骤的单元(或手段)。The embodiments of the present application also provide a device for implementing any of the above methods. For example, a device is provided that includes units (or means) for implementing each step performed by the terminal device in any of the above methods. For another example, another device is also provided, including a unit (or means) for implementing each step performed by the policy control network element in any of the above methods. For another example, another device is also provided, including a unit (or means) for implementing each step executed by the DNS server in any of the above methods.
例如,请参考图7,其为本申请实施例提供的一种通信装置的示意图。该装置用于终端设备,如图7所示,该装置700包括发送单元710和接收单元720。For example, please refer to FIG. 7, which is a schematic diagram of a communication device provided by an embodiment of the application. The device is used for terminal equipment. As shown in FIG. 7, the device 700 includes a sending unit 710 and a receiving unit 720.
在第一种方案中:发送单元710,用于在终端设备发生移动、且所述终端设备的应用的域名对应的DNS资源记录的存留时间未超时的情况下,若满足第一条件,向DNS服务器发送第一消息,所述第一消息用于查询所述域名对应的互联网协议IP地址。接收单元 720,用于接收所述DNS服务器发送的第二消息,所述第二消息包括所述域名对应的IP地址,所述IP地址所指示的应用服务器与所述终端设备移动后的位置对应。In the first solution: the sending unit 710 is configured to send the DNS resource record to the DNS if the first condition is met when the terminal device moves and the retention time of the DNS resource record corresponding to the domain name of the terminal device application has not expired. The server sends a first message, and the first message is used to query the Internet Protocol IP address corresponding to the domain name. The receiving unit 720 is configured to receive a second message sent by the DNS server, where the second message includes an IP address corresponding to the domain name, and the application server indicated by the IP address corresponds to the moved position of the terminal device .
在第二种方案中:发送单元710,用于在终端设备发生移动、且所述终端设备的应用的域名对应的DNS资源记录的存留时间未超时的情况下,若满足第一条件,向DNS服务器发送第一消息,所述第一消息用于查询所述域名对应的互联网协议IP地址。接收单元720,用于接收所述DNS服务器发送的第二消息,所述第二消息包括包含指示信息,所述指示信息用于指示所述域名对应的IP地址没有改变,所述IP地址所指示的应用服务器与所述终端设备移动后的位置对应。In the second solution: the sending unit 710 is configured to send the DNS resource record to the DNS if the first condition is met when the terminal device moves and the retention time of the DNS resource record corresponding to the domain name of the terminal device does not expire. The server sends a first message, and the first message is used to query the Internet Protocol IP address corresponding to the domain name. The receiving unit 720 is configured to receive a second message sent by the DNS server, where the second message includes indication information, and the indication information is used to indicate that the IP address corresponding to the domain name has not changed, and the IP address indicates The application server of corresponds to the position of the terminal device after it has moved.
基于上述第一种方案或第二种方案:Based on the first scheme or the second scheme above:
在一种可能的实现方法中,所述第一条件包括以下任意一项:所述域名对应的应用服务器为多个;或者,所述域名对应的应用服务器为多个、且所述终端设备移出了交集区域,所述交集区域为所述终端设备的注册区域与所述域名的域名范围之间的交集区域;或者,所述DNS资源记录的存留时间小于预设阈值。In a possible implementation method, the first condition includes any one of the following: there are multiple application servers corresponding to the domain name; or, there are multiple application servers corresponding to the domain name, and the terminal device is removed The intersection area is an intersection area between the registration area of the terminal device and the domain name range of the domain name; or, the retention time of the DNS resource record is less than a preset threshold.
在一种可能的实现方法中,所述终端设备发生移动,包括:所述终端设备发生小区间移动;或者,所述终端设备移动使得所述终端设备对应的数据网络接入标识DNAI改变;或者,所述终端设备发生跟踪区域间移动;或者,所述终端设备移出了所述终端设备的注册区域与所述域名的域名范围之间的交集区域。In a possible implementation method, the movement of the terminal device includes: inter-cell movement of the terminal device; or, the movement of the terminal device causes the data network access identifier DNAI corresponding to the terminal device to change; or , The terminal device moves between tracking areas; or, the terminal device moves out of the intersection area between the registration area of the terminal device and the domain name range of the domain name.
例如,请参考图8,其为本申请实施例提供的一种通信装置的示意图。该装置用于策略控制网元或DNS服务器,如图8所示,该装置800包括获取单元810和发送单元820。可选的,还可以包括确定单元830。获取单元810,用于获取终端设备的应用的域名信息,所述域名信息用于指示域名对应的应用服务器是否为多个。发送单元820,用于向所述终端设备发送所述域名信息,所述域名信息用于所述终端设备判断是否发送第一消息,所述第一消息用于查询所述域名对应的IP地址。For example, please refer to FIG. 8, which is a schematic diagram of a communication device provided by an embodiment of the application. The device is used for a policy control network element or a DNS server. As shown in FIG. 8, the device 800 includes an acquiring unit 810 and a sending unit 820. Optionally, a determining unit 830 may also be included. The obtaining unit 810 is configured to obtain domain name information of an application of the terminal device, where the domain name information is used to indicate whether there are multiple application servers corresponding to the domain name. The sending unit 820 is configured to send the domain name information to the terminal device, where the domain name information is used by the terminal device to determine whether to send a first message, and the first message is used to query the IP address corresponding to the domain name.
在一种可能的实现方法中,确定单元830,用于确定所述终端设备的注册区域与所述域名的域名范围之间的交集区域;发送单元820,还用于向所述终端设备发送所述交集区域,所述交集区域用于所述终端设备判断是否发送所述第一消息。In a possible implementation method, the determining unit 830 is configured to determine the intersection area between the registration area of the terminal device and the domain name range of the domain name; the sending unit 820 is further configured to send the terminal device to the terminal device. The intersection area, the intersection area is used by the terminal device to determine whether to send the first message.
在一种可能的实现方法中,获取单元810,具体用于从集中控制网元接收所述域名信息;或者,从集中控制网元接收所述域名对应的业务描述信息和所述业务描述信息对应的业务位置,根据所述业务描述信息和所述业务位置确定所述域名信息。In a possible implementation method, the acquiring unit 810 is specifically configured to receive the domain name information from the centralized control network element; or, receive the service description information corresponding to the domain name and the service description information corresponding to the centralized control network element. The business location of, the domain name information is determined according to the business description information and the business location.
在一种可能的实现方法中,所述域名信息包含所述域名和指示信息,所述指示信息用于指示所述域名对应的应用服务器是否为多个。In a possible implementation method, the domain name information includes the domain name and indication information, and the indication information is used to indicate whether there are multiple application servers corresponding to the domain name.
例如,请参考图9,其为本申请实施例提供的一种通信装置的示意图。该装置用于DNS服务器,如图9所示,该装置900包括接收单元910、发送单元920和确定单元930。接收单元910,用于接收来自终端设备的DNS查询请求,所述DNS查询请求包含所述终端设备的应用的域名。确定单元930,用于根据所述域名的域名信息设置存留时间,所述存留时间为所述域名对应的DNS资源记录的存留时间。发送单元920,用于向所述终端设备发送所述域名对应的互联网协议IP地址和所述存留时间,所述存留时间用于所述终端设备判断是否发送第一消息,所述第一消息用于查询所述域名对应的IP地址。For example, please refer to FIG. 9, which is a schematic diagram of a communication device provided by an embodiment of the application. The device is used for a DNS server. As shown in FIG. 9, the device 900 includes a receiving unit 910, a sending unit 920, and a determining unit 930. The receiving unit 910 is configured to receive a DNS query request from a terminal device, where the DNS query request includes a domain name of an application of the terminal device. The determining unit 930 is configured to set a retention time according to the domain name information of the domain name, where the retention time is the retention time of the DNS resource record corresponding to the domain name. The sending unit 920 is configured to send the Internet Protocol IP address corresponding to the domain name and the retention time to the terminal device, where the retention time is used by the terminal device to determine whether to send a first message, and the first message is used To query the IP address corresponding to the domain name.
在一种可能的实现方法中,确定单元930,具体用于:若所述域名信息指示所述域名对应的应用服务器为多个,则设置所述存留时间小于预设阈值;或者,若所述域名信息指示所述域名对应的应用服务器为一个,则设置所述存留时间大于预设阈值。In a possible implementation method, the determining unit 930 is specifically configured to: if the domain name information indicates that there are multiple application servers corresponding to the domain name, set the retention time to be less than a preset threshold; or, if the domain name information The domain name information indicates that there is one application server corresponding to the domain name, and the retention time is set to be greater than a preset threshold.
应理解以上装置中单元的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且装置中的单元可以全部以软件通过处理元件调用的形式实现;也可以全部以硬件的形式实现;还可以部分单元以软件通过处理元件调用的形式实现,部分单元以硬件的形式实现。例如,各个单元可以为单独设立的处理元件,也可以集成在装置的某一个芯片中实现,此外,也可以以程序的形式存储于存储器中,由装置的某一个处理元件调用并执行该单元的功能。此外这些单元全部或部分可以集成在一起,也可以独立实现。这里所述的处理元件又可以成为处理器,可以是一种具有信号的处理能力的集成电路。在实现过程中,上述方法的各步骤或以上各个单元可以通过处理器元件中的硬件的集成逻辑电路实现或者以软件通过处理元件调用的形式实现。It should be understood that the division of units in the above device is only a division of logical functions, and may be fully or partially integrated into one physical entity in actual implementation, or may be physically separated. In addition, the units in the device can be all implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; part of the units can also be implemented in the form of software called by the processing elements, and some of the units can be implemented in the form of hardware. For example, each unit can be a separate processing element, or it can be integrated in a certain chip of the device for implementation. In addition, it can also be stored in the memory in the form of a program, which is called and executed by a certain processing element of the device. Features. In addition, all or part of these units can be integrated together or implemented independently. The processing element described here can also become a processor, which can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each of the above units may be implemented by an integrated logic circuit of hardware in a processor element or implemented in a form of being called by software through a processing element.
在一个例子中,以上任一装置中的单元可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(Application Specific Integrated Circuit,ASIC),或,一个或多个微处理器(digital singnal processor,DSP),或,一个或者多个现场可编程门阵列(Field Programmable Gate Array,FPGA),或这些集成电路形式中至少两种的组合。再如,当装置中的单元可以通过处理元件调度程序的形式实现时,该处理元件可以是通用处理器,例如中央处理器(Central Processing Unit,CPU)或其它可以调用程序的处理器。再如,这些单元可以集成在一起,以片上系统(system-on-a-chip,SOC)的形式实现。In an example, the unit in any of the above devices may be one or more integrated circuits configured to implement the above methods, for example: one or more application specific integrated circuits (ASICs), or, one or Multiple microprocessors (digital singnal processors, DSPs), or, one or more field programmable gate arrays (Field Programmable Gate Arrays, FPGAs), or a combination of at least two of these integrated circuits. For another example, when the unit in the device can be implemented in the form of a processing element scheduler, the processing element can be a general-purpose processor, such as a central processing unit (CPU) or other processors that can call programs. For another example, these units can be integrated together and implemented in the form of a system-on-a-chip (SOC).
以上用于接收的单元(例如接收单元)是一种该装置的接口电路,用于从其它装置接收信号。例如,当该装置以芯片的方式实现时,该接收单元是该芯片用于从其它芯片或装置接收信号的接口电路。以上用于发送的单元(例如发送单元)是一种该装置的接口电路,用于向其它装置发送信号。例如,当该装置以芯片的方式实现时,该发送单元是该芯片用于向其它芯片或装置发送信号的接口电路。The above receiving unit (for example, the receiving unit) is an interface circuit of the device for receiving signals from other devices. For example, when the device is implemented as a chip, the receiving unit is an interface circuit used by the chip to receive signals from other chips or devices. The above unit for sending (for example, the sending unit) is an interface circuit of the device for sending signals to other devices. For example, when the device is implemented as a chip, the sending unit is an interface circuit used by the chip to send signals to other chips or devices.
参考图10,其为本申请实施例提供的一种终端设备的结构示意图。该终端设备用于实现以上实施例中终端设备的操作。如图10所示,该终端设备包括:天线1010、射频装置1020、信号处理部分1030。天线1010与射频装置1020连接。在下行方向上,射频装置1020通过天线1010接收接入网设备发送的信息,将接入网设备发送的信息发送给信号处理部分1030进行处理。在上行方向上,信号处理部分1030对终端设备的信息进行处理,并发送给射频装置1020,射频装置1020对终端设备的信息进行处理后经过天线1010发送给接入网设备。Refer to FIG. 10, which is a schematic structural diagram of a terminal device according to an embodiment of the application. The terminal device is used to implement the operation of the terminal device in the above embodiment. As shown in FIG. 10, the terminal equipment includes: an antenna 1010, a radio frequency device 1020, and a signal processing part 1030. The antenna 1010 is connected to the radio frequency device 1020. In the downlink direction, the radio frequency device 1020 receives the information sent by the access network device through the antenna 1010, and sends the information sent by the access network device to the signal processing part 1030 for processing. In the upstream direction, the signal processing part 1030 processes the information of the terminal equipment and sends it to the radio frequency device 1020. The radio frequency device 1020 processes the information of the terminal equipment and sends it to the access network equipment via the antenna 1010.
信号处理部分1030用于实现对数据各通信协议层的处理。信号处理部分1030可以为该终端设备的一个子系统,则该终端设备还可以包括其它子系统,例如中央处理子系统,用于实现对终端设备操作系统以及应用层的处理;再如,周边子系统用于实现与其它设备的连接。信号处理部分1030可以为单独设置的芯片。可选的,以上的装置可以位于信号处理部分1030。The signal processing part 1030 is used to realize the processing of each communication protocol layer of the data. The signal processing part 1030 may be a subsystem of the terminal device, and the terminal device may also include other subsystems, such as a central processing subsystem, which is used to process the terminal device operating system and application layer; another example is peripheral sub-systems. The system is used to realize the connection with other equipment. The signal processing part 1030 may be a separately provided chip. Optionally, the above devices may be located in the signal processing part 1030.
信号处理部分1030可以包括一个或多个处理元件1031,例如,包括一个主控CPU和其它集成电路。此外,该信号处理部分1030还可以包括存储元件1032和接口电路1033。存储元件1032用于存储数据和程序,用于执行以上方法中终端设备所执行的方法的程序 可能存储,也可能不存储于该存储元件1032中,例如,存储于信号处理部分1030之外的存储器中,使用时信号处理部分1030加载该程序到缓存中进行使用。接口电路1033用于与装置通信。以上装置可以位于信号处理部分1030,该信号处理部分1030可以通过芯片实现,该芯片包括至少一个处理元件和接口电路,其中处理元件用于执行以上终端设备执行的任一种方法的各个步骤,接口电路用于与其它装置通信。在一种实现中,实现以上方法中各个步骤的单元可以通过处理元件调度程序的形式实现,例如该装置包括处理元件和存储元件,处理元件调用存储元件存储的程序,以执行以上方法实施例中终端设备执行的方法。存储元件可以为处理元件处于同一芯片上的存储元件,即片内存储元件。The signal processing part 1030 may include one or more processing elements 1031, for example, including a main control CPU and other integrated circuits. In addition, the signal processing part 1030 may further include a storage element 1032 and an interface circuit 1033. The storage element 1032 is used to store data and programs. The program used to execute the method executed by the terminal device in the above method may or may not be stored in the storage element 1032, for example, stored in a memory other than the signal processing part 1030 During use, the signal processing part 1030 loads the program into the cache for use. The interface circuit 1033 is used to communicate with the device. The above device may be located in the signal processing part 1030, the signal processing part 1030 may be realized by a chip, the chip includes at least one processing element and an interface circuit, wherein the processing element is used to perform each step of any method executed by the above terminal device, the interface The circuit is used to communicate with other devices. In one implementation, the unit that implements each step in the above method can be implemented in the form of a processing element scheduler. For example, the device includes a processing element and a storage element, and the processing element calls a program stored by the storage element to execute the above method embodiments. The method executed by the terminal device. The storage element may be a storage element whose processing element is on the same chip, that is, an on-chip storage element.
在另一种实现中,用于执行以上方法中终端设备所执行的方法的程序可以在与处理元件处于不同芯片上的存储元件,即片外存储元件。此时,处理元件从片外存储元件调用或加载程序于片内存储元件上,以调用并执行以上方法实施例中终端设备执行的方法。In another implementation, the program used to execute the method executed by the terminal device in the above method may be a storage element on a different chip from the processing element, that is, an off-chip storage element. At this time, the processing element calls or loads a program from the off-chip storage element on the on-chip storage element to call and execute the method executed by the terminal device in the above method embodiment.
在又一种实现中,终端设备实现以上方法中各个步骤的单元可以是被配置成一个或多个处理元件,这些处理元件设置于信号处理部分1030上,这里的处理元件可以为集成电路,例如:一个或多个ASIC,或,一个或多个DSP,或,一个或者多个FPGA,或者这些类集成电路的组合。这些集成电路可以集成在一起,构成芯片。In yet another implementation, the unit of the terminal device that implements each step in the above method may be configured as one or more processing elements, and these processing elements are provided on the signal processing part 1030, where the processing elements may be integrated circuits, such as : One or more ASICs, or, one or more DSPs, or, one or more FPGAs, or a combination of these types of integrated circuits. These integrated circuits can be integrated together to form a chip.
实现以上方法中各个步骤的单元可以集成在一起,以片上系统(system-on-a-chip,SOC)的形式实现,该SOC芯片,用于实现以上方法。该芯片内可以集成至少一个处理元件和存储元件,由处理元件调用存储元件的存储的程序的形式实现以上终端设备执行的方法;或者,该芯片内可以集成至少一个集成电路,用于实现以上终端设备执行的方法;或者,可以结合以上实现方式,部分单元的功能通过处理元件调用程序的形式实现,部分单元的功能通过集成电路的形式实现。The units that implement each step in the above method can be integrated together and implemented in the form of a system-on-a-chip (SOC), and the SOC chip is used to implement the above method. The chip can integrate at least one processing element and a storage element, and the processing element can call the stored program of the storage element to implement the method executed by the above terminal device; or, the chip can integrate at least one integrated circuit to implement the above terminal The method executed by the device; or, it can be combined with the above implementations. The functions of some units are implemented in the form of calling programs by processing elements, and the functions of some units are implemented in the form of integrated circuits.
可见,以上装置可以包括至少一个处理元件和接口电路,其中至少一个处理元件用于执行以上方法实施例所提供的任一种终端设备执行的方法。处理元件可以以第一种方式:即调用存储元件存储的程序的方式执行终端设备执行的部分或全部步骤;也可以以第二种方式:即通过处理器元件中的硬件的集成逻辑电路结合指令的方式执行终端设备执行的部分或全部步骤;当然,也可以结合第一种方式和第二种方式执行终端设备执行的部分或全部步骤。It can be seen that the above apparatus may include at least one processing element and an interface circuit, wherein at least one processing element is used to execute any method executed by the terminal device provided in the above method embodiment. The processing element can execute part or all of the steps executed by the terminal device in the first way: calling the program stored in the storage element; or in the second way: combining instructions through the integrated logic circuit of the hardware in the processor element Part or all of the steps executed by the terminal device are executed in a manner; of course, part or all of the steps executed by the terminal device may also be executed in combination with the first manner and the second manner.
这里的处理元件同以上描述,可以是通用处理器,例如CPU,还可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个ASIC,或,一个或多个微处理器DSP,或,一个或者多个FPGA等,或这些集成电路形式中至少两种的组合。存储元件可以是一个存储器,也可以是多个存储元件的统称。The processing element here is the same as the above description, and it may be a general-purpose processor, such as a CPU, or one or more integrated circuits configured to implement the above method, such as: one or more ASICs, or, one or more micro-processing DSP, or, one or more FPGAs, etc., or a combination of at least two of these integrated circuit forms. The storage element can be a memory or a collective term for multiple storage elements.
参考图11,为本申请实施例提供的一种策略控制网元的结构示意图,用于实现以上实施例中策略控制网元的操作。如图11所示,该策略控制网元包括:处理器1110,存储器1120,和接口1130,处理器1110、存储器1120和接口1130信号连接。Referring to FIG. 11, a schematic structural diagram of a policy control network element provided by an embodiment of this application is used to implement the operation of the policy control network element in the above embodiment. As shown in FIG. 11, the policy control network element includes: a processor 1110, a memory 1120, and an interface 1130, and the processor 1110, a memory 1120, and the interface 1130 are signal-connected.
以上实施例中策略控制网元执行的方法可以通过处理器1110调用存储器1120中存储的程序来实现。即,用于策略控制网元的装置包括存储器和处理器,存储器用于存储程序,该程序被处理器调用,以执行以上方法实施例中的策略控制网元执行的方法。这里的处理器可以是一种具有信号的处理能力的集成电路,例如CPU。用于策略控制网元的装置可以通过配置成实施以上方法的一个或多个集成电路来实现。例如:一个或多个ASIC,或, 一个或多个微处理器DSP,或,一个或者多个FPGA等,或这些集成电路形式中至少两种的组合。或者,可以结合以上实现方式。The method for the execution of the policy control network element in the above embodiment can be implemented by the processor 1110 calling a program stored in the memory 1120. That is, the device for the policy control network element includes a memory and a processor, and the memory is used to store a program, and the program is called by the processor to execute the method executed by the policy control network element in the above method embodiment. The processor here may be an integrated circuit with signal processing capability, such as a CPU. The device for the policy control network element may be implemented by one or more integrated circuits configured to implement the above method. For example: one or more ASICs, or, one or more microprocessors DSP, or, one or more FPGAs, etc., or a combination of at least two of these integrated circuit forms. Or, the above implementations can be combined.
参考图12,为本申请实施例提供的一种DNS服务器的结构示意图,用于实现以上实施例中DNS服务器的操作。如图12所示,该DNS服务器包括:处理器1210,存储器1220,和接口1230,处理器1210、存储器1220和接口1230信号连接。Referring to FIG. 12, a schematic structural diagram of a DNS server provided by an embodiment of this application is used to implement the operation of the DNS server in the above embodiment. As shown in FIG. 12, the DNS server includes: a processor 1210, a memory 1220, and an interface 1230, and the processor 1210, the memory 1220, and the interface 1230 are signal-connected.
以上实施例中DNS服务器执行的方法可以通过处理器1210调用存储器1220中存储的程序来实现。即,用于DNS服务器的装置包括存储器和处理器,存储器用于存储程序,该程序被处理器调用,以执行以上方法实施例中的DNS服务器执行的方法。这里的处理器可以是一种具有信号的处理能力的集成电路,例如CPU。用于DNS服务器的装置可以通过配置成实施以上方法的一个或多个集成电路来实现。例如:一个或多个ASIC,或,一个或多个微处理器DSP,或,一个或者多个FPGA等,或这些集成电路形式中至少两种的组合。或者,可以结合以上实现方式。The method executed by the DNS server in the above embodiment may be implemented by the processor 1210 calling a program stored in the memory 1220. That is, the device for the DNS server includes a memory and a processor, and the memory is used to store a program, which is called by the processor to execute the method executed by the DNS server in the above method embodiment. The processor here may be an integrated circuit with signal processing capability, such as a CPU. The means for the DNS server may be realized by one or more integrated circuits configured to implement the above method. For example: one or more ASICs, or, one or more microprocessors DSP, or, one or more FPGAs, etc., or a combination of at least two of these integrated circuit forms. Or, the above implementations can be combined.
参考图13,为本申请实施例提供的一种通信系统示意图,该系统包括策略控制网元和移动性管理网元。可选的,该系统还包括终端设备。所述策略控制网元,用于获取终端设备的应用的域名信息,所述域名信息用于指示域名对应的应用服务器是否为多个;向所述移动性管理网元发送所述域名信息。所述移动性管理网元,用于向所述终端设备发送所述域名信息,所述域名信息用于所述终端设备判断是否发送第一消息,所述第一消息用于查询所述域名对应的IP地址。Referring to FIG. 13, a schematic diagram of a communication system provided by an embodiment of this application. The system includes a policy control network element and a mobility management network element. Optionally, the system also includes terminal equipment. The policy control network element is used to obtain domain name information of the application of the terminal device, the domain name information is used to indicate whether there are multiple application servers corresponding to the domain name; and the domain name information is sent to the mobility management network element. The mobility management network element is configured to send the domain name information to the terminal device, where the domain name information is used by the terminal device to determine whether to send a first message, and the first message is used to query the corresponding domain name IP address.
在一种可能的实现方法中,所述策略控制网元,还用于确定所述终端设备的注册区域与所述域名的域名范围之间的交集区域;向所述移动性管理网元发送所述交集区域;所述移动性管理网元,还用于向所述终端设备发送所述交集区域,所述交集区域用于所述终端设备判断是否发送所述第一消息。In a possible implementation method, the policy control network element is also used to determine the intersection area between the registration area of the terminal device and the domain name range of the domain name; The intersection area; the mobility management network element is also used to send the intersection area to the terminal device, and the intersection area is used by the terminal device to determine whether to send the first message.
在一种可能的实现方法中,所述策略控制网元,用于获取终端设备的应用的域名信息,具体包括:用于从集中控制网元接收所述域名信息;或者,用于从集中控制网元接收所述域名对应的业务描述信息和所述业务描述信息对应的业务位置,根据业务描述信息和所述业务位置确定所述域名信息。In a possible implementation method, the policy control network element is used to obtain the domain name information of the terminal device application, which specifically includes: used to receive the domain name information from the centralized control network element; or, used to receive the domain name information from the centralized control The network element receives the service description information corresponding to the domain name and the service location corresponding to the service description information, and determines the domain name information according to the service description information and the service location.
在一种可能的实现方法中,所述终端设备,用于:在所述终端设备发生移动、且所述终端设备的应用的域名对应的DNS资源记录的存留时间未超时的情况下,若满足第一条件,向DNS服务器发送第一消息,所述第一消息用于查询所述域名对应的IP地址;接收所述DNS服务器发送的第二消息,所述第二消息包括所述域名对应的IP地址,所述IP地址所指示的应用服务器与所述终端设备移动后的位置对应。In a possible implementation method, the terminal device is configured to: when the terminal device moves and the retention time of the DNS resource record corresponding to the domain name of the terminal device application does not expire, if it is satisfied The first condition is to send a first message to the DNS server, where the first message is used to query the IP address corresponding to the domain name; and to receive a second message sent by the DNS server, the second message includes information corresponding to the domain name An IP address, where the application server indicated by the IP address corresponds to the position of the terminal device after it has moved.
在一种可能的实现方法中,所述终端设备,用于:在所述终端设备发生移动、且所述终端设备的应用的域名对应的DNS资源记录的存留时间未超时的情况下,若满足第一条件,向DNS服务器发送第一消息,所述第一消息用于查询所述域名对应的IP地址;接收所述DNS服务器发送的第二消息,所述第二消息包括包含指示信息,所述指示信息用于指示所述域名对应的IP地址没有改变,所述IP地址所指示的应用服务器与所述终端设备移动后的位置对应。In a possible implementation method, the terminal device is configured to: when the terminal device moves and the retention time of the DNS resource record corresponding to the domain name of the terminal device application does not expire, if it is satisfied The first condition is to send a first message to the DNS server, where the first message is used to query the IP address corresponding to the domain name; and to receive a second message sent by the DNS server, where the second message includes indication information, so The indication information is used to indicate that the IP address corresponding to the domain name has not changed, and the application server indicated by the IP address corresponds to the position of the terminal device after it has moved.
在一种可能的实现方法中,所述第一条件包括以下任意一项:所述域名对应的应用服 务器为多个;或者,所述域名对应的应用服务器为多个、且所述终端设备移出了交集区域,所述交集区域为所述终端设备的注册区域与所述域名的域名范围之间的交集区域。In a possible implementation method, the first condition includes any one of the following: there are multiple application servers corresponding to the domain name; or, there are multiple application servers corresponding to the domain name, and the terminal device is removed The intersection area is an intersection area between the registration area of the terminal device and the domain name range of the domain name.
在一种可能的实现方法中,所述终端设备发生移动,包括:所述终端设备发生小区间移动;或者,所述终端设备移动使得所述终端设备对应的数据网络接入标识DNAI改变;或者,所述终端设备发生跟踪区域间移动;或者,所述终端设备移出了所述终端设备的注册区域与所述域名的域名范围之间的交集区域。In a possible implementation method, the movement of the terminal device includes: inter-cell movement of the terminal device; or, the movement of the terminal device causes the data network access identifier DNAI corresponding to the terminal device to change; or , The terminal device moves between tracking areas; or, the terminal device moves out of the intersection area between the registration area of the terminal device and the domain name range of the domain name.
参考图14,为本申请实施例提供的又一种通信系统示意图,该系统包括终端设备和DNS服务器。所述DNS服务器,用于来自所述终端设备的DNS查询请求,所述DNS查询请求包含所述终端设备的应用的域名;根据所述域名的域名信息设置存留时间,所述存留时间为所述域名对应的DNS资源记录的存留时间;向所述终端设备发送所述域名对应的IP地址和所述存留时间;所述终端设备,用于根据所述存留时间判断是否发送第一消息,所述第一消息用于查询所述域名对应的IP地址。Referring to FIG. 14, a schematic diagram of another communication system provided by an embodiment of this application. The system includes a terminal device and a DNS server. The DNS server is used for a DNS query request from the terminal device, the DNS query request includes the domain name of the terminal device application; the retention time is set according to the domain name information of the domain name, and the retention time is the The retention time of the DNS resource record corresponding to the domain name; sending the IP address corresponding to the domain name and the retention time to the terminal device; the terminal device is configured to determine whether to send the first message according to the retention time, the The first message is used to query the IP address corresponding to the domain name.
在一种可能的实现方法中,所述DNS服务器,用于根据所述域名的域名信息设置存留时间,具体包括:用于若所述域名信息指示所述域名对应的应用服务器为多个,则设置所述存留时间小于预设阈值;或者,用于若所述域名信息指示所述域名对应的应用服务器为一个,则设置所述存留时间大于预设阈值。In a possible implementation method, the DNS server is configured to set the retention time according to the domain name information of the domain name, specifically including: if the domain name information indicates that there are multiple application servers corresponding to the domain name, then Set the retention time to be less than a preset threshold; or, if the domain name information indicates that there is one application server corresponding to the domain name, set the retention time to be greater than the preset threshold.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包括一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented by software, it can be implemented in the form of a computer program product in whole or in part. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center. Transmission to another website site, computer, server or data center via wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).
本申请实施例中所描述的各种说明性的逻辑单元和电路可以通过通用处理器,数字信号处理器,专用集成电路(ASIC),现场可编程门阵列(FPGA)或其它可编程逻辑装置,离散门或晶体管逻辑,离散硬件部件,或上述任何组合的设计来实现或操作所描述的功能。通用处理器可以为微处理器,可选地,该通用处理器也可以为任何传统的处理器、控制器、微控制器或状态机。处理器也可以通过计算装置的组合来实现,例如数字信号处理器和微处理器,多个微处理器,一个或多个微处理器联合一个数字信号处理器核,或任何其它类似的配置来实现。The various illustrative logic units and circuits described in the embodiments of this application can be implemented by general-purpose processors, digital signal processors, application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, Discrete gates or transistor logic, discrete hardware components, or any combination of the above are designed to implement or operate the described functions. The general-purpose processor may be a microprocessor. Alternatively, the general-purpose processor may also be any traditional processor, controller, microcontroller, or state machine. The processor can also be implemented by a combination of computing devices, such as a digital signal processor and a microprocessor, multiple microprocessors, one or more microprocessors combined with a digital signal processor core, or any other similar configuration. achieve.
在一个或多个示例性的设计中,本申请所描述的上述功能可以在硬件、软件、固件或这三者的任意组合来实现。如果在软件中实现,这些功能可以存储与电脑可读的媒介上,或以一个或多个指令或代码形式传输于电脑可读的媒介上。电脑可读媒介包括电脑存储媒介和便于使得让电脑程序从一个地方转移到其它地方的通信媒介。存储媒介可以是任何通 用或特殊电脑可以接入访问的可用媒体。例如,这样的电脑可读媒体可以包括但不限于RAM、ROM、EEPROM、CD-ROM或其它光盘存储、磁盘存储或其它磁性存储装置,或其它任何可以用于承载或存储以指令或数据结构和其它可被通用或特殊电脑、或通用或特殊处理器读取形式的程序代码的媒介。此外,任何连接都可以被适当地定义为电脑可读媒介,例如,如果软件是从一个网站站点、服务器或其它远程资源通过一个同轴电缆、光纤电脑、双绞线、数字用户线(DSL)或以例如红外、无线和微波等无线方式传输的也被包含在所定义的电脑可读媒介中。所述的碟片(disk)和磁盘(disc)包括压缩磁盘、镭射盘、光盘、数字通用光盘(英文:Digital Versatile Disc,简称:DVD)、软盘和蓝光光盘,磁盘通常以磁性复制数据,而碟片通常以激光进行光学复制数据。上述的组合也可以包含在电脑可读媒介中。In one or more exemplary designs, the aforementioned functions described in this application can be implemented in hardware, software, firmware, or any combination of the three. If implemented in software, these functions can be stored on a computer-readable medium, or transmitted on the computer-readable medium in the form of one or more instructions or codes. Computer-readable media include computer storage media and communication media that facilitate the transfer of computer programs from one place to another. The storage medium can be any available medium that can be accessed by a general-purpose or special computer. For example, such computer-readable media may include, but are not limited to, RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other device that can be used to carry or store instructions or data structures and Other program code media that can be read by general-purpose or special computers, or general-purpose or special processors. In addition, any connection can be appropriately defined as a computer-readable medium, for example, if the software is from a website, server, or other remote source through a coaxial cable, fiber optic computer, twisted pair, or digital subscriber line (DSL) Or transmitted by wireless means such as infrared, wireless and microwave are also included in the definition of computer-readable media. The mentioned disks and discs include compressed disks, laser disks, optical discs, digital versatile discs (English: Digital Versatile Disc, abbreviated as: DVD), floppy disks and Blu-ray discs. Disks usually copy data with magnetism. Discs usually use lasers to copy data optically. The combination of the above can also be contained in a computer readable medium.
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art should be aware that in one or more of the above examples, the functions described in this application can be implemented by hardware, software, firmware, or any combination thereof. When implemented by software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on the computer-readable medium. The computer-readable medium includes a computer storage medium and a communication medium, where the communication medium includes any medium that facilitates the transfer of a computer program from one place to another. The storage medium may be any available medium that can be accessed by a general-purpose or special-purpose computer.
尽管结合具体特征及其实施例对本申请进行了描述,显而易见的,在不脱离本申请的精神和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本申请的示例性说明,且视为已覆盖本申请范围内的任意和所有修改、变化、组合或等同物。显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包括这些改动和变型在内。Although the application has been described in combination with specific features and embodiments, it is obvious that various modifications and combinations can be made without departing from the spirit and scope of the application. Correspondingly, the specification and drawings are merely exemplary descriptions of the application as defined by the appended claims, and are deemed to cover any and all modifications, changes, combinations or equivalents within the scope of the application. Obviously, those skilled in the art can make various changes and modifications to the application without departing from the scope of the application. In this way, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalent technologies, this application also intends to include these modifications and variations.

Claims (30)

  1. 一种域名系统DNS查询方法,其特征在于,包括:A DNS query method for a domain name system is characterized in that it comprises:
    在终端设备发生移动、且所述终端设备的应用的域名对应的DNS资源记录的存留时间未超时的情况下,若满足第一条件,向DNS服务器发送第一消息,所述第一消息用于查询所述域名对应的互联网协议IP地址;In the case that the terminal device moves and the retention time of the DNS resource record corresponding to the domain name of the terminal device application has not expired, if the first condition is met, a first message is sent to the DNS server, and the first message is used for Query the Internet Protocol IP address corresponding to the domain name;
    接收所述DNS服务器发送的第二消息,所述第二消息包括所述域名对应的所述IP地址,所述IP地址所指示的应用服务器与所述终端设备移动后的位置对应。Receiving a second message sent by the DNS server, where the second message includes the IP address corresponding to the domain name, and the application server indicated by the IP address corresponds to the moved position of the terminal device.
  2. 如权利要求1所述的方法,其特征在于,所述第一条件包括以下任意一项:The method of claim 1, wherein the first condition includes any one of the following:
    所述域名对应的应用服务器为多个;或者,There are multiple application servers corresponding to the domain name; or,
    所述域名对应的应用服务器为多个、且所述终端设备移出了交集区域,所述交集区域为所述终端设备的注册区域与所述域名的域名范围之间的交集区域;或者,There are multiple application servers corresponding to the domain name, and the terminal device has moved out of an intersection area, where the intersection area is the intersection area between the registration area of the terminal device and the domain name range of the domain name; or,
    所述DNS资源记录的存留时间小于预设阈值。The retention time of the DNS resource record is less than a preset threshold.
  3. 如权利要求1或2所述的方法,其特征在于,所述终端设备发生移动,包括:The method according to claim 1 or 2, wherein the movement of the terminal device includes:
    所述终端设备发生小区间移动;或者,The terminal device moves between cells; or,
    所述终端设备移动使得所述终端设备对应的数据网络接入标识DNAI改变;或者,The movement of the terminal device causes the data network access identifier DNAI corresponding to the terminal device to change; or,
    所述终端设备发生跟踪区域间移动;或者,The terminal device moves between tracking areas; or,
    所述终端设备移出了所述终端设备的注册区域与所述域名的域名范围之间的交集区域。The terminal device moves out of the intersection area between the registration area of the terminal device and the domain name range of the domain name.
  4. 一种域名系统DNS查询方法,其特征在于,包括:A DNS query method for a domain name system is characterized in that it comprises:
    在终端设备发生移动、且所述终端设备的应用的域名对应的DNS资源记录的存留时间未超时的情况下,若满足第一条件,向DNS服务器发送第一消息,所述第一消息用于查询所述域名对应的互联网协议IP地址;In the case that the terminal device moves and the retention time of the DNS resource record corresponding to the domain name of the terminal device application has not expired, if the first condition is met, a first message is sent to the DNS server, and the first message is used for Query the Internet Protocol IP address corresponding to the domain name;
    接收所述DNS服务器发送的第二消息,所述第二消息包括包含指示信息,所述指示信息用于指示所述域名对应的所述IP地址没有改变,所述IP地址所指示的应用服务器与所述终端设备移动后的位置对应。Receive a second message sent by the DNS server, where the second message includes indication information used to indicate that the IP address corresponding to the domain name has not changed, and that the application server indicated by the IP address is different from The position of the terminal device after the movement corresponds.
  5. 如权利要求4所述的方法,其特征在于,所述第一条件包括以下任意一项:The method of claim 4, wherein the first condition includes any one of the following:
    所述域名对应的应用服务器为多个;或者,There are multiple application servers corresponding to the domain name; or,
    所述域名对应的应用服务器为多个、且所述终端设备移出了交集区域,所述交集区域为所述终端设备的注册区域与所述域名的域名范围之间的交集区域;或者,There are multiple application servers corresponding to the domain name, and the terminal device has moved out of an intersection area, where the intersection area is the intersection area between the registration area of the terminal device and the domain name range of the domain name; or,
    所述DNS资源记录的存留时间小于预设阈值。The retention time of the DNS resource record is less than a preset threshold.
  6. 如权利要求4或5所述的方法,其特征在于,所述终端设备发生移动,包括:The method according to claim 4 or 5, wherein the movement of the terminal device includes:
    所述终端设备发生小区间移动;或者,The terminal device moves between cells; or,
    所述终端设备移动使得所述终端设备对应的数据网络接入标识DNAI改变;或者,The movement of the terminal device causes the data network access identifier DNAI corresponding to the terminal device to change; or,
    所述终端设备发生跟踪区域间移动;或者,The terminal device moves between tracking areas; or,
    所述终端设备移出了所述终端设备的注册区域与所述域名的域名范围之间的交集区域。The terminal device moves out of the intersection area between the registration area of the terminal device and the domain name range of the domain name.
  7. 一种域名系统DNS查询方法,其特征在于,包括:A DNS query method for a domain name system is characterized in that it comprises:
    获取终端设备的应用的域名信息,所述域名信息用于指示域名对应的应用服务器是否为多个;Acquiring domain name information of the application of the terminal device, where the domain name information is used to indicate whether there are multiple application servers corresponding to the domain name;
    向所述终端设备发送所述域名信息,所述域名信息用于所述终端设备判断是否发送第一消息,所述第一消息用于查询所述域名对应的互联网协议IP地址。The domain name information is sent to the terminal device, where the domain name information is used by the terminal device to determine whether to send a first message, and the first message is used to query an Internet Protocol IP address corresponding to the domain name.
  8. 如权利要求7所述的方法,其特征在于,还包括:The method of claim 7, further comprising:
    确定所述终端设备的注册区域与所述域名的域名范围之间的交集区域;Determining the intersection area between the registration area of the terminal device and the domain name range of the domain name;
    向所述终端设备发送所述交集区域,所述交集区域用于所述终端设备判断是否发送所述第一消息。Sending the intersection area to the terminal device, where the intersection area is used by the terminal device to determine whether to send the first message.
  9. 如权利要求7或8所述的方法,其特征在于,获取应用的域名信息,包括:The method according to claim 7 or 8, wherein obtaining domain name information of an application comprises:
    从集中控制网元接收所述域名信息;或者,Receiving the domain name information from the centralized control network element; or,
    从集中控制网元接收所述域名对应的业务描述信息和所述业务描述信息对应的业务位置,根据所述业务描述信息和所述业务位置确定所述域名信息。The service description information corresponding to the domain name and the service location corresponding to the service description information are received from the centralized control network element, and the domain name information is determined according to the service description information and the service location.
  10. 如权利要求7-9任一所述的方法,其特征在于,所述域名信息包含所述域名和指示信息,所述指示信息用于指示所述域名对应的应用服务器是否为多个。The method according to any one of claims 7-9, wherein the domain name information includes the domain name and indication information, and the indication information is used to indicate whether there are multiple application servers corresponding to the domain name.
  11. 一种域名系统DNS查询方法,其特征在于,包括:A DNS query method for a domain name system is characterized in that it comprises:
    接收来自终端设备的DNS查询请求,所述DNS查询请求包含所述终端设备的应用的域名;Receiving a DNS query request from a terminal device, where the DNS query request includes a domain name of an application of the terminal device;
    根据所述域名的域名信息设置存留时间,所述存留时间为所述域名对应的DNS资源记录的存留时间;Setting a retention time according to the domain name information of the domain name, where the retention time is the retention time of the DNS resource record corresponding to the domain name;
    向所述终端设备发送所述域名对应的互联网协议IP地址和所述存留时间,所述存留时间用于所述终端设备判断是否发送第一消息,所述第一消息用于查询所述域名对应的IP地址。The Internet Protocol IP address corresponding to the domain name and the retention time are sent to the terminal device, where the retention time is used by the terminal device to determine whether to send a first message, and the first message is used to query the domain name correspondence IP address.
  12. 如权利要求11所述的方法,其特征在于,根据所述域名的域名信息设置存留时间,包括:The method of claim 11, wherein setting the retention time according to the domain name information of the domain name comprises:
    若所述域名信息指示所述域名对应的应用服务器为多个,则设置所述存留时间小于预设阈值;或者,If the domain name information indicates that there are multiple application servers corresponding to the domain name, set the retention time to be less than a preset threshold; or,
    若所述域名信息指示所述域名对应的应用服务器为一个,则设置所述存留时间大于预设阈值。If the domain name information indicates that there is one application server corresponding to the domain name, the retention time is set to be greater than a preset threshold.
  13. 一种通信装置,其特征在于,包括:用于执行权利要求1-3任一所述的方法的单元。A communication device, characterized by comprising: a unit for executing the method according to any one of claims 1-3.
  14. 一种通信装置,其特征在于,包括:用于执行权利要求4-6任一所述的方法的单元。A communication device, characterized by comprising: a unit for executing the method according to any one of claims 4-6.
  15. 一种通信装置,其特征在于,包括:用于执行权利要求7-10任一所述的方法的单元。A communication device, characterized by comprising: a unit for executing the method according to any one of claims 7-10.
  16. 一种通信装置,其特征在于,包括:用于执行权利要求11或12所述的方法的单元。A communication device, characterized by comprising: a unit for executing the method according to claim 11 or 12.
  17. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储程序,所述程序被处理器调用时,权利要求1-12任一所述的方法被执行。A computer-readable storage medium, wherein the computer-readable storage medium stores a program, and when the program is called by a processor, the method according to any one of claims 1-12 is executed.
  18. 一种计算机程序,其特征在于,当所述程序被处理器调用时,权利要求1-12任一所述的方法被执行。A computer program, characterized in that when the program is called by a processor, the method according to any one of claims 1-12 is executed.
  19. 一种通信系统,其特征在于,包括策略控制网元和移动性管理网元;A communication system, characterized in that it includes a policy control network element and a mobility management network element;
    所述策略控制网元,用于获取终端设备的应用的域名信息,所述域名信息用于指示域 名对应的应用服务器是否为多个;向所述移动性管理网元发送所述域名信息;The policy control network element is used to obtain domain name information of the application of the terminal device, the domain name information is used to indicate whether there are multiple application servers corresponding to the domain name; and the domain name information is sent to the mobility management network element;
    所述移动性管理网元,用于向所述终端设备发送所述域名信息,所述域名信息用于所述终端设备判断是否发送第一消息,所述第一消息用于查询所述域名对应的互联网协议IP地址。The mobility management network element is configured to send the domain name information to the terminal device, where the domain name information is used by the terminal device to determine whether to send a first message, and the first message is used to query the corresponding domain name Internet Protocol IP address.
  20. 如权利要求19所述的系统,其特征在于,所述策略控制网元,还用于确定所述终端设备的注册区域与所述域名的域名范围之间的交集区域;向所述移动性管理网元发送所述交集区域;The system according to claim 19, wherein the policy control network element is further used to determine the intersection area between the registration area of the terminal device and the domain name range of the domain name; The network element sends the intersection area;
    所述移动性管理网元,还用于向所述终端设备发送所述交集区域,所述交集区域用于所述终端设备判断是否发送所述第一消息。The mobility management network element is further configured to send the intersection area to the terminal device, where the intersection area is used by the terminal device to determine whether to send the first message.
  21. 如权利要求19或20所述的系统,其特征在于,所述策略控制网元,用于获取终端设备的应用的域名信息,具体包括:The system according to claim 19 or 20, wherein the policy control network element is used to obtain domain name information of an application of a terminal device, which specifically includes:
    用于从集中控制网元接收所述域名信息;或者,Used to receive the domain name information from the centralized control network element; or,
    用于从集中控制网元接收所述域名对应的业务描述信息和所述业务描述信息对应的业务位置,根据所述业务描述信息和所述业务位置确定所述域名信息。It is used to receive the service description information corresponding to the domain name and the service location corresponding to the service description information from the centralized control network element, and determine the domain name information according to the service description information and the service location.
  22. 如权利要求19-21任一所述的系统,其特征在于,所述系统还包括所述终端设备,用于:22. The system according to any one of claims 19-21, wherein the system further comprises the terminal device for:
    在所述终端设备发生移动、且所述终端设备的应用的域名对应的DNS资源记录的存留时间未超时的情况下,若满足第一条件,向DNS服务器发送第一消息,所述第一消息用于查询所述域名对应的IP地址;In the case that the terminal device moves and the retention time of the DNS resource record corresponding to the domain name of the terminal device application has not expired, if the first condition is met, a first message is sent to the DNS server, the first message Used to query the IP address corresponding to the domain name;
    接收所述DNS服务器发送的第二消息,所述第二消息包括所述域名对应的IP地址,所述IP地址所指示的应用服务器与所述终端设备移动后的位置对应。A second message sent by the DNS server is received, where the second message includes an IP address corresponding to the domain name, and the application server indicated by the IP address corresponds to the moved position of the terminal device.
  23. 如权利要求19-21任一所述的系统,其特征在于,所述系统还包括所述终端设备,用于:22. The system according to any one of claims 19-21, wherein the system further comprises the terminal device for:
    在所述终端设备发生移动、且所述终端设备的应用的域名对应的DNS资源记录的存留时间未超时的情况下,若满足第一条件,向DNS服务器发送第一消息,所述第一消息用于查询所述域名对应的IP地址;In the case that the terminal device moves and the retention time of the DNS resource record corresponding to the domain name of the terminal device application has not expired, if the first condition is met, a first message is sent to the DNS server, the first message Used to query the IP address corresponding to the domain name;
    接收所述DNS服务器发送的第二消息,所述第二消息包括包含指示信息,所述指示信息用于指示所述域名对应的IP地址没有改变,所述IP地址所指示的应用服务器与所述终端设备移动后的位置对应。Receive a second message sent by the DNS server, where the second message includes indication information that is used to indicate that the IP address corresponding to the domain name has not changed, and that the application server indicated by the IP address is different from the The position of the terminal device after the movement corresponds.
  24. 如权利要求22或23所述的系统,其特征在于,所述第一条件包括以下任意一项:The system according to claim 22 or 23, wherein the first condition includes any one of the following:
    所述域名对应的应用服务器为多个;或者,There are multiple application servers corresponding to the domain name; or,
    所述域名对应的应用服务器为多个、且所述终端设备移出了交集区域,所述交集区域为所述终端设备的注册区域与所述域名的域名范围之间的交集区域。There are multiple application servers corresponding to the domain name, and the terminal device has moved out of an intersection area, where the intersection area is an intersection area between the registration area of the terminal device and the domain name range of the domain name.
  25. 如权利要求22-24任一所述的系统,其特征在于,所述终端设备发生移动,包括:The system according to any one of claims 22-24, wherein the movement of the terminal device includes:
    所述终端设备发生小区间移动;或者,The terminal device moves between cells; or,
    所述终端设备移动使得所述终端设备对应的数据网络接入标识DNAI改变;或者,The movement of the terminal device causes the data network access identifier DNAI corresponding to the terminal device to change; or,
    所述终端设备发生跟踪区域间移动;或者,The terminal device moves between tracking areas; or,
    所述终端设备移出了所述终端设备的注册区域与所述域名的域名范围之间的交集区域。The terminal device moves out of the intersection area between the registration area of the terminal device and the domain name range of the domain name.
  26. 一种通信方法,其特征在于,包括:A communication method, characterized in that it comprises:
    策略控制网元获取终端设备的应用的域名信息,所述域名信息用于指示域名对应的应用服务器是否为多个;The policy control network element obtains domain name information of the application of the terminal device, where the domain name information is used to indicate whether there are multiple application servers corresponding to the domain name;
    所述策略控制网元向移动性管理网元发送所述域名信息;Sending, by the policy control network element, the domain name information to the mobility management network element;
    所述移动性管理网元向所述终端设备发送所述域名信息,所述域名信息用于所述终端设备判断是否发送第一消息,所述第一消息用于查询所述域名对应的互联网协议IP地址。The mobility management network element sends the domain name information to the terminal device, where the domain name information is used by the terminal device to determine whether to send a first message, and the first message is used to query the Internet protocol corresponding to the domain name IP address.
  27. 如权利要求26所述的方法,其特征在于,还包括:The method of claim 26, further comprising:
    所述策略控制网元确定所述终端设备的注册区域与所述域名的域名范围之间的交集区域;向所述移动性管理网元发送所述交集区域;Determining, by the policy control network element, the intersection area between the registration area of the terminal device and the domain name range of the domain name; sending the intersection area to the mobility management network element;
    所述移动性管理网元向所述终端设备发送所述交集区域,所述交集区域用于所述终端设备判断是否发送所述第一消息。The mobility management network element sends the intersection area to the terminal device, where the intersection area is used by the terminal device to determine whether to send the first message.
  28. 如权利要求26或27所述的方法,其特征在于,所述策略控制网元获取终端设备的应用的域名信息,包括:The method according to claim 26 or 27, wherein the policy control network element acquiring the domain name information of the application of the terminal device comprises:
    所述策略控制网元从集中控制网元接收所述域名信息;或者,The policy control network element receives the domain name information from a centralized control network element; or,
    所述策略控制网元从集中控制网元接收所述域名对应的业务描述信息和所述业务描述信息对应的业务位置,根据所述业务描述信息和所述业务位置确定所述域名信息。The policy control network element receives the service description information corresponding to the domain name and the service location corresponding to the service description information from the centralized control network element, and determines the domain name information according to the service description information and the service location.
  29. 如权利要求26-28任一所述的方法,其特征在于,还包括:The method according to any one of claims 26-28, further comprising:
    在所述终端设备发生移动、且所述终端设备的应用的域名对应的DNS资源记录的存留时间未超时的情况下,若满足第一条件,所述终端设备向DNS服务器发送第一消息,所述第一消息用于查询所述域名对应的IP地址;In the case that the terminal device moves and the retention time of the DNS resource record corresponding to the domain name of the terminal device application has not expired, if the first condition is met, the terminal device sends a first message to the DNS server, so The first message is used to query the IP address corresponding to the domain name;
    所述终端设备接收所述DNS服务器发送的第二消息,所述第二消息包括所述域名对应的IP地址,所述IP地址所指示的应用服务器与所述终端设备移动后的位置对应。The terminal device receives a second message sent by the DNS server, where the second message includes an IP address corresponding to the domain name, and the application server indicated by the IP address corresponds to the position of the terminal device after the movement.
  30. 如权利要求26-28任一所述的方法,其特征在于,还包括:The method according to any one of claims 26-28, further comprising:
    在所述终端设备发生移动、且所述终端设备的应用的域名对应的DNS资源记录的存留时间未超时的情况下,若满足第一条件,所述终端设备向DNS服务器发送第一消息,所述第一消息用于查询所述域名对应的IP地址;In the case that the terminal device moves and the retention time of the DNS resource record corresponding to the domain name of the terminal device application has not expired, if the first condition is met, the terminal device sends a first message to the DNS server, so The first message is used to query the IP address corresponding to the domain name;
    所述终端设备接收所述DNS服务器发送的第二消息,所述第二消息包括包含指示信息,所述指示信息用于指示所述域名对应的IP地址没有改变,所述IP地址所指示的应用服务器与所述终端设备移动后的位置对应。The terminal device receives a second message sent by the DNS server, where the second message includes indication information used to indicate that the IP address corresponding to the domain name has not changed, and the application indicated by the IP address The server corresponds to the moved position of the terminal device.
PCT/CN2019/113739 2019-10-28 2019-10-28 Dns query method and apparatus WO2021081712A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/113739 WO2021081712A1 (en) 2019-10-28 2019-10-28 Dns query method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/113739 WO2021081712A1 (en) 2019-10-28 2019-10-28 Dns query method and apparatus

Publications (1)

Publication Number Publication Date
WO2021081712A1 true WO2021081712A1 (en) 2021-05-06

Family

ID=75715660

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/113739 WO2021081712A1 (en) 2019-10-28 2019-10-28 Dns query method and apparatus

Country Status (1)

Country Link
WO (1) WO2021081712A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210250330A1 (en) * 2018-02-09 2021-08-12 Comcast Cable Communications, Llc Dynamic firewall configuration

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103957283A (en) * 2011-09-29 2014-07-30 北京奇虎科技有限公司 Optimal-application-server selection method and device for domain name system
CN109510809A (en) * 2018-09-17 2019-03-22 华为技术有限公司 Method for accessing domain name and device
CN109729181A (en) * 2017-10-27 2019-05-07 华为技术有限公司 A kind of method for accessing domain name and equipment
CN109842690A (en) * 2017-11-24 2019-06-04 迈普通信技术股份有限公司 A kind of DNS data update method, system and equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103957283A (en) * 2011-09-29 2014-07-30 北京奇虎科技有限公司 Optimal-application-server selection method and device for domain name system
CN109729181A (en) * 2017-10-27 2019-05-07 华为技术有限公司 A kind of method for accessing domain name and equipment
CN109842690A (en) * 2017-11-24 2019-06-04 迈普通信技术股份有限公司 A kind of DNS data update method, system and equipment
CN109510809A (en) * 2018-09-17 2019-03-22 华为技术有限公司 Method for accessing domain name and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210250330A1 (en) * 2018-02-09 2021-08-12 Comcast Cable Communications, Llc Dynamic firewall configuration
US11652793B2 (en) * 2018-02-09 2023-05-16 Comcast Cable Communications, Llc Dynamic firewall configuration

Similar Documents

Publication Publication Date Title
WO2021017689A1 (en) User plane data acquisition method and apparatus, and storage medium
WO2020224463A1 (en) Data analysis method and apparatus
WO2021189869A1 (en) Information acquisition method and apparatus
US11363447B2 (en) Method and device for managing and allocating binding service in a wireless network
US20200252837A1 (en) Method for checking change in wireless connection type of terminal in third-party application server
WO2021135187A1 (en) Slice control method and apparatus
WO2021135663A1 (en) Application instance determination method, device, and system
WO2020015634A1 (en) Mec information acquisition method and device
WO2021051420A1 (en) Dns cache record determination method and apparatus
US20220103990A1 (en) Communication Method, Apparatus, and System
EP2873218A1 (en) Application service platform with access to context data of remote access node
US11665781B2 (en) Apparatus and method for transmitting bridge management information in wireless communication system
US20230164523A1 (en) Communication Method, Device, and System
WO2022022322A1 (en) Method and device for accessing local network
WO2021081712A1 (en) Dns query method and apparatus
CN114071649B (en) Method and device for accessing local network
WO2021159415A1 (en) Communication method, apparatus, and system
CN116868603A (en) New method for external parameter provisioning for AF sessions
WO2023185062A1 (en) Backup method, communication device, and communication system
WO2023082858A1 (en) Method for determining mobility management policy, communication apparatus, and communication system
WO2023197737A1 (en) Message sending method, pin management method, communication apparatus, and communication system
WO2024078305A1 (en) Communication method, communication apparatus, and communication system
WO2023061207A1 (en) Communication method, communication apparatus, and communication system
WO2023274064A1 (en) Address service entity selection method and apparatus, and electronic device and readable storage medium
WO2023005440A1 (en) Communication method, communication apparatus and communication system

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

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

Country of ref document: EP

Kind code of ref document: A1