WO2022042395A1 - Method for determining service server address, and communication device - Google Patents

Method for determining service server address, and communication device Download PDF

Info

Publication number
WO2022042395A1
WO2022042395A1 PCT/CN2021/113268 CN2021113268W WO2022042395A1 WO 2022042395 A1 WO2022042395 A1 WO 2022042395A1 CN 2021113268 W CN2021113268 W CN 2021113268W WO 2022042395 A1 WO2022042395 A1 WO 2022042395A1
Authority
WO
WIPO (PCT)
Prior art keywords
network
request
address
service server
terminal device
Prior art date
Application number
PCT/CN2021/113268
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 华为技术有限公司
Publication of WO2022042395A1 publication Critical patent/WO2022042395A1/en

Links

Images

Classifications

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

Definitions

  • the present application relates to the field of communications, and more particularly, to a method and a communication device for determining an address of a service server.
  • LinkTurbo can be understood as wireless local area networks (WLAN) and data services are online at the same time, using WLAN (such as wireless-fidelity, WiFi) and LTE/5G to improve network performance, for example, in dual WiFi paths ( 2.4GHz band WiFi path and 5GHz band WiFi path) and dual cellular network path, select one or more networks and use it to improve network experience.
  • WLAN such as wireless-fidelity, WiFi
  • LTE/5G wireless-fidelity, WiFi
  • dual cellular network paths can be both LTE networks, or both 5G networks, or , one of the dual-cellular network paths is an LTE network path, and the other is a 5G network path.
  • IP internet protocol
  • DNS domain name system
  • the present application provides a method and a communication device for determining the address of a service server.
  • DNS queries under different network paths, respectively, the IP addresses corresponding to the service servers on different network paths are obtained, and the corresponding IP addresses under different networks are used. Addresses interact with service servers on their respective network paths, thereby avoiding cross-network communication when accessing service servers, ensuring access rates, improving service experience in multi-network scenarios, and improving communication efficiency.
  • a method for determining an address of a service server includes: a terminal device sends a first request to a domain name system DNS server through a first network, where the first request includes a first domain name, and the first request is used to request a first Internet connection of a first service server corresponding to the first domain name Protocol IP address, the first IP address is used by the terminal device to access the first service server through the first network; the terminal device sends a second request to the DNS server through the second network, and the second request includes the first service server domain name, the second request is used to request the second IP address of the first service server, and the second IP address is used by the terminal device to access the first service server through the second network; the terminal device receives the transmission from the DNS server the first information in response to the first request, the first information includes the first IP address; the terminal device receives the second information sent by the DNS server in response to the second request,
  • the terminal device obtains the corresponding IP addresses of the service server on different network paths by performing DNS queries respectively on different network paths.
  • Terminal devices can use the corresponding IP addresses in different networks to interact with service servers on their respective network paths, thereby avoiding cross-network communication when accessing service servers, ensuring access rates, and improving services in multi-network scenarios. experience and improve communication efficiency.
  • the terminal device uses the LinkTurbo technology to access the service server through (or using) the first network and the second network.
  • the first network may be a WLAN, for example, the first network is specifically a WIFI network, and the WIFI network may be dual WiFi paths (a WiFi path in the 2.4GHz frequency band and a WiFi path in the 5GHz frequency band).
  • the second network may be a cellular network, and the cellular network may be a dual-cellular network path, wherein the dual-cellular network paths may both be LTE networks, or both may be 5G networks, or, one of the dual-cellular network paths may be an LTE network path, and in addition One is the 5G network path.
  • the first network and the second network belong to different network operators, or the first network and the second network belong to the same network operator.
  • the first network may belong to a telecommunications network operator, the second network Unicom or a mobile network operator.
  • the first network may belong to a China Unicom network operator, a second network telecommunication or mobile network operator, or the like.
  • both the first network and the second network belong to a telecommunication network operator or the like.
  • the method further includes: the terminal device, according to the first IP address, performs service communication with the first service server through the first network, for example, sending a service to the first service server through the first network.
  • the first service server sends a service request;
  • the terminal device performs service communication with the first service server through the second network according to the second IP address, for example, sends a service request to the first service server through the second network.
  • the terminal device after the terminal device obtains the IP addresses of the service servers corresponding to different networks, it can interact with the service servers under different networks through different IP addresses, which can avoid cross-network access to the server. In the case of communication, the access rate is guaranteed, the service experience in multi-network scenarios is improved, and the communication efficiency is improved.
  • the terminal device sends a service request to the first service server through the first network according to the first IP address, where the service request includes the first domain name; the terminal device receives The second information sent by the first service server in response to the service request, the second information includes: a second domain name corresponding to the first domain name, and a third IP address of the second service server corresponding to the second domain name , and the third IP address is used by the terminal device to access the second service server through the first network.
  • an HTTP 302 jump occurs in the HTTP request sent by the terminal device to the first service server through the first network.
  • the HTTP 302 jump can be understood as a temporary transfer of resources accessed by the terminal device, and the terminal device needs to obtain a new The resource location (the IP address of the server that actually stores the resource), and then revisit to get the resource. That is, the first service server is not the service server that actually stores the resources that the terminal device needs to access. ) feedback to the terminal device, so that the terminal device can interact with the second service server through the third IP address corresponding to the first network, and pull the stored resources of the second service server, ensuring that the terminal device can accurately and smoothly obtain the required resources to ensure the quality of communication.
  • the resource location the IP address of the server that actually stores the resource
  • the method further includes: sending, by the terminal device, a service request to the second service server through the first network according to the third IP address.
  • the method further includes: the terminal device sends a third request to the DNS server through the second network, where the third request includes the second domain name, and the third request is used to request the fourth IP address corresponding to the second service server, where the fourth IP address is used by the terminal device to access the second service server through the second network; the terminal device receives the message sent by the DNS server in response to the third request third information, where the third information includes the fourth IP address.
  • the terminal device can obtain the IP address (fourth IP address) of the second network corresponding to the second service server that actually stores resources through DNS query, so that the terminal device can pass the corresponding IP address of the second network.
  • the fourth IP address interacts with the second service server, and pulls the stored resources of the second service server, which ensures that the terminal device can obtain the required resources accurately and smoothly, and ensures the communication quality.
  • the method further includes: the terminal device performs service communication with the second service server through the second network according to the four IP addresses, for example, sending the service to the first service server through the second network. 2.
  • the service server sends a service request.
  • the first network is a wireless local area network WLAN
  • the second network is a Long Term Evolution System LTE network or a new wireless NR network.
  • a method for determining an address of a service server includes: a terminal device sends a first request to a domain name system DNS server through a first network, where the first request includes a first domain name, and the first request is used to request a first Internet connection of a first service server corresponding to the first domain name Protocol IP address, the first IP address is used by the terminal device to access the first service server through the first network; the terminal device sends a second request to the DNS server through the second network, and the second request includes the first service server domain name, the second request is used to request the second IP address of the third service server, and the second IP address is used by the terminal device to access the third service server through the second network; the terminal device receives the information sent by the DNS server In response to the first information of the first request, the first information includes the first IP address; the terminal device receives the second information sent by the DNS server in response to the second
  • the terminal device obtains the corresponding IP addresses of the service server on different network paths by performing DNS query respectively on different network paths.
  • Terminal devices can use the corresponding IP addresses in different networks to interact with service servers on their respective network paths, thereby avoiding cross-network communication when accessing service servers, ensuring access rates, and improving services in multi-network scenarios. experience and improve communication efficiency.
  • the method further includes: according to the first IP address, the terminal device performs service communication with the first service server through the first network, for example, sending a service to the first service server through the first network.
  • the first service server sends a service request;
  • the terminal device performs service communication with the third service server through the second network according to the second IP address, for example, sends a service request to the third service server through the second network.
  • the terminal device after the terminal device obtains the IP addresses of the service servers corresponding to different networks, it can interact with the service servers under different networks through different IP addresses, which can avoid cross-network access to the server. In the case of communication, the access rate is guaranteed, the service experience in multi-network scenarios is improved, and the communication efficiency is improved.
  • the first network and the second network belong to different network operators, or the first network and the second network belong to the same network operator.
  • the first network may belong to a telecommunications network operator, the second network Unicom or a mobile network operator.
  • the first network may belong to a China Unicom network operator, a second network telecommunication or mobile network operator, or the like.
  • both the first network and the second network belong to a telecommunication network operator or the like.
  • a method for determining an address of a service server includes: a terminal device sends a first request to a DNS server through a first network, where the first request includes a first domain name, and the first request is used to request a first IP address of a first service server corresponding to the first domain name, The first IP address is used by the terminal device to access the first service server through the first network.
  • the terminal device receives first information sent by the DNS server in response to the first request, where the first information includes the first IP address.
  • the terminal device sends a service request to the first service server through the first network according to the first IP address, where the service request includes the first domain name.
  • receives second information sent by the first service server in response to the service request where the second information includes: a second domain name corresponding to the first domain name and a third IP address of the second service server corresponding to the second domain name,
  • the third IP address is used by the terminal device to access the second service server through the first network.
  • the terminal device sends a third request to the DNS server through the second network, the third request includes the second domain name, the third request is used to request a fourth IP address corresponding to the second service server, and the fourth IP address is used for the terminal device Access the second service server through the second network.
  • the terminal device can maintain a whitelist of domain names, the whitelist of domain names includes one or more domain names, and the domain names included in the whitelist of domain names will be redirected by HTTP 302.
  • the domain name whitelist includes the first domain name.
  • the terminal device only needs to perform a DNS query process through the second network of China Unicom, and then it can query the IP address (fourth IP address) of the operator of the second network corresponding to the second service server that actually stores the resources that the terminal device needs to access. Reduce signaling overhead, save communication resources, and further improve communication efficiency.
  • the first network and the second network belong to different network operators, or the first network and the second network belong to the same network operator.
  • the first network may belong to a telecommunications network operator, the second network Unicom or a mobile network operator.
  • the first network may belong to a China Unicom network operator, a second network telecommunication or mobile network operator, or the like.
  • both the first network and the second network belong to a telecommunication network operator or the like.
  • the method further includes: the terminal device performs service communication with the second service server through the second network according to the four IP addresses.
  • the first network is a wireless local area network WLAN
  • the second network device is a Long Term Evolution System LTE network or a new wireless NR network.
  • a method for determining an address of a service server includes: a DNS server receives a first request from a terminal device, the first request includes a first domain name, the first request is used to request a first IP address of a first service server corresponding to the first domain name, and the first request includes a first domain name.
  • An IP address is used for the terminal device to access the first service server through the first network;
  • the DNS server receives a second request from the terminal device, the second request includes the first domain name, and the second request is used to request The second IP address of the first service server corresponding to the first domain name, where the second IP address is used by the terminal device to access the first service server through the second network;
  • the DNS server sends first information in response to the first request to the terminal device, where the first information includes the first IP address; the DNS server sends second information in response to the second request to the terminal device, the first information includes the first IP address The second information includes the second IP address.
  • the DNS server determines the corresponding IP addresses of the service server on different network paths according to the DNS query requests respectively sent by the terminal device under different network paths, and assigns the service server to the different network paths.
  • the corresponding IP addresses on the network path are fed back to the terminal device, so that the terminal device can use the corresponding IP addresses under different networks to interact with the service server on their respective network paths, thereby avoiding cross-network communication when accessing the service server.
  • the access rate is guaranteed, the service experience in multi-network scenarios is improved, and the communication efficiency is improved.
  • the first network and the second network belong to different network operators, or the first network and the second network belong to the same network operator.
  • the method further includes: the DNS server receiving a third request from the terminal device, where the third request includes a second domain name, and the second domain name corresponds to the first domain name, The third request is used to request the fourth IP address of the second service server, the second service server is the service server corresponding to the second domain name, and the fourth IP address is used for the terminal device to access the second service through the second network.
  • a service server the DNS server sends third information in response to the third request to the terminal device, where the third information includes the four IP addresses.
  • the first network is a wireless local area network WLAN
  • the second network device is a Long Term Evolution System LTE network or a new wireless NR network.
  • a communication device comprising a unit for performing each step in the above first aspect or any possible implementation manner of the first aspect, or, comprising a unit for performing the above second aspect
  • a communication apparatus including a unit for performing each step in the above fourth aspect or any possible implementation manner of the fourth aspect.
  • a communication device in a seventh aspect, includes at least one processor and a memory, and the at least one processor is configured to execute the method in the first aspect or any possible implementation manner of the first aspect, or, For performing the above second aspect or the method in any possible implementation manner of the second aspect, or for performing the above third aspect or the method in any possible implementation manner of the third aspect.
  • a communication device in an eighth aspect, includes at least one processor and a memory, where the at least one processor is configured to execute the above fourth aspect or the method in any possible implementation manner of the fourth aspect.
  • a communication device in a ninth aspect, includes at least one processor and an interface circuit, and the at least one processor is configured to execute the method in the above first aspect or any possible implementation manner of the first aspect, Or, for performing the above second aspect or the method in any possible implementation manner of the second aspect, or for performing the above third aspect or the method in any possible implementation manner of the third aspect method.
  • a tenth aspect provides a communication device, the communication device includes at least one processor and an interface circuit, where the at least one processor is configured to execute the method in the fourth aspect or any of the possible implementations of the fourth aspect.
  • a terminal device in an eleventh aspect, includes any one of the communication apparatuses provided in the fifth aspect, the seventh aspect, or the ninth aspect.
  • a twelfth aspect provides a DNS server, where the DNS server includes any of the communication devices provided in the sixth aspect, the eighth aspect, or the tenth aspect.
  • a thirteenth aspect provides a computer program product, the computer program product comprising a computer program, when executed by a processor, for performing the method in any one of the first to fourth aspects, or , which is used to execute the method in any possible implementation manner of any one of the first aspect to the fourth aspect.
  • a fourteenth aspect provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed, is used to execute any one of the first to third aspects.
  • a fifteenth aspect provides a chip, the chip comprising: a processor for calling and running a computer program from a memory, so that a communication device installed with the chip executes any one of the first to fourth aspects A method, or a method for performing any possible implementation manner of any one of the first aspect to the fourth aspect.
  • the method for determining the address of a service server provided by the present application obtains the corresponding IP addresses of the service server on different network paths by performing DNS query respectively under different network paths.
  • Terminal devices can use the corresponding IP addresses in different networks to interact with service servers on their respective network paths, thereby avoiding cross-network communication when accessing service servers, ensuring access rates, and improving services in multi-network scenarios. experience and improve communication efficiency.
  • Figure 1 is a schematic diagram of a terminal device using LinkTurbo technology.
  • FIG. 2 is a schematic diagram of an example of a process of accessing a service server by a terminal device under dual networks provided by the present application.
  • FIG. 3 is a schematic diagram of an example of a communication system provided by the present application and applicable to an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of an example of a method for determining an address of a service server provided by an embodiment of the present application.
  • Fig. 5 is an example of a schematic interface diagram displayed by a terminal device provided by the present application when the method provided by the present application is used.
  • FIG. 6 is a schematic flowchart of another example of a method for determining an address of a service server provided by an embodiment of the present application.
  • FIG. 7 is a schematic flowchart of an example of a pre-engine processing flow and a post-engine processing flow provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of an example of a pre-engine processing flow provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of an example of a post-engine processing flow provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of an example of DNS query of multiple available networks provided by the present application.
  • FIG. 11 is a schematic diagram of an example of an MPDNS cache query process provided by the present application.
  • FIG. 12 is a schematic flowchart of another example of a method for determining an address of a service server provided by an embodiment of the present application.
  • FIG. 13 is a schematic flowchart of another example of a method for determining an address of a service server provided by an embodiment of the present application.
  • FIG. 14 is a schematic flowchart of another example of a method for determining an address of a service server provided by an embodiment of the present application.
  • FIG. 15 is a schematic block diagram of another example of the structure of a communication apparatus provided by an embodiment of the present application.
  • FIG. 16 is a schematic block diagram of another example of the structure of a communication apparatus provided by an embodiment of the present application.
  • FIG. 17 is a schematic block diagram of another example of the structure of a communication apparatus provided by an embodiment of the present application.
  • FIG. 18 is a schematic block diagram of another example of the structure of a communication apparatus provided by an embodiment of the present application.
  • first and second are only used for descriptive purposes, and should not be construed as indicating or implying relative importance or implicitly indicating the number of indicated technical features.
  • a feature defined as “first” or “second” may expressly or implicitly include one or more of that feature.
  • plural means two or more.
  • various aspects or features of the present application may be implemented as a method, apparatus, or article of manufacture using standard programming and/or engineering techniques.
  • article of manufacture encompasses a computer program accessible from any computer readable device, carrier or medium.
  • computer readable media may include, but are not limited to: magnetic storage devices (eg, hard disks, floppy disks, or magnetic tapes, etc.), optical disks (eg, compact discs (CDs), digital versatile discs (DVDs) etc.), smart cards and flash memory devices (eg, erasable programmable read-only memory (EPROM), card, stick or key drives, etc.).
  • various storage media described herein can represent one or more devices and/or other machine-readable media for storing information.
  • the term "machine-readable medium” may include, but is not limited to, wireless channels and various other media capable of storing, containing, and/or carrying instructions and/or data.
  • GSM Global System of Mobile communication
  • CDMA Code Division Multiple Access
  • CDMA Wideband Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • GSM Global System of Mobile communication
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • GPRS General Packet Radio Service
  • LTE Long Term Evolution
  • FDD Frequency Division Duplex
  • TDD Time Division Duplex
  • UMTS Universal Mobile Telecommunication System
  • WiMAX Worldwide Interoperability for Microwave Access
  • the terminal device in this embodiment of the present application may refer to a user equipment, an access terminal, a subscriber unit, a subscriber station, a mobile station, a mobile station, a remote station, a remote terminal, a mobile device, a user terminal, a terminal, a wireless communication device, a user agent or user device.
  • the terminal device may also be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), a wireless communication Functional handheld devices, computing devices, or other processing devices connected to wireless modems, in-vehicle devices, wearable devices, terminal devices in 5G networks, or terminals in a future evolved Public Land Mobile Network (PLMN) equipment, etc., which are not limited in this embodiment of the present application.
  • SIP Session Initiation Protocol
  • WLL Wireless Local Loop
  • PDA Personal Digital Assistant
  • PLMN Public Land Mobile Network
  • the mobile terminal With the continuous growth of the number of users of mobile terminals (such as mobile phones), the business functions supported by various mobile terminals continue to increase. For example, functions such as instant messaging, securities, web browsing, and file download have gradually become the mainstream of terminal devices, especially smart phones. application.
  • the mobile terminal In the process of surfing the Internet, the mobile terminal needs to query the domain name of the uniform resource locator (URL) for the Internet protocol (IP) address corresponding to the domain name in order to send data packets. This process needs to be done by querying the Domain Name System (DNS) server.
  • URL uniform resource locator
  • IP Internet protocol
  • DNS Domain Name System
  • a DNS server is a distributed host information database that provides mapping and conversion between domain names and IP addresses of business servers, and can resolve domain names to corresponding IP addresses through the DNS server. Terminal devices can access domain names through the domain name resolution service provided by DNS.
  • 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, it queries whether the IP address of the service server corresponding to the domain name A exists in its cache. If so, the terminal device can directly obtain the IP address of the service server. IP address, access the service server corresponding to 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 IP address corresponding to the domain name A, and the terminal device can access the domain name A through the IP address. business server.
  • the terminal device After obtaining the IP address corresponding to the domain name, the terminal device generates and caches a DNS cache record.
  • the DNS cache 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 cache record.
  • TTL of the DNS cache record is the retention time of the DNS cache record in the cache of the terminal device. In this way, if the terminal device needs to access the domain name in the DNS cache record again within the TTL of a certain DNS cache record, the terminal device can directly obtain the IP address corresponding to the domain name according to the DNS cache record. If the TTL of the DNS cache record is exceeded, the terminal device needs to access the domain name again, and obtain the IP address corresponding to the domain name through DNS server resolution.
  • Multihome the multi-address of the host (Multihome) has become more and more popular.
  • Ipv4 Internet protocol version 4, Ipv4.
  • MPTCP multipath transmission control protocol
  • MPTCP allows transmission control protocol connections to use multiple paths to maximize channel resource usage. Instead of using a single channel as required by the traditional TCP protocol, it supports inverse multiplexing of redundant channel resources, increasing the overall data transfer rate to the sum of all available channels.
  • MPTCP is also backward compatible with legacy TCP protocols.
  • LinkTurbo can be understood as WLAN and data services online at the same time, using WLAN (such as wireless-fidelity, WiFi) and cellular network to improve network performance, intelligently select one or two networks between WiFi and cellular network and use it to improve network performance Network experience.
  • Figure 1 shows a schematic diagram of the use of LinkTurbo technology by terminal equipment. As shown in Figure 1, when LinkTurbo supports turning on WiFi, start the cellular network at the same time to ensure that the dual networks are online at the same time.
  • WiFi can include two WiFi paths ( The WiFi path in the 2.4GHz band and the WiFi path in the 5GHz band), the cellular network can include two paths, that is, a dual-cellular path, and the dual-cellular network paths can be both LTE network paths, or both 5G network paths, or, dual-cellular paths One of the network paths is an LTE network path, and the other is a 5G network path.
  • the simultaneous online aggregation mode among the four network paths can be selected.
  • WiFi and cellular can be used One of the networks is the main data transmission mode, and the other is the backup data transmission mode, that is, the active-standby mode.
  • the WiFi network belongs to a telecommunication operator (Telecom Network)
  • the LTE network belongs to a Unicom operator (Unicom Network).
  • the terminal first performs a DNS query under the default network (for example, WiFi), and the DNS server returns the service server IP address (for example, the IP address is 1.1.1.1) on the WIFI path (or corresponding to the telecommunications network) to the terminal device, and the terminal obtains the After the service server has an IP address, it interacts with the service server whose IP address is 1.1.1.1 on the WiFi path through the telecommunication network to obtain corresponding resources.
  • the terminal device also interacts with the service server (IP address 1.1.1.1) through the Unicom network on the LTE path, that is, interacts with the service server through WIFI and LTE to obtain corresponding resources.
  • IP address 1.1.1.1 is the IP address of the service server corresponding to the telecom network, and the terminal device needs to access the IP address through the Unicom network on the LTE path, the access service server on the LTE path has cross-network access. (across carriers).
  • the rate of the operator's cross-network channel will be limited, and in some scenarios, cross-network access may be blocked.
  • the access rate will be limited. That is to say, when the multi-network access of the terminal device belongs to different operator scenarios, the problem of limited multi-network access rate will occur.
  • content delivery network (CDN) manufacturers solve this problem by deploying cross-network border gateway protocol (BGP) routing, but the cost of deploying cross-network BGP routing is relatively high.
  • cross-network cross-operator
  • the access rate will be limited, and in some scenarios, cross-network access may be blocked. , which affects the service experience in multi-network scenarios and reduces communication efficiency.
  • the present application provides a method for determining the address of a service server.
  • DNS query under different network paths, respectively, the IP addresses corresponding to the service servers on different network paths are obtained, and the corresponding IP addresses under different networks are used.
  • the IP addresses interact with service servers on their respective network paths, thus avoiding cross-network communication when accessing service servers, ensuring access rates, improving service experience in multi-network scenarios, and improving communication efficiency.
  • FIG. 3 is a schematic structural diagram of an example of a wireless communication system applicable to an embodiment of the present application.
  • the terminal device when the terminal device needs to access the application, it can query the DNS server for the IP address of the service server corresponding to the domain name to be accessed. The IP address is used to access the service server, so as to obtain the data of the application that needs to be accessed.
  • the terminal device adopts the dual network connection technology (LinkTurbo technology).
  • the terminal device utilizes a WiFi network and a cellular network to improve network performance.
  • the WiFi network may include two WiFi paths (a WiFi path in the 2.4GHz band and a WiFi path in the 5GHz band).
  • the dual cellular network paths can be both LTE networks or both 5G networks, or, one of the dual cellular network paths is an LTE network path and the other is a 5G network path.
  • the WiFi belongs to the telecom network operator
  • the cellular network belongs to the China Unicom network operator
  • the terminal device can access the service server through the WiFi network and the cellular network network.
  • the WiFi network and the cellular network can also belong to the same network operator.
  • FIG. 4 is a schematic flowchart of a method 200 for determining an address of a service server according to an embodiment of the present application.
  • This method can be applied to, for example, the scenario shown in FIG. 1 to FIG. 3 that cross-network occurs when accessing the service server under multiple networks.
  • cross-network scenario that occurs in the use of LinkTurbo technology.
  • the method provided by the present application can also be applied to other systems where cross-network occurs when accessing a service server under multiple networks, which is not limited in this embodiment of the present application.
  • the method provided by the present application will be described with the terminal device, the DNS server, and the service server as the main body of execution.
  • the execution subject of the execution method may also be a chip applied to a terminal device, a DNS server, and a service server.
  • the method 200 shown in FIG. 4 may include S210 to S240. Each step in the method 200 will be described in detail below with reference to FIG. 4 .
  • the terminal device sends a first request to the DNS server through the first network, where the first request includes a first domain name, the first request is used to request the first IP address of the first service server corresponding to the first domain name, the first The IP address is used by the terminal device to access the first service server through the first network.
  • the DNS server receives the first request.
  • the terminal device sends a second request to the DNS server through the second network, where the second request includes the first domain name, and the second request is used to request the second IP address of the first service server.
  • the first network and the second network belong to different network operators, or the first network and the second network belong to the same network operator.
  • the DNS server receives the second request.
  • the DNS server sends first information in response to the first request to the terminal device, where the first information includes the first IP address.
  • the DNS server sends second information in response to the second request to the terminal device, where the second information includes the second IP address.
  • the terminal device uses the LinkTurbo technology to access the service server through (or using) the first network and the second network.
  • the first network may be a WLAN, for example, the first network is specifically a WIFI network, and the WIFI network may have dual WiFi paths (a WiFi path in the 2.4GHz band and a WiFi path in the 5GHz band).
  • the second network may be a cellular network, and the cellular network may be a dual-cellular network path, wherein the dual-cellular network paths may both be LTE networks, or both may be 5G networks, or, one of the dual-cellular network paths may be an LTE network path, and in addition One is the 5G network path.
  • the first network may also be a wireless local area network in other forms.
  • the first network and the second network belong to different network operators, for example, the first network may belong to a telecommunication network operator, the second network Unicom or a mobile network operator. Alternatively, the first network may belong to a China Unicom network operator, a second network telecommunication or mobile network operator, or the like.
  • the first network and the second network may also belong to the same network operator.
  • Figure 5 shows an example of a schematic interface diagram displayed by the terminal device when the method provided by the present application is used.
  • the user is in the terminal Select to open a certain APP on the display interface of the device, such as the "Video" APP, after the APP is started, as shown in Figure b in Figure 5, a dialog box pops up to the user on the display interface of the terminal device, prompting the user to "" WLAN and mobile data are being used at the same time", which means that the end device is using LinkTurbo technology.
  • the terminal device APP on the terminal device
  • the first network is WIFI
  • the second network is LTE
  • the first network belongs to a telecom network operator
  • the second network belongs to a China Unicom network operator as an example for description.
  • the first network and the second network may also be other networks, and the first network and the second network may also belong to the same operator.
  • the embodiments of the present application are not limited herein.
  • the terminal device when the terminal device needs to access a certain domain name (for example, the first domain name), if the application on the terminal device creates a hypertext transfer protocol (HTTP) session, the query of the locally cached DNS type record will be invalid.
  • HTTP hypertext transfer protocol
  • the IP address of the service server corresponding to the first domain name will trigger the generation of the first request, for example, the first request may be a DNS query request.
  • the terminal device (or the APP on the terminal device) can send a first request to the DNS server through the first network (WIFI network), where the first request includes the first domain name, and the first request is used to request the service corresponding to the first domain name
  • the first IP address of the server ie, the first service server
  • WIFI belongs to a telecom operator
  • the first IP address is used by the terminal device to access the first service server through the WIFI network.
  • the first service server can correspond to multiple different IP addresses correspond to different operators, and the first request may be used to request the IP address (first IP address) of the telecommunications network corresponding to the first service server.
  • the DNS server receives the first request. That is to say, the terminal device can query the IP address of the service server corresponding to the telecommunication network on the WIFI path.
  • the first domain name may be www.xxx.com.
  • the terminal device since the terminal device uses the LinkTurbo technology, it can also send a second request to the DNS server through the second network (LTE network), where the second request includes the first domain name, and the second request is used to request the first domain name.
  • the DNS server receives the second request. That is, the terminal device can also query the IP address of the service server corresponding to the China Unicom network on the LTE path. It should be understood that, in this embodiment of the present application, S220 is an optional step.
  • the terminal device may copy the first request on the WIFI path to obtain the second request, and then send the second request to the DNS through the LTE network.
  • the DNS server queries the IP address (first IP address) of the first application server corresponding to the telecommunication network according to the first request, and then sends first information in response to the first request to the terminal device, the first information Include the first IP address.
  • the first service server may be assigned different IP addresses, and different IP addresses correspond to different network operators.
  • the DNS server may acquire and store multiple IP addresses of the first service server and network operators corresponding to different IP addresses from the operator of the service server.
  • the DNS server determines that the first request is sent on the network of a telecommunication operator (or may be referred to as a telecommunication network)
  • it can determine that the first request is used to request the IP address of the telecommunication network corresponding to the first service server (the first IP address), thereby returning the IP address (first IP address) of the telecommunications network corresponding to the first service server to the terminal device through the first information.
  • the first information may be a DNS query response message.
  • the terminal device After acquiring the first IP address, the terminal device can store the correspondence between the first domain name, the first IP address, the WIFI path and the telecommunication network.
  • the DNS server queries the IP address (second IP address) of the first application server corresponding to the Unicom network on the LTE path according to the second request, and then sends the second information in response to the second request to the terminal device,
  • the second information includes the first IP address.
  • the DNS server determines that the second request is sent on the China Unicom operator's network (or may be referred to as the China Unicom network)
  • it can determine that the second request is used to request the IP address of the China Unicom network corresponding to the first service server (second IP address) address, thereby returning the IP address (second IP address) of the Unicom network corresponding to the first service server to the terminal device through second information
  • the second information can also be a DNS query response message .
  • the terminal device can store the correspondence between the first domain name, the second IP address, the LTE path, and the Unicom network.
  • the terminal device may also store the correspondence between the first domain name, the first IP address, the second IP address, the telecommunication network, and the China Unicom network.
  • the terminal device After the terminal device obtains the first IP address and the second IP address of the first service server, the terminal device determines the first IP address of the application server corresponding to the Unicom network on the LTE path, and the first IP address corresponding to the telecommunications network on the WIFI path.
  • the second IP address of the application server wherein the first IP address and the second IP are different.
  • the first IP address and the second IP may correspond to the same application server (for example, a CDN server), or the first IP address and the second IP may correspond to different application servers, and the CDN data or content stored by different application servers are consistent.
  • the method for determining the address of a service server provided by the present application obtains the corresponding IP addresses of the service server on different network paths by performing DNS query respectively under different network paths.
  • Terminal devices can use the corresponding IP addresses in different networks to interact with service servers on their respective network paths, thereby avoiding cross-network communication when accessing service servers, ensuring access rates, and improving services in multi-network scenarios. experience and improve communication efficiency.
  • the DNS server may filter and select the DNS requests, and only partially affect the dual-network services.
  • the DNS corresponding to the stream is queried.
  • the method 200 further includes S250 and S260.
  • the terminal device performs service communication with the first service server through the first network according to the first IP address.
  • the terminal device performs service communication with the first service server through the second network according to the second IP address.
  • the terminal device can perform service communication with the service server (the first service server) through the first IP address corresponding to the WIFI path of the telecommunication network according to the first IP address, for example, to the first IP address.
  • a service server sends an HTTP request to pull resources stored in the service server. That is, the terminal device sends a service request to the service server on the WIFI path of the telecommunication network according to the first IP address to request service resources and data.
  • the service may be a video service or a browsing service Wait.
  • the terminal device can perform business communication with the service server (the first service server) on the LTE path through the second IP address corresponding to the China Unicom network according to the second IP address, for example, to
  • the first service server sends an HTTP request to pull resources stored in the service server. That is, according to the second IP address, the terminal device sends a service request to the service server on the LTE path of the Unicom network to request service resources and data.
  • the terminal device After the terminal device obtains the IP addresses of the service servers corresponding to different networks, it can interact with the service servers under different networks through different IP addresses, which can avoid accessing
  • the cross-network communication of the server ensures the access rate, improves the service experience in multi-network scenarios, and improves the communication efficiency.
  • the terminal device when the terminal device (specifically, the APP on the terminal device) uses the first IP address to access the first service server, it can query whether the first domain name corresponding to the first IP address corresponds to multiple IP address.
  • the APP on the terminal device can use the second IP address to bind the flow of the application Set on the China Unicom network corresponding to the second IP address, send a new HTTP request through (or use) the LTE network of the China Unicom network operator, and the destination address of the HTTP request is the second IP address, that is, through different IP addresses, respectively. Interact with business servers under different networks. If it is found that a certain domain name corresponds to only one IP address, the IP address is used to interact with the service server through only one network path, and no service offload processing is performed.
  • the content of different service servers for the same resource may be inconsistent. Therefore, when the terminal pulls the same resource from different CDN servers, it matches the resource information. If the data of different CDN servers is found to be inconsistent when pulling the resource, it will no longer pull the offloaded data, that is, not under the multi-network path. of concurrent access. Further, when it is determined that the data of the CDN server is inconsistent, the corresponding IP addresses of different CDN servers will be recorded, and these IP addresses will be recorded as multiple abnormal IPs. When using these IPs to initiate resource requests later, no further processing will be performed. Handling of multiple requests for resources.
  • CDN servers for example, CDN servers
  • FIG. 7 is a schematic diagram showing the processing flow of the pre-engine and the post-engine.
  • the processing flow of the front engine includes: the traditional DNS request (legacy DNS request) of the DNS server monitoring application, multi-channel and multi-network DNS query according to the available network, and writing the query result into the first-level cache.
  • the processing flow of the front engine is as follows: It is executed ahead of the post-engine processing flow. For example, the flow shown in FIG. 4 is a possible implementation manner of the processing flow of the pre-engine.
  • the post-engine processing flow includes: after the terminal device and the CDN server establish a TCP connection through a TCP synchronization message (TCP SYN), the CDN server monitors the HTTP request of the APP (for requesting service data), and performs multiple processing according to the host field in the HTTP request. It performs DNS query on multiple networks, and writes the query result into the secondary cache.
  • TCP SYN TCP synchronization message
  • the post-engine processing flow is later than the front-end engine processing flow during execution.
  • the host field includes the domain name and/or IP address of the http server to be accessed.
  • FIG 8 shows a schematic diagram of the processing flow of the front-end engine.
  • DNS query is first performed, and DNS query request is performed.
  • CurNet current network
  • the netd process listens to the traditional DNS query of the whitelist application of the DNS domain name, it triggers the front-end engine to replicate multiple DNS requests on multiple different available networks (multiNets) according to the network on which the original DNS request is based and the currently available network.
  • Query the DNS domain name can also be controlled by the whitelist or not
  • addrs IP address
  • FIG. 9 shows a schematic diagram of the post-engine processing flow.
  • the kernel monitors When the HTTP plaintext request message is sent to the whitelist application, the host field in the content of the message, the destination IP (dstAddr) of the message, and the network (curNet) on which the message is currently transmitted are extracted, and written to the three parts of the kernel. level cache.
  • curNet can be determined by extracting network identification (netid) information according to the application framework layer mark (fwmark) of the socket (socket). Report the host to emcomd to trigger the post-engine to perform DNS query of multiple available networks (multiNets).
  • the DNS query logic of the post-engine is the same as that of the front-end engine. ), the changed entry is passed to the L3 cache.
  • FIG. 10 is a schematic diagram of an example of DNS query of multiple available networks provided by the present application.
  • the DNS query of multiple available networks may also be referred to as a multipath DNS (multipath transmission domain name system, MPDNS) cache query.
  • MPDNS multipath transmission domain name system
  • targetNet The target network (targetNet), combined with these three information as the input of the MPDNS cache, finds the target IP (dstAddrlnTargetNet) under the target network after searching in the cache, and finally rewrites the destination IP of the socket with this IP.
  • FIG. 11 is a schematic diagram of an example of an MPDNS cache query process provided by the present application.
  • the kernel extracts the destination IP of the socket (for IPv4x), the network it is based on (for wlan0), and the NIC ID of the target network (for rmnet0), and uses these three pieces of information as the input of the MPDNS cache, After searching in the cache, get the destination IP under the target network (as IPv4y), and finally replace the destination IP in the socket with IPv4y.
  • the terminal device sends a service request to the first service server through the first network according to the first IP address, where the service request includes the first domain name.
  • the first service server sends second information in response to the service request to the terminal device, where the second information includes: a second domain name corresponding to the first domain name, and a third domain name of the second service server corresponding to the second domain name
  • the IP address, and the third IP address is used by the terminal device to access the second service server through the first network.
  • the service server (first service server) corresponding to the queried first IP address is not a service server that actually stores the resources that the terminal device needs to access, for example , the first service server is a scheduling server.
  • the HTTP request sent by the terminal device (or the APP on the terminal device) will have an HTTP 302 jump on the WIFI path.
  • the HTTP 302 jump can be understood as a temporary transfer of the resources accessed by the terminal device.
  • the terminal device needs to Get the new resource location (the IP address of the server that actually stores the resource), and then revisit to obtain the resource, which means that the terminal device also needs to perform a post-engine query.
  • the terminal device After the terminal device establishes a TCP session connection with the first service server through a TCP message (for example, a TCP SYN message) on the WIFI path, the terminal device will send the first service server through the WIFI network according to the first IP address.
  • a service request for example, an HTTP request
  • the service request includes the first domain name.
  • the first service server determines the service server (for example, the second service server that actually stores the resources) by querying The IP address (third IP address) of the telecommunication network corresponding to the service server), the third IP address is used by the terminal device to access the second service server through the WIFI network.
  • the first service server will send second information in response to the service request to the terminal device, where the second information includes: the IP address (third IP address) of the telecommunications network corresponding to the second service server.
  • the first domain name may also be changed to a second domain name. Therefore, the second information further includes: a second domain name corresponding to the first domain name. In this way, the terminal device can obtain the IP address and the corresponding second domain name on the WIFI path corresponding to the second service server that actually stores the resource to be accessed.
  • the terminal device After the terminal device obtains the IP address of the second service server on the WIFI path and the corresponding domain name, it can interact with the second service server on the WIFI path through the third IP address corresponding to the telecommunication network, and pull the second service server's IP address. stored resources. E.g. The terminal device can send a service request to the second service server through the WIFI network of the telecom operator according to the IP address of the second service server in the WIFI, and then obtain the required data and resources.
  • the method 200 may further include S243 and S244 .
  • the terminal device sends a third request to the DNS server through the second network, where the third request includes the second domain name, and the third request is used to request a fourth IP address corresponding to the second service server, the fourth IP address The address is used by the terminal device to access the second service server through the second network.
  • the DNS server sends third information in response to the third request to the terminal device, where the third information includes the fourth IP address.
  • the terminal device Since the HTTP request sent by the terminal device is redirected by HTTP 302 on the WIFI path, on the LTE path, the terminal device also needs to re-query the DNS to obtain the IP address of the China Unicom network corresponding to the second service server (the fourth IP address ). That is to say, the terminal device also needs to perform the post-engine processing flow.
  • the terminal device sends a third request (for example, a DNS query request) to the DNS server through the LTE path network according to the acquired second domain name corresponding to the first domain name, where the third request includes the second domain name, the The third request is used to request the IP address (fourth IP address) of the Unicom network corresponding to the second service server.
  • the DNS server queries through the MPDNS cache.
  • the DNS server determines that the third request is sent through the network of the China Unicom operator, it can determine that the third request is used to request the IP address of the China Unicom network corresponding to the second service server. address (fourth IP address) address, thereby returning the IP address (fourth IP address) of the Unicom network corresponding to the second service server to the terminal device through the third information.
  • the third IP address and the fourth IP address are different.
  • the terminal device After the terminal device obtains the IP address of the second service server on the LTE path, it can interact with the second service server on the LTE path through the IP address corresponding to the China Unicom network, and pull the stored resources of the second service server. E.g. The terminal device can send a service request to the second service server through the LTE network according to the IP address of the second service server on the LTE path, and then obtain the required data and resources.
  • the terminal device may only perform the pre-engine processing flow. Or, in the case of HTTP 302 redirection, the terminal device needs to execute the pre-engine processing flow and the post-engine processing flow.
  • the terminal device may maintain a domain name whitelist, where the domain name whitelist includes one or more domain names, and the domain names included in the domain name whitelist can be understood as domain names that will undergo HTTP 302 redirection. Because the domain name included in the whitelist will definitely be redirected by HTTP 302. Therefore, in some possible implementation manners of the present application, taking FIG. 14 as an example, FIG. 14 is a schematic flowchart of a method 300 for determining a service server address according to an embodiment of the present application, as shown in FIG. 14 , shown in FIG. 14 .
  • the resulting method 300 may include S310 to S360.
  • the domain name whitelist includes the first domain name.
  • the terminal device sends a first request to the DNS server through the first network, where the first request includes a first domain name, the first request is used to request the first IP address of the first service server corresponding to the first domain name, the first The IP address is used by the terminal device to access the first service server through the first network.
  • the DNS server receives the first request.
  • the DNS server sends first information in response to the first request to the terminal device, where the first information includes the first IP address.
  • the terminal device sends a service request to the first service server through the first network according to the first IP address, where the service request includes the first domain name.
  • the first service server sends second information in response to the service request to the terminal device, where the second information includes: a second domain name corresponding to the first domain name and a third IP address of the second service server corresponding to the second domain name , and the third IP address is used by the terminal device to access the second service server through the first network.
  • the terminal device sends a third request to the DNS server through the second network, the third request includes the second domain name, the third request is used to request a fourth IP address corresponding to the second service server, and the fourth IP address is used to The terminal device accesses the second service server through the second network.
  • the DNS server sends third information in response to the third request to the terminal device, where the third information includes a fourth IP address.
  • the terminal device obtains the first IP address of the first service server.
  • the terminal device sends a service request (for example, an HTTP request) to the first service server through the WIFI network.
  • a service request for example, an HTTP request
  • the first service server determines, by querying, the telecommunication corresponding to the service server (for example, the second service server) that actually stores the resources.
  • the IP address (third IP address) of the network the first service server will send second information in response to the service request to the terminal device, the second information includes: the third IP address of the telecommunications network corresponding to the second service server, and a second domain name corresponding to the first domain name.
  • the terminal device can interact with the second service server on the WIFI path through the third IP address corresponding to the telecommunication network, and pull the second service server of stored resources.
  • the terminal device On the LTE path, the terminal device also needs to perform a DNS query again to obtain the IP address (fourth IP address) of the China Unicom network corresponding to the second service server.
  • the terminal device will send a third request (for example, a DNS query request) to the DNS server through the LTE network according to the acquired second domain name corresponding to the first domain name, where the third request includes the second domain name, the first domain name
  • the third request is used to request the IP address (fourth IP address) of the Unicom network corresponding to the second service server.
  • the DNS server queries through the MPDNS cache.
  • the DNS server determines that the third request is sent through the network of the Unicom operator, it can determine that the third request is used to request the IP address of the China Unicom network corresponding to the second service server (fourth IP address), thereby returning the IP address (fourth IP address) of the Unicom network corresponding to the second service server to the terminal device through the third information.
  • the terminal device After the terminal device obtains the IP address of the second service server on the LTE path, it can interact with the second service server on the LTE path through the IP address corresponding to the China Unicom network, and pull the stored resources of the second service server.
  • the terminal device can send a service request to the second service server through the LTE network of China Unicom according to the IP address of the second service server on the LTE path, and then obtain the required data and resources. That is to say, the terminal device only needs to perform a DNS query process through the China Unicom network on the LTE path, and then it can query the IP address (the fourth IP address) of the corresponding China Unicom network of the second service server that actually stores the resources that the terminal device needs to access. ), which can reduce signaling overhead, save communication resources, and further improve communication efficiency.
  • the method for determining the address of a service server provided by the present application obtains the corresponding IP addresses of the service servers on different network paths by performing DNS queries under different network paths respectively, and uses the corresponding IP addresses under different It interacts with the service server on the path, so as to avoid cross-network communication when accessing the service server, ensure the access rate, improve the service experience in multi-network scenarios, and improve the communication efficiency.
  • first, second, etc. are only used to indicate that a plurality of objects are different.
  • the first service server and the second service server are only to represent different service servers. It should not have any impact on the service server itself and the number, etc., and the above-mentioned first, second, etc. should not cause any limitation to the embodiments of the present application.
  • predefinition may be implemented by pre-saving corresponding codes, forms or other means that can be used to indicate relevant information in the device (the application does not limit its specific implementation means) .
  • the communication apparatus 400 may correspond to the terminal equipment described in the foregoing method 200 and method 300, or may be a chip or component applied to the terminal equipment, and, Each module or unit of the communication apparatus 400 is respectively configured to execute each action or processing process performed by the terminal device in each of the embodiments of the method 200 and the method 300.
  • the communication apparatus 400 may include: Processing unit 410 and communication unit 420.
  • the processing unit 410 is configured to generate a first request and a second request.
  • the communication unit 420 is configured to send a first request to the DNS server through the first network, where the first request includes a first domain name, and the first request is used to request the first Internet Protocol IP of the first service server corresponding to the first domain name address, where the first IP address is used by the terminal device to access the first service server through the first network.
  • the communication unit 420 is further configured to send a second request to the DNS server through the second network, where the second request includes the first domain name, the second request is used to request the second IP address of the first service server, and the second request includes the first domain name.
  • the second IP address is used for the terminal device to access the first service server through the second network;
  • the communication unit 420 is further configured to receive first information sent by the DNS server in response to the first request, where the first information includes the first IP address.
  • the communication unit 420 is further configured to receive second information sent by the DNS server in response to the second request, where the second information includes the second IP address.
  • the communication device provided by the present application obtains the IP addresses corresponding to the service servers on different network paths respectively by performing DNS queries under different network paths.
  • Terminal devices can use the corresponding IP addresses in different networks to interact with service servers on their respective network paths, thereby avoiding cross-network communication when accessing service servers, ensuring access rates, and improving services in multi-network scenarios. experience and improve communication efficiency.
  • the first network and the second network belong to different network operators, or the first network and the second network belong to the same network operator.
  • the first network may be a WLAN, for example, the first network is specifically a WIFI network, and the WIFI network may be dual WiFi paths (a WiFi path in the 2.4GHz frequency band and a WiFi path in the 5GHz frequency band).
  • the second network may be a cellular network, and the cellular network may be a dual-cellular network path, wherein the dual-cellular network paths may both be LTE networks, or both may be 5G networks, or, one of the dual-cellular network paths may be an LTE network path, and in addition One is the 5G network path.
  • the first network may belong to a telecommunications network operator, the second network Unicom or a mobile network operator.
  • the first network may belong to a China Unicom network operator, a second network telecommunication or mobile network operator, or the like.
  • the processing unit 410 is further configured to generate a service request
  • the communication unit 420 is further configured to send to the first service server through the first network according to the first IP address, the service request includes the first domain name;
  • the communication unit 420 is further configured to perform service communication with the second service server through the first network according to the third IP address.
  • the processing unit 410 is further configured to generate a third request
  • the communication unit 420 is further configured to send a third request to the DNS server through the second network, where the third request includes the second domain name, the third request is used to request the fourth IP address corresponding to the second service server, the The fourth IP address is used for the terminal device to access the second service server through the second network;
  • Third information sent by the DNS server in response to the third request is received, where the third information includes the fourth IP address.
  • the communication unit 420 is further configured to perform service communication with the second service server through the second network according to the four IP addresses.
  • the communication unit 420 is further configured to perform service communication with the first service server through the first network according to the first IP address;
  • the second network performs service communication with the first service server.
  • the first network is a wireless local area network WLAN
  • the second network is a Long Term Evolution System LTE network or a new wireless NR network.
  • the processing unit 410 is configured to generate a first request and a second request.
  • the communication unit 420 is configured to send a first request to the DNS server through the first network, where the first request includes a first domain name, and the first request is used to request the first Internet Protocol IP of the first service server corresponding to the first domain name address, where the first IP address is used by the terminal device to access the first service server through the first network.
  • the communication unit 420 is further configured to send a second request to the DNS server through the second network, where the second request includes the first domain name, the second request is used to request the second IP address of the third service server, the second request The IP address is used for the terminal device to access the third service server through the second network;
  • the communication unit 420 is further configured to receive first information sent by the DNS server in response to the first request, where the first information includes the first IP address.
  • the communication unit 420 is further configured to receive second information sent by the DNS server in response to the second request, where the second information includes the second IP address.
  • the third service server and the first service server are different service servers, and the CDN data or content stored in the third service server and the first service server are consistent.
  • the communication device provided by the present application obtains the IP addresses corresponding to the service servers on different network paths respectively by performing DNS queries under different network paths.
  • Terminal devices can use the corresponding IP addresses in different networks to interact with service servers on their respective network paths, thereby avoiding cross-network communication when accessing service servers, ensuring access rates, and improving services in multi-network scenarios. experience and improve communication efficiency.
  • the communication unit 420 is further configured to perform service communication with the first service server through the first network according to the first IP address;
  • the second network performs service communication with the third service server.
  • a processing unit 410 configured to generate a first request
  • the communication unit 420 is configured to send a first request to the DNS server through the first network, where the first request includes a first domain name, and the first request is used to request the first IP address of the first service server corresponding to the first domain name, The first IP address is used by the terminal device to access the first service server through the first network;
  • the communication unit 420 is further configured to receive first information sent by the DNS server in response to the first request, where the first information includes the first IP address;
  • the communication unit 420 is further configured to send a service request to the first service server through the first network according to the first IP address, where the service request includes the first domain name;
  • the communication unit 420 is further configured to receive second information sent by the first service server in response to the service request, where the second information includes: a second domain name corresponding to the first domain name, and a second domain name corresponding to the second domain name of the second service server.
  • the third IP address where the third IP address is used by the terminal device to access the second service server through the first network.
  • the processing unit 410 further configured to generate a third request
  • the communication unit 420 is further configured to send a third request to the DNS server through the second network, where the third request includes a second domain name, and the third request is used to request a fourth IP address corresponding to the second service server, the fourth IP address for the terminal device to access the second service server through the second network;
  • the communication unit 420 is further configured to receive third information sent by the DNS server in response to the third request, where the third information includes a fourth IP address.
  • the communication unit 420 may include a receiving unit (module) and a sending unit (module), configured to perform the steps of receiving information and sending information by the terminal device in the foregoing method embodiments.
  • the communication apparatus 400 may further include a storage unit for storing the instructions executed by the processing unit 410 and the communication unit 420 .
  • the processing unit 410, the communication unit 420 and the storage unit are communicatively connected, the storage unit stores instructions, the processing unit 410 is used to execute the instructions stored in the storage unit, and the communication unit 420 is used to perform specific signal sending and receiving under the driving of the processing unit 410.
  • the communication unit 420 may be a transceiver, an input/output interface or an interface circuit, or the like.
  • the storage unit may be a memory.
  • the processing unit 410 may be implemented by a processor. As shown in FIG. 16 , the communication apparatus 500 may include a processor 510 , a memory 520 and a transceiver 530 .
  • the communication apparatus 400 shown in FIG. 15 or the communication apparatus 500 shown in FIG. 16 can implement various embodiments of the aforementioned method 200 and method 300, and the terminal of the related embodiments shown in FIGS. 4 , 6 , and 12 to 14 .
  • the communication apparatus 400 shown in FIG. 15 or the communication apparatus 500 shown in FIG. 16 may be terminal equipment, or the terminal equipment may include the communication apparatus 400 shown in FIG. 15 or the communication apparatus 500 shown in FIG. 16 .
  • FIG. 17 shows a schematic block diagram of a communication apparatus 600 according to an embodiment of the present application.
  • the communication apparatus 600 may correspond to the DNS server described in the foregoing method 200 and method 300, or may be a chip or component applied to the DNS server, and, The modules or units of the communication apparatus 600 are respectively used to execute the actions or processing procedures performed by the DNS server in each of the above-mentioned methods 200 and 300.
  • the communication apparatus 600 may include: communication unit 610 and processing unit 620.
  • the communication unit 610 is configured to receive a first request from a terminal device, where the first request includes a first domain name, and the first request is used to request the first IP address of the first service server corresponding to the first domain name, and the first request includes a first domain name.
  • An IP address is used for the terminal device to access the first service server through the first network.
  • the processing unit 620 is configured to determine the first IP address according to the first request.
  • the communication unit 610 is further configured to receive a second request from the terminal device, where the second request includes the first domain name, and the second request is used to request the second IP address of the first service server corresponding to the first domain name , and the second IP address is used for the terminal device to access the first service server through the second network.
  • the processing unit 620 is further configured to determine the second IP address according to the second request.
  • the communication unit 610 is further configured to send first information in response to the first request to the terminal device, where the first information includes the first IP address;
  • the communication unit 610 is further configured to send second information in response to the second request to the terminal device, where the second information includes the second IP address.
  • the communication device determines the corresponding IP addresses of the service servers on different network paths according to the DNS query requests respectively sent by the terminal equipment on different network paths, and separates the service servers on different network paths respectively.
  • the corresponding IP address is fed back to the terminal device, so that the terminal device can use the corresponding IP addresses under different networks to interact with the service server on their respective network paths, thereby avoiding cross-network communication when accessing the service server.
  • the access rate is improved, the service experience in multi-network scenarios is improved, and the communication efficiency is improved.
  • the first network and the second network belong to different network operators, or the first network and the second network belong to the same network operator.
  • the communication unit 610 is further configured to:
  • the third request includes a second domain name, the second domain name corresponds to the first domain name, the third request is used to request the fourth IP address of the second service server, the second domain name
  • the service server is a service server corresponding to the second domain name, and the fourth IP address is used for the terminal device to access the second service server through the second network;
  • the first network is a wireless local area network WLAN
  • the second network is a Long Term Evolution System LTE network or a new wireless NR network.
  • the communication unit 610 may include a receiving unit (module) and a sending unit (module), configured to perform the steps of receiving information and sending information by the DNS server in each of the foregoing method embodiments.
  • the communication apparatus 600 may further include a storage unit for storing the instructions executed by the processing unit 620 and the communication unit 610 .
  • the processing unit 620, the communication unit 610 and the storage unit are communicatively connected, the storage unit stores instructions, the processing unit 620 is used to execute the instructions stored in the storage unit, and the communication unit 610 is used to perform specific signal sending and receiving under the driving of the processing unit 620.
  • the communication unit 610 may be a transceiver, an input/output interface or an interface circuit, or the like.
  • the storage unit may be a memory.
  • the processing unit 620 may be implemented by a processor.
  • the communication apparatus 700 may include a processor 710 , a memory 720 and a transceiver 730 .
  • the communication apparatus 600 shown in FIG. 17 or the communication apparatus 700 shown in FIG. 18 can implement the various embodiments of the aforementioned method 200 and method 300, and the DNS of the related embodiments shown in FIGS. 4, 6, 12 to 14. Steps performed by the server. Similar descriptions can refer to the descriptions in the aforementioned corresponding methods. In order to avoid repetition, details are not repeated here.
  • the communication apparatus 600 shown in FIG. 17 or the communication apparatus 700 shown in FIG. 18 may be a DNS server, or the DNS server may include the communication apparatus 600 shown in FIG. 17 or the communication apparatus 700 shown in FIG. 18 .
  • each unit in the above apparatus can be realized in the form of software calling through the processing element; also can all be realized in the form of hardware; some units can also be realized in the form of software calling through the processing element, and some units can be realized in the form of hardware.
  • each unit can be a separately established processing element, or can be integrated in a certain chip of the device to be implemented, and can also be stored in the memory in the form of a program, which can be called by a certain processing element of the device and execute the unit's processing. Function.
  • the processing element may also be called a processor, which may be an integrated circuit with signal processing capability.
  • each step of the above method or each of the above units may be implemented by an integrated logic circuit of hardware in the processor element or implemented in the form of software being invoked by the processing element.
  • a unit in any of the above apparatuses may be one or more integrated circuits configured to implement the above methods, eg, one or more application specific integrated circuits (ASICs), or, one or more A plurality of digital signal processors (DSPs), or, one or more field programmable gate arrays (FPGAs), or a combination of at least two of these integrated circuit forms.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • FPGAs field programmable gate arrays
  • a unit in the apparatus 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 (central processing unit, CPU) or other processors that can invoke programs.
  • CPU central processing unit
  • these units can be integrated together and implemented in the form of a system-on-a-chip (SOC).
  • An embodiment of the present application further provides a communication system, where the communication system includes: a terminal device and a DNS server in the foregoing method 200 and method 300 .
  • the communication system may further include the first service server in the method 200 and the method 300 .
  • the communication system may further include the second service server in the above method 200 and method 300.
  • Embodiments of the present application further provide a computer-readable storage medium for storing computer program codes, where the computer program includes instructions for executing any of the methods for determining an address of a service server provided by the above embodiments of the present application.
  • the readable medium may be a read-only memory (read-only memory, ROM) or a random access memory (random access memory, RAM), which is not limited in this embodiment of the present application.
  • the present application also provides a computer program product, the computer program product includes an instruction, when the instruction is executed, so that the terminal device, the DNS server, the first service server, and the second service server perform corresponding operations corresponding to the above methods. operation.
  • An embodiment of the present application further provides a chip located in a communication device, the chip includes: a processing unit and a communication unit, the processing unit may be, for example, a processor, and the communication unit may be, for example, an input/output interface, a pin or a circuit, etc.
  • the processing unit can execute computer instructions, so that the communication device executes any one of the methods for determining the address of the service server provided by the above embodiments of the present application.
  • the computer instructions are stored in a storage unit.
  • the storage unit is a storage unit in the chip, such as a register, a cache, etc.
  • the storage unit can also be a storage unit located outside the chip in the terminal, such as a read-only memory (ROM). ) or other types of static storage devices that can store static information and instructions, random access memory (RAM), etc.
  • the processor mentioned in any one of the above may be a CPU, a microprocessor, an ASIC, or one or more integrated circuits for controlling the program execution of the above-mentioned transmission method of feedback information.
  • the processing unit and the storage unit can be decoupled, respectively disposed on different physical devices, and connected in a wired or wireless manner to implement the respective functions of the processing unit and the storage unit, so as to support the system chip to implement the above embodiments various functions in .
  • the processing unit and the memory may also be coupled on the same device.
  • the communication device, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding method provided above. Therefore, for the beneficial effects that can be achieved, reference may be made to the above-provided method. The beneficial effects in the corresponding method will not be repeated here.
  • the memory in this embodiment of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory.
  • the non-volatile memory may be ROM, programmable read-only memory (programmable ROM, PROM), erasable programmable read-only memory (erasable PROM, EPROM), electrically erasable programmable read-only memory (electrically EPROM) , EEPROM) or flash memory.
  • Volatile memory can be RAM, which acts as an external cache.
  • RAM random access memory
  • DRAM dynamic random access memory
  • SDRAM synchronous dynamic random access memory
  • double data rate Synchronous dynamic random access memory double data rate SDRAM, DDR SDRAM
  • enhanced synchronous dynamic random access memory enhanced SDRAM, ESDRAM
  • synchronous link dynamic random access memory direct memory bus random access memory Access memory
  • direct rambus RAM direct rambus RAM
  • system and “network” are often used interchangeably herein.
  • the term “and/or” in this article is only an association relationship to describe the associated objects, indicating that there can be three kinds of relationships, for example, A and/or B, it can mean that A exists alone, A and B exist at the same time, and A and B exist independently B these three cases.
  • the character "/" in this document generally indicates that the related objects are an "or” relationship.
  • the methods in the embodiments of the present application may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software When implemented in software, it can be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer programs or instructions.
  • the computer may be a general purpose computer, special purpose computer, computer network, or other programmable device.
  • the computer program or instructions may be stored in or transmitted over a computer-readable storage medium.
  • the computer-readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server that integrates one or more available media.
  • the disclosed system, apparatus and method may be implemented in other manners.
  • the apparatus embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the functions, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium.
  • the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution, and the computer software product is stored in a readable storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned readable storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc. that can store program codes medium.

Abstract

The present application provides a method for determining a service server address, and a communication device. The method comprises: sending a first request to a DNS server by means of a first network, the first request being used for requesting a first IP address corresponding to a first domain name, and the first IP address being used for a terminal device to access a first service server by means of the first network; sending a second request sent to the DNS server by means of a second network, the second request being used for requesting a second IP address, and the second IP address being used for the terminal device to access the first service server by means of the second network; and receiving the first IP address and the second IP address sent by the DNS server. According to the method provided by the present application, by performing DNS queries respectively under different network paths, obtaining IP addresses of the service server respectively corresponding to the different network paths, and using the IP addresses respectively corresponding to different networks to interact with the service server on the different network paths, the access rate is ensured, and the service experience under multiple network scenarios is improved.

Description

确定业务服务器地址的方法和通信装置Method and communication device for determining service server address
本申请要求于2020年8月31日提交国家知识产权局、申请号为202010900839.6、申请名称为“确定业务服务器地址的方法和通信装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202010900839.6 and the application title "Method and Communication Device for Determining Service Server Address" filed with the State Intellectual Property Office on August 31, 2020, the entire contents of which are incorporated by reference in in this application.
技术领域technical field
本申请涉及通信领域,更为具体的,涉及一种确定业务服务器地址的方法和通信装置。The present application relates to the field of communications, and more particularly, to a method and a communication device for determining an address of a service server.
背景技术Background technique
华为在业界首发LinkTurbo技术后,各友商也在之后发布了相关类似技术,双网在线已经成了通信技术的标配能力。LinkTurbo可以理解为无线局域网(wireless local area networks,WLAN)和数据业务同时在线,利用WLAN(例如无线保真(wireless-fidelity,WiFi)和LTE/5G来提升网络表现,例如,在双WiFi路径(2.4GHz频段的WiFi路径和5GHz频段的WiFi路径)和双蜂窝网络路径上选择一路或者多路网络并用来改善网络体验。其中,双蜂窝网络路径可以均为LTE网络,或者均为5G网络,或者,双蜂窝网络路径中一条路径为LTE网络路径,另外一条为5G网络路径。After Huawei launched LinkTurbo technology for the first time in the industry, various partners also released related similar technologies later, and dual-network online has become a standard capability of communication technology. LinkTurbo can be understood as wireless local area networks (WLAN) and data services are online at the same time, using WLAN (such as wireless-fidelity, WiFi) and LTE/5G to improve network performance, for example, in dual WiFi paths ( 2.4GHz band WiFi path and 5GHz band WiFi path) and dual cellular network path, select one or more networks and use it to improve network experience. Wherein, dual cellular network paths can be both LTE networks, or both 5G networks, or , one of the dual-cellular network paths is an LTE network path, and the other is a 5G network path.
由于WLAN和蜂窝网络很有可能属于不同网络运营商,而各大运营商之间独立建网。在终端设备通过域名系统(domain name system,DNS)服务器查询业务服务器的互联网协议(internet protocol,IP)地址后,通过该IP地址,利用LinkTurbo技术访问业务服务器是,会出现访问业务服务器跨网(跨运营商)的情况,而在运营商跨网访问通道的速率都会受到限制,影响了多网络场景下的业务体验,降低了通信效率。Since the WLAN and the cellular network are likely to belong to different network operators, the major operators build networks independently. After the terminal device queries the internet protocol (IP) address of the service server through the domain name system (DNS) server, and accesses the service server by using LinkTurbo technology through the IP address, there will be a cross-network (internet) access to the service server. In the case of cross-operator), the rate of the access channel across the network of the carrier will be limited, which affects the service experience in the multi-network scenario and reduces the communication efficiency.
发明内容SUMMARY OF THE INVENTION
本申请提供了一种确定业务服务器地址的方法和通信装置,通过在不同网络路径下分别进行DNS查询,获取业务服务器在不同的网络路径上分别对应的IP地址,利用不同网络下分别对应的IP地址在各自的网络路径上与业务服务器进行交互,从而避免访问业务服务器时发生跨网通信的情况,保证了访问速率,提升多网络场景下的业务体验,提高通信效率。The present application provides a method and a communication device for determining the address of a service server. By performing DNS queries under different network paths, respectively, the IP addresses corresponding to the service servers on different network paths are obtained, and the corresponding IP addresses under different networks are used. Addresses interact with service servers on their respective network paths, thereby avoiding cross-network communication when accessing service servers, ensuring access rates, improving service experience in multi-network scenarios, and improving communication efficiency.
第一方面,提供了一种确定业务服务器地址的方法,该方法的执行主体既可以是终端设备也可以是应用于终端设备的芯片。该方法包括:终端设备通过第一网络向域名系统DNS服务器发送第一请求,该第一请求包括第一域名,该第一请求用于请求该第一域名对应的第一业务服务器的第一互联网协议IP地址,该第一IP地址用于该终端设备通过该第一网络访问该第一业务服务器;该终端设备通过第二网络向该DNS服务器发送第二请求,该第二请求包括该第一域名,该第二请求用于请求该第一业务服 务器的第二IP地址,该第二IP地址用于该终端设备通过该第二网络访问该第一业务服务器;该终端设备接收该DNS服务器发送的响应于该第一请求的第一信息,该第一信息包括该第一IP地址;该终端设备接收该DNS服务器发送的响应于该第二请求的第二信息,该第二信息包括该第二IP地址。In a first aspect, a method for determining an address of a service server is provided, and the execution body of the method may be either a terminal device or a chip applied to the terminal device. The method includes: a terminal device sends a first request to a domain name system DNS server through a first network, where the first request includes a first domain name, and the first request is used to request a first Internet connection of a first service server corresponding to the first domain name Protocol IP address, the first IP address is used by the terminal device to access the first service server through the first network; the terminal device sends a second request to the DNS server through the second network, and the second request includes the first service server domain name, the second request is used to request the second IP address of the first service server, and the second IP address is used by the terminal device to access the first service server through the second network; the terminal device receives the transmission from the DNS server the first information in response to the first request, the first information includes the first IP address; the terminal device receives the second information sent by the DNS server in response to the second request, the second information includes the first Two IP addresses.
第一方面提供的确定业务服务器地址的方法,终端设备通过在不同网络路径下分别进行DNS查询,获取业务服务器在不同的网络路径上分别对应的IP地址。终端设备便可以利用不同网络下分别对应的IP地址在各自的网络路径上与业务服务器进行交互,从而避免访问业务服务器时发生跨网通信的情况,保证了访问速率,提升多网络场景下的业务体验,提高通信效率。In the method for determining the address of the service server provided by the first aspect, the terminal device obtains the corresponding IP addresses of the service server on different network paths by performing DNS queries respectively on different network paths. Terminal devices can use the corresponding IP addresses in different networks to interact with service servers on their respective network paths, thereby avoiding cross-network communication when accessing service servers, ensuring access rates, and improving services in multi-network scenarios. experience and improve communication efficiency.
可选的,在本申请实施例中,终端设备使用LinkTurbo技术,通过(或者利用)第一网络和第二网络访问业务服务器。可选的,第一网络可以为WLAN,例如,第一网络具体为WIFI网络,WIFI网络可以为双WiFi路径(2.4GHz频段的WiFi路径和5GHz频段的WiFi路径)。第二网络可以为蜂窝网络,蜂窝网络可以为双蜂窝网络路径,其中,双蜂窝网络路径可以均为LTE网络,或者均为5G网络,或者,双蜂窝网络路径中一条路径为LTE网络路径,另外一条为5G网络路径。Optionally, in this embodiment of the present application, the terminal device uses the LinkTurbo technology to access the service server through (or using) the first network and the second network. Optionally, the first network may be a WLAN, for example, the first network is specifically a WIFI network, and the WIFI network may be dual WiFi paths (a WiFi path in the 2.4GHz frequency band and a WiFi path in the 5GHz frequency band). The second network may be a cellular network, and the cellular network may be a dual-cellular network path, wherein the dual-cellular network paths may both be LTE networks, or both may be 5G networks, or, one of the dual-cellular network paths may be an LTE network path, and in addition One is the 5G network path.
在第一方面一种可能的实现方式中,该第一网络和该第二网络属于不同的网络运营商,或者,该第一网络和该第二网络属于相同的网络运营商。例如,第一网络可以属于电信网络运营商,第二网络联通或者移动网络运营商。或者,第一网络可以属于联通网络运营商,第二网络电信或者移动网络运营商等。或者,第一网络和第二网络均属于电信网络运营商等。In a possible implementation manner of the first aspect, the first network and the second network belong to different network operators, or the first network and the second network belong to the same network operator. For example, the first network may belong to a telecommunications network operator, the second network Unicom or a mobile network operator. Alternatively, the first network may belong to a China Unicom network operator, a second network telecommunication or mobile network operator, or the like. Alternatively, both the first network and the second network belong to a telecommunication network operator or the like.
在第一方面一种可能的实现方式中,该方法还包括:该终端设备根据该第一IP地址,通过该第一网络与该第一业务服务器进行业务通信,例如,通过该第一网络向第一业务服务器发送业务请求;该终端设备根据该第二IP地址,通过该第二网络与该第一业务服务器进行业务通信,例如,通过该第二网络向第一业务服务器发送业务请求。在该实现方式中,终端设备获取了不同网络分别对应的业务服务器的IP地址后,便可以通过不同的IP地址,分别在不同的网络下与业务服务器进行交互,可以避免访问服务器发生的跨网通信的情况,保证了访问速率,提升多网络场景下的业务体验,提高通信效率。In a possible implementation manner of the first aspect, the method further includes: the terminal device, according to the first IP address, performs service communication with the first service server through the first network, for example, sending a service to the first service server through the first network. The first service server sends a service request; the terminal device performs service communication with the first service server through the second network according to the second IP address, for example, sends a service request to the first service server through the second network. In this implementation manner, after the terminal device obtains the IP addresses of the service servers corresponding to different networks, it can interact with the service servers under different networks through different IP addresses, which can avoid cross-network access to the server. In the case of communication, the access rate is guaranteed, the service experience in multi-network scenarios is improved, and the communication efficiency is improved.
在第一方面一种可能的实现方式中,该终端设备根据该第一IP地址,通过该第一网络向该第一业务服务器发送业务请求,该业务请求包括该第一域名;该终端设备接收该第一业务服务器发送的响应于该业务请求的第二信息,该第二信息包括:与该第一域名对应的第二域名、该第二域名对应的第二业务服器的第三IP地址,该第三IP地址用于该终端设备通过该第一网络访问该第二业务服务器。在该实现方式中,终端设备通过第一网络向第一业务服务器发送的HTTP请求出现了HTTP 302跳转,HTTP302跳转可以理解为终端设备访问的资源出现暂时性转移,终端设备需要得到新的资源位置(真正存储该资源的服务器的IP地址),然后重新访问获取该资源。即第一业务服务器并不是真正存储终端设备需要访问的资源的业务服务器,第一业务服务器可以将真正存储资源的业第二业务服务器对应的第一网络所属运营商的IP地址(第三IP地址)反馈给终端设备,进而使得终端设备可以通过第一网络对应的第三IP地址与第 二业务服务器交互,拉取第二业务服务器的存储的资源,保证了终端设备可以准确顺利的获取需要的资源,保障了通信质量。In a possible implementation manner of the first aspect, the terminal device sends a service request to the first service server through the first network according to the first IP address, where the service request includes the first domain name; the terminal device receives The second information sent by the first service server in response to the service request, the second information includes: a second domain name corresponding to the first domain name, and a third IP address of the second service server corresponding to the second domain name , and the third IP address is used by the terminal device to access the second service server through the first network. In this implementation manner, an HTTP 302 jump occurs in the HTTP request sent by the terminal device to the first service server through the first network. The HTTP 302 jump can be understood as a temporary transfer of resources accessed by the terminal device, and the terminal device needs to obtain a new The resource location (the IP address of the server that actually stores the resource), and then revisit to get the resource. That is, the first service server is not the service server that actually stores the resources that the terminal device needs to access. ) feedback to the terminal device, so that the terminal device can interact with the second service server through the third IP address corresponding to the first network, and pull the stored resources of the second service server, ensuring that the terminal device can accurately and smoothly obtain the required resources to ensure the quality of communication.
在第一方面一种可能的实现方式中,该方法还包括:该终端设备根据该第三IP地址,通过该第一网络向该第二业务服务器发送业务请求。In a possible implementation manner of the first aspect, the method further includes: sending, by the terminal device, a service request to the second service server through the first network according to the third IP address.
在第一方面一种可能的实现方式中,该方法还包括:该终端设备通过第二网络向该DNS服务器发送第三请求,该第三请求包括该第二域名,该第三请求用于请求该第二业务服务器对应的第四IP地址,该第四IP地址用于该终端设备通过该第二网络访问该第二业务服务器;该终端设备接收该DNS服务器发送的响应于该第三请求的第三信息,该第三信息包括该第四IP地址。在该实现方式中,可以使得终端设备通过DNS查询,获取真正存储资源的业第二业务服务器对应的第二网络的IP地址(第四IP地址),进而使得终端设备可以通过第二网络对应的第四IP地址与第二业务服务器交互,拉取第二业务服务器的存储的资源,保证了终端设备可以准确顺利的获取需要的资源,保障了通信质量。In a possible implementation manner of the first aspect, the method further includes: the terminal device sends a third request to the DNS server through the second network, where the third request includes the second domain name, and the third request is used to request the fourth IP address corresponding to the second service server, where the fourth IP address is used by the terminal device to access the second service server through the second network; the terminal device receives the message sent by the DNS server in response to the third request third information, where the third information includes the fourth IP address. In this implementation manner, the terminal device can obtain the IP address (fourth IP address) of the second network corresponding to the second service server that actually stores resources through DNS query, so that the terminal device can pass the corresponding IP address of the second network. The fourth IP address interacts with the second service server, and pulls the stored resources of the second service server, which ensures that the terminal device can obtain the required resources accurately and smoothly, and ensures the communication quality.
在第一方面一种可能的实现方式中,该方法还包括:该终端设备根据该四IP地址,通过该第二网络与第二业务服务器进行业务通信,例如,通过该第二网络向该第二业务服务器发送业务请求。In a possible implementation manner of the first aspect, the method further includes: the terminal device performs service communication with the second service server through the second network according to the four IP addresses, for example, sending the service to the first service server through the second network. 2. The service server sends a service request.
在第一方面一种可能的实现方式中,该第一网络为无线局域网WLAN,该第二网络为长期演进系统LTE网络或者为新无线NR网络。In a possible implementation manner of the first aspect, the first network is a wireless local area network WLAN, and the second network is a Long Term Evolution System LTE network or a new wireless NR network.
第二方面,提供了一种确定业务服务器地址的方法,该方法的执行主体既可以是终端设备也可以是应用于终端设备的芯片。该方法包括:终端设备通过第一网络向域名系统DNS服务器发送第一请求,该第一请求包括第一域名,该第一请求用于请求该第一域名对应的第一业务服务器的第一互联网协议IP地址,该第一IP地址用于该终端设备通过该第一网络访问该第一业务服务器;该终端设备通过第二网络向该DNS服务器发送第二请求,该第二请求包括该第一域名,该第二请求用于请求第三业务服务器的第二IP地址,该第二IP地址用于该终端设备通过该第二网络访问该第三业务服务器;该终端设备接收该DNS服务器发送的响应于该第一请求的第一信息,该第一信息包括该第一IP地址;该终端设备接收该DNS服务器发送的响应于该第二请求的第二信息,该第二信息包括该第二IP地址。其中,第三业务服务器和第一业务服务器为不同的业务服务器,第三业务服务器和第一业务服务器存储的CDN数据或者内容一致。In a second aspect, a method for determining an address of a service server is provided, and the execution body of the method may be either a terminal device or a chip applied to the terminal device. The method includes: a terminal device sends a first request to a domain name system DNS server through a first network, where the first request includes a first domain name, and the first request is used to request a first Internet connection of a first service server corresponding to the first domain name Protocol IP address, the first IP address is used by the terminal device to access the first service server through the first network; the terminal device sends a second request to the DNS server through the second network, and the second request includes the first service server domain name, the second request is used to request the second IP address of the third service server, and the second IP address is used by the terminal device to access the third service server through the second network; the terminal device receives the information sent by the DNS server In response to the first information of the first request, the first information includes the first IP address; the terminal device receives the second information sent by the DNS server in response to the second request, the second information includes the second information IP address. The third service server and the first service server are different service servers, and the CDN data or content stored in the third service server and the first service server are consistent.
第二方面提供的确定业务服务器地址的方法,终端设备通过在不同网络路径下分别进行DNS查询,获取业务服务器在不同的网络路径上分别对应的IP地址。终端设备便可以利用不同网络下分别对应的IP地址在各自的网络路径上与业务服务器进行交互,从而避免访问业务服务器时发生跨网通信的情况,保证了访问速率,提升多网络场景下的业务体验,提高通信效率。In the method for determining the address of the service server provided by the second aspect, the terminal device obtains the corresponding IP addresses of the service server on different network paths by performing DNS query respectively on different network paths. Terminal devices can use the corresponding IP addresses in different networks to interact with service servers on their respective network paths, thereby avoiding cross-network communication when accessing service servers, ensuring access rates, and improving services in multi-network scenarios. experience and improve communication efficiency.
在第二方面一种可能的实现方式中,该方法还包括:该终端设备根据该第一IP地址,通过该第一网络与该第一业务服务器进行业务通信,例如,通过该第一网络向第一业务服务器发送业务请求;该终端设备根据该第二IP地址,通过该第二网络与该第三业务服务器进行业务通信,例如,通过该第二网络向第三业务服务器发送业务请求。 在该实现方式中,终端设备获取了不同网络分别对应的业务服务器的IP地址后,便可以通过不同的IP地址,分别在不同的网络下与业务服务器进行交互,可以避免访问服务器发生的跨网通信的情况,保证了访问速率,提升多网络场景下的业务体验,提高通信效率。In a possible implementation manner of the second aspect, the method further includes: according to the first IP address, the terminal device performs service communication with the first service server through the first network, for example, sending a service to the first service server through the first network. The first service server sends a service request; the terminal device performs service communication with the third service server through the second network according to the second IP address, for example, sends a service request to the third service server through the second network. In this implementation manner, after the terminal device obtains the IP addresses of the service servers corresponding to different networks, it can interact with the service servers under different networks through different IP addresses, which can avoid cross-network access to the server. In the case of communication, the access rate is guaranteed, the service experience in multi-network scenarios is improved, and the communication efficiency is improved.
在第二方面一种可能的实现方式中,该第一网络和该第二网络属于不同的网络运营商,或者,该第一网络和该第二网络属于相同的网络运营商。例如,第一网络可以属于电信网络运营商,第二网络联通或者移动网络运营商。或者,第一网络可以属于联通网络运营商,第二网络电信或者移动网络运营商等。或者,第一网络和第二网络均属于电信网络运营商等。In a possible implementation manner of the second aspect, the first network and the second network belong to different network operators, or the first network and the second network belong to the same network operator. For example, the first network may belong to a telecommunications network operator, the second network Unicom or a mobile network operator. Alternatively, the first network may belong to a China Unicom network operator, a second network telecommunication or mobile network operator, or the like. Alternatively, both the first network and the second network belong to a telecommunication network operator or the like.
第三方面,提供了一种确定业务服务器地址的方法,该方法的执行主体既可以是终端设备也可以是应用于终端设备的芯片。该方法包括:终端设备通过第一网络向DNS服务器发送第一请求,该第一请求包括第一域名,该第一请求用于请求该第一域名对应的第一业务服务器的第一IP地址,第一IP地址用于终端设备通过第一网络访问第一业务服务器。终端设备接收DNS服务器发送的响应于该第一请求的第一信息,该第一信息包括该第一IP地址。该终端设备根据第一IP地址,通过第一网络向第一业务服务器发送业务请求,该业务请求包括第一域名。终端设备接收第一业务服务器发送的响应于该业务请求的第二信息,第二信息包括:与第一域名对应的第二域名、第二域名对应的第二业务服器的第三IP地址,第三IP地址用于终端设备通过第一网络访问第二业务服务器。该终端设备通过第二网络向该DNS服务器发送第三请求,第三请求包括第二域名,该第三请求用于请求第二业务服务器对应的第四IP地址,第四IP地址用于终端设备通过第二网络访问第二业务服务器。终端设接收DNS服务器发送的响应于该第三请求的第三信息,该第三信息包括第四IP地址。In a third aspect, a method for determining an address of a service server is provided, and the execution body of the method may be either a terminal device or a chip applied to the terminal device. The method includes: a terminal device sends a first request to a DNS server through a first network, where the first request includes a first domain name, and the first request is used to request a first IP address of a first service server corresponding to the first domain name, The first IP address is used by the terminal device to access the first service server through the first network. The terminal device receives first information sent by the DNS server in response to the first request, where the first information includes the first IP address. The terminal device sends a service request to the first service server through the first network according to the first IP address, where the service request includes the first domain name. The terminal device receives second information sent by the first service server in response to the service request, where the second information includes: a second domain name corresponding to the first domain name and a third IP address of the second service server corresponding to the second domain name, The third IP address is used by the terminal device to access the second service server through the first network. The terminal device sends a third request to the DNS server through the second network, the third request includes the second domain name, the third request is used to request a fourth IP address corresponding to the second service server, and the fourth IP address is used for the terminal device Access the second service server through the second network. The terminal device receives third information sent by the DNS server in response to the third request, where the third information includes a fourth IP address.
第三方面提供的确定业务服务器地址的方法,终端设备可以维护域名白名单,域名白名单包括一个或者多个域名,域名白名单包括的域名会发生HTTP 302跳转的域名。该域名白名单括第一域名,在终端设备获取HTTP 302跳转后与第一域名对应的第二域名后,在通过DNS查询真正存储资源的业第二业务服务器对应第二网络所属运营商的IP地址(第四IP地址)。便可以第四IP地址与第二业务服务器交互,拉取第二业务服务器的存储的资源。终端设备通过联通第二网络只需要进行一次DNS查询过程,便可以查询真正存储终端设备需要访问的资源的第二业务服务器的对应的第二网络所属运营商IP地址(第四IP地址),可以降低信令的开销,节省通信资源,进一步的提高通信效率。In the method for determining the service server address provided by the third aspect, the terminal device can maintain a whitelist of domain names, the whitelist of domain names includes one or more domain names, and the domain names included in the whitelist of domain names will be redirected by HTTP 302. The domain name whitelist includes the first domain name. After the terminal device obtains the second domain name corresponding to the first domain name after the HTTP 302 redirection, the second service server that actually stores the resource is queried through DNS corresponding to the operator of the second network. IP address (fourth IP address). Then, the fourth IP address can be used to interact with the second service server to pull the stored resources of the second service server. The terminal device only needs to perform a DNS query process through the second network of China Unicom, and then it can query the IP address (fourth IP address) of the operator of the second network corresponding to the second service server that actually stores the resources that the terminal device needs to access. Reduce signaling overhead, save communication resources, and further improve communication efficiency.
在第三方面一种可能的实现方式中,该第一网络和该第二网络属于不同的网络运营商,或者,该第一网络和该第二网络属于相同的网络运营商。例如,第一网络可以属于电信网络运营商,第二网络联通或者移动网络运营商。或者,第一网络可以属于联通网络运营商,第二网络电信或者移动网络运营商等。或者,第一网络和第二网络均属于电信网络运营商等。In a possible implementation manner of the third aspect, the first network and the second network belong to different network operators, or the first network and the second network belong to the same network operator. For example, the first network may belong to a telecommunications network operator, the second network Unicom or a mobile network operator. Alternatively, the first network may belong to a China Unicom network operator, a second network telecommunication or mobile network operator, or the like. Alternatively, both the first network and the second network belong to a telecommunication network operator or the like.
在第三方面一种可能的实现方式中,该方法还包括:该终端设备根据该四IP地址,通过该第二网络与该第二业务服务器进行业务通信。In a possible implementation manner of the third aspect, the method further includes: the terminal device performs service communication with the second service server through the second network according to the four IP addresses.
在第三方面一种可能的实现方式中,该第一网络为无线局域网WLAN,该第二网 络设备长期演进系统LTE网络或者为新无线NR网络。In a possible implementation manner of the third aspect, the first network is a wireless local area network WLAN, and the second network device is a Long Term Evolution System LTE network or a new wireless NR network.
第四方面,提供了一种确定业务服务器地址的方法,该方法的执行主体既可以是DNS服务器,也可以是应用于DNS服务器中的芯片。该方法包括:DNS服务器接收来自于终端设备的第一请求,该第一请求包括第一域名,该第一请求用于请求该第一域名对应的第一业务服务器的第一IP地址,该第一IP地址用于该终端设备通过第一网络访问该第一业务服务器;该DNS服务器接收来自于该终端设备的第二请求,该第二请求包括该第一域名,该第二请求用于请求该第一域名对应的第一业务服务器的第二IP地址,该第二IP地址用于该终端设备通过第二网络访问该第一业务服务器;In a fourth aspect, a method for determining an address of a service server is provided, and the execution body of the method may be either a DNS server or a chip applied to the DNS server. The method includes: a DNS server receives a first request from a terminal device, the first request includes a first domain name, the first request is used to request a first IP address of a first service server corresponding to the first domain name, and the first request includes a first domain name. An IP address is used for the terminal device to access the first service server through the first network; the DNS server receives a second request from the terminal device, the second request includes the first domain name, and the second request is used to request The second IP address of the first service server corresponding to the first domain name, where the second IP address is used by the terminal device to access the first service server through the second network;
该DNS服务器向该终端设备发送响应于该第一请求的第一信息,该第一信息包括该第一IP地址;该DNS服务器向该终端设备发送响应于该第二请求的第二信息,该第二信息包括该第二IP地址。The DNS server sends first information in response to the first request to the terminal device, where the first information includes the first IP address; the DNS server sends second information in response to the second request to the terminal device, the first information includes the first IP address The second information includes the second IP address.
第四方面提供的确定业务服务器地址的方法,DNS服务器根据终端设备在不同网络路径下分别发送的DNS查询请求,确定业务服务器在不同的网络路径上分别对应的IP地址,将业务服务器在不同的网络路径上分别对应的IP地址反馈给终端设备,从而使得终端设备便可以利用不同网络下分别对应的IP地址在各自的网络路径上与业务服务器进行交互,从而避免访问业务服务器时发生跨网通信的情况,保证了访问速率,提升多网络场景下的业务体验,提高通信效率。In the method for determining the address of the service server provided by the fourth aspect, the DNS server determines the corresponding IP addresses of the service server on different network paths according to the DNS query requests respectively sent by the terminal device under different network paths, and assigns the service server to the different network paths. The corresponding IP addresses on the network path are fed back to the terminal device, so that the terminal device can use the corresponding IP addresses under different networks to interact with the service server on their respective network paths, thereby avoiding cross-network communication when accessing the service server. In this case, the access rate is guaranteed, the service experience in multi-network scenarios is improved, and the communication efficiency is improved.
在第四方面一种可能的实现方式中,该第一网络和该第二网络属于不同的网络运营商,或者,该第一网络和该第二网络属于相同的网络运营商。In a possible implementation manner of the fourth aspect, the first network and the second network belong to different network operators, or the first network and the second network belong to the same network operator.
在第四方面一种可能的实现方式中,该方法还包括:该DNS服务器接收来自于该终端设备的第三请求,该第三请求包括第二域名,该第二域名对应该第一域名,该第三请求用于请求第二业务服务器的第四IP地址,该第二业务服务器为该第二域名对应业务服务器,该第四IP地址用于该终端设备通过该第二网络访问该第二业务服务器;该DNS服务器向该终端设备发送响应于该第三请求的第三信息,该第三信息包括该四IP地址。In a possible implementation manner of the fourth aspect, the method further includes: the DNS server receiving a third request from the terminal device, where the third request includes a second domain name, and the second domain name corresponds to the first domain name, The third request is used to request the fourth IP address of the second service server, the second service server is the service server corresponding to the second domain name, and the fourth IP address is used for the terminal device to access the second service through the second network. a service server; the DNS server sends third information in response to the third request to the terminal device, where the third information includes the four IP addresses.
在第四方面一种可能的实现方式中,该第一网络为无线局域网WLAN,该第二网络设备长期演进系统LTE网络或者为新无线NR网络。In a possible implementation manner of the fourth aspect, the first network is a wireless local area network WLAN, and the second network device is a Long Term Evolution System LTE network or a new wireless NR network.
第五方面,提供了一种通信装置,该通信装置包括用于执行以上第一方面或者第一方面的任意一方面可能的实现方式中的各个步骤的单元,或者,包括用于执行以上第二方面或者第二方面的任意一方面可能的实现方式中的各个步骤的单元,或者,包括用于执行以上第三方面或者第三方面的任意一方面可能的实现方式中的各个步骤的单元。In a fifth aspect, a communication device is provided, the communication device comprising a unit for performing each step in the above first aspect or any possible implementation manner of the first aspect, or, comprising a unit for performing the above second aspect The aspect or the unit of each step in the possible implementation manner of any aspect of the second aspect, or, including the unit for performing each step in the above third aspect or any possible implementation manner of the third aspect.
第六方面,提供了一种通信装置,该通信装置包括用于执行以上第四方面或者第四方面的任意一方面可能的实现方式中的各个步骤的单元。In a sixth aspect, a communication apparatus is provided, the communication apparatus including a unit for performing each step in the above fourth aspect or any possible implementation manner of the fourth aspect.
第七方面,提供了一种通信装置,该通信装置包括至少一个处理器和存储器,至少一个处理器用于执行以上第一方面或者第一方面的任意一方面可能的实现方式中的方法,或者,用于执行以上第二方面或者第二方面的任意一方面可能的实现方式中的方法,或者,用于执行以上第三方面或者第三方面的任意一方面可能的实现方式中的方法。In a seventh aspect, a communication device is provided, the communication device includes at least one processor and a memory, and the at least one processor is configured to execute the method in the first aspect or any possible implementation manner of the first aspect, or, For performing the above second aspect or the method in any possible implementation manner of the second aspect, or for performing the above third aspect or the method in any possible implementation manner of the third aspect.
第八方面,提供了一种通信装置,该通信装置包括至少一个处理器和存储器,至少一个处理器用于执行以上第四方面或者第四方面的任意一方面可能的实现方式中的方法。In an eighth aspect, a communication device is provided, the communication device includes at least one processor and a memory, where the at least one processor is configured to execute the above fourth aspect or the method in any possible implementation manner of the fourth aspect.
第九方面,提供了一种通信装置,该通信装置包括至少一个处理器和接口电路,至少一个处理器用于执行以上第一方面或者第一方面中的任意一方面可能的实现方式中的方法,或者,用于执行以上第二方面或者第二方面中的任意一方面可能的实现方式中的方法,或者,用于执行以上第三方面或者第三方面中的任意一方面可能的实现方式中的方法。In a ninth aspect, a communication device is provided, the communication device includes at least one processor and an interface circuit, and the at least one processor is configured to execute the method in the above first aspect or any possible implementation manner of the first aspect, Or, for performing the above second aspect or the method in any possible implementation manner of the second aspect, or for performing the above third aspect or the method in any possible implementation manner of the third aspect method.
第十方面,提供了一种通信装置,该通信装置包括至少一个处理器和接口电路,至少一个处理器用于执行以上第四方面或者第四方面中的任意一方面可能的实现方式中的方法。A tenth aspect provides a communication device, the communication device includes at least one processor and an interface circuit, where the at least one processor is configured to execute the method in the fourth aspect or any of the possible implementations of the fourth aspect.
第十一方面,提供了一种终端设备,该终端设备包括上述第五方面、第七方面或者第九方面提供的任一种通信装置。In an eleventh aspect, a terminal device is provided, and the terminal device includes any one of the communication apparatuses provided in the fifth aspect, the seventh aspect, or the ninth aspect.
第十二方面,提供了一种DNS服务器,该DNS服务器包括上述第六方面、第八方面或者第十提供的任一种通信装置。A twelfth aspect provides a DNS server, where the DNS server includes any of the communication devices provided in the sixth aspect, the eighth aspect, or the tenth aspect.
第十三方面,提供了一种计算机程序产品,该计算机程序产品包括计算机程序,该计算机程序在被处理器执行时,用于执行第一方面至第四方面中任意一方面中的方法,或者,用于执行第一方面至第四方面中任意一方面中的任意可能的实现方式中的方法。A thirteenth aspect provides a computer program product, the computer program product comprising a computer program, when executed by a processor, for performing the method in any one of the first to fourth aspects, or , which is used to execute the method in any possible implementation manner of any one of the first aspect to the fourth aspect.
第十四方面,提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当该计算机程序被执行时,用于执行第一方面至第三方面中任意一方面中的方法,或者,用于执行第一方面至第四方面中任意一方面中的任意可能的实现方式中的方法。A fourteenth aspect provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed, is used to execute any one of the first to third aspects. A method, or a method for performing any possible implementation manner of any one of the first aspect to the fourth aspect.
第十五方面,提供了一种芯片,该芯片包括:处理器,用于从存储器中调用并运行计算机程序,使得安装有该芯片的通信设备执行第一方面至第四方面中任意一方面中的方法,或者,用于执行第一方面至第四方面中任意一方面中的任意可能的实现方式中的方法。A fifteenth aspect provides a chip, the chip comprising: a processor for calling and running a computer program from a memory, so that a communication device installed with the chip executes any one of the first to fourth aspects A method, or a method for performing any possible implementation manner of any one of the first aspect to the fourth aspect.
本申请提供的确定业务服务器地址的方法,通过在不同网络路径下分别进行DNS查询,获取业务服务器在不同的网络路径上分别对应的IP地址。终端设备便可以利用不同网络下分别对应的IP地址在各自的网络路径上与业务服务器进行交互,从而避免访问业务服务器时发生跨网通信的情况,保证了访问速率,提升多网络场景下的业务体验,提高通信效率。The method for determining the address of a service server provided by the present application obtains the corresponding IP addresses of the service server on different network paths by performing DNS query respectively under different network paths. Terminal devices can use the corresponding IP addresses in different networks to interact with service servers on their respective network paths, thereby avoiding cross-network communication when accessing service servers, ensuring access rates, and improving services in multi-network scenarios. experience and improve communication efficiency.
附图说明Description of drawings
图1是终端设备使用LinkTurbo技术的示意图。Figure 1 is a schematic diagram of a terminal device using LinkTurbo technology.
图2是本申请提供的一例双网络下终端设备访问业务服务器过程的示意图。FIG. 2 is a schematic diagram of an example of a process of accessing a service server by a terminal device under dual networks provided by the present application.
图3是本申请提供的一例适用于本申请实施例的通信系统的示意图。FIG. 3 is a schematic diagram of an example of a communication system provided by the present application and applicable to an embodiment of the present application.
图4是本申请实施例提供的一例确定业务服务器地址的方法的示意性流程图。FIG. 4 is a schematic flowchart of an example of a method for determining an address of a service server provided by an embodiment of the present application.
图5是本申请提供的一例利用本申请提供的方法时终端设备显示的示意性界面 图。Fig. 5 is an example of a schematic interface diagram displayed by a terminal device provided by the present application when the method provided by the present application is used.
图6是本申请实施例提供的另一例确定业务服务器地址的方法的示意性流程图。FIG. 6 is a schematic flowchart of another example of a method for determining an address of a service server provided by an embodiment of the present application.
图7是本申请实施例提供的一例前置引擎处理流程和后置引擎处理流程的示意性流程图。FIG. 7 is a schematic flowchart of an example of a pre-engine processing flow and a post-engine processing flow provided by an embodiment of the present application.
图8是本申请实施例提供的一例前置引擎处理流程的示意图。FIG. 8 is a schematic diagram of an example of a pre-engine processing flow provided by an embodiment of the present application.
图9是本申请实施例提供的一例后置引擎处理流程的示意图。FIG. 9 is a schematic diagram of an example of a post-engine processing flow provided by an embodiment of the present application.
图10是本申请提供的一例多个可用网络的DNS查询的示意图。FIG. 10 is a schematic diagram of an example of DNS query of multiple available networks provided by the present application.
图11是本申请提供的一例MPDNS缓存查询过程的示意图。FIG. 11 is a schematic diagram of an example of an MPDNS cache query process provided by the present application.
图12是本申请实施例提供的另一例确定业务服务器地址的方法的示意性流程图。FIG. 12 is a schematic flowchart of another example of a method for determining an address of a service server provided by an embodiment of the present application.
图13是本申请实施例提供的另一例确定业务服务器地址的方法的示意性流程图。FIG. 13 is a schematic flowchart of another example of a method for determining an address of a service server provided by an embodiment of the present application.
图14是本申请实施例提供的另一例确定业务服务器地址的方法的示意性流程图。FIG. 14 is a schematic flowchart of another example of a method for determining an address of a service server provided by an embodiment of the present application.
图15是本申请实施例提供的另一例通信装置结构的示意性框图。FIG. 15 is a schematic block diagram of another example of the structure of a communication apparatus provided by an embodiment of the present application.
图16是本申请实施例提供的又一例通信装置结构的示意性框图。FIG. 16 is a schematic block diagram of another example of the structure of a communication apparatus provided by an embodiment of the present application.
图17是本申请实施例提供的另一例通信装置结构的示意性框图。FIG. 17 is a schematic block diagram of another example of the structure of a communication apparatus provided by an embodiment of the present application.
图18是本申请实施例提供的又一例通信装置结构的示意性框图。FIG. 18 is a schematic block diagram of another example of the structure of a communication apparatus provided by an embodiment of the present application.
具体实施方式detailed description
下面将结合附图,对本申请中的技术方案进行描述。The technical solutions in the present application will be described below with reference to the accompanying drawings.
在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请实施例的描述中,“多个”是指两个或多于两个。In the description of the embodiments of the present application, unless otherwise specified, "/" means or means, for example, A/B can mean A or B; "and/or" in this document is only an association that describes an associated object Relation, it means that there can be three kinds of relations, for example, A and/or B can mean that A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "plurality" refers to two or more than two.
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。Hereinafter, the terms "first" and "second" are only used for descriptive purposes, and should not be construed as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may expressly or implicitly include one or more of that feature. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.
另外,本申请的各个方面或特征可以实现成方法、装置或使用标准编程和/或工程技术的制品。本申请中使用的术语“制品”涵盖可从任何计算机可读器件、载体或介质访问的计算机程序。例如,计算机可读介质可以包括,但不限于:磁存储器件(例如,硬盘、软盘或磁带等),光盘(例如,压缩盘(compact disc,CD)、数字通用盘(digital versatile disc,DVD)等),智能卡和闪存器件(例如,可擦写可编程只读存储器(erasable programmable read-only memory,EPROM)、卡、棒或钥匙驱动器等)。另外,本文描述的各种存储介质可代表用于存储信息的一个或多个设备和/或其它机器可读介质。术语“机器可读介质”可包括但不限于,无线信道和能够存储、包含和/或承载指令和/或数据的各种其它介质。Additionally, various aspects or features of the present application may be implemented as a method, apparatus, or article of manufacture using standard programming and/or engineering techniques. The term "article of manufacture" as used in this application encompasses a computer program accessible from any computer readable device, carrier or medium. For example, computer readable media may include, but are not limited to: magnetic storage devices (eg, hard disks, floppy disks, or magnetic tapes, etc.), optical disks (eg, compact discs (CDs), digital versatile discs (DVDs) etc.), smart cards and flash memory devices (eg, erasable programmable read-only memory (EPROM), card, stick or key drives, etc.). Additionally, various storage media described herein can represent one or more devices and/or other machine-readable media for storing information. The term "machine-readable medium" may include, but is not limited to, wireless channels and various other media capable of storing, containing, and/or carrying instructions and/or data.
本申请实施例的技术方案可以应用于各种通信系统,例如:全球移动通讯(Global System of Mobile communication,GSM)系统、码分多址(Code Division Multiple Access,CDMA)系统、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)系统、通用分组无线业务(General Packet Radio Service,GPRS)、长期演进(Long Term  Evolution,LTE)系统、LTE频分双工(Frequency Division Duplex,FDD)系统、LTE时分双工(Time Division Duplex,TDD)、通用移动通信系统(Universal Mobile Telecommunication System,UMTS)、全球互联微波接入(Worldwide Interoperability for Microwave Access,WiMAX)通信系统、未来的第五代(5th Generation,5G)系统或新无线(New Radio,NR)等。The technical solutions of the embodiments of the present application can be applied to various communication systems, for example: a Global System of Mobile communication (GSM) system, a Code Division Multiple Access (CDMA) system, a wideband Code Division Multiple Access (CDMA) system (Wideband Code Division Multiple Access, WCDMA) system, General Packet Radio Service (General Packet Radio Service, GPRS), Long Term Evolution (Long Term Evolution, LTE) system, LTE Frequency Division Duplex (Frequency Division Duplex, FDD) system, LTE Time Division Duplex (TDD), Universal Mobile Telecommunication System (UMTS), Worldwide Interoperability for Microwave Access (WiMAX) communication system, 5th Generation (5th Generation, 5G) system or New Radio (NR), etc.
本申请实施例中的终端设备可以指用户设备、接入终端、用户单元、用户站、移动站、移动台、远方站、远程终端、移动设备、用户终端、终端、无线通信设备、用户代理或用户装置。终端设备还可以是蜂窝电话、无绳电话、会话启动协议(Session Initiation Protocol,SIP)电话、无线本地环路(Wireless Local Loop,WLL)站、个人数字处理(Personal Digital Assistant,PDA)、具有无线通信功能的手持设备、计算设备或连接到无线调制解调器的其它处理设备、车载设备、可穿戴设备,5G网络中的终端设备或者未来演进的公用陆地移动通信网络(Public Land Mobile Network,PLMN)中的终端设备等,本申请实施例对此并不限定。The terminal device in this embodiment of the present application may refer to a user equipment, an access terminal, a subscriber unit, a subscriber station, a mobile station, a mobile station, a remote station, a remote terminal, a mobile device, a user terminal, a terminal, a wireless communication device, a user agent or user device. The terminal device may also be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), a wireless communication Functional handheld devices, computing devices, or other processing devices connected to wireless modems, in-vehicle devices, wearable devices, terminal devices in 5G networks, or terminals in a future evolved Public Land Mobile Network (PLMN) equipment, etc., which are not limited in this embodiment of the present application.
随着移动终端(例如手机)用户数量的不断增长,各类移动终端支持的业务功能不断增加,例如即时通信、证券、网页浏览、文件下载等功能已逐步成为终端设备,尤其是智能手机的主流应用。在上网过程中,移动终端需要对统一资源定位符(uniform resource locator,URL)的域名查询其域名对应的互联网协议(internet protocol,IP)地址,以便发送数据包。这个过程需要通过查询域名系统(domain name system,DNS)服务器才能完成。With the continuous growth of the number of users of mobile terminals (such as mobile phones), the business functions supported by various mobile terminals continue to increase. For example, functions such as instant messaging, securities, web browsing, and file download have gradually become the mainstream of terminal devices, especially smart phones. application. In the process of surfing the Internet, the mobile terminal needs to query the domain name of the uniform resource locator (URL) for the Internet protocol (IP) address corresponding to the domain name in order to send data packets. This process needs to be done by querying the Domain Name System (DNS) server.
DNS服务器是一种分布式的主机信息数据库,提供域名和业务服务器的IP地址之间的映射和转换,可以通过DNS服务器将域名解析为对应的IP地址。终端设备可以通过DNS提供的域名解析服务实现对域名的访问。A DNS server is a distributed host information database that provides mapping and conversion between domain names and IP addresses of business servers, and can resolve domain names to corresponding IP addresses through the DNS server. Terminal devices can access domain names through the domain name resolution service provided by DNS.
域名访问的过程如下:以终端设备访问域名A为例,当终端设备访问该域名A时,查询其缓存中是否存在域名A对应的业务服务器的IP地址,如果存在,则终端设备可以直接获取该IP地址,通过该IP地址访问该域名A对应的业务服务器。如果不存在,则终端设备可以向DNS服务器发送域名解析请求,该域名解析请求携带该域名A,由DNS服务器返回该域名A对应的IP地址,终端设备可以通过该IP地址访问该域名A对应的业务服务器。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, it queries whether the IP address of the service server corresponding to the domain name A exists in its cache. If so, the terminal device can directly obtain the IP address of the service server. IP address, access the service server corresponding to 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 IP address corresponding to the domain name A, and the terminal device can access the domain name A through the IP address. business server.
另外,终端设备在获得域名对应的IP地址后,生成并缓存一条DNS缓存记录。该DNS缓存记录用于表示域名与IP地址的对应关系。此外,终端设备针对缓存的每条DNS缓存记录维护相应的存留时间(time to live,TTL)。DNS缓存记录的TTL为该DNS缓存记录在终端设备的缓存中的保留的时间。这样,若在某一个DNS缓存记录的TTL内,终端设备需要再次访问该DNS缓存记录中的域名,则该终端设备可以直接根据该DNS缓存记录,获取该域名对应的IP地址。若超过该DNS缓存记录的TTL后,该终端设备需要再次访问该域名,通过DNS服务器解析得到该域名对应的IP地址。In addition, after obtaining the IP address corresponding to the domain name, the terminal device generates and caches a DNS cache record. The DNS cache 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 cache record. The TTL of the DNS cache record is the retention time of the DNS cache record in the cache of the terminal device. In this way, if the terminal device needs to access the domain name in the DNS cache record again within the TTL of a certain DNS cache record, the terminal device can directly obtain the IP address corresponding to the domain name according to the DNS cache record. If the TTL of the DNS cache record is exceeded, the terminal device needs to access the domain name again, and obtain the IP address corresponding to the domain name through DNS server resolution.
随着Ipv6的到来,主机的多地址(Multihome)变得越来越普及。即使是广泛使用的随着互联网协议第四版(internet protocol version4,Ipv4),多宿主主机(Multihome host)也越来越多了。从数据中心胖树(Fat-tree)网络架构下的服务器到具有4G/Wifi/3G/ 蓝牙(Bluetooth)多连接的智能手机,都是多宿主主机。为了充分利用设备的多连接特性,新型多路径传输层协议已经成为当前最大的趋势。路径传输控制协议(multipath transmission control protocol,MPTCP)允许传输控制协议连接使用多个路径来最大化信道资源使用。它不再使用传统TCP协议所要求的单个信道,而是支持冗余信道资源的反向多路复用,将整个数据传输速率提高到所有可用信道的总和。与此同时,MPTCP还与传统TCP协议向后兼容。With the advent of IPv6, the multi-address of the host (Multihome) has become more and more popular. Even the widely used Multihome hosts are increasing with the fourth edition of the Internet Protocol (internet protocol version 4, Ipv4). From the server under the fat-tree network architecture of the data center to the smart phone with 4G/Wifi/3G/Bluetooth multi-connection, all are multi-homed hosts. In order to make full use of the multi-connection characteristics of the device, the new multi-path transport layer protocol has become the biggest trend at present. The path transmission control protocol (multipath transmission control protocol, MPTCP) allows transmission control protocol connections to use multiple paths to maximize channel resource usage. Instead of using a single channel as required by the traditional TCP protocol, it supports inverse multiplexing of redundant channel resources, increasing the overall data transfer rate to the sum of all available channels. At the same time, MPTCP is also backward compatible with legacy TCP protocols.
华为在业界首发LinkTurbo技术后,各友商也在之后发布了相关类似技术,双网在线已经成了通信技术的标配能力。LinkTurbo可以理解为WLAN和数据业务同时在线,利用WLAN(例如无线保真(wireless-fidelity,WiFi)和蜂窝网络来提升网络表现,智能在WiFi和蜂窝网络之间选一路或者两路网络并用来改善网络体验。图1所示为终端设备使用LinkTurbo技术的示意图。如图1所示的,LinkTurbo支持开启WiFi时,同时启动蜂窝网络,保证双网同时在线。其中,WiFi可以包括两条WiFi路径(2.4GHz频段的WiFi路径5GHz频段的WiFi路径),蜂窝网络可以包括两条路径,即可以为双蜂窝路径,双蜂窝网络路径可以均为LTE网络路径,或者均为5G网络路径,或者,双蜂窝网络路径中一条路径为LTE网络路径,另外一条为5G网络路径。在高吞吐场景中,可以选择四条网络路径中的同时在线的聚合模式。在某些低时延场景中,可以使用WiFi和蜂窝网络其中之一为主要传输数据方式,另一个为备用数据传输方式,即主备模式。After Huawei launched LinkTurbo technology for the first time in the industry, various partners also released related similar technologies later, and dual-network online has become a standard capability of communication technology. LinkTurbo can be understood as WLAN and data services online at the same time, using WLAN (such as wireless-fidelity, WiFi) and cellular network to improve network performance, intelligently select one or two networks between WiFi and cellular network and use it to improve network performance Network experience. Figure 1 shows a schematic diagram of the use of LinkTurbo technology by terminal equipment. As shown in Figure 1, when LinkTurbo supports turning on WiFi, start the cellular network at the same time to ensure that the dual networks are online at the same time. Wherein, WiFi can include two WiFi paths ( The WiFi path in the 2.4GHz band and the WiFi path in the 5GHz band), the cellular network can include two paths, that is, a dual-cellular path, and the dual-cellular network paths can be both LTE network paths, or both 5G network paths, or, dual-cellular paths One of the network paths is an LTE network path, and the other is a 5G network path. In high-throughput scenarios, the simultaneous online aggregation mode among the four network paths can be selected. In some low-latency scenarios, WiFi and cellular can be used One of the networks is the main data transmission mode, and the other is the backup data transmission mode, that is, the active-standby mode.
图2所示的为在双网络下终端设备访问业务服务器过程的示意图,在图2所示的例子中,WiFi网络属于电信运营商(电信网络),LTE网络属于联通运营商(联通网络)。终端首先在默认网络(例如为WiFi)下进行DNS查询,DNS服务器向终端设备返回在WIFI路径上(或者电信网络对应的)的业务服务器IP地址(例如IP地址为1.1.1.1),终端获取到该业务服务器IP地址后,在WiFi路径上通过电信网络与IP地址为1.1.1.1的业务服务器进行交互,获取相应的资源。并且,终端设备在LTE路径上通过联通网络也与该业务服务器(IP地址为1.1.1.1)也进行交互,即通过WIFI和LTE两路与该业务服务器进行交互,获取相应的资源。从图2可以看出,由于IP地址1.1.1.1为电信网络对应的业务服务器IP地址,而终端设备在LTE路径上通过联通网络也需要访问该IP地址,LTE路径上访问业务服务器出现了跨网(跨运营商)。2 is a schematic diagram of a process of accessing a service server by a terminal device under dual networks. In the example shown in FIG. 2 , the WiFi network belongs to a telecommunication operator (Telecom Network), and the LTE network belongs to a Unicom operator (Unicom Network). The terminal first performs a DNS query under the default network (for example, WiFi), and the DNS server returns the service server IP address (for example, the IP address is 1.1.1.1) on the WIFI path (or corresponding to the telecommunications network) to the terminal device, and the terminal obtains the After the service server has an IP address, it interacts with the service server whose IP address is 1.1.1.1 on the WiFi path through the telecommunication network to obtain corresponding resources. In addition, the terminal device also interacts with the service server (IP address 1.1.1.1) through the Unicom network on the LTE path, that is, interacts with the service server through WIFI and LTE to obtain corresponding resources. As can be seen from Figure 2, since the IP address 1.1.1.1 is the IP address of the service server corresponding to the telecom network, and the terminal device needs to access the IP address through the Unicom network on the LTE path, the access service server on the LTE path has cross-network access. (across carriers).
目前,由于各大运营商之间独立建网,因此在运营商跨网通道的速率都会限速,并且在部分场景中可能会出现跨网访问不通。例如,在图2所示的场景中,终端设备在LTE路径上通过联通网络访问该业务服务器时,访问速率会受到限制。也就是说,当终端设备的多网接入归属不同运营商场景时,会出现多网访问速率受限问题。为减小跨网限速的影响,内容分发网络(content delivery network,CDN)厂商通过部署跨网边界网关协议(border gateway protocol,BGP)路由来解决此问题,但是由于部署跨网BGP路由成本较高,目前各大CDN厂商基本上都未部署对应能力,因此,终端设备在跨网(跨运营商)访问CDN服务器场景中,会存在访问速率受限,并且部分场景下可能出现跨网访问不通的问题,影响多网场景下的业务体验,降低了通信效率。At present, due to the independent network construction between major operators, the rate of the operator's cross-network channel will be limited, and in some scenarios, cross-network access may be blocked. For example, in the scenario shown in FIG. 2 , when the terminal device accesses the service server through the Unicom network on the LTE path, the access rate will be limited. That is to say, when the multi-network access of the terminal device belongs to different operator scenarios, the problem of limited multi-network access rate will occur. In order to reduce the impact of cross-network speed limit, content delivery network (CDN) manufacturers solve this problem by deploying cross-network border gateway protocol (BGP) routing, but the cost of deploying cross-network BGP routing is relatively high. High, at present, major CDN manufacturers have basically not deployed corresponding capabilities. Therefore, in the scenario of cross-network (cross-operator) access to CDN servers by terminal devices, the access rate will be limited, and in some scenarios, cross-network access may be blocked. , which affects the service experience in multi-network scenarios and reduces communication efficiency.
有鉴于此,本申请提供了一种确定业务服务器地址的方法,通过在不同网络路径下分别进行DNS查询,获取业务服务器在不同的网络路径上分别对应的IP地址,利 用不同网络下分别对应的IP地址在各自的网络路径上与业务服务器进行交互,从而避免访问业务服务器时发生跨网通信的情况,保证了访问速率,提升多网络场景下的业务体验,提高通信效率。In view of this, the present application provides a method for determining the address of a service server. By performing DNS query under different network paths, respectively, the IP addresses corresponding to the service servers on different network paths are obtained, and the corresponding IP addresses under different networks are used. The IP addresses interact with service servers on their respective network paths, thus avoiding cross-network communication when accessing service servers, ensuring access rates, improving service experience in multi-network scenarios, and improving communication efficiency.
下面结合图3和图4详细说明本申请提供的确定业务服务器地址的方法。The method for determining the service server address provided by the present application will be described in detail below with reference to FIG. 3 and FIG. 4 .
图3是一例适用于本申请实施例的无线通信系统的架构示意图。如图3所示的,终端设备需要访问应用时,可以向DNS服务器查询需要访问的域名对应的业务服务器的IP地址,在通过DNS服务器获取该域名对应的业务服务器的IP地址之后,就可以根据该IP地址,访问业务服务器,从而获取需要的访问的应用的数据。并且,终端设备采用双网连接技术(LinkTurbo技术)。在图3所示的例子中,终端设备利用WiFi网络和蜂窝网络来提升网络表现,WiFi网络可以包括两条WiFi路径(2.4GHz频段的WiFi路径和5GHz频段的WiFi路径),蜂窝网络可以为双蜂窝网络(双卡),双蜂窝网络路径可以均为LTE网络,或者均为5G网络,或者,双蜂窝网络路径中一条路径为LTE网络路径,另外一条为5G网络路径。其中,WiFi属于电信网络运营商,蜂窝网络属于联通网络运营商,终端设备可以通过WiFi网络和蜂窝网络网络访问业务服务器。或者,WiFi网络和蜂窝网络也可以属于相同的网络运营商。FIG. 3 is a schematic structural diagram of an example of a wireless communication system applicable to an embodiment of the present application. As shown in Figure 3, when the terminal device needs to access the application, it can query the DNS server for the IP address of the service server corresponding to the domain name to be accessed. The IP address is used to access the service server, so as to obtain the data of the application that needs to be accessed. Moreover, the terminal device adopts the dual network connection technology (LinkTurbo technology). In the example shown in Figure 3, the terminal device utilizes a WiFi network and a cellular network to improve network performance. The WiFi network may include two WiFi paths (a WiFi path in the 2.4GHz band and a WiFi path in the 5GHz band). For cellular network (dual SIM), the dual cellular network paths can be both LTE networks or both 5G networks, or, one of the dual cellular network paths is an LTE network path and the other is a 5G network path. Among them, the WiFi belongs to the telecom network operator, the cellular network belongs to the China Unicom network operator, and the terminal device can access the service server through the WiFi network and the cellular network network. Alternatively, the WiFi network and the cellular network can also belong to the same network operator.
图4是本申请一个实施例的确定业务服务器地址的方法200的示意流程图。该方法可以应用例如图1至图3所示的多网络下访问业务服务器时出现跨网的场景中。例如,在利用LinkTurbo技术中出现的跨网的场景中。应该理解,本申请提供的方法还可以应用在其他多网络下访问业务服务器时出现跨网的系统中,本申请实施例在此不作限制。FIG. 4 is a schematic flowchart of a method 200 for determining an address of a service server according to an embodiment of the present application. This method can be applied to, for example, the scenario shown in FIG. 1 to FIG. 3 that cross-network occurs when accessing the service server under multiple networks. For example, in the cross-network scenario that occurs in the use of LinkTurbo technology. It should be understood that the method provided by the present application can also be applied to other systems where cross-network occurs when accessing a service server under multiple networks, which is not limited in this embodiment of the present application.
下文的描述中,以终端设备、DNS服务器、业务服务器为执行主体说明书本申请提供的方法。作为示例而非限定,执行方法的执行主体也可以是应用于终端设备、DNS服务器、业务服务器中的芯片。In the following description, the method provided by the present application will be described with the terminal device, the DNS server, and the service server as the main body of execution. As an example but not a limitation, the execution subject of the execution method may also be a chip applied to a terminal device, a DNS server, and a service server.
如图4所示,图4中示出的方法200可以包括S210至S240。下面结合图4详细说明方法200中的各个步骤。As shown in FIG. 4 , the method 200 shown in FIG. 4 may include S210 to S240. Each step in the method 200 will be described in detail below with reference to FIG. 4 .
S210,终端设备通过第一网络向DNS服务器发送第一请求,该第一请求包括第一域名,该第一请求用于请求该第一域名对应的第一业务服务器的第一IP地址,第一IP地址用于终端设备通过第一网络访问第一业务服务器。相应的,DNS服务器接收该第一请求。S210, the terminal device sends a first request to the DNS server through the first network, where the first request includes a first domain name, the first request is used to request the first IP address of the first service server corresponding to the first domain name, the first The IP address is used by the terminal device to access the first service server through the first network. Correspondingly, the DNS server receives the first request.
S220,该终端设备通过第二网络向该DNS服务器发送第二请求,该第二请求包括该第一域名,该第二请求用于请求该第一业务服务器的第二IP地址。可选的,该第一网络和该第二网络属于不同的网络运营商,或者,该第一网络和该第二网络属于相同的网络运营商。相应的,DNS服务器接收该第二请求。S220, the terminal device sends a second request to the DNS server through the second network, where the second request includes the first domain name, and the second request is used to request the second IP address of the first service server. Optionally, the first network and the second network belong to different network operators, or the first network and the second network belong to the same network operator. Correspondingly, the DNS server receives the second request.
S230,该DNS服务器向终端设备发送响应于第一请求的第一信息,第一信息包括该第一IP地址。S230, the DNS server sends first information in response to the first request to the terminal device, where the first information includes the first IP address.
S240,该DNS服务器向终端设备发送响应于第二请求的第二信息,该第二信息包括该第二IP地址。S240, the DNS server sends second information in response to the second request to the terminal device, where the second information includes the second IP address.
在本申请实施例中,终端设备使用LinkTurbo技术,通过(或者利用)第一网络和第二网络访问业务服务器。可选的,在本申请实施例中,第一网络可以为WLAN, 例如,第一网络具体为WIFI网络,WIFI网络可以为双WiFi路径(2.4GHz频段的WiFi路径和5GHz频段的WiFi路径)。第二网络可以为蜂窝网络,蜂窝网络可以为双蜂窝网络路径,其中,双蜂窝网络路径可以均为LTE网络,或者均为5G网络,或者,双蜂窝网络路径中一条路径为LTE网络路径,另外一条为5G网络路径。应该理解,在本申请实施例中,第一网络可以还可以为其他形式的无线局域网。第一网络和第二网络属于不同的网络运营商,例如,第一网络可以属于电信网络运营商,第二网络联通或者移动网络运营商。或者,第一网络可以属于联通网络运营商,第二网络电信或者移动网络运营商等。在本申请实施例中,对于第一网络和第二网络分别属于(或者对应)的具体网络运营商不作限制,只要第一网络和第二网络属于不同的网络运营商即可。In this embodiment of the present application, the terminal device uses the LinkTurbo technology to access the service server through (or using) the first network and the second network. Optionally, in this embodiment of the present application, the first network may be a WLAN, for example, the first network is specifically a WIFI network, and the WIFI network may have dual WiFi paths (a WiFi path in the 2.4GHz band and a WiFi path in the 5GHz band). The second network may be a cellular network, and the cellular network may be a dual-cellular network path, wherein the dual-cellular network paths may both be LTE networks, or both may be 5G networks, or, one of the dual-cellular network paths may be an LTE network path, and in addition One is the 5G network path. It should be understood that, in this embodiment of the present application, the first network may also be a wireless local area network in other forms. The first network and the second network belong to different network operators, for example, the first network may belong to a telecommunication network operator, the second network Unicom or a mobile network operator. Alternatively, the first network may belong to a China Unicom network operator, a second network telecommunication or mobile network operator, or the like. In this embodiment of the present application, there is no limitation on the specific network operators to which the first network and the second network belong (or correspond to) respectively, as long as the first network and the second network belong to different network operators.
可选的,在本申请实施例中,第一网络和第二网络也可以属于同一个网络运营商。Optionally, in this embodiment of the present application, the first network and the second network may also belong to the same network operator.
应理解,在本申请实施例中,对于第一网络和第二网络分别属于(或者对应)的具体网络运营商不作限制。It should be understood that, in this embodiment of the present application, there is no limitation on the specific network operators to which the first network and the second network belong (or correspond to) respectively.
图5所述的为本申请提供的一例利用本申请提供的方法时终端设备显示的示意性界面图,如图5中的a图所示的,在用户打开移动数据和WIFI后,用户在终端设备的显示界面上选择打开某一个APP,例如为“视频”APP,在APP启动后,如图5中的b图所示的,终端设备的显示界面上向用户弹出一个对话框,提示用户“正在同时使用WLAN和移动数据”,意味着终端设备正在使用LinkTurbo技术。在这种情况,可以触发终端设备(终端设备上的APP)执行方法本申请提供的确定业务服务器地址的方法。Figure 5 shows an example of a schematic interface diagram displayed by the terminal device when the method provided by the present application is used. As shown in Figure a in Figure 5, after the user turns on the mobile data and WIFI, the user is in the terminal Select to open a certain APP on the display interface of the device, such as the "Video" APP, after the APP is started, as shown in Figure b in Figure 5, a dialog box pops up to the user on the display interface of the terminal device, prompting the user to "" WLAN and mobile data are being used at the same time", which means that the end device is using LinkTurbo technology. In this case, the terminal device (APP on the terminal device) can be triggered to execute the method of determining the service server address provided by this application.
下文的描述中,为了描述方便,以第一网络为WIFI,第二网络为LTE,第一网络属于电信网络运营商,第二网络属于联通网络运营商为例进行说明。但是这不应该对本申请实施例造成任何限制。例如,第一网络和第二网络还可以为其他的网络,第一网络和第二网络也可以属于同一个运营商。本申请实施例在此不作限制。In the following description, for convenience of description, the first network is WIFI, the second network is LTE, the first network belongs to a telecom network operator, and the second network belongs to a China Unicom network operator as an example for description. However, this should not impose any limitation on the embodiments of the present application. For example, the first network and the second network may also be other networks, and the first network and the second network may also belong to the same operator. The embodiments of the present application are not limited herein.
在S210中,终端设备需要访问某一个域名(例如为第一域名)时,如果终端设备上的应用创建超文本传输协议(hypertext transfer protocol,HTTP)会话时,在本地缓存的DNS类型记录查询不到第一域名对应的业务服务器的IP地址,就会触发生成第一请求,例如,该第一请求可以为DNS查询请求。终端设备(或者终端设备上的APP)可以通过第一网络(WIFI网络)向DNS服务器发送第一请求,该第一请求包括第一域名,该第一请求用于请求该第一域名对应的业务服务器(即第一业务服务器)的第一IP地址,其中,WIFI属于电信运营商,第一IP地址用于终端设备通过WIFI网络访问第一业务服务器,换句话说,第一业务服务器可以对应多个IP地址,不同的IP地址对应不同的运营商,第一请求可以用于请求第一业务服务器对应的电信网络的IP地址(第一IP地址)。相应的,DNS服务器接收该第一请求。也就是说,终端设备可以在WIFI路径上查询电信网络对应的业务服务器的IP地址。例如,第一域名为可以为www.xxx.com。In S210, when the terminal device needs to access a certain domain name (for example, the first domain name), if the application on the terminal device creates a hypertext transfer protocol (HTTP) session, the query of the locally cached DNS type record will be invalid. The IP address of the service server corresponding to the first domain name will trigger the generation of the first request, for example, the first request may be a DNS query request. The terminal device (or the APP on the terminal device) can send a first request to the DNS server through the first network (WIFI network), where the first request includes the first domain name, and the first request is used to request the service corresponding to the first domain name The first IP address of the server (ie, the first service server), where WIFI belongs to a telecom operator, and the first IP address is used by the terminal device to access the first service server through the WIFI network. In other words, the first service server can correspond to multiple different IP addresses correspond to different operators, and the first request may be used to request the IP address (first IP address) of the telecommunications network corresponding to the first service server. Correspondingly, the DNS server receives the first request. That is to say, the terminal device can query the IP address of the service server corresponding to the telecommunication network on the WIFI path. For example, the first domain name may be www.xxx.com.
在S220中,由于终端设备使用LinkTurbo技术,因此,还可以通过第二网络(LTE网络)向DNS服务器发送第二请求,该第二请求包括该第一域名,该第二请求用于请求该第一域名对应的第一业务服务器的第二IP地址,其中,LTE属于联通运营商,第二IP地址用于终端设备通过LTE网络访问第一业务服务器,也就是说,第二请求是 用于请求第一业务服务器对应的联通网络的IP地址(第二IP地址)。相应的,DNS服务器接收该第二请求。即终端设备还可以在LTE路径上查询联通网络对应的业务服务器的IP地址。应理解,在本申请实施例中,S220是可选的步骤。In S220, since the terminal device uses the LinkTurbo technology, it can also send a second request to the DNS server through the second network (LTE network), where the second request includes the first domain name, and the second request is used to request the first domain name. The second IP address of the first service server corresponding to a domain name, where LTE belongs to the operator of China Unicom, and the second IP address is used by the terminal device to access the first service server through the LTE network, that is, the second request is used to request The IP address (second IP address) of the Unicom network corresponding to the first service server. Correspondingly, the DNS server receives the second request. That is, the terminal device can also query the IP address of the service server corresponding to the China Unicom network on the LTE path. It should be understood that, in this embodiment of the present application, S220 is an optional step.
例如,在本申请实施例中,终端设备可以将WIFI路径上的第一请求进行复制得到第二请求,然后通过LTE网络向DNS发送该第二请求。For example, in this embodiment of the present application, the terminal device may copy the first request on the WIFI path to obtain the second request, and then send the second request to the DNS through the LTE network.
在S230中,DNS服务器根据第一请求,查询电信网络对应的第一应用服务器的IP地址(第一IP地址),然后向终端设备发送响应于该第一请求的第一信息,该第一信息包括该第一IP地址。例如,针对不同的网络运营商,第一业务服务器可以分配有不同的IP地址,不同的IP地址对应不同的网络运营商。DNS服务器可从业务服务器的运营商中获取并存储第一业务服务器的多个IP地址和不同的IP地址分别对应的网络运营商。DNS服务器在确定第一请求是在电信运营商的网络(或者可以称为电信网络)上发送的,便可以确定第一请求是用于请求第一业务服务器对应的电信网络的IP地址(第一IP地址),从而将第一业务服务器对应的电信网络的IP地址(第一IP地址)通过第一信息返回给终端设备。例如,该第一信息可以为DNS查询应答报文。在获取该第一IP地址后,终端设备便可以存储该第一域名、第一IP地址、WIFI路径以及电信网络之间的对应关系。In S230, the DNS server queries the IP address (first IP address) of the first application server corresponding to the telecommunication network according to the first request, and then sends first information in response to the first request to the terminal device, the first information Include the first IP address. For example, for different network operators, the first service server may be assigned different IP addresses, and different IP addresses correspond to different network operators. The DNS server may acquire and store multiple IP addresses of the first service server and network operators corresponding to different IP addresses from the operator of the service server. When the DNS server determines that the first request is sent on the network of a telecommunication operator (or may be referred to as a telecommunication network), it can determine that the first request is used to request the IP address of the telecommunication network corresponding to the first service server (the first IP address), thereby returning the IP address (first IP address) of the telecommunications network corresponding to the first service server to the terminal device through the first information. For example, the first information may be a DNS query response message. After acquiring the first IP address, the terminal device can store the correspondence between the first domain name, the first IP address, the WIFI path and the telecommunication network.
在S240中,DNS服务器根据第二请求,查询LTE路径上的联通网络对应的第一应用服务器的IP地址(第二IP地址),然后向终端设备发送响应于该第二请求的第二信息,该第二信息包括该第一IP地址。例如,DNS服务器在确定第二请求是在联通运营商的网络(或者可以称为联通网络))上发送的,便可以确定第二请求是用于请求第一业务服务器对应的联通网络的IP地址(第二IP地址)地址,从而将第一业务服务器对应的联通网络的IP地址(第二IP地址)通过第二信息返回给终端设备,例如,该第二信息也可以为DNS查询应答报文。在获取该第二IP地址后,终端设备便可以存储该第一域名、第二IP地址、LTE路径以及联通网络之间的对应关系。In S240, the DNS server queries the IP address (second IP address) of the first application server corresponding to the Unicom network on the LTE path according to the second request, and then sends the second information in response to the second request to the terminal device, The second information includes the first IP address. For example, when the DNS server determines that the second request is sent on the China Unicom operator's network (or may be referred to as the China Unicom network), it can determine that the second request is used to request the IP address of the China Unicom network corresponding to the first service server (second IP address) address, thereby returning the IP address (second IP address) of the Unicom network corresponding to the first service server to the terminal device through second information, for example, the second information can also be a DNS query response message . After acquiring the second IP address, the terminal device can store the correspondence between the first domain name, the second IP address, the LTE path, and the Unicom network.
可选的,终端设备还可以存储第一域名、第一IP地址、第二IP地址、电信网络、联通网络之间的对应关系。Optionally, the terminal device may also store the correspondence between the first domain name, the first IP address, the second IP address, the telecommunication network, and the China Unicom network.
在终端设备获取该第一业务服务器的第一IP地址和第二IP地址后,终端设备便确定了LTE路径上的联通网络对应的应用服务器的第一IP地址、以及WIFI路径上电信网络对应的应用服务器的第二IP地址,其中,第一IP地址和第二IP不同。第一IP地址和第二IP可以对应同一个应用服务器(例如为CDN服务器),或者,第一IP地址和第二IP可以对应不同的应用服务器,不同的应用服务器存储的CDN数据或者内容一致。After the terminal device obtains the first IP address and the second IP address of the first service server, the terminal device determines the first IP address of the application server corresponding to the Unicom network on the LTE path, and the first IP address corresponding to the telecommunications network on the WIFI path. The second IP address of the application server, wherein the first IP address and the second IP are different. The first IP address and the second IP may correspond to the same application server (for example, a CDN server), or the first IP address and the second IP may correspond to different application servers, and the CDN data or content stored by different application servers are consistent.
本申请提供的确定业务服务器地址的方法,通过在不同网络路径下分别进行DNS查询,获取业务服务器在不同的网络路径上分别对应的IP地址。终端设备便可以利用不同网络下分别对应的IP地址在各自的网络路径上与业务服务器进行交互,从而避免访问业务服务器时发生跨网通信的情况,保证了访问速率,提升多网络场景下的业务体验,提高通信效率。The method for determining the address of a service server provided by the present application obtains the corresponding IP addresses of the service server on different network paths by performing DNS query respectively under different network paths. Terminal devices can use the corresponding IP addresses in different networks to interact with service servers on their respective network paths, thereby avoiding cross-network communication when accessing service servers, ensuring access rates, and improving services in multi-network scenarios. experience and improve communication efficiency.
可选的,在本申请实施例中,在DNS服务器接收到终端设备在不同运营商的网络分别发送的DNS请求后,DNS服务器可以对DNS请求进行过滤和选择,只对部分影 响双网的业务流对应的DNS进行查询。Optionally, in this embodiment of the present application, after the DNS server receives the DNS requests sent by the terminal devices on the networks of different operators, the DNS server may filter and select the DNS requests, and only partially affect the dual-network services. The DNS corresponding to the stream is queried.
可选的,在申请实施例中,以图6为例,在图4所示的方法步骤的基础上,该方法200还包括S250和S260。Optionally, in the embodiment of the application, taking FIG. 6 as an example, on the basis of the method steps shown in FIG. 4 , the method 200 further includes S250 and S260.
S250,该终端设备根据该第一IP地址,通过第一网络与该第一业务服务器进行业务通信。S250, the terminal device performs service communication with the first service server through the first network according to the first IP address.
S260,该终端设备根据该第二IP地址,通过第二网络与该第一业务服务器进行业务通信。S260, the terminal device performs service communication with the first service server through the second network according to the second IP address.
图6中所示的S210至S240的描述可以参考上述的图4中对这几个步骤的描述,为了简洁,这里不再赘述。For the description of S210 to S240 shown in FIG. 6 , reference may be made to the description of these steps in the above-mentioned FIG. 4 , which will not be repeated here for brevity.
在S250中,终端设备获取该第一IP地址后,便可以根据第一IP地址,通过电信网络的WIFI路径对应的第一IP地址与业务服务器(第一业务服务器)进行业务通信,例如向第一业务服务器发送HTTP请求,拉取业务服务器的存储的资源。也就是说,终端设备根据该第一IP地址,在电信网络的WIFI路径上向该业务服务器发送业务请求以请求业务的资源和数据,例如,该业务可以为视频类的业务或者浏览类的业务等。In S250, after acquiring the first IP address, the terminal device can perform service communication with the service server (the first service server) through the first IP address corresponding to the WIFI path of the telecommunication network according to the first IP address, for example, to the first IP address. A service server sends an HTTP request to pull resources stored in the service server. That is, the terminal device sends a service request to the service server on the WIFI path of the telecommunication network according to the first IP address to request service resources and data. For example, the service may be a video service or a browsing service Wait.
在S260中,终端设备获取该第二IP地址后,便可以根据第二IP地址,在LTE路径上通过联通网络对应的第二IP地址与业务服务器(第一业务服务器)进行业务通信,例如向第一业务服务器发送HTTP请求,拉取业务服务器的存储的资源。也就是说,终端设备根据该第二IP地址,在联通网络的LTE路径上向该业务服务器发送业务请求以请求业务的资源和数据。In S260, after obtaining the second IP address, the terminal device can perform business communication with the service server (the first service server) on the LTE path through the second IP address corresponding to the China Unicom network according to the second IP address, for example, to The first service server sends an HTTP request to pull resources stored in the service server. That is, according to the second IP address, the terminal device sends a service request to the service server on the LTE path of the Unicom network to request service resources and data.
本申请提供的确定业务服务器地址的方法,终端设备获取了不同网络分别对应的业务服务器的IP地址后,便可以通过不同的IP地址,分别在不同的网络下与业务服务器进行交互,可以避免访问服务器发生的跨网通信的情况,保证了访问速率,提升多网络场景下的业务体验,提高通信效率。In the method for determining the address of a service server provided by the present application, after the terminal device obtains the IP addresses of the service servers corresponding to different networks, it can interact with the service servers under different networks through different IP addresses, which can avoid accessing The cross-network communication of the server ensures the access rate, improves the service experience in multi-network scenarios, and improves the communication efficiency.
可选的,在本申请实施例中,终端设备(具体为终端设备上的APP)在利用第一IP地址访问第一业务服务器时,可以查询第一IP地址对应的第一域名是否对应多个IP地址。在第一域名对应多个IP地址的情况下,例如,第一域名对应上述的第一IP地址和第二IP地址,终端设备上的APP便可以利用该第二IP地址,将应用的流绑定到第二IP地址对应的联通网络上,通过(或者利用)联通网络运营商的LTE网络发送新的HTTP请求,该HTTP请求的目的地址为第二IP地址,即通过不同的IP地址,分别在不同的网络下与业务服务器进行交互。如果查询到某一个域名只对应一个IP地址,则利用该IP地址,只通过一个网络路径与业务服务器进行交互,不进行业务分流处理。Optionally, in this embodiment of the present application, when the terminal device (specifically, the APP on the terminal device) uses the first IP address to access the first service server, it can query whether the first domain name corresponding to the first IP address corresponds to multiple IP address. In the case where the first domain name corresponds to multiple IP addresses, for example, the first domain name corresponds to the above-mentioned first IP address and second IP address, the APP on the terminal device can use the second IP address to bind the flow of the application Set on the China Unicom network corresponding to the second IP address, send a new HTTP request through (or use) the LTE network of the China Unicom network operator, and the destination address of the HTTP request is the second IP address, that is, through different IP addresses, respectively. Interact with business servers under different networks. If it is found that a certain domain name corresponds to only one IP address, the IP address is used to interact with the service server through only one network path, and no service offload processing is performed.
应理解,在本申请实施例中,在第一IP地址和第二IP地址对应不同的应用服务器(例如为CDN服务器)的场景中,可能出现对于相同资源的不同业务服务器内容不一致的情况。因此,终端在不同CDN服务器上拉取相同资源时,进行资源信息的匹配,如果拉取资源时发现不同的CDN服务器的数据不一致,则不再进行分流数据拉取,即不在进行多网络路径下的并发访问。进一步的,在确定CDN服务器的数据不一致的情况时,会记录不同的CDN服务器分别对应的IP地址,将这些IP地址记录为多路异常IP,后续利用这些IP再发起资源请求时,不再进行多路请求资源的处理。It should be understood that, in this embodiment of the present application, in a scenario where the first IP address and the second IP address correspond to different application servers (for example, CDN servers), the content of different service servers for the same resource may be inconsistent. Therefore, when the terminal pulls the same resource from different CDN servers, it matches the resource information. If the data of different CDN servers is found to be inconsistent when pulling the resource, it will no longer pull the offloaded data, that is, not under the multi-network path. of concurrent access. Further, when it is determined that the data of the CDN server is inconsistent, the corresponding IP addresses of different CDN servers will be recorded, and these IP addresses will be recorded as multiple abnormal IPs. When using these IPs to initiate resource requests later, no further processing will be performed. Handling of multiple requests for resources.
在本申请实施例中,在终端设备上的APP发起通信的过程中,会有前置引擎处理流程和后置引擎处理流程。图7所示的为前置引擎和后置引擎处理流程的示意图。In the embodiment of the present application, in the process of initiating communication by the APP on the terminal device, there will be a pre-engine processing flow and a post-engine processing flow. FIG. 7 is a schematic diagram showing the processing flow of the pre-engine and the post-engine.
其中,前置引擎处理流程包括:DNS服务器监测应用的传统DNS请求(legacy DNS request),根据可用的网络进行多路多网DNS查询,将查询结果写入一级缓存,前置引擎处理流程在执行时比后置引擎处理流程靠前。例如,图4所示的流程为前置引擎处理流程的一种可能的实现方式。Among them, the processing flow of the front engine includes: the traditional DNS request (legacy DNS request) of the DNS server monitoring application, multi-channel and multi-network DNS query according to the available network, and writing the query result into the first-level cache. The processing flow of the front engine is as follows: It is executed ahead of the post-engine processing flow. For example, the flow shown in FIG. 4 is a possible implementation manner of the processing flow of the pre-engine.
后置引擎处理流程包括:终端设备和CDN服务器通过TCP同步报文(TCP SYN)建立TCP连接后,CDN服务器监测APP的HTTP请求(用于请求业务数据),根据HTTP请求中的host字段进行多路多网DNS查询,将查询结果写入二级缓存,后置引擎处理流程在执行时比前置引擎处理流程靠后。其中,host字段包括需要访问的http服务器的域名和/或IP地址。The post-engine processing flow includes: after the terminal device and the CDN server establish a TCP connection through a TCP synchronization message (TCP SYN), the CDN server monitors the HTTP request of the APP (for requesting service data), and performs multiple processing according to the host field in the HTTP request. It performs DNS query on multiple networks, and writes the query result into the secondary cache. The post-engine processing flow is later than the front-end engine processing flow during execution. The host field includes the domain name and/or IP address of the http server to be accessed.
例如,对于前置引擎处理而言,在应用调用传统的DNS查询接口时启动,图8所示的为前置引擎处理流程的示意图,如图8所示的,首先进行DNS查询,DNS查询请求可以包括:用户身份标识(user identification,UID)、host、当前网络(curNet)。netd进程监听到DNS域名的白名单应用的传统DNS查询时,触发前置引擎根据原始DNS请求所基于的网络和当前可用的网络,复制多个DNS请求在多个不同的可用网络(multiNets)上进行查询(DNS域名也可以由白名单控制或不做控制),将查询的CDN服务器的IP地址(addrs)写入一级缓存。当一级缓存里的条目有任何变动(新增或变化)时,将变化的条目传递给二级缓存。For example, for pre-engine processing, it is started when the application calls the traditional DNS query interface. Figure 8 shows a schematic diagram of the processing flow of the front-end engine. As shown in Figure 8, DNS query is first performed, and DNS query request is performed. Can include: user identification (user identification, UID), host, current network (curNet). When the netd process listens to the traditional DNS query of the whitelist application of the DNS domain name, it triggers the front-end engine to replicate multiple DNS requests on multiple different available networks (multiNets) according to the network on which the original DNS request is based and the currently available network. Query (the DNS domain name can also be controlled by the whitelist or not), and write the IP address (addrs) of the queried CDN server into the first-level cache. When there is any change (new or changed) in the entry in the first level cache, the changed entry is passed to the second level cache.
对于后置引擎处理过程而言,在应用发起明文HTTP请求(HTTP Request)报文时启动,图9所示的为后置引擎处理流程的示意图,如图9所示的,内核(kernel)监听到白名单应用的HTTP明文请求报文时,提取报文内容中的host字段、此报文的目的IP(dstAddr)以及此报文当前传输所基于的网络(curNet),写入到kernel的三级缓存。其中,curNet可以根据套接字(socket)的应用程序框架层标记(fwmark)提取网络标识(netid)信息确定。并将host上报给emcomd触发后置引擎进行多个可用网络(multiNets)的DNS查询.后置引擎的DNS查询逻辑和前置引擎相同,当二级缓存里的条目有任何变动(新增或变化)时,将变化的条目传递给三级缓存。For the post-engine processing process, it starts when the application initiates a plaintext HTTP Request (HTTP Request) message. Figure 9 shows a schematic diagram of the post-engine processing flow. As shown in Figure 9, the kernel monitors When the HTTP plaintext request message is sent to the whitelist application, the host field in the content of the message, the destination IP (dstAddr) of the message, and the network (curNet) on which the message is currently transmitted are extracted, and written to the three parts of the kernel. level cache. Wherein, curNet can be determined by extracting network identification (netid) information according to the application framework layer mark (fwmark) of the socket (socket). Report the host to emcomd to trigger the post-engine to perform DNS query of multiple available networks (multiNets). The DNS query logic of the post-engine is the same as that of the front-end engine. ), the changed entry is passed to the L3 cache.
图10所示的为本申请提供的一例多个可用网络的DNS查询的示意图。在本申请实施例中,多个可用网络的DNS查询也可以称为多路径DNS(multipath transmission domain name system,MPDNS)缓存查询。如图10所示的,应用在创建和连接socket时,提取该socket的目的IP(dstAddr)和当前所基于的网络(curNet),再根据加速算法确定此socket传输所基于的(或者利用的)目标网络(targetNet),联合这三个信息作为MPDNS缓存的输入,在缓存中查找后得到目标网络的下的目IP(dstAddrlnTargetNet),最后用此IP改写socket的目的IP。FIG. 10 is a schematic diagram of an example of DNS query of multiple available networks provided by the present application. In this embodiment of the present application, the DNS query of multiple available networks may also be referred to as a multipath DNS (multipath transmission domain name system, MPDNS) cache query. As shown in Figure 10, when the application creates and connects a socket, it extracts the destination IP (dstAddr) of the socket and the current network (curNet) it is based on, and then determines what the socket transmission is based on (or used) according to the acceleration algorithm. The target network (targetNet), combined with these three information as the input of the MPDNS cache, finds the target IP (dstAddrlnTargetNet) under the target network after searching in the cache, and finally rewrites the destination IP of the socket with this IP.
图11所示为本申请提供的一例MPDNS缓存查询过程的示意图。在图11所示的例子中,内核提取socket的目的IP(为IPv4x)、所基于的网络(为wlan0)、目标网络的网卡标识(为rmnet0),将这三个信息作为MPDNS缓存的输入,在缓存中查找后得到目标网络下的目IP(为IPv4y),最后用IPv4y替换socket中的目的IP。FIG. 11 is a schematic diagram of an example of an MPDNS cache query process provided by the present application. In the example shown in Figure 11, the kernel extracts the destination IP of the socket (for IPv4x), the network it is based on (for wlan0), and the NIC ID of the target network (for rmnet0), and uses these three pieces of information as the input of the MPDNS cache, After searching in the cache, get the destination IP under the target network (as IPv4y), and finally replace the destination IP in the socket with IPv4y.
可选的,在本申请一些可能的实现方式中,在利用图4所示的方法流程进行前置 引擎查询后,以图12为例,在图4所示的方法步骤的基础上,该方法200还包括S241和S242。Optionally, in some possible implementations of the present application, after using the method flow shown in FIG. 4 to perform the pre-engine query, taking FIG. 12 as an example, on the basis of the method steps shown in FIG. 200 also includes S241 and S242.
S241,该终端设备根据该第一IP地址,通过第一网络向该第一业务服务器发送业务请求,该业务请求包括该第一域名。S241, the terminal device sends a service request to the first service server through the first network according to the first IP address, where the service request includes the first domain name.
S242,第一业务服务器向终端设备发送响应于该业务请求的第二信息,该第二信息包括:与该第一域名对应的第二域名、第二域名对应的第二业务服器的第三IP地址,第三IP地址用于终端设备通过第一网络访问第二业务服务器。S242: The first service server sends second information in response to the service request to the terminal device, where the second information includes: a second domain name corresponding to the first domain name, and a third domain name of the second service server corresponding to the second domain name The IP address, and the third IP address is used by the terminal device to access the second service server through the first network.
图12中所示的S210至S240的描述可以参考上述的图4中对这几个步骤的描述,为了简洁,这里不再赘述。For the description of S210 to S240 shown in FIG. 12 , reference may be made to the description of these steps in the above-mentioned FIG. 4 , which is not repeated here for brevity.
在S241中,在终端设备利用前置引擎处理流程查询完成后,假设查询到的第一IP地址对应的业务服务器(第一业务服务器)并不是真正存储终端设备需要访问的资源的业务服务器,例如,该第一业务服务器为调度服务器。换句话说,终端设备(或者为终端设备上的APP)发送的HTTP请求在WIFI路径上会出现HTTP 302跳转,HTTP 302跳转可以理解为终端设备访问的资源出现暂时性转移,终端设备需要得到新的资源位置(真正存储该资源的服务器的IP地址),然后重新访问获取该资源,这意味着终端设备还需要进行后置引擎查询。因此,终端设备在WIFI路径上与第一业务服务器通过TCP报文(例如为TCP SYN报文)建立TCP会话连接后,终端设备会根据该第一IP地址,通过WIFI网络向第一业务服务器发送业务请求(例如为HTTP request),该业务请求包括该第一域名。在S242中,由于第一业务服务器并不是真正存储终端设备需要访问的资源的业务服务器,即出现了HTTP 302跳转,第一业务服务器通过查询,确定真正存储资源的业务服务器(例如为第二业务服务器)对应的电信网络的IP地址(第三IP地址),第三IP地址用于终端设备通过WIFI网络访问第二业务服务器。第一业务服务器会向终端设备发送响应于该业务请求的第二信息,该第二信息包括:第二业务服务器对应的电信网络的IP地址(第三IP地址)。同时,该第一域名也可能变化为第二域名,因此,该第二信息还包括:与该第一域名对应的第二域名。这样,终端设备便可以获取真正存储需要访问的资源的第二业务服务器对应WIFI路径上的IP地址以及相应的第二域名。In S241, after the terminal device completes the query by using the pre-engine processing flow, it is assumed that the service server (first service server) corresponding to the queried first IP address is not a service server that actually stores the resources that the terminal device needs to access, for example , the first service server is a scheduling server. In other words, the HTTP request sent by the terminal device (or the APP on the terminal device) will have an HTTP 302 jump on the WIFI path. The HTTP 302 jump can be understood as a temporary transfer of the resources accessed by the terminal device. The terminal device needs to Get the new resource location (the IP address of the server that actually stores the resource), and then revisit to obtain the resource, which means that the terminal device also needs to perform a post-engine query. Therefore, after the terminal device establishes a TCP session connection with the first service server through a TCP message (for example, a TCP SYN message) on the WIFI path, the terminal device will send the first service server through the WIFI network according to the first IP address. A service request (for example, an HTTP request), where the service request includes the first domain name. In S242, since the first service server is not the service server that actually stores the resources that the terminal device needs to access, that is, an HTTP 302 jump occurs, the first service server determines the service server (for example, the second service server that actually stores the resources) by querying The IP address (third IP address) of the telecommunication network corresponding to the service server), the third IP address is used by the terminal device to access the second service server through the WIFI network. The first service server will send second information in response to the service request to the terminal device, where the second information includes: the IP address (third IP address) of the telecommunications network corresponding to the second service server. At the same time, the first domain name may also be changed to a second domain name. Therefore, the second information further includes: a second domain name corresponding to the first domain name. In this way, the terminal device can obtain the IP address and the corresponding second domain name on the WIFI path corresponding to the second service server that actually stores the resource to be accessed.
在终端设备获取第二业务服务器在WIFI路径上的IP地址以及相应的域名后,便可以在WIFI路径上通过电信网络对应的第三IP地址与第二业务服务器交互,拉取第二业务服务器的存储的资源。例如。终端设备可以根据该第二业务服器在WIFI的IP地址,通过电信运营商的WIFI网络向第二业务服务器发送业务请求,进而获取需要的数据和资源。After the terminal device obtains the IP address of the second service server on the WIFI path and the corresponding domain name, it can interact with the second service server on the WIFI path through the third IP address corresponding to the telecommunication network, and pull the second service server's IP address. stored resources. E.g. The terminal device can send a service request to the second service server through the WIFI network of the telecom operator according to the IP address of the second service server in the WIFI, and then obtain the required data and resources.
可选的,在本申请一些可能的实现方式中,以图13为例,在图12所示的方法步骤的基础上,该方法200还可以包括S243和S244。Optionally, in some possible implementation manners of the present application, taking FIG. 13 as an example, based on the method steps shown in FIG. 12 , the method 200 may further include S243 and S244 .
S243,该终端设备通过第二网络向该DNS服务器发送第三请求,该第三请求包括该第二域名,该第三请求用于请求该第二业务服务器对应的第四IP地址,第四IP地址用于终端设备通过第二网络访问第二业务服务器。S243, the terminal device sends a third request to the DNS server through the second network, where the third request includes the second domain name, and the third request is used to request a fourth IP address corresponding to the second service server, the fourth IP address The address is used by the terminal device to access the second service server through the second network.
S244,该DNS服务器向终端设备发送响应于该第三请求的第三信息,该第三信息包括该第四IP地址。S244, the DNS server sends third information in response to the third request to the terminal device, where the third information includes the fourth IP address.
图13中所示的S210至S242的描述可以参考上述的图12中对这几个步骤的描述,为了简洁,这里不再赘述。For the description of S210 to S242 shown in FIG. 13 , reference may be made to the description of these steps in the above-mentioned FIG. 12 , which is not repeated here for brevity.
由于终端设备发送的HTTP请求在WIFI路径出现HTTP 302跳转,因此,在LTE路径上,终端设备也需要重新进行DNS的查询,获取第二业务服务器对应的联通网络的IP地址(第四IP地址)。也就是说,终端设备还需要进行后置引擎处理流程。在S243中,终端设备会根据获取与该第一域名对应的第二域名,通过LTE路径网络向DNS服务器发送第三请求(例如为DNS查询请求),该第三请求包括该第二域名,该第三请求用于请求第二业务服务器对应的联通网络的IP地址(第四IP地址)。在S244中,DNS服务器通过MPDNS缓存查询,例如,DNS服务器在确定第三请求是通过联通运营商的网络发送的,便可以确定第三请求是用于请求第二业务服务器对应的联通网络的IP地址(第四IP地址)地址,从而将第二业务服务器对应的联通网络的IP地址(第四IP地址)通过第三信息返回给终端设备。其中,第三IP地址和第四IP地址不同。Since the HTTP request sent by the terminal device is redirected by HTTP 302 on the WIFI path, on the LTE path, the terminal device also needs to re-query the DNS to obtain the IP address of the China Unicom network corresponding to the second service server (the fourth IP address ). That is to say, the terminal device also needs to perform the post-engine processing flow. In S243, the terminal device sends a third request (for example, a DNS query request) to the DNS server through the LTE path network according to the acquired second domain name corresponding to the first domain name, where the third request includes the second domain name, the The third request is used to request the IP address (fourth IP address) of the Unicom network corresponding to the second service server. In S244, the DNS server queries through the MPDNS cache. For example, when the DNS server determines that the third request is sent through the network of the China Unicom operator, it can determine that the third request is used to request the IP address of the China Unicom network corresponding to the second service server. address (fourth IP address) address, thereby returning the IP address (fourth IP address) of the Unicom network corresponding to the second service server to the terminal device through the third information. The third IP address and the fourth IP address are different.
在终端设备获取第二业务服务器在LTE路径上的IP地址后,便可以在LTE路径上通过联通网络对应的IP地址与第二业务服务器交互,拉取第二业务服务器的存储的资源。例如。终端设备可以根据该第二业务服器在LTE路径上的IP地址,通过LTE网络向第二业务服务器发送业务请求,进而获取需要的数据和资源。After the terminal device obtains the IP address of the second service server on the LTE path, it can interact with the second service server on the LTE path through the IP address corresponding to the China Unicom network, and pull the stored resources of the second service server. E.g. The terminal device can send a service request to the second service server through the LTE network according to the IP address of the second service server on the LTE path, and then obtain the required data and resources.
还应理解,在本申请实施例中,终端设备可以只进行前置引擎处理流程。或者,在发生HTTP 302跳转的情况下,终端设备需要执行前置引擎处理流程和后置引擎处理流程。It should also be understood that, in this embodiment of the present application, the terminal device may only perform the pre-engine processing flow. Or, in the case of HTTP 302 redirection, the terminal device needs to execute the pre-engine processing flow and the post-engine processing flow.
可选的,在本申请实施例中,终端设备可以维护一个域名白名单,该域名白名单包括一个或者多个域名,该域名白名单包括的域名可以理解为会发生HTTP 302跳转的域名。由于白名单包括的域名一定会发生HTTP 302跳转。因此,在本申请一些可能的实现方式中,以图14为例,图14是本申请一个实施例的确定业务服务器地址的方法300的示意流程图,如图14所示的,图14中示出的方法300可以包括S310至S360。其中,该域名白名单包括第一域名。Optionally, in this embodiment of the present application, the terminal device may maintain a domain name whitelist, where the domain name whitelist includes one or more domain names, and the domain names included in the domain name whitelist can be understood as domain names that will undergo HTTP 302 redirection. Because the domain name included in the whitelist will definitely be redirected by HTTP 302. Therefore, in some possible implementation manners of the present application, taking FIG. 14 as an example, FIG. 14 is a schematic flowchart of a method 300 for determining a service server address according to an embodiment of the present application, as shown in FIG. 14 , shown in FIG. 14 . The resulting method 300 may include S310 to S360. Wherein, the domain name whitelist includes the first domain name.
S310,终端设备通过第一网络向DNS服务器发送第一请求,该第一请求包括第一域名,该第一请求用于请求该第一域名对应的第一业务服务器的第一IP地址,第一IP地址用于终端设备通过第一网络访问第一业务服务器。相应的,DNS服务器接收该第一请求。S310, the terminal device sends a first request to the DNS server through the first network, where the first request includes a first domain name, the first request is used to request the first IP address of the first service server corresponding to the first domain name, the first The IP address is used by the terminal device to access the first service server through the first network. Correspondingly, the DNS server receives the first request.
S320,该DNS服务器向该终端设备发送响应于该第一请求的第一信息,该第一信息包括该第一IP地址。S320, the DNS server sends first information in response to the first request to the terminal device, where the first information includes the first IP address.
S330,该终端设备根据第一IP地址,通过第一网络向第一业务服务器发送业务请求,该业务请求包括第一域名。S330, the terminal device sends a service request to the first service server through the first network according to the first IP address, where the service request includes the first domain name.
S340,第一业务服务器向终端设备发送响应于该业务请求的第二信息,第二信息包括:与第一域名对应的第二域名、第二域名对应的第二业务服器的第三IP地址,第三IP地址用于终端设备通过第一网络访问第二业务服务器。S340: The first service server sends second information in response to the service request to the terminal device, where the second information includes: a second domain name corresponding to the first domain name and a third IP address of the second service server corresponding to the second domain name , and the third IP address is used by the terminal device to access the second service server through the first network.
S350,该终端设备通过第二网络向该DNS服务器发送第三请求,第三请求包括第二域名,该第三请求用于请求第二业务服务器对应的第四IP地址,第四IP地址用于 终端设备通过第二网络访问第二业务服务器。S350, the terminal device sends a third request to the DNS server through the second network, the third request includes the second domain name, the third request is used to request a fourth IP address corresponding to the second service server, and the fourth IP address is used to The terminal device accesses the second service server through the second network.
S360,DNS服务器向终端设备发送响应于该第三请求的第三信息,该第三信息包括第四IP地址。S360: The DNS server sends third information in response to the third request to the terminal device, where the third information includes a fourth IP address.
具体而言,在S310和S320中,终端设备获取了第一业务服务器的第一IP地址。在S330中,终端设备通过WIFI网络向第一业务服务器发送业务请求(例如为HTTP request)。在S340中,由于第一业务服务器并不是真正存储终端设备需要访问的资源的业务服务器,因此,第一业务服务器通过查询,确定真正存储资源的业务服务器(例如为第二业务服务器)对应的电信网络的IP地址(第三IP地址),第一业务服务器会向终端设备发送响应于该业务请求的第二信息,该第二信息包括:第二业务服务器对应的电信网络的第三IP地址,以及与该第一域名对应的第二域名。这样,终端设备获取第二业务服务器在WIFI路径上的IP地址以及相应的域名后,便可以在WIFI路径上通过电信网络对应的第三IP地址与第二业务服务器交互,拉取第二业务服务器的存储的资源。Specifically, in S310 and S320, the terminal device obtains the first IP address of the first service server. In S330, the terminal device sends a service request (for example, an HTTP request) to the first service server through the WIFI network. In S340, since the first service server is not the service server that actually stores the resources that the terminal device needs to access, the first service server determines, by querying, the telecommunication corresponding to the service server (for example, the second service server) that actually stores the resources. The IP address (third IP address) of the network, the first service server will send second information in response to the service request to the terminal device, the second information includes: the third IP address of the telecommunications network corresponding to the second service server, and a second domain name corresponding to the first domain name. In this way, after obtaining the IP address of the second service server on the WIFI path and the corresponding domain name, the terminal device can interact with the second service server on the WIFI path through the third IP address corresponding to the telecommunication network, and pull the second service server of stored resources.
在LTE路径上,终端设备也需要重新进行DNS的查询,获取第二业务服务器对应的联通网络的IP地址(第四IP地址)。在S350中,终端设备会根据获取与该第一域名对应的第二域名,通过LTE网络向DNS服务器发送第三请求(例如为DNS查询请求),该第三请求包括该第二域名,该第三请求用于请求第二业务服务器对应的联通网络的IP地址(第四IP地址)。在S360中,DNS服务器通过MPDNS缓存查询,例如,DNS服务器确定第三请求是通过联通运营商的网络发送的,便可以确定第三请求是用于请求第二业务服务器对应的联通网络的IP地址(第四IP地址),从而将第二业务服务器对应的联通网络的IP地址(第四IP地址)通过第三信息返回给终端设备。在终端设备获取第二业务服务器在LTE路径上的IP地址后,便可以在LTE路径上通过联通网络对应的IP地址与第二业务服务器交互,拉取第二业务服务器的存储的资源。例如。终端设备可以根据该第二业务服器在LTE路径上的IP地址,通过联通的LTE网络向第二业务服务器发送业务请求,进而获取需要的数据和资源。也就是说,终端设备在LTE路径上通过联通网络只需要进行一次DNS查询过程,便可以查询真正存储终端设备需要访问的资源的第二业务服务器的对应的联通网络的IP地址(第四IP地址),可以降低信令的开销,节省通信资源,进一步的提高通信效率。On the LTE path, the terminal device also needs to perform a DNS query again to obtain the IP address (fourth IP address) of the China Unicom network corresponding to the second service server. In S350, the terminal device will send a third request (for example, a DNS query request) to the DNS server through the LTE network according to the acquired second domain name corresponding to the first domain name, where the third request includes the second domain name, the first domain name The third request is used to request the IP address (fourth IP address) of the Unicom network corresponding to the second service server. In S360, the DNS server queries through the MPDNS cache. For example, if the DNS server determines that the third request is sent through the network of the Unicom operator, it can determine that the third request is used to request the IP address of the China Unicom network corresponding to the second service server (fourth IP address), thereby returning the IP address (fourth IP address) of the Unicom network corresponding to the second service server to the terminal device through the third information. After the terminal device obtains the IP address of the second service server on the LTE path, it can interact with the second service server on the LTE path through the IP address corresponding to the China Unicom network, and pull the stored resources of the second service server. E.g. The terminal device can send a service request to the second service server through the LTE network of China Unicom according to the IP address of the second service server on the LTE path, and then obtain the required data and resources. That is to say, the terminal device only needs to perform a DNS query process through the China Unicom network on the LTE path, and then it can query the IP address (the fourth IP address) of the corresponding China Unicom network of the second service server that actually stores the resources that the terminal device needs to access. ), which can reduce signaling overhead, save communication resources, and further improve communication efficiency.
本申请提供的确定业务服务器地址的方法,通过在不同网络路径下分别进行DNS查询,获取业务服务器在不同的网络路径上分别对应的IP地址,利用不同网络下分别对应的IP地址在各自的网络路径上与业务服务器进行交互,从而避免访问业务服务器时发生跨网通信的情况,保证了访问速率,提升多网络场景下的业务体验,提高通信效率。The method for determining the address of a service server provided by the present application obtains the corresponding IP addresses of the service servers on different network paths by performing DNS queries under different network paths respectively, and uses the corresponding IP addresses under different It interacts with the service server on the path, so as to avoid cross-network communication when accessing the service server, ensure the access rate, improve the service experience in multi-network scenarios, and improve the communication efficiency.
应理解,上述只是为了帮助本领域技术人员更好地理解本申请实施例,而非要限制本申请实施例的范围。本领域技术人员根据所给出的上述示例,显然可以进行各种等价的修改或变化,例如,上述方法200和方法300中某些步骤可以不必须的,或者可以新加入某些步骤等。或者上述任意两种或者任意多种实施例的组合。这样的修改、变化或者组合后的方案也落入本申请实施例的范围内。It should be understood that the above is only to help those skilled in the art to better understand the embodiments of the present application, but is not intended to limit the scope of the embodiments of the present application. Those skilled in the art can obviously make various equivalent modifications or changes according to the above examples. For example, some steps in the above method 200 and method 300 may not be necessary, or some new steps may be added. Or a combination of any two or any of the above embodiments. Such modifications, changes or combined solutions also fall within the scope of the embodiments of the present application.
应理解,在本申请的各个实施例中,第一、第二等只是为了表示多个对象是不同 的。例如第一业务服务器和第二业务服务器只是为了表示出不同的业务服务器。而不应该对业务服务器的本身和数量等产生任何影响,上述的第一、第二等不应该对本申请的实施例造成任何限制。It should be understood that, in various embodiments of the present application, first, second, etc. are only used to indicate that a plurality of objects are different. For example, the first service server and the second service server are only to represent different service servers. It should not have any impact on the service server itself and the number, etc., and the above-mentioned first, second, etc. should not cause any limitation to the embodiments of the present application.
还应理解,本申请实施例中的方式、情况、类别以及实施例的划分仅是为了描述的方便,不应构成特别的限定,各种方式、类别、情况以及实施例中的特征在不矛盾的情况下可以相结合。It should also be understood that the manners, situations, categories, and divisions of the embodiments in the embodiments of the present application are only for the convenience of description, and should not constitute a special limitation, and the various manners, categories, situations, and features in the embodiments are not contradictory. can be combined.
还应理解,在本申请的实施例中涉及的各种数字编号仅为描述方便进行的区分,并不用来限制本申请的实施例的范围。上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should also be understood that the various numbers and numbers involved in the embodiments of the present application are only for the convenience of description, and are not used to limit the scope of the embodiments of the present application. The size of the sequence numbers of the above processes does not mean the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
还应理解,上文对本申请实施例的描述着重于强调各个实施例之间的不同之处,未提到的相同或相似之处可以互相参考,为了简洁,这里不再赘述。It should also be understood that the above description of the embodiments of the present application focuses on emphasizing the differences between the various embodiments, and the unmentioned same or similar points can be referred to each other, and are not repeated here for brevity.
还应理解,本申请实施例中,“预定义”可以通过在设备(中预先保存相应的代码、表格或其他可用于指示相关信息的方式来实现,本申请对于其具体的实现方式不做限定。It should also be understood that, in this embodiment of the present application, “predefinition” may be implemented by pre-saving corresponding codes, forms or other means that can be used to indicate relevant information in the device (the application does not limit its specific implementation means) .
以上结合图1至图14对本申请实施例的确定业务服务器地址的方法做了详细说明。以下,结合图15至图18对本申请实施例通信装置进行详细说明。The method for determining the address of the service server according to the embodiment of the present application has been described in detail above with reference to FIGS. 1 to 14 . Hereinafter, the communication device according to the embodiment of the present application will be described in detail with reference to FIG. 15 to FIG. 18 .
图15示出了本申请实施例的通信装置400的示意性框图,该通信装置400可以对应上述方法200和方法300中描述的终端设备,也可以是应用于终端设备的芯片或组件,并且,该通信装置400的各模块或单元分别用于执行上述方法200和方法300中各个实施例方式中的终端设备所执行的各动作或处理过程,如图15所示,该通信装置400可以包括:处理单元410和通信单元420。15 shows a schematic block diagram of a communication apparatus 400 according to an embodiment of the present application. The communication apparatus 400 may correspond to the terminal equipment described in the foregoing method 200 and method 300, or may be a chip or component applied to the terminal equipment, and, Each module or unit of the communication apparatus 400 is respectively configured to execute each action or processing process performed by the terminal device in each of the embodiments of the method 200 and the method 300. As shown in FIG. 15 , the communication apparatus 400 may include: Processing unit 410 and communication unit 420.
作为一种可能实现方式:As a possible implementation:
处理单元410,用于生成第一请求和第二请求。The processing unit 410 is configured to generate a first request and a second request.
通信单元420,用于通过第一网络向DNS服务器发送第一请求,该第一请求包括第一域名,该第一请求用于请求该第一域名对应的第一业务服务器的第一互联网协议IP地址,该第一IP地址用于该终端设备通过该第一网络访问该第一业务服务器。The communication unit 420 is configured to send a first request to the DNS server through the first network, where the first request includes a first domain name, and the first request is used to request the first Internet Protocol IP of the first service server corresponding to the first domain name address, where the first IP address is used by the terminal device to access the first service server through the first network.
通信单元420,还用于通过第二网络向该DNS服务器发送第二请求,该第二请求包括该第一域名,该第二请求用于请求该第一业务服务器的第二IP地址,该第二IP地址用于该终端设备通过该第二网络访问该第一业务服务器;The communication unit 420 is further configured to send a second request to the DNS server through the second network, where the second request includes the first domain name, the second request is used to request the second IP address of the first service server, and the second request includes the first domain name. The second IP address is used for the terminal device to access the first service server through the second network;
通信单元420,还用于接收该DNS服务器发送的响应于该第一请求的第一信息,该第一信息包括该第一IP地址。The communication unit 420 is further configured to receive first information sent by the DNS server in response to the first request, where the first information includes the first IP address.
通信单元420,还用于接收该DNS服务器发送的响应于该第二请求的第二信息,该第二信息包括该第二IP地址。The communication unit 420 is further configured to receive second information sent by the DNS server in response to the second request, where the second information includes the second IP address.
本申请提供的通信装置,通过在不同网络路径下分别进行DNS查询,获取业务服务器在不同的网络路径上分别对应的IP地址。终端设备便可以利用不同网络下分别对应的IP地址在各自的网络路径上与业务服务器进行交互,从而避免访问业务服务器时发生跨网通信的情况,保证了访问速率,提升多网络场景下的业务体验,提高通信效率。The communication device provided by the present application obtains the IP addresses corresponding to the service servers on different network paths respectively by performing DNS queries under different network paths. Terminal devices can use the corresponding IP addresses in different networks to interact with service servers on their respective network paths, thereby avoiding cross-network communication when accessing service servers, ensuring access rates, and improving services in multi-network scenarios. experience and improve communication efficiency.
可选的,在本申请的一些实施例中,该第一网络和该第二网络属于不同的网络运营商,或者,该第一网络和该第二网络属于相同的网络运营商。Optionally, in some embodiments of the present application, the first network and the second network belong to different network operators, or the first network and the second network belong to the same network operator.
例如,第一网络可以为WLAN,例如,第一网络具体为WIFI网络,WIFI网络可以为双WiFi路径(2.4GHz频段的WiFi路径和5GHz频段的WiFi路径)。第二网络可以为蜂窝网络,蜂窝网络可以为双蜂窝网络路径,其中,双蜂窝网络路径可以均为LTE网络,或者均为5G网络,或者,双蜂窝网络路径中一条路径为LTE网络路径,另外一条为5G网络路径。For example, the first network may be a WLAN, for example, the first network is specifically a WIFI network, and the WIFI network may be dual WiFi paths (a WiFi path in the 2.4GHz frequency band and a WiFi path in the 5GHz frequency band). The second network may be a cellular network, and the cellular network may be a dual-cellular network path, wherein the dual-cellular network paths may both be LTE networks, or both may be 5G networks, or, one of the dual-cellular network paths may be an LTE network path, and in addition One is the 5G network path.
例如,第一网络可以属于电信网络运营商,第二网络联通或者移动网络运营商。或者,第一网络可以属于联通网络运营商,第二网络电信或者移动网络运营商等。For example, the first network may belong to a telecommunications network operator, the second network Unicom or a mobile network operator. Alternatively, the first network may belong to a China Unicom network operator, a second network telecommunication or mobile network operator, or the like.
可选的,在本申请的一些实施例中,处理单元410,还用于生成业务请求;Optionally, in some embodiments of the present application, the processing unit 410 is further configured to generate a service request;
通信单元420,还用于根据该第一IP地址,通过该第一网络向该第一业务服务器发送,该业务请求包括该第一域名;The communication unit 420 is further configured to send to the first service server through the first network according to the first IP address, the service request includes the first domain name;
接收该第一业务服务器发送的响应于该业务请求的第二信息,该第二信息包括:与该第一域名对应的第二域名、该第二域名对应的第二业务服器的第三IP地址,该第三IP地址用于该终端设备通过该第一网络访问该第二业务服务器。Receive second information sent by the first service server in response to the service request, where the second information includes: a second domain name corresponding to the first domain name, and a third IP address of the second service server corresponding to the second domain name address, and the third IP address is used by the terminal device to access the second service server through the first network.
可选的,在本申请的一些实施例中,通信单元420,还用于根据该第三IP地址,通过该第一网络与该第二业务服务器进行业务通信。Optionally, in some embodiments of the present application, the communication unit 420 is further configured to perform service communication with the second service server through the first network according to the third IP address.
可选的,在本申请的一些实施例中,处理单元410,还用于生成第三请求;Optionally, in some embodiments of the present application, the processing unit 410 is further configured to generate a third request;
通信单元420,还用于通过第二网络向该DNS服务器发送第三请求,该第三请求包括该第二域名,该第三请求用于请求该第二业务服务器对应的第四IP地址,该第四IP地址用于该终端设备通过该第二网络访问该第二业务服务器;The communication unit 420 is further configured to send a third request to the DNS server through the second network, where the third request includes the second domain name, the third request is used to request the fourth IP address corresponding to the second service server, the The fourth IP address is used for the terminal device to access the second service server through the second network;
接收该DNS服务器发送的响应于该第三请求的第三信息,该第三信息包括该第四IP地址。Third information sent by the DNS server in response to the third request is received, where the third information includes the fourth IP address.
可选的,在本申请的一些实施例中,通信单元420,还用于根据该四IP地址,通过该第二网络与该第二业务服务器进行业务通信。Optionally, in some embodiments of the present application, the communication unit 420 is further configured to perform service communication with the second service server through the second network according to the four IP addresses.
可选的,在本申请的一些实施例中,通信单元420,还用于根据该第一IP地址,通过该第一网络与该第一业务服务器进行业务通信;根据该第二IP地址,通过该第二网络与该第一业务服务器进行业务通信。Optionally, in some embodiments of the present application, the communication unit 420 is further configured to perform service communication with the first service server through the first network according to the first IP address; The second network performs service communication with the first service server.
可选的,在本申请的一些实施例中,该第一网络为无线局域网WLAN,该第二网络为长期演进系统LTE网络或者为新无线NR网络。Optionally, in some embodiments of the present application, the first network is a wireless local area network WLAN, and the second network is a Long Term Evolution System LTE network or a new wireless NR network.
作为另外的一种可能实现方式:As another possible implementation:
处理单元410,用于生成第一请求和第二请求。The processing unit 410 is configured to generate a first request and a second request.
通信单元420,用于通过第一网络向DNS服务器发送第一请求,该第一请求包括第一域名,该第一请求用于请求该第一域名对应的第一业务服务器的第一互联网协议IP地址,该第一IP地址用于该终端设备通过该第一网络访问该第一业务服务器。The communication unit 420 is configured to send a first request to the DNS server through the first network, where the first request includes a first domain name, and the first request is used to request the first Internet Protocol IP of the first service server corresponding to the first domain name address, where the first IP address is used by the terminal device to access the first service server through the first network.
通信单元420,还用于通过第二网络向该DNS服务器发送第二请求,该第二请求包括该第一域名,该第二请求用于请求第三业务服务器的第二IP地址,该第二IP地址用于该终端设备通过该第二网络访问该第三业务服务器;The communication unit 420 is further configured to send a second request to the DNS server through the second network, where the second request includes the first domain name, the second request is used to request the second IP address of the third service server, the second request The IP address is used for the terminal device to access the third service server through the second network;
通信单元420,还用于接收该DNS服务器发送的响应于该第一请求的第一信息, 该第一信息包括该第一IP地址。The communication unit 420 is further configured to receive first information sent by the DNS server in response to the first request, where the first information includes the first IP address.
通信单元420,还用于接收该DNS服务器发送的响应于该第二请求的第二信息,该第二信息包括该第二IP地址。其中,第三业务服务器和第一业务服务器为不同的业务服务器,第三业务服务器和第一业务服务器存储的CDN数据或者内容一致。The communication unit 420 is further configured to receive second information sent by the DNS server in response to the second request, where the second information includes the second IP address. The third service server and the first service server are different service servers, and the CDN data or content stored in the third service server and the first service server are consistent.
本申请提供的通信装置,通过在不同网络路径下分别进行DNS查询,获取业务服务器在不同的网络路径上分别对应的IP地址。终端设备便可以利用不同网络下分别对应的IP地址在各自的网络路径上与业务服务器进行交互,从而避免访问业务服务器时发生跨网通信的情况,保证了访问速率,提升多网络场景下的业务体验,提高通信效率。The communication device provided by the present application obtains the IP addresses corresponding to the service servers on different network paths respectively by performing DNS queries under different network paths. Terminal devices can use the corresponding IP addresses in different networks to interact with service servers on their respective network paths, thereby avoiding cross-network communication when accessing service servers, ensuring access rates, and improving services in multi-network scenarios. experience and improve communication efficiency.
可选的,在本申请的一些实施例中,通信单元420,还用于根据该第一IP地址,通过该第一网络与该第一业务服务器进行业务通信;根据该第二IP地址,通过该第二网络与该第三业务服务器进行业务通信。Optionally, in some embodiments of the present application, the communication unit 420 is further configured to perform service communication with the first service server through the first network according to the first IP address; The second network performs service communication with the third service server.
作为又一种可能实现方式:As yet another possible implementation:
处理单元410,用于生成第一请求;a processing unit 410, configured to generate a first request;
通信单元420,用于通过第一网络向DNS服务器发送第一请求,该第一请求包括第一域名,该第一请求用于请求该第一域名对应的第一业务服务器的第一IP地址,第一IP地址用于终端设备通过第一网络访问第一业务服务器;The communication unit 420 is configured to send a first request to the DNS server through the first network, where the first request includes a first domain name, and the first request is used to request the first IP address of the first service server corresponding to the first domain name, The first IP address is used by the terminal device to access the first service server through the first network;
通信单元420,还用于接收DNS服务器发送的响应于该第一请求的第一信息,该第一信息包括该第一IP地址;The communication unit 420 is further configured to receive first information sent by the DNS server in response to the first request, where the first information includes the first IP address;
通信单元420,还用于根据第一IP地址,通过第一网络向第一业务服务器发送业务请求,该业务请求包括第一域名;The communication unit 420 is further configured to send a service request to the first service server through the first network according to the first IP address, where the service request includes the first domain name;
通信单元420,还用于接收第一业务服务器发送的响应于该业务请求的第二信息,第二信息包括:与第一域名对应的第二域名、第二域名对应的第二业务服器的第三IP地址,第三IP地址用于终端设备通过第一网络访问第二业务服务器。The communication unit 420 is further configured to receive second information sent by the first service server in response to the service request, where the second information includes: a second domain name corresponding to the first domain name, and a second domain name corresponding to the second domain name of the second service server. The third IP address, where the third IP address is used by the terminal device to access the second service server through the first network.
处理单元410,还用于生成第三请求;the processing unit 410, further configured to generate a third request;
通信单元420,还用于通过第二网络向该DNS服务器发送第三请求,第三请求包括第二域名,该第三请求用于请求第二业务服务器对应的第四IP地址,第四IP地址用于终端设备通过第二网络访问第二业务服务器;The communication unit 420 is further configured to send a third request to the DNS server through the second network, where the third request includes a second domain name, and the third request is used to request a fourth IP address corresponding to the second service server, the fourth IP address for the terminal device to access the second service server through the second network;
通信单元420,还用于接收DNS服务器发送的响应于该第三请求的第三信息,该第三信息包括第四IP地址。The communication unit 420 is further configured to receive third information sent by the DNS server in response to the third request, where the third information includes a fourth IP address.
应理解,通信装置400中各单元执行上述相应步骤的具体过程请参照前文中结合图4、图6、图12至图14、以及方法200和方法300中的相关实施例的终端设备执行步骤的相关描述。为了简洁,这里不加赘述。It should be understood that, for the specific process of each unit in the communication apparatus 400 performing the above-mentioned corresponding steps, please refer to the foregoing description in conjunction with FIG. 4, FIG. 6, FIG. 12 to FIG. related description. For the sake of brevity, they are not repeated here.
可选的,通信单元420可以包括接收单元(模块)和发送单元(模块),用于执行前述各个方法实施例中终端设备接收信息和发送信息的步骤。可选的,通信装置400还可以包括存储单元,用于存储处理单元410和通信单元420执行的指令。处理单元410、通信单元420和存储单元通信连接,存储单元存储指令,处理单元410用于执行存储单元存储的指令,通信单元420用于在处理单元410的驱动下执行具体的信号收发。Optionally, the communication unit 420 may include a receiving unit (module) and a sending unit (module), configured to perform the steps of receiving information and sending information by the terminal device in the foregoing method embodiments. Optionally, the communication apparatus 400 may further include a storage unit for storing the instructions executed by the processing unit 410 and the communication unit 420 . The processing unit 410, the communication unit 420 and the storage unit are communicatively connected, the storage unit stores instructions, the processing unit 410 is used to execute the instructions stored in the storage unit, and the communication unit 420 is used to perform specific signal sending and receiving under the driving of the processing unit 410.
应理解,通信单元420可以是收发器、输入/输出接口或接口电路等。存储单元可以是存储器。处理单元410可由处理器实现。如图16所示,通信装置500可以包括处理器510、存储器520和收发器530。It should be understood that the communication unit 420 may be a transceiver, an input/output interface or an interface circuit, or the like. The storage unit may be a memory. The processing unit 410 may be implemented by a processor. As shown in FIG. 16 , the communication apparatus 500 may include a processor 510 , a memory 520 and a transceiver 530 .
图15所示的通信装置400或图16所示的通信装置500能够实现前述方法200和方法300的各个实施例、以及图4、图6、图12至图14所示的相关实施例的终端设备执行的步骤。类似的描述可以参考前述对应的方法中的描述。为避免重复,这里不再赘述。The communication apparatus 400 shown in FIG. 15 or the communication apparatus 500 shown in FIG. 16 can implement various embodiments of the aforementioned method 200 and method 300, and the terminal of the related embodiments shown in FIGS. 4 , 6 , and 12 to 14 . The steps performed by the device. Similar descriptions can refer to the descriptions in the aforementioned corresponding methods. In order to avoid repetition, details are not repeated here.
还应理解,图15所示的通信装置400或图16所示的通信装置500可以为终端设备,或者,终端设备可以包括图15所示的通信装置400或图16所示的通信装置500。It should also be understood that the communication apparatus 400 shown in FIG. 15 or the communication apparatus 500 shown in FIG. 16 may be terminal equipment, or the terminal equipment may include the communication apparatus 400 shown in FIG. 15 or the communication apparatus 500 shown in FIG. 16 .
图17示出了本申请实施例的通信装置600的示意性框图,该通信装置600可以对应上述方法200和方法300中描述的DNS服务器,也可以是应用于DNS服务器的芯片或组件,并且,该通信装置600各模块或单元分别用于执行上述方法200和方法300中各个实施例方式中的DNS服务器所执行的各动作或处理过程,如图17所示,该通信装置600可以包括:通信单元610和处理单元620。FIG. 17 shows a schematic block diagram of a communication apparatus 600 according to an embodiment of the present application. The communication apparatus 600 may correspond to the DNS server described in the foregoing method 200 and method 300, or may be a chip or component applied to the DNS server, and, The modules or units of the communication apparatus 600 are respectively used to execute the actions or processing procedures performed by the DNS server in each of the above-mentioned methods 200 and 300. As shown in FIG. 17 , the communication apparatus 600 may include: communication unit 610 and processing unit 620.
通信单元610,用于接收来自于终端设备的第一请求,该第一请求包括第一域名,该第一请求用于请求该第一域名对应的第一业务服务器的第一IP地址,该第一IP地址用于该终端设备通过第一网络访问该第一业务服务器。The communication unit 610 is configured to receive a first request from a terminal device, where the first request includes a first domain name, and the first request is used to request the first IP address of the first service server corresponding to the first domain name, and the first request includes a first domain name. An IP address is used for the terminal device to access the first service server through the first network.
处理单元620,用于根据第一请求,确定第一IP地址。The processing unit 620 is configured to determine the first IP address according to the first request.
通信单元610,还用于接收来自于该终端设备的第二请求,该第二请求包括该第一域名,该第二请求用于请求该第一域名对应的第一业务服务器的第二IP地址,该第二IP地址用于该终端设备通过第二网络访问该第一业务服务器。The communication unit 610 is further configured to receive a second request from the terminal device, where the second request includes the first domain name, and the second request is used to request the second IP address of the first service server corresponding to the first domain name , and the second IP address is used for the terminal device to access the first service server through the second network.
处理单元620,还用于根据第二请求,确定第二IP地址。The processing unit 620 is further configured to determine the second IP address according to the second request.
通信单元610,还用于向该终端设备发送响应于该第一请求的第一信息,该第一信息包括该第一IP地址;The communication unit 610 is further configured to send first information in response to the first request to the terminal device, where the first information includes the first IP address;
通信单元610,还用于向该终端设备发送响应于该第二请求的第二信息,该第二信息包括该第二IP地址。The communication unit 610 is further configured to send second information in response to the second request to the terminal device, where the second information includes the second IP address.
本申请提供的通信装置,该通信装置根据终端设备在不同网络路径下分别发送的DNS查询请求,确定业务服务器在不同的网络路径上分别对应的IP地址,将业务服务器在不同的网络路径上分别对应的IP地址反馈给终端设备,从而使得终端设备便可以利用不同网络下分别对应的IP地址在各自的网络路径上与业务服务器进行交互,从而避免访问业务服务器时发生跨网通信的情况,保证了访问速率,提升多网络场景下的业务体验,提高通信效率。The communication device provided by the present application, the communication device determines the corresponding IP addresses of the service servers on different network paths according to the DNS query requests respectively sent by the terminal equipment on different network paths, and separates the service servers on different network paths respectively. The corresponding IP address is fed back to the terminal device, so that the terminal device can use the corresponding IP addresses under different networks to interact with the service server on their respective network paths, thereby avoiding cross-network communication when accessing the service server. The access rate is improved, the service experience in multi-network scenarios is improved, and the communication efficiency is improved.
可选的,在本申请的一些实施例中,该第一网络和该第二网络属于不同的网络运营商,或者,该第一网络和该第二网络属于相同的网络运营商。Optionally, in some embodiments of the present application, the first network and the second network belong to different network operators, or the first network and the second network belong to the same network operator.
可选的,在本申请的一些实施例中,通信单元610,还用于:Optionally, in some embodiments of the present application, the communication unit 610 is further configured to:
接收来自于该终端设备的第三请求,该第三请求包括第二域名,该第二域名对应该第一域名,该第三请求用于请求第二业务服务器的第四IP地址,该第二业务服务器为该第二域名对应业务服务器,该第四IP地址用于该终端设备通过该第二网络访问该第二业务服务器;Receive a third request from the terminal device, the third request includes a second domain name, the second domain name corresponds to the first domain name, the third request is used to request the fourth IP address of the second service server, the second domain name The service server is a service server corresponding to the second domain name, and the fourth IP address is used for the terminal device to access the second service server through the second network;
向该终端设备发送响应于该第三请求的第三信息,该第三信息包括该四IP地址。Sending third information in response to the third request to the terminal device, where the third information includes the quadruple IP address.
可选的,在本申请的一些实施例中,该第一网络为无线局域网WLAN,该第二网络为长期演进系统LTE网络或者为新无线NR网络。Optionally, in some embodiments of the present application, the first network is a wireless local area network WLAN, and the second network is a Long Term Evolution System LTE network or a new wireless NR network.
可选的,通信单元610可以包括接收单元(模块)和发送单元(模块),用于执行前述各个方法实施例中DNS服务器接收信息和发送信息的步骤。可选的,通信装置600还可以包括存储单元,用于存储处理单元620和通信单元610执行的指令。处理单元620、通信单元610和存储单元通信连接,存储单元存储指令,处理单元620用于执行存储单元存储的指令,通信单元610用于在处理单元620的驱动下执行具体的信号收发。Optionally, the communication unit 610 may include a receiving unit (module) and a sending unit (module), configured to perform the steps of receiving information and sending information by the DNS server in each of the foregoing method embodiments. Optionally, the communication apparatus 600 may further include a storage unit for storing the instructions executed by the processing unit 620 and the communication unit 610 . The processing unit 620, the communication unit 610 and the storage unit are communicatively connected, the storage unit stores instructions, the processing unit 620 is used to execute the instructions stored in the storage unit, and the communication unit 610 is used to perform specific signal sending and receiving under the driving of the processing unit 620.
应理解,通信单元610可以是收发器、输入/输出接口或接口电路等。存储单元可以是存储器。处理单元620可由处理器实现。如图18所示,通信装置700可以包括处理器710、存储器720和收发器730。It should be understood that the communication unit 610 may be a transceiver, an input/output interface or an interface circuit, or the like. The storage unit may be a memory. The processing unit 620 may be implemented by a processor. As shown in FIG. 18 , the communication apparatus 700 may include a processor 710 , a memory 720 and a transceiver 730 .
图17所示的通信装置600或图18所示的通信装置700能够实现前述方法200和方法300的各个实施例、以及图4、图6、图12至图14所示的相关实施例的DNS服务器执行的步骤。类似的描述可以参考前述对应的方法中的描述。为避免重复,这里不再赘述。The communication apparatus 600 shown in FIG. 17 or the communication apparatus 700 shown in FIG. 18 can implement the various embodiments of the aforementioned method 200 and method 300, and the DNS of the related embodiments shown in FIGS. 4, 6, 12 to 14. Steps performed by the server. Similar descriptions can refer to the descriptions in the aforementioned corresponding methods. In order to avoid repetition, details are not repeated here.
还应理解,图17所示的通信装置600或图18所示的通信装置700可以为DNS服务器,或者,DNS服务器可以包括图17所示的通信装置600或图18所示的通信装置700。It should also be understood that the communication apparatus 600 shown in FIG. 17 or the communication apparatus 700 shown in FIG. 18 may be a DNS server, or the DNS server may include the communication apparatus 600 shown in FIG. 17 or the communication apparatus 700 shown in FIG. 18 .
还应理解,以上装置中单元的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且装置中的单元可以全部以软件通过处理元件调用的形式实现;也可以全部以硬件的形式实现;还可以部分单元以软件通过处理元件调用的形式实现,部分单元以硬件的形式实现。例如,各个单元可以为单独设立的处理元件,也可以集成在装置的某一个芯片中实现,此外,也可以以程序的形式存储于存储器中,由装置的某一个处理元件调用并执行该单元的功能。这里该处理元件又可以称为处理器,可以是一种具有信号处理能力的集成电路。在实现过程中,上述方法的各步骤或以上各个单元可以通过处理器元件中的硬件的集成逻辑电路实现或者以软件通过处理元件调用的形式实现。It should also be understood that the division of units in the above apparatus is only a division of logical functions, and may be fully or partially integrated into a physical entity in actual implementation, or may be physically separated. And all the units in the device can be realized in the form of software calling through the processing element; also can all be realized in the form of hardware; some units can also be realized in the form of software calling through the processing element, and some units can be realized in the form of hardware. For example, each unit can be a separately established processing element, or can be integrated in a certain chip of the device to be implemented, and can also be stored in the memory in the form of a program, which can be called by a certain processing element of the device and execute the unit's processing. Function. Here, the processing element may also be called a processor, which may be an integrated circuit with signal processing capability. 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 the processor element or implemented in the form of software being invoked by the processing element.
在一个例子中,以上任一装置中的单元可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个专用集成电路(application specific integrated circuit,ASIC),或,一个或多个数字信号处理器(digital signal processor,DSP),或,一个或者多个现场可编程门阵列(field programmable gate array,FPGA),或这些集成电路形式中至少两种的组合。再如,当装置中的单元可以通过处理元件调度程序的形式实现时,该处理元件可以是通用处理器,例如中央处理器(central processing unit,CPU)或其它可以调用程序的处理器。再如,这些单元可以集成在一起,以片上系统(system-on-a-chip,SOC)的形式实现。In one example, a unit in any of the above apparatuses may be one or more integrated circuits configured to implement the above methods, eg, one or more application specific integrated circuits (ASICs), or, one or more A plurality of digital signal processors (DSPs), or, one or more field programmable gate arrays (FPGAs), or a combination of at least two of these integrated circuit forms. For another example, when a unit in the apparatus 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 (central processing unit, CPU) or other processors that can invoke programs. For another example, these units can be integrated together and implemented in the form of a system-on-a-chip (SOC).
本申请实施例还提供了一种通信系统,该通信系统包括:上述方法200和方法300中的终端设备和DNS服务器。可选的,该通信系统还可以包括方法200和方法300中的第一业务服务器。进一步的,该通信系统还可以包括上方法200和方法300中的第 二业务服务器。An embodiment of the present application further provides a communication system, where the communication system includes: a terminal device and a DNS server in the foregoing method 200 and method 300 . Optionally, the communication system may further include the first service server in the method 200 and the method 300 . Further, the communication system may further include the second service server in the above method 200 and method 300.
本申请实施例还提供了一种计算机可读存储介质,用于存储计算机程序代码,该计算机程序包括用于执行上述本申请实施例提供的任意一种确定业务服务器地址的方法的指令。该可读介质可以是只读存储器(read-only memory,ROM)或随机存取存储器(random access memory,RAM),本申请实施例对此不做限制。Embodiments of the present application further provide a computer-readable storage medium for storing computer program codes, where the computer program includes instructions for executing any of the methods for determining an address of a service server provided by the above embodiments of the present application. The readable medium may be a read-only memory (read-only memory, ROM) or a random access memory (random access memory, RAM), which is not limited in this embodiment of the present application.
本申请还提供了一种计算机程序产品,该计算机程序产品包括指令,当该指令被执行时,以使得终端设备、DNS服务器、第一业务服务器、第二业务服务器执行对应于上述方法中的对应的操作。The present application also provides a computer program product, the computer program product includes an instruction, when the instruction is executed, so that the terminal device, the DNS server, the first service server, and the second service server perform corresponding operations corresponding to the above methods. operation.
本申请实施例还提供了一种位于通信装置中的芯片,该芯片包括:处理单元和通信单元,该处理单元,例如可以是处理器,该通信单元例如可以是输入/输出接口、管脚或电路等。该处理单元可执行计算机指令,以使所述通信装置执行上述本申请实施例提供的任一种确定业务服务器地址的方法。An embodiment of the present application further provides a chip located in a communication device, the chip includes: a processing unit and a communication unit, the processing unit may be, for example, a processor, and the communication unit may be, for example, an input/output interface, a pin or a circuit, etc. The processing unit can execute computer instructions, so that the communication device executes any one of the methods for determining the address of the service server provided by the above embodiments of the present application.
可选地,该计算机指令被存储在存储单元中。Optionally, the computer instructions are stored in a storage unit.
可选地,该存储单元为该芯片内的存储单元,如寄存器、缓存等,该存储单元还可以是该终端内的位于该芯片外部的存储单元,如只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)等。其中,上述任一处提到的处理器,可以是一个CPU,微处理器,ASIC,或一个或多个用于控制上述的反馈信息的传输方法的程序执行的集成电路。该处理单元和该存储单元可以解耦,分别设置在不同的物理设备上,通过有线或者无线的方式连接来实现该处理单元和该存储单元的各自的功能,以支持该系统芯片实现上述实施例中的各种功能。或者,该处理单元和该存储器也可以耦合在同一个设备上。Optionally, the storage unit is a storage unit in the chip, such as a register, a cache, etc., and the storage unit can also be a storage unit located outside the chip in the terminal, such as a read-only memory (ROM). ) or other types of static storage devices that can store static information and instructions, random access memory (RAM), etc. Wherein, the processor mentioned in any one of the above may be a CPU, a microprocessor, an ASIC, or one or more integrated circuits for controlling the program execution of the above-mentioned transmission method of feedback information. The processing unit and the storage unit can be decoupled, respectively disposed on different physical devices, and connected in a wired or wireless manner to implement the respective functions of the processing unit and the storage unit, so as to support the system chip to implement the above embodiments various functions in . Alternatively, the processing unit and the memory may also be coupled on the same device.
其中,本实施例提供的通信装置、计算机可读存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。Wherein, the communication device, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding method provided above. Therefore, for the beneficial effects that can be achieved, reference may be made to the above-provided method. The beneficial effects in the corresponding method will not be repeated here.
可以理解,本申请实施例中的存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是ROM、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是RAM,其用作外部高速缓存。RAM有多种不同的类型,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(direct rambus RAM,DR RAM)。It can be understood that the memory in this embodiment of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. Wherein, the non-volatile memory may be ROM, programmable read-only memory (programmable ROM, PROM), erasable programmable read-only memory (erasable PROM, EPROM), electrically erasable programmable read-only memory (electrically EPROM) , EEPROM) or flash memory. Volatile memory can be RAM, which acts as an external cache. There are many different types of RAM such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate Synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (synch link DRAM, SLDRAM) and direct memory bus random access memory Access memory (direct rambus RAM, DR RAM).
本文中术语“系统”和“网络”在本文中常被可互换使用。本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "system" and "network" are often used interchangeably herein. The term "and/or" in this article is only an association relationship to describe the associated objects, indicating that there can be three kinds of relationships, for example, A and/or B, it can mean that A exists alone, A and B exist at the same time, and A and B exist independently B these three cases. In addition, the character "/" in this document generally indicates that the related objects are an "or" relationship.
在本申请中可能出现的对各种消息/信息/设备/网元/系统/装置/动作/操作/流程/概念等各类客体进行了赋名,可以理解的是,这些具体的名称并不构成对相关客体的限定,所赋名称可随着场景,语境或者使用习惯等因素而变更,对本申请中技术术语的技术含义的理解,应主要从其在技术方案中所体现/执行的功能和技术效果来确定。Various messages/information/equipment/network element/system/device/action/operation/process/concept that may appear in this application are given names. It can be understood that these specific names do not Constitutes a limitation on related objects, and the assigned names can be changed according to factors such as the scene, context or usage habits. The understanding of the technical meaning of the technical terms in this application should mainly be based on the functions embodied/executed in the technical solution. and technical effects.
在本申请的各个实施例中,如果没有特殊说明以及逻辑冲突,不同的实施例之间的术语和/或描述具有一致性、且可以相互引用,不同的实施例中的技术特征根据其内在的逻辑关系可以组合形成新的实施例。In the various embodiments of the present application, if there is no special description or logical conflict, the terms and/or descriptions between different embodiments are consistent and can be referred to each other, and the technical features in different embodiments are based on their inherent Logical relationships can be combined to form new embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
本申请的实施例中的方法可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机程序或指令。在计算机上加载和执行所述计算机程序或指令时,全部或部分地执行本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机程序或指令可以存储在计算机可读存储介质中,或者通过所述计算机可读存储介质进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是集成一个或多个可用介质的服务器等数据存储设备。The methods in the embodiments of the present application may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are executed in whole or in part. The computer may be a general purpose computer, special purpose computer, computer network, or other programmable device. The computer program or instructions may be stored in or transmitted over a computer-readable storage medium. The computer-readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server that integrates one or more available media.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个可读存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述 方法的全部或部分步骤。而前述的可读存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The functions, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution, and the computer software product is stored in a readable storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned readable storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc. that can store program codes medium.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited to this. should be covered within the scope of protection of this application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims (27)

  1. 一种确定业务服务器地址的方法,其特征在于,包括:A method for determining an address of a service server, comprising:
    终端设备通过第一网络向域名系统DNS服务器发送第一请求,所述第一请求包括第一域名,所述第一请求用于请求所述第一域名对应的第一业务服务器的第一互联网协议IP地址,所述第一IP地址用于所述终端设备通过所述第一网络访问所述第一业务服务器;The terminal device sends a first request to a domain name system DNS server through the first network, where the first request includes a first domain name, and the first request is used to request the first Internet protocol of the first service server corresponding to the first domain name IP address, where the first IP address is used by the terminal device to access the first service server through the first network;
    所述终端设备通过第二网络向所述DNS服务器发送第二请求,所述第二请求包括所述第一域名,所述第二请求用于请求所述第一业务服务器的第二IP地址,所述第二IP地址用于所述终端设备通过所述第二网络访问所述第一业务服务器;The terminal device sends a second request to the DNS server through the second network, where the second request includes the first domain name, and the second request is used to request the second IP address of the first service server, The second IP address is used by the terminal device to access the first service server through the second network;
    所述终端设备接收所述DNS服务器发送的响应于所述第一请求的第一信息,所述第一信息包括所述第一IP地址;receiving, by the terminal device, first information sent by the DNS server in response to the first request, where the first information includes the first IP address;
    所述终端设备接收所述DNS服务器发送的响应于所述第二请求的第二信息,所述第二信息包括所述第二IP地址。The terminal device receives second information sent by the DNS server in response to the second request, where the second information includes the second IP address.
  2. 根据权利要求1所述的方法,其特征在于,所述第一网络和所述第二网络属于不同的网络运营商,或者,所述第一网络和所述第二网络属于相同的网络运营商。The method according to claim 1, wherein the first network and the second network belong to different network operators, or the first network and the second network belong to the same network operator .
  3. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:The method according to claim 1 or 2, wherein the method further comprises:
    所述终端设备根据所述第一IP地址,通过所述第一网络向所述第一业务服务器发送业务请求,所述业务请求包括所述第一域名;The terminal device sends a service request to the first service server through the first network according to the first IP address, where the service request includes the first domain name;
    所述终端设备接收所述第一业务服务器发送的响应于所述业务请求的第二信息,所述第二信息包括:与所述第一域名对应的第二域名、所述第二域名对应的第二业务服器的第三IP地址,所述第三IP地址用于所述终端设备通过所述第一网络访问所述第二业务服务器。The terminal device receives second information sent by the first service server in response to the service request, where the second information includes: a second domain name corresponding to the first domain name, and a second domain name corresponding to the second domain name. The third IP address of the second service server, where the third IP address is used by the terminal device to access the second service server through the first network.
  4. 根据权利要求3所述的方法,其特征在于,所述方法还包括:The method according to claim 3, wherein the method further comprises:
    所述终端设备根据所述第三IP地址,通过所述第一网络与所述第二业务服务器进行业务通信。The terminal device performs service communication with the second service server through the first network according to the third IP address.
  5. 根据权利要求3或4所述的方法,其特征在于,所述方法还包括:The method according to claim 3 or 4, wherein the method further comprises:
    所述终端设备通过第二网络向所述DNS服务器发送第三请求,所述第三请求包括所述第二域名,所述第三请求用于请求所述第二业务服务器对应的第四IP地址,所述第四IP地址用于所述终端设备通过所述第二网络访问所述第二业务服务器;The terminal device sends a third request to the DNS server through the second network, where the third request includes the second domain name, and the third request is used to request a fourth IP address corresponding to the second service server , the fourth IP address is used by the terminal device to access the second service server through the second network;
    所述终端设备接收所述DNS服务器发送的响应于所述第三请求的第三信息,所述第三信息包括所述第四IP地址。The terminal device receives third information sent by the DNS server in response to the third request, where the third information includes the fourth IP address.
  6. 根据权利要求5所述的方法,其特征在于,所述方法还包括:The method according to claim 5, wherein the method further comprises:
    所述终端设备根据所述四IP地址,通过所述第二网络与所述第二业务服务器进行业务通信。The terminal device performs service communication with the second service server through the second network according to the four IP addresses.
  7. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    所述终端设备根据所述第一IP地址,通过所述第一网络与所述第一业务服务器进行业务通信;The terminal device performs service communication with the first service server through the first network according to the first IP address;
    所述终端设备根据所述第二IP地址,通过所述第二网络与所述第一业务服务器进行通信。The terminal device communicates with the first service server through the second network according to the second IP address.
  8. 根据权利要求1至7中任一项所述的方法,其特征在于,所述第一网络为无线局域网WLAN,所述第二网络为长期演进系统LTE网络或者为新无线NR网络。The method according to any one of claims 1 to 7, wherein the first network is a wireless local area network (WLAN), and the second network is a Long Term Evolution System (LTE) network or a new wireless NR network.
  9. 一种确定业务服务器地址的方法,其特征在于,包括:A method for determining an address of a service server, comprising:
    域名系统DNS服务器接收来自于终端设备的第一请求,所述第一请求包括第一域名,所述第一请求用于请求所述第一域名对应的第一业务服务器的第一IP地址,所述第一IP地址用于所述终端设备通过第一网络访问所述第一业务服务器;The domain name system DNS server receives a first request from the terminal device, the first request includes a first domain name, and the first request is used to request the first IP address of the first service server corresponding to the first domain name, so The first IP address is used by the terminal device to access the first service server through the first network;
    所述DNS服务器接收来自于所述终端设备的第二请求,所述第二请求包括所述第一域名,所述第二请求用于请求所述第一域名对应的第一业务服务器的第二IP地址,所述第二IP地址用于所述终端设备通过第二网络访问所述第一业务服务器;The DNS server receives a second request from the terminal device, where the second request includes the first domain name, and the second request is used to request the second request of the first service server corresponding to the first domain name. IP address, where the second IP address is used by the terminal device to access the first service server through the second network;
    所述DNS服务器向所述终端设备发送响应于所述第一请求的第一信息,所述第一信息包括所述第一IP地址;sending, by the DNS server, first information in response to the first request to the terminal device, where the first information includes the first IP address;
    所述DNS服务器向所述终端设备发送响应于所述第二请求的第二信息,所述第二信息包括所述第二IP地址。The DNS server sends second information in response to the second request to the terminal device, where the second information includes the second IP address.
  10. 根据权利要求9所述的方法,其特征在于,所述第一网络和所述第二网络属于不同的网络运营商,或者,所述第一网络和所述第二网络属于相同的网络运营商。The method according to claim 9, wherein the first network and the second network belong to different network operators, or the first network and the second network belong to the same network operator .
  11. 根据权利要求9或10所述的方法,其特征在于,所述方法还包括:The method according to claim 9 or 10, wherein the method further comprises:
    所述DNS服务器接收来自于所述终端设备的第三请求,所述第三请求包括第二域名,所述第二域名对应所述第一域名,所述第三请求用于请求第二业务服务器的第四IP地址,所述第二业务服务器为所述第二域名对应业务服务器,所述第四IP地址用于所述终端设备通过所述第二网络访问所述第二业务服务器;The DNS server receives a third request from the terminal device, the third request includes a second domain name, the second domain name corresponds to the first domain name, and the third request is used to request a second service server The fourth IP address of the second service server is the service server corresponding to the second domain name, and the fourth IP address is used by the terminal device to access the second service server through the second network;
    所述DNS服务器向所述终端设备发送响应于所述第三请求的第三信息,所述第三信息包括所述四IP地址。The DNS server sends, to the terminal device, third information in response to the third request, where the third information includes the quad IP address.
  12. 根据权利要求9至11中任一项所述的方法,其特征在于,所述第一网络为无线局域网WLAN,所述第二网络为长期演进系统LTE网络或者为新无线NR网络。The method according to any one of claims 9 to 11, wherein the first network is a wireless local area network (WLAN), and the second network is a Long Term Evolution System (LTE) network or a new wireless NR network.
  13. 一种通信装置,其特征在于,包括:A communication device, comprising:
    处理单元:用于生成第一请求和第二请求;processing unit: used to generate the first request and the second request;
    通信单元,还用于通过第一网络向域名系统DNS服务器发送第一请求,所述第一请求包括第一域名,所述第一请求用于请求所述第一域名对应的第一业务服务器的第一互联网协议IP地址,所述第一IP地址用于所述通信装置通过所述第一网络访问所述第一业务服务器;The communication unit is further configured to send a first request to a domain name system DNS server through the first network, where the first request includes a first domain name, and the first request is used to request the first service server corresponding to the first domain name. a first Internet Protocol IP address, where the first IP address is used by the communication device to access the first service server through the first network;
    所述通信单元,还用于通过第二网络向所述DNS服务器发送第二请求,所述第二请求包括所述第一域名,所述第二请求用于请求所述第一业务服务器的第二IP地址,所述第二IP地址用于所述通信装置通过所述第二网络访问所述第一业务服务器;The communication unit is further configured to send a second request to the DNS server through a second network, where the second request includes the first domain name, and the second request is used to request the first service server of the first service. Two IP addresses, where the second IP address is used by the communication device to access the first service server through the second network;
    所述通信单元,还用于接收所述DNS服务器发送的响应于所述第一请求的第一信息,所述第一信息包括所述第一IP地址;The communication unit is further configured to receive first information sent by the DNS server in response to the first request, where the first information includes the first IP address;
    所述通信单元,还用于接收所述DNS服务器发送的响应于所述第二请求的第二信息,所述第二信息包括所述第二IP地址。The communication unit is further configured to receive second information sent by the DNS server in response to the second request, where the second information includes the second IP address.
  14. 根据权利要求13所述的通信装置,其特征在于,所述第一网络和所述第二网络属于不同的网络运营商,或者,所述第一网络和所述第二网络属于相同的网络运营 商。The communication device according to claim 13, wherein the first network and the second network belong to different network operators, or the first network and the second network belong to the same network operator business.
  15. 根据权利要求13或14所述的通信装置,其特征在于,The communication device according to claim 13 or 14, characterized in that:
    所述通信单元,还用于根据所述第一IP地址,通过所述第一网络向所述第一业务服务器发送业务请求,所述业务请求包括所述第一域名;The communication unit is further configured to send a service request to the first service server through the first network according to the first IP address, where the service request includes the first domain name;
    所述通信单元,还用于接收所述第一业务服务器发送的响应于所述业务请求的第二信息,所述第二信息包括:与所述第一域名对应的第二域名、所述第二域名对应的第二业务服器的第三IP地址,所述第三IP地址用于所述通信装置通过所述第一网络访问所述第二业务服务器。The communication unit is further configured to receive second information sent by the first service server in response to the service request, where the second information includes: a second domain name corresponding to the first domain name, the first domain name The third IP address of the second service server corresponding to the second domain name, where the third IP address is used by the communication device to access the second service server through the first network.
  16. 根据权利要求15所述的通信装置,其特征在于,The communication device according to claim 15, wherein:
    所述通信单元,还用于根据所述第三IP地址,通过所述第一网络与所述第二业务服务器进行业务通信。The communication unit is further configured to perform service communication with the second service server through the first network according to the third IP address.
  17. 根据权利要求15或16所述的通信装置,其特征在于,The communication device according to claim 15 or 16, characterized in that,
    所述通信单元,还用于通过第二网络向所述DNS服务器发送第三请求,所述第三请求包括所述第二域名,所述第三请求用于请求所述第二业务服务器对应的第四IP地址,所述第四IP地址用于所述通信装置通过所述第二网络访问所述第二业务服务器;The communication unit is further configured to send a third request to the DNS server through the second network, where the third request includes the second domain name, and the third request is used to request the corresponding domain name of the second service server. a fourth IP address, where the fourth IP address is used by the communication device to access the second service server through the second network;
    所述通信单元,还用于接收所述DNS服务器发送的响应于所述第三请求的第三信息,所述第三信息包括所述第四IP地址。The communication unit is further configured to receive third information sent by the DNS server in response to the third request, where the third information includes the fourth IP address.
  18. 根据权利要求17所述的通信装置,其特征在于,The communication device according to claim 17, wherein:
    所述通信单元,还用于根据所述四IP地址,通过所述第二网络与所述第二业务服务器进行业务通信。The communication unit is further configured to perform service communication with the second service server through the second network according to the four IP addresses.
  19. 根据权利要求13所述的通信装置,其特征在于,The communication device according to claim 13, wherein:
    所述通信单元,还用于根据所述第一IP地址,通过所述第一网络与所述第一业务服务器进行业务通信;The communication unit is further configured to perform service communication with the first service server through the first network according to the first IP address;
    所述通信单元,还用于根据所述第二IP地址,通过所述第二网络与所述第一业务服务器进行通信。The communication unit is further configured to communicate with the first service server through the second network according to the second IP address.
  20. 根据权利要求13至19中任一项所述的通信装置,其特征在于,所述第一网络为无线局域网WLAN,所述第二网络为长期演进系统LTE网络或者为新无线NR网络。The communication device according to any one of claims 13 to 19, wherein the first network is a wireless local area network (WLAN), and the second network is a Long Term Evolution System (LTE) network or a new wireless NR network.
  21. 一种通信装置,其特征在于,包括:A communication device, comprising:
    通信单元,用于接收来自于终端设备的第一请求,所述第一请求包括第一域名,所述第一请求用于请求所述第一域名对应的第一业务服务器的第一IP地址,所述第一IP地址用于所述终端设备通过第一网络访问所述第一业务服务器;a communication unit, configured to receive a first request from a terminal device, where the first request includes a first domain name, and the first request is used to request a first IP address of a first service server corresponding to the first domain name, The first IP address is used by the terminal device to access the first service server through the first network;
    所述通信单元,还用于接收来自于所述终端设备的第二请求,所述第二请求包括所述第一域名,所述第二请求用于请求所述第一域名对应的第一业务服务器的第二IP地址,所述第二IP地址用于所述终端设备通过第二网络访问所述第一业务服务器;The communication unit is further configured to receive a second request from the terminal device, where the second request includes the first domain name, and the second request is used to request a first service corresponding to the first domain name the second IP address of the server, where the second IP address is used by the terminal device to access the first service server through the second network;
    处理单元,用于根据所述第一请求和所述第二请求,确定所述第一IP地址和所述第二IP地址;a processing unit, configured to determine the first IP address and the second IP address according to the first request and the second request;
    所述通信单元,还用于向所述终端设备发送响应于所述第一请求的第一信息,所述第一信息包括所述第一IP地址;The communication unit is further configured to send first information in response to the first request to the terminal device, where the first information includes the first IP address;
    所述通信单元,还用于向所述终端设备发送响应于所述第二请求的第二信息,所述第二信息包括所述第二IP地址。The communication unit is further configured to send second information in response to the second request to the terminal device, where the second information includes the second IP address.
  22. 根据权利要求21所述的通信装置,其特征在于,所述第一网络和所述第二网络属于不同的网络运营商,或者,所述第一网络和所述第二网络属于相同的网络运营商。The communication device according to claim 21, wherein the first network and the second network belong to different network operators, or the first network and the second network belong to the same network operator business.
  23. 根据权利要求21或22所述的通信装置,其特征在于,The communication device according to claim 21 or 22, characterized in that:
    所述通信单元,还用于接收来自于所述终端设备的第三请求,所述第三请求包括第二域名,所述第二域名对应所述第一域名,所述第三请求用于请求第二业务服务器的第四IP地址,所述第二业务服务器为所述第二域名对应业务服务器,所述第四IP地址用于所述终端设备通过所述第二网络访问所述第二业务服务器;The communication unit is further configured to receive a third request from the terminal device, where the third request includes a second domain name, the second domain name corresponds to the first domain name, and the third request is used to request The fourth IP address of the second service server, the second service server is the service server corresponding to the second domain name, and the fourth IP address is used by the terminal device to access the second service through the second network server;
    所述通信单元,还用于向所述终端设备发送响应于所述第三请求的第三信息,所述第三信息包括所述四IP地址。The communication unit is further configured to send third information in response to the third request to the terminal device, where the third information includes the four IP addresses.
  24. 根据权利要求21至23中任一项所述的通信装置,其特征在于,所述第一网络为无线局域网WLAN,所述第二网络为长期演进系统LTE网络或者为新无线NR网络。The communication device according to any one of claims 21 to 23, wherein the first network is a wireless local area network (WLAN), and the second network is a Long Term Evolution System (LTE) network or a new wireless NR network.
  25. 一种通信装置,其特征在于,所述装置包括至少一个处理器,所述至少一个处理器与至少一个存储器耦合:A communication device, characterized in that the device comprises at least one processor coupled to at least one memory:
    所述至少一个处理器,用于执行所述至少一个存储器中存储的计算机程序或指令,以使得所述通信装置执行如权利要求1至8中任一项所述的方法,或者执行如权利要求9至12中任一项所述的方法。the at least one processor for executing computer programs or instructions stored in the at least one memory to cause the communication device to perform the method of any one of claims 1 to 8, or to perform the method as claimed in claim 1 The method of any one of 9 to 12.
  26. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序或指令,当计算机读取并执行所述计算机程序或指令时,使得计算机执行如权利要求1至8中任一项所述的方法,或者执行如权利要求9至12中任一项所述的方法。A computer-readable storage medium, characterized in that, a computer program or instruction is stored in the computer-readable storage medium, and when the computer reads and executes the computer program or instruction, the computer is made to execute as claimed in claims 1 to 8 The method of any one of claims 9 to 12, or perform the method of any one of claims 9 to 12.
  27. 一种芯片,其特征在于,包括:处理器,用于从存储器中调用并运行计算机程序,使得安装有所述芯片的通信设备执行如权利要求1至8中任一项所述的方法,或者执行如权利要求9至12中任一项所述的方法。A chip, characterized by comprising: a processor for calling and running a computer program from a memory, so that a communication device installed with the chip executes the method according to any one of claims 1 to 8, or A method as claimed in any one of claims 9 to 12 is performed.
PCT/CN2021/113268 2020-08-31 2021-08-18 Method for determining service server address, and communication device WO2022042395A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010900839.6A CN114124889B (en) 2020-08-31 2020-08-31 Method for determining service server address and communication device
CN202010900839.6 2020-08-31

Publications (1)

Publication Number Publication Date
WO2022042395A1 true WO2022042395A1 (en) 2022-03-03

Family

ID=80354618

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/113268 WO2022042395A1 (en) 2020-08-31 2021-08-18 Method for determining service server address, and communication device

Country Status (2)

Country Link
CN (1) CN114124889B (en)
WO (1) WO2022042395A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114844858A (en) * 2022-04-13 2022-08-02 山东浪潮超高清视频产业有限公司 Method for obtaining domain name address by multiple networks

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115277640B (en) * 2022-07-29 2023-11-24 迈普通信技术股份有限公司 Data processing method, device, intelligent network card and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764855A (en) * 2009-12-30 2010-06-30 福建星网锐捷网络有限公司 Method, device and system for providing domain name resolution services
US20140373107A1 (en) * 2012-01-24 2014-12-18 Ars Nova Systems System and method for controlling a dns request
CN106131068A (en) * 2016-08-26 2016-11-16 北京网瑞达科技有限公司 User resolves the system and method for circuit from main separation domain name system DNS
CN106331216A (en) * 2016-09-13 2017-01-11 腾讯科技(深圳)有限公司 Domain name parsing method and domain name parsing device
CN110062441A (en) * 2018-01-18 2019-07-26 中兴通讯股份有限公司 Utilize terminal and its method for realizing data transmission

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7689671B2 (en) * 2007-03-09 2010-03-30 International Business Machines Corporation System and method for multiple IP addresses during domain name resolution
CN105681249B (en) * 2014-11-17 2019-09-13 中国移动通信集团公司 A kind of Network Access Method and link switch equipment
CN106953805A (en) * 2017-03-17 2017-07-14 广州爱九游信息技术有限公司 Network line control method, device and service terminal
CN107911499A (en) * 2017-11-28 2018-04-13 北京潘达互娱科技有限公司 Multi-line domain name analytic method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764855A (en) * 2009-12-30 2010-06-30 福建星网锐捷网络有限公司 Method, device and system for providing domain name resolution services
US20140373107A1 (en) * 2012-01-24 2014-12-18 Ars Nova Systems System and method for controlling a dns request
CN106131068A (en) * 2016-08-26 2016-11-16 北京网瑞达科技有限公司 User resolves the system and method for circuit from main separation domain name system DNS
CN106331216A (en) * 2016-09-13 2017-01-11 腾讯科技(深圳)有限公司 Domain name parsing method and domain name parsing device
CN110062441A (en) * 2018-01-18 2019-07-26 中兴通讯股份有限公司 Utilize terminal and its method for realizing data transmission

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114844858A (en) * 2022-04-13 2022-08-02 山东浪潮超高清视频产业有限公司 Method for obtaining domain name address by multiple networks

Also Published As

Publication number Publication date
CN114124889A (en) 2022-03-01
CN114124889B (en) 2023-04-28

Similar Documents

Publication Publication Date Title
CN114430897B (en) Method, device and system for edge parsing function
WO2022042395A1 (en) Method for determining service server address, and communication device
US9407530B2 (en) Systems and methods for providing DNS server selection using ANDSF in multi-interface hosts
US11902389B2 (en) Mechanism to facilitate signaling traffic
WO2019170114A1 (en) Method for sending packet, network device, and computer-readable storage medium
JP5449343B2 (en) Method for a network component to route a communication session
TWI757595B (en) Interception aware access node selection
JP5502860B2 (en) Method for indicating a supported IP version and reaching a device that supports an IP version compatible with SIP
WO2011137792A1 (en) Method and apparatus for cooperation between push devices
JP2023535562A (en) Method, system and computer readable medium for providing network capability discovery service enhancement
TW201029422A (en) Methods, apparatuses, and computer program products for determining a network interface to access a network resource
JP2012506102A (en) Method and apparatus for acquiring content with reduced access time
JP2011527532A5 (en)
WO2021212939A1 (en) Communication method, apparatus and system
WO2014075450A1 (en) Resource download method, service server and cellular phone client
WO2024021405A1 (en) Data transmission system and method
EP2137885A1 (en) Method and arrangement in a communications network
WO2022022530A1 (en) Method for determining public network address of mptcp server and communication device
WO2022022322A1 (en) Method and device for accessing local network
US20240089844A1 (en) Providing slice attribute information to user equipment in a mobile network environment
JP2009514260A (en) Communication system, peer-to-peer message filter calculator and peer-to-peer message processing method
WO2021203794A1 (en) Communication method, apparatus, and system
CN114556894A (en) Method, apparatus and computer program product for packet forwarding control protocol message bundling
US8656449B1 (en) Applying policy attributes to events
EP4040729A1 (en) Service call method and network device

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21860233

Country of ref document: EP

Kind code of ref document: A1