WO2021226894A1 - Ip address updating method, apparatus, and device, and computer storage medium - Google Patents

Ip address updating method, apparatus, and device, and computer storage medium Download PDF

Info

Publication number
WO2021226894A1
WO2021226894A1 PCT/CN2020/090097 CN2020090097W WO2021226894A1 WO 2021226894 A1 WO2021226894 A1 WO 2021226894A1 CN 2020090097 W CN2020090097 W CN 2020090097W WO 2021226894 A1 WO2021226894 A1 WO 2021226894A1
Authority
WO
WIPO (PCT)
Prior art keywords
domain name
terminal
name resolution
address list
address
Prior art date
Application number
PCT/CN2020/090097
Other languages
French (fr)
Chinese (zh)
Inventor
郭子亮
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to CN202080100495.9A priority Critical patent/CN115516835B/en
Priority to PCT/CN2020/090097 priority patent/WO2021226894A1/en
Publication of WO2021226894A1 publication Critical patent/WO2021226894A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks

Definitions

  • IP Internet Protocol
  • the terminal When the current domain name resolution server is in use, in order to avoid repeated requests from the terminal to the domain name resolution server, the terminal will make a corresponding cache after obtaining the IP address list and set a fixed cache time. The terminal can only be used after the cache time is reached. Re-request the IP address list from the domain name resolution server.
  • the embodiments of the present application provide a method, device, equipment, and computer storage medium for updating an IP address.
  • a method for updating an IP address including:
  • the terminal sends the first access request to the gateway;
  • the notification message is used to indicate that the first IP address list is updated
  • a domain name resolution result is obtained from a domain name resolution server; the domain name resolution result includes a second IP address list obtained after updating the first IP address list.
  • a method for updating an IP address including:
  • the gateway receives the notification message sent by the domain name resolution server; the notification message is used to indicate that the first IP address list is updated, and is used for the terminal to obtain the first IP address list obtained after updating the first IP address list from the domain name resolution server.
  • the notification message is used to indicate that the first IP address list is updated, and is used for the terminal to obtain the first IP address list obtained after updating the first IP address list from the domain name resolution server.
  • a method for updating an IP address including:
  • the domain name resolution server sends a notification message to the gateway; the notification message is used to indicate that the first IP address list has been updated, and is used by the terminal to obtain information from the domain name resolution server after receiving the notification message sent by the gateway.
  • the second IP address list obtained after the first IP address list is updated.
  • an IP address updating device including:
  • the sending unit is used to send the first access request to the gateway
  • a receiving unit configured to receive a notification message and a first access result sent by the gateway; the notification message is used to indicate that the first IP address list is updated;
  • the obtaining unit is configured to obtain a domain name resolution result from a domain name resolution server based on the notification message; the domain name resolution result includes a second IP address list obtained after updating the first IP address list.
  • a device for updating an IP address including:
  • the receiving unit is configured to receive a notification message sent by a domain name resolution server; the notification message is used to indicate that the first IP address list is updated, and is used for the terminal to obtain updates to the first IP address list from the domain name resolution server The second IP address list obtained afterwards;
  • the receiving unit is further configured to receive the first access request sent by the terminal;
  • the sending unit is configured to send a notification message and the first access result to the terminal.
  • an IP address updating device including:
  • the sending unit is configured to send a notification message to the gateway; the notification message is used to indicate that the first IP address list is updated, and is used for the terminal to obtain the response from the domain name resolution server after receiving the notification message sent by the gateway The second IP address list obtained after the first IP address list is updated.
  • an IP address update device including: a memory and a processor,
  • the memory stores a computer program that can run on the processor
  • a computer storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in the foregoing method.
  • a chip including a processor, configured to call and run a computer program from a memory, so that a device installed with the chip executes the steps in the above method.
  • a computer program product includes a computer storage medium, and the computer storage medium stores computer program code.
  • the computer program code includes instructions that can be executed by at least one processor. When the instructions are executed by the at least one processor, the steps in the above methods are implemented.
  • the terminal sends the first access request to the gateway; receives the notification message and the first access result sent by the gateway; the notification message is used to indicate that the first IP address list is updated; based on the notification message, from the domain name
  • the domain name resolution result is obtained from the resolution server; the domain name resolution result includes a second IP address list obtained after updating the first IP address list.
  • the terminal determines that the first IP address list is updated, and then obtains the second IP address list obtained after updating the first IP address list from the domain name resolution server, so that the terminal can obtain it in time
  • the second IP address list can further improve the access success rate of the terminal.
  • FIG. 1 is a schematic structural diagram of a network architecture provided by an embodiment of this application.
  • FIG. 2 is a schematic flowchart of an IP address update method provided by related technologies
  • FIG. 3 is a schematic diagram of an implementation process of an IP address updating method provided by an embodiment of the application.
  • FIG. 4 is a schematic diagram of the implementation process of another method for updating an IP address provided by an embodiment of the application.
  • FIG. 5 is a schematic diagram of the implementation process of another method for updating an IP address provided by an embodiment of the application.
  • FIG. 6 is a schematic flowchart of a terminal obtaining a second IP address list according to an embodiment of the application
  • FIG. 7 is a schematic diagram of the implementation process of another method for updating an IP address provided by an embodiment of the application.
  • FIG. 8 is a schematic diagram of the composition structure of an IP address updating device provided by an embodiment of this application.
  • FIG. 9 is a schematic diagram of the composition structure of another device for updating an IP address provided by an embodiment of the application.
  • FIG. 10 is a schematic diagram of the composition structure of another device for updating an IP address provided by an embodiment of this application.
  • FIG. 11 is a schematic diagram of the composition structure of an IP address updating device provided by an embodiment of the application.
  • FIG. 12 is a schematic structural diagram of a chip provided by an embodiment of the application.
  • FIG. 1 is a schematic structural diagram of a network architecture provided by an embodiment of the application.
  • the network architecture 10 includes a terminal 11, a gateway 12, a domain name resolution server 13, a first server 14 and a second server 15.
  • the terminal 11 in the embodiment of the present application may be a mobile phone.
  • the terminal 11 may be a server, a tablet computer, a notebook computer, a handheld computer, a personal digital assistant, a portable media player, a smart speaker, a navigation device, a display device, a smart bracelet and other wearable devices, virtual reality (Virtual Reality, VR) equipment, Augmented Reality (AR) equipment, pedometer, digital TV or desktop computer, etc.
  • VR Virtual Reality
  • AR Augmented Reality
  • the gateway 12 in the embodiment of the present application may be a server gateway or a proxy server.
  • the domain name resolution server 13 in the embodiment of the present application may be a HyperText Transfer Protocol Domain Name System (HTTPDNS) server or a local domain name system (LocalDNS) server.
  • HTTPDNS is based on the domain name system of the Hypertext Transfer Protocol (Hyper Text Transfer Protocol, HTTP) protocol.
  • HTTP Hypertext Transfer Protocol
  • the HTTP protocol is used for domain name resolution, and the domain name resolution request is sent directly to the HTTPDNS server, thereby bypassing the operator's local domain name system LocalDNS.
  • HTTPDNS HTTP-based Domain Name System
  • HTTP-based Domain Name System is a traffic scheduling solution based on HTTP and domain name resolution tailored for mobile clients. It is used to solve the problems of abnormal local DNS (local domain name system) resolution and inaccurate traffic scheduling in the prior art.
  • the principle of HTTPDNS is mainly implemented in the following way. The terminal accesses the HTTPDNS interface, obtains the IP address configured on the domain name configuration management system for the business, and sends an HTTP request to the obtained IP address.
  • the first server 14 may be a business server or a reverse proxy server
  • the second server 15 may be a business server or a reverse proxy server.
  • the terminal 11 can be connected to the gateway 12, and the terminal 11 can send an access request to the gateway 12.
  • the access request can be: the first access request corresponding to the IP address of the first server 14, or the IP address of the second server 15.
  • the gateway 12 receives the first access request sent by the terminal 11, the gateway forwards the first access request to the first server 14.
  • the first server 14 responds to the first access request and determines that the first access request is The corresponding first access result is requested, and the first access result is sent to the gateway 12, and then the gateway 12 may send the first access result to the terminal.
  • the terminal 11 may also be connected to the domain name resolution server 13.
  • the terminal 11 may obtain the IP address list corresponding to the domain name through the domain name resolution server 13, and the terminal 11 may also store multiple IP address lists.
  • the gateway 12 can also be connected with the domain name resolution server 13 to perform corresponding signaling interaction.
  • Fig. 2 is a schematic flowchart of an IP address update method provided by related technologies. As shown in Fig. 2, the IP address update method includes:
  • the terminal sends a domain name resolution request to a domain name resolution server; the domain name resolution request includes the target domain name; the server receives the domain name resolution request sent by the terminal.
  • the domain name resolution server responds to the domain name resolution request, and based on the target domain name in the domain name resolution request, determines a target IP address list corresponding to the target domain name.
  • S205 The domain name resolution server sends the target IP address list to the terminal, and the terminal receives the target IP address list.
  • the terminal starts a timer, and determines that the timer expires.
  • the running time of the timer can be preset by the terminal or configured by the domain name resolution server, and the running time of the timer can be 1 day, 7 days, or 14 days, etc.
  • the target IP address list in the domain name resolution server is updated.
  • the terminal sends a domain name resolution request to the server again; the server receives the domain name resolution request sent by the terminal; the domain name resolution request includes the target domain name.
  • the time when the terminal resends the domain name resolution request is the time when the timer expires.
  • the domain name resolution server responds to the domain name resolution request, and based on the target domain name in the domain name resolution request, determines an updated target IP address list corresponding to the target domain name.
  • the domain name resolution server sends the updated target IP address list to the terminal, and the terminal receives the updated target IP address list.
  • the terminal still uses the target IP address list. Performing access will result in a high failure rate of terminal access.
  • FIG. 3 is a schematic diagram of the implementation process of an IP address update method provided by an embodiment of the application. As shown in FIG. 3, the method is applied to a terminal, and the method includes:
  • S301 The terminal sends a first access request to the gateway.
  • the first access request may be used to request the first access result corresponding to the first access request, and the first access result includes the resource that the terminal needs to access.
  • the terminal can store multiple mappings between domain names and IP address lists.
  • the terminal can store domain name A, domain name B, domain name C, etc., and store the mapping between domain name A and the first IP address list , The mapping between domain name B and the second IP address list, and the mapping between domain name C and the third IP address list.
  • Each IP address list can include at least one IP address.
  • the terminal can first inquire whether the domain name B exists internally, and after the query is found, it can access through the IP address in the second IP address list. However, when the terminal needs to access the domain name G, the terminal queries the internally stored domain name but does not find the domain name G. At this time, the terminal can send a domain name resolution request including the domain name G to the domain name resolution server. The domain name resolution server receives the domain name resolution request. , Send the IP address list corresponding to the domain name G to the terminal, so that the terminal can access through the IP address list corresponding to the domain name G.
  • the terminal may store the domain name G and the IP address list corresponding to the domain name G in internal storage (such as SDK), so that when accessing the domain name G next time, it can obtain the IP address list corresponding to the domain name G by querying the internal storage.
  • internal storage such as SDK
  • the terminal may determine the IP address of the first server to be accessed, and send the first access request to the gateway based on the IP address of the first server. For example, before S301, the terminal may obtain the first IP address list from internal storage, determine the IP address of the first server from the first IP address list, and then use the IP address of the first server to access, that is, to the gateway Sending the access request, so that the gateway forwards the first access request to the first server, thereby establishing a connection between the terminal and the first server.
  • the first IP address list may include the IP address of the first server.
  • the first IP address list may be stored in a software development kit (Software Development Kit, SDK) of the terminal.
  • the terminal receives the notification message and the first access result sent by the gateway; the notification message is used to indicate that the first IP address list is updated.
  • the gateway may forward the first access request to the first server, and receive the first access result fed back by the first server after responding to the first access request.
  • the notification message is used by the terminal to obtain the second IP address list obtained after updating the first IP address list from the domain name resolution server.
  • the gateway may integrate the access result and the notification message into one signaling message, and send the signaling message to the terminal. In another implementation manner, the gateway may send the access result and the notification message respectively through two signaling messages.
  • the first IP address list may be an IP address list corresponding to the gateway.
  • the IP address list corresponding to the gateway may be one IP address list or multiple IP address lists.
  • the first IP address list may correspond to the gateway.
  • the first IP address list may include the IP address of the first server, so that after receiving the notification message, the terminal may determine the first IP address list based on the IP address of the first server.
  • the first IP address list may not include the IP address of the first server, but the notification message may include the first domain name, so that after receiving the notification message, the terminal can determine the first domain name according to the first domain name.
  • the first IP address list may not include the IP address of the first server, but the notification message may include the first domain name, so that after receiving the notification message, the terminal can determine the first domain name according to the first domain name.
  • the terminal obtains a domain name resolution result from the domain name resolution server based on the notification message; the domain name resolution result includes the second IP address list obtained after updating the first IP address list.
  • the domain name resolution result includes at least the second IP address list.
  • the second IP address list may or may not include the IP address of the first server.
  • the terminal determines that the first IP address list is updated, and then obtains the second IP address list obtained after updating the first IP address list from the domain name resolution server, so that the terminal The second IP address list can be obtained in time, and thus the access success rate of the terminal can be improved.
  • FIG. 4 is a schematic diagram of the implementation process of another method for updating an IP address provided by an embodiment of the application. As shown in FIG. 4, the method includes:
  • the domain name resolution server sends a notification message to the gateway; the gateway receives the notification message sent by the domain name resolution server.
  • the notification message is used to indicate that the first IP address list is updated, and is used for the terminal to obtain the second IP address list obtained after updating the first IP address list from the domain name resolution server.
  • the notification message may not include the first domain name corresponding to the first IP address list, and the terminal may determine the first domain name corresponding to the first IP address list through the IP address of the first server. For example, since a mapping between the first domain name and the first IP address list is stored inside the terminal, the terminal may determine the first domain name corresponding to the first IP address list based on the IP address of the first server and the mapping. In another implementation manner, the notification message may include the first domain name, so that the terminal can parse the notification message to obtain the first domain name.
  • the domain name resolution server may generate a notification message when determining that the first IP address list is updated, and send the notification message to the gateway.
  • the update of the first IP address list may be: adding an IP address to the first IP address list, reducing the IP address in the first IP address list, or changing the IP address in the first IP address list.
  • the first IP address list may include M IP addresses, each of the M IP addresses corresponds to a service server, and the domain name resolution server may receive M corresponding to the M IP addresses.
  • the service server any service server sends the change message of the IP address in the first IP address list through the gateway, so that the domain name resolution server updates the first IP address list based on the change message.
  • M is an integer greater than or equal to 1.
  • the domain name resolution server may receive an IP address change message sent by another device, and update the first IP address list based on the change message.
  • the second IP address list may include N IP addresses, and each IP address of the N IP addresses corresponds to a service server.
  • N is an integer greater than or equal to 1.
  • S403 The terminal sends a first access request to the gateway; the gateway receives the first access request sent by the terminal.
  • the embodiment of the present application does not limit the sequence in which the gateway receives the notification message and the first access request.
  • the gateway sends a notification message and the first access result to the terminal; the terminal receives the notification message and the first access result sent by the gateway.
  • the gateway sends the notification message and the first access result to the terminal after receiving the notification message and after receiving the first access request sent by the terminal.
  • the first access result corresponds to the first access request.
  • the terminal obtains a domain name resolution result from the domain name resolution server based on the notification message; the domain name resolution result includes the second IP address list obtained after updating the first IP address list.
  • the domain name resolution server through the interaction process between the terminal, the gateway, and the domain name resolution server, the domain name resolution server sends a notification message to the gateway when it determines that the first IP address list is updated, so that the terminal passes through the gateway.
  • Receive the notification message and obtain the second IP address list obtained after updating the first IP address list based on the notification message, so that the terminal can also be updated in time after the first IP address in the domain name resolution server is updated
  • the second IP address list can improve the access success rate of the terminal.
  • FIG. 5 is a schematic diagram of the implementation process of another method for updating an IP address provided by an embodiment of the application. As shown in FIG. 5, the method includes:
  • S501 The domain name resolution server sends a notification message to the gateway.
  • the notification message is used to indicate that the first IP address list is updated, and is used for the terminal to obtain the second IP address list obtained after updating the first IP address list from the domain name resolution server after receiving the notification message sent by the gateway.
  • the terminal determines the IP address of the first server from the first IP address list.
  • the communication protocol between the terminal and the gateway may be a gateway protocol (Gateway to Gateway Protocol, GGP) or other network protocols.
  • GGP Gateway to Gateway Protocol
  • the SDK of the terminal can store the mapping between each of the multiple domain names and each IP address list.
  • the terminal may determine the first domain name to be accessed based on the user's operation on the terminal, so as to determine the first IP address list corresponding to the first domain name among multiple mappings. For example, in the case where the first domain name is www.baidu.com, the terminal can determine the IP address list corresponding to the domain name www.baidu.com from multiple mappings stored in the SDK, which can be based on the obtained www.baidu. Visit an IP address in the IP address list corresponding to com.
  • the first IP address list includes not only at least one IP address, but also at least one weight parameter corresponding to the at least one IP address.
  • the terminal may be based on the at least one weight.
  • the parameter determines the IP address to be accessed first. If the access fails based on the IP address that is accessed first, the IP address of the second access is determined based on at least one weight parameter until the access is successful.
  • the terminal may randomly select one of the at least one IP address as a connection based on a weighted random algorithm or a random weighted algorithm.
  • the terminal may send a first access request to the gateway based on the IP address of the first server.
  • the gateway receives the first access request sent by the terminal.
  • the first IP address list may include: M IP addresses and M weight parameters one-to-one corresponding to the M IP addresses, where M is an integer greater than or equal to 1; the terminal may be based on the M weight parameters from the M IP addresses , The IP address of the first server is determined, and the first access request may be sent to the gateway based on the IP address of the first server.
  • the gateway After the gateway receives the first access request, it can determine that the service server accessed by the terminal is the first server based on the IP address of the first server in the first access request. Then, the gateway may forward the first access request to the first server. After receiving the first access request, the first server responds to the first access request, determines the first access result based on the first access request, and then sends the first access request to the gateway. One visit result.
  • the gateway sends a notification message and the first access result to the terminal; the terminal receives the notification message and the first access result sent by the gateway.
  • the terminal determines the first domain name corresponding to the first IP address list based on the notification message.
  • the terminal may trigger the process of determining the domain name corresponding to the IP address of the first server.
  • the terminal may determine the first domain name corresponding to the IP address of the first server based on the mapping between the first domain name stored in the terminal and the first IP address list.
  • the terminal sends a domain name resolution request to the domain name resolution server; the domain name resolution request includes the first domain name; and the domain name resolution server receives the domain name resolution request sent by the terminal.
  • HTTP is the most widely used network transmission protocol on the Internet, and all WWW documents comply with this standard.
  • network services have become an indispensable service in people's lives.
  • Internet companies usually use domain names to provide services to users.
  • the domain name resolution server sends a domain name resolution result to the terminal; the terminal receives the domain name resolution result sent by the domain name resolution server.
  • the domain name resolution result includes the second IP address list obtained after updating the first IP address list.
  • the second IP address list can be encrypted using asymmetric encryption.
  • the encryption method can be that the domain name resolution server uses a private key to encrypt the second IP address list.
  • the address list is encrypted, and the terminal uses the public key to decrypt the encrypted data, or the encryption method may be that the domain name resolution server uses the public key to encrypt the second IP address list, and the terminal uses the private key to decrypt the encrypted data.
  • the domain name resolution server can first perform a hash calculation on the second IP address list to obtain the first hash value; then it can use the private key to encrypt the first hash value to obtain the first signature ; Then, based on the first signature and the second IP address list, for example, the first signature and the second IP address list are encoded to determine the domain name resolution result.
  • the domain name resolution result may include the first signature and the second IP address list.
  • the terminal verifies the domain name resolution result, and after the verification is successful, updates the first mapping stored in the terminal to the second mapping.
  • the first mapping may include: mapping between the domain name and the first IP address list
  • the second mapping may include: the mapping between the domain name and the second IP address list.
  • Both the first mapping and the second mapping may be stored in the domain name resolution information or domain name resolution module of the SDK.
  • the terminal can first determine the public key corresponding to the domain name resolution server; then the public key can be used to decrypt the first signature to obtain the first hash value; then the hash value of the second IP address list can be calculated , To obtain the second hash value; if the first hash value and the second hash value are the same, it is determined that the verification of the domain name resolution result is successful.
  • the public key corresponding to the domain name resolution server may be stored inside the terminal, and the terminal may obtain the public key corresponding to the domain name resolution server from its inside.
  • the public key can be extracted from a digital certificate stored inside the terminal.
  • the public key corresponding to the domain name resolution server may be sent by the domain name resolution server to the terminal, and the public key may be included in the domain name resolution result, or the domain name resolution server may separately send the public key to the terminal.
  • the domain name resolution server may also send a digital certificate to the server, and the digital certificate may include a public key, so that the terminal may obtain the public key through the digital certificate, where the digital certificate may be included in the domain name resolution result, Or the domain name resolution server separately sends the digital certificate to the terminal.
  • the terminal can access the first domain name based on the second IP address list.
  • the terminal may determine the first weight parameter based on the at least two weight parameters; then, from the at least two IP addresses, determine the first to-be-accessed corresponding to the first weight parameter IP address, using the first IP address to be visited for access.
  • the terminal when the terminal fails to access the first IP address to be accessed, it can determine a second weight parameter other than the first weight parameter from the at least two weight parameters; In the IP address, the second IP address to be accessed corresponding to the second weight parameter is determined, and the second IP address to be accessed is used for access.
  • the terminal since the terminal modifies the first IP address list stored in it to the second IP address list, the terminal can access through the second IP address list when it determines an access request for the domain name next time.
  • the IP address update method may further include the following steps: the terminal sends an update complete message to the gateway; the gateway receives the update complete message sent by the terminal; the update complete message is used to instruct the terminal to complete the stored first IP address list Update.
  • the timing for the terminal to send the update completion message to the gateway may be after the terminal receives the domain name resolution result sent by the domain name resolution server, or after the terminal updates the first mapping stored internally to the second mapping.
  • the gateway may send the second access result to the terminal after receiving the second access request sent by the terminal based on the IP address of the second server based on the update complete message. After that, after the gateway again receives the notification message sent by the domain name resolution server and receives the access request of the terminal, it sends the notification message to the terminal.
  • the second IP address list may include at least one IP address and at least one weight parameter corresponding to the at least one IP address, so The terminal can use the weighted random algorithm to determine the first IP address to be accessed from the second IP address list, which avoids that in related technologies, each access of the terminal is based on the access from the first IP address, resulting in the first IP address
  • the corresponding gateway generates a request for aggregation.
  • the terminal verifies the second IP address list sent by the domain name resolution server, the second IP address is prevented from being tampered with by a third party.
  • FIG. 6 is a schematic diagram of a process for obtaining a second IP address list by a terminal according to an embodiment of the application. As shown in FIG. 6, the manner in which the terminal obtains the second IP address list can be implemented through the following steps S601 to S611:
  • the terminal sends a DNS request to the domain name resolution server.
  • the DNS request may include a domain name, for example, the domain name may be www.domain.com, and the DNS request may be the domain name resolution request in the foregoing embodiment.
  • the HTTPDNS server After receiving the DNS request, the HTTPDNS server queries the second IP address list corresponding to the domain name in the DNS request.
  • IP addresses in the second IP address list there are three IP addresses in the second IP address list, and the ratios are IP1, IP2, and IP3.
  • the weights of these three IP addresses are 0.4, 0.3, and 0.3, respectively.
  • the HTTPDNS server may use the private key to encrypt the second IP address list.
  • the encryption method is that the HTTPDNS server calculates the hash value of the second IP address list to obtain the first hash value, and encrypts the first hash value to obtain the first signature.
  • the HTTPDNS server may return the result of the DNS request to the terminal.
  • the returned result may be the domain name resolution result, and the domain name resolution result includes the first signature and the second IP address list.
  • the terminal uses the public key to decrypt and verify.
  • the method of decryption and verification is: determine the public key corresponding to the domain name resolution server; use the public key to decrypt the first signature to obtain the first hash value; calculate the hash value of the updated IP address list to obtain the second hash Value; if the first hash value and the second hash value are the same, it is determined that the verification of the domain name resolution result is successful.
  • the HTTPDNS server may issue a public key, or the HTTPDNS server may issue a certificate, so that the terminal obtains the public key through the certificate.
  • the terminal updates the first IP address list to the second IP address list.
  • the terminal can determine that the second IP address list is sent by the domain name resolution server, and then the terminal can update the first IP address list to the second IP address list.
  • the update procedure of the terminal may be to delete the first IP address list and write to the second IP address list.
  • asymmetric encryption is performed for the result of the request, which effectively guarantees the security of the data content during the network transmission process, and the content cannot be tampered with; at the same time, the certificate and the decryption token (Token) (which can be It is understood as a public key) to be provided to legally authorized terminals to prevent irrelevant parties or malicious users from using the service.
  • Token decryption token
  • This method of directly issuing Tokens also avoids the performance loss caused by multiple handshake connections using Transport Layer Security (TLS).
  • TLS Transport Layer Security
  • FIG. 7 is a schematic diagram of the implementation process of another method for updating an IP address provided by an embodiment of the application. As shown in FIG. 7, the method may include:
  • the terminal sends a DNS request to a domain name resolution server, and receives an IP address list AAA from the domain name resolution server in response to the DNS request.
  • the IP address list AAA includes the address AAA.
  • S703 The terminal sends an access request to the gateway.
  • the terminal can send an access request to the gateway based on the address AAA.
  • S705 The gateway forwards the request to the service server A.
  • the service server A corresponds to the address AAA.
  • the HTTPDNS server determines that the IP address list AAA is changed to the IP address list BBB, and sends a notification message to the gateway.
  • the IP address list BBB includes the IP address BBB.
  • the notification message is used to indicate that the IP address list AAA has changed.
  • the gateway sends an access result and a notification message to the terminal.
  • the notification message is used to notify the terminal IP address list AAA to change.
  • the terminal may update the internally stored IP address list AAA to the IP address list BBB.
  • the terminal can access the service server B based on the address BBB in the IP address list BBB.
  • the user when the IP address configuration changes, the user is notified through the gateway protocol that the IP address has been modified. After the user (terminal) receives the message sent by the gateway, it sends a Dns request in real time to refresh the IP address of the corresponding domain name, achieving the real-time refresh capability.
  • the HTTPDNS service returns a weighted IP address, which ensures the balance of IP address access; uses asymmetric encryption to encrypt transmission of HTTPDNS communication data to ensure that the content is tamper-proof; the user is notified of real-time refresh through the gateway protocol Caching improves real-time performance.
  • the embodiment of the present application provides an IP address update device, which includes each unit included and each module included in each unit, which can be passed through a terminal, a gateway, or a processor in a domain name resolution server.
  • the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA) and so on.
  • FIG. 8 is a schematic diagram of the composition structure of an IP address updating device provided by an embodiment of the application. As shown in FIG. 8, the IP address updating device 80 can be applied to a terminal, and the IP address updating device 80 includes:
  • the sending unit 81 is configured to send the first access request to the gateway
  • the receiving unit 82 is configured to receive a notification message and the first access result sent by the gateway; the notification message is used to indicate that the first IP address list is updated;
  • the obtaining unit 83 is configured to obtain a domain name resolution result from the domain name resolution server based on the notification message; the domain name resolution result includes the second IP address list obtained after updating the first IP address list.
  • the IP address updating device 80 further includes: a determining unit 84, configured to determine the first domain name corresponding to the first IP address list based on the notification message;
  • the sending unit 81 is further configured to send a domain name resolution request to a domain name resolution server; the domain name resolution request includes the first domain name;
  • the receiving unit 82 is also configured to receive the domain name resolution result sent by the domain name resolution server.
  • the first IP address list includes: M IP addresses and M weight parameters one-to-one corresponding to the M IP addresses, and M is an integer greater than or equal to 1;
  • the IP address updating device 80 further includes: a determining unit 84, which is further configured to determine the IP address of the first server from the M IP addresses based on the M weight parameters;
  • the sending unit 81 is further configured to send a first access request to the gateway based on the IP address of the first server.
  • the domain name resolution result further includes a first signature
  • the IP address update device 80 further includes: a verification unit 85, configured to determine the public key corresponding to the domain name resolution server; and decrypt the first signature using the public key to obtain The first hash value; the hash value of the second IP address list is calculated to obtain the second hash value; if the first hash value and the second hash value are the same, it is determined that the verification of the domain name resolution result is successful.
  • the device 80 for updating the IP address further includes: an updating unit 86, configured to update the first mapping stored in the terminal to the second mapping; wherein, the first mapping includes: the first domain name and the first IP The mapping between the address lists, the second mapping includes: the mapping between the first domain name and the second IP address list.
  • the second IP address list includes: N IP addresses and N weight parameters one-to-one corresponding to the N IP addresses, where N is an integer greater than or equal to 1;
  • the determining unit 84 is further configured to determine the IP address of the second server from the N IP addresses based on the N weight parameters;
  • the sending unit 81 is further configured to send a second access request to the gateway based on the IP address of the second server;
  • the receiving unit 82 is further configured to receive the second access result sent by the gateway.
  • the communication protocol between the terminal and the gateway is a gateway protocol
  • the communication protocol between the terminal and the domain name resolution server is a hypertext transfer protocol
  • the sending unit 81 is further configured to send an update complete message to the gateway, where the update complete message is used to instruct the terminal to complete the update of the stored first IP address list.
  • FIG. 9 is a schematic diagram of the composition structure of another device for updating an IP address provided by an embodiment of the application.
  • the device 90 for updating an IP address can be applied to a gateway, and the device 90 for updating an IP address includes:
  • the receiving unit 91 is configured to receive a notification message sent by the domain name resolution server; the notification message is used to indicate that the first IP address list is updated, and is used for the terminal to obtain the second IP address list obtained after the first IP address list is updated from the domain name resolution server. IP address list;
  • the receiving unit 91 is further configured to receive the first access request sent by the terminal;
  • the sending unit 92 is configured to send a notification message and the first access result to the terminal.
  • the receiving unit 91 is further configured to receive the first access request sent by the terminal based on the IP address of the first server;
  • the sending unit 92 is further configured to send a first access request to the first server, and receive the first access result sent by the first server.
  • the receiving unit 91 is further configured to receive an update completion message sent by the terminal.
  • the update completion message is used to instruct the terminal to complete the update of the stored first IP address list; based on the update completion message, the terminal is based on the After the second access request sent by the IP address of the second server, the second access result is sent to the terminal.
  • FIG. 10 is a schematic diagram of the composition structure of another device for updating an IP address provided by an embodiment of the application.
  • the device 100 for updating an IP address can be applied to a domain name resolution server, and the device 100 for updating an IP address includes:
  • the sending unit 101 is configured to send a notification message to the gateway; the notification message is used to indicate that the first IP address list is updated, and is used for the terminal to obtain the first IP address list from the domain name resolution server after receiving the notification message sent by the gateway The updated second IP address list.
  • the device 100 for updating the IP address further includes: a receiving unit 102, configured to receive a domain name resolution request sent by the terminal; the domain name resolution request includes the first domain name;
  • the sending unit 101 is further configured to send a domain name resolution result to the terminal, where the domain name resolution result includes the second IP address list.
  • the device 100 for updating the IP address further includes: an encryption unit 103, configured to perform a hash calculation on the second IP address list to obtain a first hash value; encrypt the first hash value with a private key, Obtain the first signature; determine the domain name resolution result based on the first signature and the second IP address list.
  • an encryption unit 103 configured to perform a hash calculation on the second IP address list to obtain a first hash value; encrypt the first hash value with a private key, Obtain the first signature; determine the domain name resolution result based on the first signature and the second IP address list.
  • the second IP address list includes: N IP addresses and N weight parameters one-to-one corresponding to the N IP addresses, and N is an integer greater than or equal to 1.
  • IP address update method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer readable storage medium.
  • the computer software products are stored in a storage medium and include several instructions to enable A terminal, gateway, or domain name resolution server executes all or part of the methods in the various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read only memory (Read Only Memory, ROM), magnetic disk or optical disk and other media that can store program codes. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.
  • FIG. 11 is a schematic diagram of the composition structure of an IP address updating device provided by an embodiment of the application.
  • the IP address updating device 110 may be the aforementioned terminal, gateway, or domain name resolution server.
  • the hardware entity of the device 110 for updating the IP address includes a processor 111 and a memory 112.
  • the memory 112 stores a computer program that can run on the processor 111. A step of.
  • the memory 112 stores computer programs that can run on the processor.
  • the memory 112 is configured to store instructions and applications executable by the processor 111. It can also cache the processor 111 and each module in the IP address update device 110 to be processed or
  • the processed data (for example, image data, audio data, voice communication data, and video communication data) can be implemented by flash memory (FLASH) or random access memory (RAM).
  • the processor 111 executes the program, the steps of the method for updating any one of the above IP addresses are implemented.
  • the processor 111 generally controls the overall operation of the IP address updating device 110.
  • the embodiment of the present application provides a computer storage medium, and the computer storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the method executed by the terminal in the foregoing method.
  • the embodiment of the present application provides a computer storage medium, and the computer storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the method executed by the gateway in the foregoing method.
  • the embodiment of the present application provides a computer storage medium.
  • the computer storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the method executed by the domain name resolution server in the above method. .
  • FIG. 12 is a schematic structural diagram of a chip provided by an embodiment of the present application.
  • the chip 120 shown in FIG. 12 includes a processor 121, and the processor 121 can call and run a computer program from the memory to implement the steps of the method executed by the terminal, gateway, or domain name resolution server in the embodiment of the present application.
  • the chip 120 may further include a memory 122.
  • the processor 121 may call and run a computer program from the memory 122 to implement the steps of the method executed by the terminal, gateway, or domain name resolution server in the embodiment of the present application.
  • the memory 122 may be a separate device independent of the processor 121, or may be integrated in the processor 121.
  • the chip 120 may further include an input interface 123.
  • the processor 121 can control the input interface 123 to communicate with other devices or chips, and specifically, can obtain information or data sent by other devices or chips.
  • the chip 120 may further include an output interface 124.
  • the processor 121 can control the output interface 124 to communicate with other devices or chips, and specifically, can output information or data to other devices or chips.
  • the chip can be applied to the network device in the embodiments of the present application, and the chip can implement the corresponding processes implemented by the network device in the various methods of the embodiments of the present application. For the sake of brevity, details are not described herein again.
  • the chip can be applied to the terminal, gateway, or domain name resolution server in the embodiments of this application, and the chip can implement the corresponding processes implemented by the terminal, gateway, or domain name resolution server in the various methods of the embodiments of this application. , For the sake of brevity, I won’t repeat it here.
  • the chip mentioned in the embodiment of the present application may also be referred to as a system-level chip, a system-on-chip, a system-on-chip, or a system-on-chip, etc.
  • the embodiments of the present application provide a computer program product.
  • the computer program product includes a computer storage medium, and the computer storage medium stores computer program code.
  • the computer program code includes instructions that can be executed by at least one processor. The steps of the method executed by the terminal, gateway or domain name resolution server in the above method are implemented.
  • the computer program product can be applied to the terminal, gateway, or domain name resolution server in the embodiments of the present application, and the computer program instructions cause the computer to execute each method in the embodiments of the present application by the terminal, gateway, or domain name resolution server.
  • the corresponding process implemented by the server will not be repeated here.
  • the processor of the embodiment of the present application may be an integrated circuit chip with signal processing capability.
  • the steps of the foregoing method embodiments may be completed by hardware integrated logic circuits in the processor or instructions in the form of software.
  • the above-mentioned processor may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (ASIC), a ready-made programmable gate array (Field Programmable Gate Array, FPGA) or other Programming logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • DSP Digital Signal Processor
  • ASIC application specific integrated circuit
  • FPGA Field Programmable Gate Array
  • the methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a mature storage medium in the field, such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers.
  • the storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
  • the memory in the embodiments 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 can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), and electrically available Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory.
  • the volatile memory may be a random access memory (Random Access Memory, RAM), which is used as an external cache.
  • RAM random access memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • DRAM synchronous dynamic random access memory
  • DDR SDRAM Double Data Rate Synchronous Dynamic Random Access Memory
  • Enhanced SDRAM, ESDRAM Enhanced Synchronous Dynamic Random Access Memory
  • Synchronous Link Dynamic Random Access Memory Synchronous Link Dynamic Random Access Memory
  • DR RAM Direct Rambus RAM
  • the memory in the embodiment of the present application may also be static random access memory (static RAM, SRAM), dynamic random access memory (dynamic RAM, DRAM), Synchronous dynamic random access memory (synchronous DRAM, 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 connection Dynamic random access memory (synch link DRAM, SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DR RAM) and so on. That is to say, the memory in the embodiments of the present application is intended to include, but is not limited to, these and any other suitable types of memory.
  • the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not correspond to the embodiments of the present application.
  • the implementation process constitutes any limitation.
  • the serial numbers of the foregoing embodiments of the present application are only for description, and do not represent the superiority or inferiority of the embodiments.
  • the terminal, gateway, or domain name resolution server executes any step in the embodiments of the present application, and the processor of the terminal, gateway, or domain name resolution server may execute the step.
  • the embodiment of the present application does not limit the sequence in which the terminal, gateway, or domain name resolution server executes the following steps.
  • the methods used to process data in different embodiments may be the same method or different methods.
  • any step in the embodiment of this application can be independently executed by the terminal, gateway or domain name resolution server, that is, when the terminal, gateway or domain name resolution server executes any of the steps in the above embodiments, it may not rely on For the execution of other steps.
  • the disclosed device and method may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the units is only a logical function division, and there may be other divisions in actual implementation, such as: multiple units or components can be combined, or It can be integrated into another system, or some features can be ignored or not implemented.
  • the coupling, or direct coupling, or communication connection between the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms. of.
  • the units described above as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the embodiments of the present application can be all integrated into one processing unit, or each unit can be individually used as a unit, or two or more units can be integrated into one unit; the above-mentioned integration
  • the unit can be implemented in the form of hardware, or in the form of hardware plus software functional units.
  • the foregoing program can be stored in a computer readable storage medium.
  • the execution includes The steps of the foregoing method embodiment; and the foregoing storage medium includes: various media that can store program codes, such as a mobile storage device, a read only memory (Read Only Memory, ROM), a magnetic disk, or an optical disk.
  • ROM Read Only Memory
  • the aforementioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it may also be stored in a computer readable storage medium.
  • the computer software products are stored in a storage medium and include several instructions to enable A computer device (which may be a personal computer, a server, or a network device, etc.) executes all or part of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: removable storage devices, ROMs, magnetic disks, or optical disks and other media that can store program codes.
  • the terminal, gateway, or domain name resolution server executes A and executes B. It can be that the terminal, gateway or domain name resolution server executes A first and then executes B, or the terminal, gateway, or domain name resolution server executes B first, and then executes A, or the terminal, gateway, or domain name resolution server executes A while executing B.
  • the embodiments of the application provide an IP address update method, device, device, and computer storage medium.
  • the terminal can obtain the updated first IP address list through a notification message.
  • the obtained second IP address list can thereby improve the access success rate of the terminal.

Abstract

Disclosed in the embodiments of the present application are an IP address updating method, apparatus, and device, and a computer storage medium. The IP address updating method comprises: a terminal transmits a first access request to a gateway; receive a notification message and a first access result transmitted by the gateway, wherein the notification message is used for indicating that a first IP address list is updated; according to the notification message, obtain a domain name resolution result from a domain name resolution server, wherein the domain name resolution result comprises a second IP address list obtained after updating the first IP address list.

Description

一种IP地址的更新方法、装置、设备及计算机存储介质Method, device, equipment and computer storage medium for updating IP address 技术领域Technical field
本申请实施例涉及但不限于网络技术,尤其涉及一种网际协议(Internet Protocol,IP)地址的更新方法、装置、设备及计算机存储介质。The embodiments of the present application relate to, but are not limited to, network technology, and in particular to an Internet Protocol (IP) address update method, device, device, and computer storage medium.
背景技术Background technique
目前的域名解析服务器在使用时,为了避免终端对域名解析服务器的重复请求,终端都会在得到IP地址列表后,做出相应的缓存并设置固定的缓存时间,只有缓存时间到达后,终端才可以向域名解析服务器重新请求IP地址列表。When the current domain name resolution server is in use, in order to avoid repeated requests from the terminal to the domain name resolution server, the terminal will make a corresponding cache after obtaining the IP address list and set a fixed cache time. The terminal can only be used after the cache time is reached. Re-request the IP address list from the domain name resolution server.
然而,在IP地址列表的缓存期间,如果服务器中的IP地址列表发生更新,但是终端还是用内部存储的未更新的IP地址列表去进行访问,这样就会导致终端的访问失败率高。However, during the caching of the IP address list, if the IP address list in the server is updated, but the terminal still uses the internally stored unupdated IP address list for access, this will result in a high access failure rate of the terminal.
发明内容Summary of the invention
本申请实施例提供一种IP地址的更新方法、装置、设备及计算机存储介质。The embodiments of the present application provide a method, device, equipment, and computer storage medium for updating an IP address.
第一方面,提供一种IP地址的更新方法,包括:In the first aspect, a method for updating an IP address is provided, including:
终端向网关发送第一访问请求;The terminal sends the first access request to the gateway;
接收网关发送的通知消息和第一访问结果;所述通知消息用于指示第一IP地址列表发生更新;Receiving a notification message and a first access result sent by the gateway; the notification message is used to indicate that the first IP address list is updated;
基于所述通知消息,从域名解析服务器中获得域名解析结果;所述域名解析结果包括对所述第一IP地址列表更新后得到的第二IP地址列表。Based on the notification message, a domain name resolution result is obtained from a domain name resolution server; the domain name resolution result includes a second IP address list obtained after updating the first IP address list.
第二方面,提供一种IP地址的更新方法,包括:In the second aspect, a method for updating an IP address is provided, including:
网关接收域名解析服务器发送的通知消息;所述通知消息用于指示第一IP地址列表发生更新,并用于终端从所述域名解析服务器中,获取对所述第一IP地址列表更新后得到的第二IP地址列表;The gateway receives the notification message sent by the domain name resolution server; the notification message is used to indicate that the first IP address list is updated, and is used for the terminal to obtain the first IP address list obtained after updating the first IP address list from the domain name resolution server. 2. List of IP addresses;
接收所述终端发送的第一访问请求;Receiving the first access request sent by the terminal;
向所述终端发送通知消息和第一访问结果。Send a notification message and the first access result to the terminal.
第三方面,提供一种IP地址的更新方法,包括:In a third aspect, a method for updating an IP address is provided, including:
域名解析服务器向网关发送通知消息;所述通知消息用于指示第一IP地址列表发生更新,并用于终端接收到网关发送的所述通知消息后,从所述域名解析服务器中,获取对所述第一IP地址列表更新后得到的第二IP地址列表。The domain name resolution server sends a notification message to the gateway; the notification message is used to indicate that the first IP address list has been updated, and is used by the terminal to obtain information from the domain name resolution server after receiving the notification message sent by the gateway. The second IP address list obtained after the first IP address list is updated.
第四方面,提供一种IP地址的更新装置,包括:In a fourth aspect, an IP address updating device is provided, including:
发送单元,用于向网关发送第一访问请求;The sending unit is used to send the first access request to the gateway;
接收单元,用于接收网关发送的通知消息和第一访问结果;所述通知消息用于指示第一IP地址列表发生更新;A receiving unit, configured to receive a notification message and a first access result sent by the gateway; the notification message is used to indicate that the first IP address list is updated;
获得单元,用于基于所述通知消息,从域名解析服务器中获得域名解析结果;所述域名解析结果包括对所述第一IP地址列表更新后得到的第二IP地址列表。The obtaining unit is configured to obtain a domain name resolution result from a domain name resolution server based on the notification message; the domain name resolution result includes a second IP address list obtained after updating the first IP address list.
第五方面,提供一种IP地址的更新装置,包括:In a fifth aspect, a device for updating an IP address is provided, including:
接收单元,用于接收域名解析服务器发送的通知消息;所述通知消息用于指示第一IP地址列表发生更新,并用于终端从所述域名解析服务器中,获取对所述第一IP地址列表更新后得到的第二IP地址列表;The receiving unit is configured to receive a notification message sent by a domain name resolution server; the notification message is used to indicate that the first IP address list is updated, and is used for the terminal to obtain updates to the first IP address list from the domain name resolution server The second IP address list obtained afterwards;
所述接收单元,还用于接收所述终端发送的第一访问请求;The receiving unit is further configured to receive the first access request sent by the terminal;
发送单元,用于向所述终端发送通知消息和第一访问结果。The sending unit is configured to send a notification message and the first access result to the terminal.
第六方面,提供一种IP地址的更新装置,包括:In a sixth aspect, an IP address updating device is provided, including:
发送单元,用于向网关发送通知消息;所述通知消息用于指示第一IP地址列表发生更新,并用于终端接收到网关发送的所述通知消息后,从所述域名解析服务器中,获取对所述第一IP地址列表更新后得到的第二IP地址列表。The sending unit is configured to send a notification message to the gateway; the notification message is used to indicate that the first IP address list is updated, and is used for the terminal to obtain the response from the domain name resolution server after receiving the notification message sent by the gateway The second IP address list obtained after the first IP address list is updated.
第七方面,提供一种IP地址的更新设备,包括:存储器和处理器,In a seventh aspect, an IP address update device is provided, including: a memory and a processor,
所述存储器存储有可在处理器上运行的计算机程序,The memory stores a computer program that can run on the processor,
所述处理器执行所述程序时实现上述方法中的步骤。When the processor executes the program, the steps in the above method are implemented.
第八方面,提供一种计算机存储介质,所述计算机存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现上述方法中的步骤。In an eighth aspect, a computer storage medium is provided, the computer storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in the foregoing method.
第九方面,提供一种芯片,包括:处理器,用于从存储器中调用并运行计算机程序,使得安装有所述芯片的设备执行上述方法中的步骤。In a ninth aspect, a chip is provided, including a processor, configured to call and run a computer program from a memory, so that a device installed with the chip executes the steps in the above method.
第十方面,提供一种计算机程序产品,所述计算机程序产品包括计算机存储介质,所述计算机存储介质存储计算机程序代码,所述计算机程序代码包括能够由至少一个处理器执行的指令,当所述指令由所述至少一个处理器执行时实现上述方法中的步骤。In a tenth aspect, a computer program product is provided. The computer program product includes a computer storage medium, and the computer storage medium stores computer program code. The computer program code includes instructions that can be executed by at least one processor. When the instructions are executed by the at least one processor, the steps in the above methods are implemented.
本申请实施例中,终端向网关发送第一访问请求;接收网关发送的通知消息和第一访问结果;所述通知消息用于指示第一IP地址列表发生更新;基于所述通知消息,从域名解析服务器中获得域名解析结果;所述域名解析结果包括对所述第一IP地址列表更新后得到的第二IP地址列表。如此,在终端接收到通知消息之后,终端就确定第一IP地址列表发生更新,接着从域名解析服务器中获得对第一IP地址列表更新后得到的第二IP地址列表,从而终端能够及时地得到第二IP地址列表,进而能够提高终端的访问成功率。In the embodiment of this application, the terminal sends the first access request to the gateway; receives the notification message and the first access result sent by the gateway; the notification message is used to indicate that the first IP address list is updated; based on the notification message, from the domain name The domain name resolution result is obtained from the resolution server; the domain name resolution result includes a second IP address list obtained after updating the first IP address list. In this way, after the terminal receives the notification message, the terminal determines that the first IP address list is updated, and then obtains the second IP address list obtained after updating the first IP address list from the domain name resolution server, so that the terminal can obtain it in time The second IP address list can further improve the access success rate of the terminal.
附图说明Description of the drawings
图1为本申请实施例提供的一种网络架构的结构示意图;FIG. 1 is a schematic structural diagram of a network architecture provided by an embodiment of this application;
图2为相关技术提供的一种IP地址的更新方法的流程示意图;FIG. 2 is a schematic flowchart of an IP address update method provided by related technologies;
图3为本申请实施例提供的一种IP地址的更新方法的实现流程示意图;FIG. 3 is a schematic diagram of an implementation process of an IP address updating method provided by an embodiment of the application;
图4为本申请实施例提供的另一种IP地址的更新方法的实现流程示意图;4 is a schematic diagram of the implementation process of another method for updating an IP address provided by an embodiment of the application;
图5为本申请实施例提供的又一种IP地址的更新方法的实现流程示意图;FIG. 5 is a schematic diagram of the implementation process of another method for updating an IP address provided by an embodiment of the application;
图6为本申请实施例提供的一种终端获得第二IP地址列表的流程示意图;FIG. 6 is a schematic flowchart of a terminal obtaining a second IP address list according to an embodiment of the application;
图7为本申请实施例提供的再一种IP地址的更新方法的实现流程示意图;FIG. 7 is a schematic diagram of the implementation process of another method for updating an IP address provided by an embodiment of the application;
图8为本申请实施例提供的一种IP地址的更新装置的组成结构示意图;FIG. 8 is a schematic diagram of the composition structure of an IP address updating device provided by an embodiment of this application;
图9为本申请实施例提供的另一种IP地址的更新装置的组成结构示意图;FIG. 9 is a schematic diagram of the composition structure of another device for updating an IP address provided by an embodiment of the application;
图10为本申请实施例提供的又一种IP地址的更新装置的组成结构示意图;FIG. 10 is a schematic diagram of the composition structure of another device for updating an IP address provided by an embodiment of this application;
图11为本申请实施例提供的一种IP地址的更新设备的组成结构示意图;FIG. 11 is a schematic diagram of the composition structure of an IP address updating device provided by an embodiment of the application;
图12为本申请实施例提供的一种芯片的结构示意图。FIG. 12 is a schematic structural diagram of a chip provided by an embodiment of the application.
具体实施方式Detailed ways
下面将通过实施例并结合附图具体地对本申请的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。Hereinafter, the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems will be described in detail through the embodiments and the accompanying drawings. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
需要说明的是:在本申请实例中,“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that in the examples of this application, "first", "second", etc. are used to distinguish similar objects, and not necessarily used to describe a specific sequence or sequence.
另外,本申请实施例所记载的技术方案之间,在不冲突的情况下,可以任意组合。In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.
图1为本申请实施例提供的一种网络架构的结构示意图,如图1所示,该网络架构10包括终端11、网关12、域名解析服务器13、第一服务器14以及第二服务器15。FIG. 1 is a schematic structural diagram of a network architecture provided by an embodiment of the application. As shown in FIG. 1, the network architecture 10 includes a terminal 11, a gateway 12, a domain name resolution server 13, a first server 14 and a second server 15.
本申请实施例中的终端11可以为手机。在其它实施例中,终端11可以是服务器、平板电脑、笔记本电脑、掌上电脑、个人数字助理、便捷式媒体播放器、智能音箱、导航装置、显示设备、智能手环等可穿戴设备、虚拟现实(Virtual Reality,VR)设备、增强现实(Augmented Reality,AR)设备、计步器、数字TV或台式计算机等。The terminal 11 in the embodiment of the present application may be a mobile phone. In other embodiments, the terminal 11 may be a server, a tablet computer, a notebook computer, a handheld computer, a personal digital assistant, a portable media player, a smart speaker, a navigation device, a display device, a smart bracelet and other wearable devices, virtual reality (Virtual Reality, VR) equipment, Augmented Reality (AR) equipment, pedometer, digital TV or desktop computer, etc.
本申请实施例中的网关12可以是服务器网关或者代理服务器。The gateway 12 in the embodiment of the present application may be a server gateway or a proxy server.
本申请实施例中的域名解析服务器13可以为超文本传输协议域名系统(HyperText Transfer Protocol Domain Name System,HTTPDNS)服务器或者本地域名系统(LocalDNS)服务器。其中HTTPDNS基于超文本传输协议(Hyper Text Transfer Protocol,HTTP)协议的域名系统,使用HTTP协议进行域名解析,域名解析请求直接发送到HTTPDNS服务器,从而绕过运营商的本地域名系统LocalDNS。The domain name resolution server 13 in the embodiment of the present application may be a HyperText Transfer Protocol Domain Name System (HTTPDNS) server or a local domain name system (LocalDNS) server. Among them, HTTPDNS is based on the domain name system of the Hypertext Transfer Protocol (Hyper Text Transfer Protocol, HTTP) protocol. The HTTP protocol is used for domain name resolution, and the domain name resolution request is sent directly to the HTTPDNS server, thereby bypassing the operator's local domain name system LocalDNS.
HTTPDNS(基于HTTP的域名系统)是为移动客户端量身定做的基于HTTP和域名解析的流量调度解决方案,用于解决现有技术LocalDNS(本地域名系统)解析异常以及流量调度不准等问题。HTTPDNS的原理主要通过以下方式实现,终端访问HTTPDNS接口,获取业务在域名配置管理系统上配置的IP地址,向获取的IP地址发送HTTP请求。HTTPDNS (HTTP-based Domain Name System) is a traffic scheduling solution based on HTTP and domain name resolution tailored for mobile clients. It is used to solve the problems of abnormal local DNS (local domain name system) resolution and inaccurate traffic scheduling in the prior art. The principle of HTTPDNS is mainly implemented in the following way. The terminal accesses the HTTPDNS interface, obtains the IP address configured on the domain name configuration management system for the business, and sends an HTTP request to the obtained IP address.
第一服务器14可以是业务服务器或者反向代理服务器,第二服务器15可以是业务服务器或者反向代理服务器。The first server 14 may be a business server or a reverse proxy server, and the second server 15 may be a business server or a reverse proxy server.
其中,终端11可以与网关12连接,终端11可以向网关12发送访问请求,访问请求可以是:与第一服务器14的IP地址对应的第一访问请求,或者,与第二服务器15的IP地址对应的第二访问请求,在网关12接收到终端11发送的第一访问请求时,网关向第一服务器14转发第一访问请求,第一服务器14响应于第一访问请求,确定与第一访问请求对应的第一访问结果,并向网关12发送该第一访问结果,接着网关12可以向终端发送第一访问结果。The terminal 11 can be connected to the gateway 12, and the terminal 11 can send an access request to the gateway 12. The access request can be: the first access request corresponding to the IP address of the first server 14, or the IP address of the second server 15. Corresponding to the second access request, when the gateway 12 receives the first access request sent by the terminal 11, the gateway forwards the first access request to the first server 14. The first server 14 responds to the first access request and determines that the first access request is The corresponding first access result is requested, and the first access result is sent to the gateway 12, and then the gateway 12 may send the first access result to the terminal.
终端11还可以与域名解析服务器13连接,终端11可以通过域名解析服务器13获得域名对应的IP地址列表,终端11中也可以保存多个IP地址列表。The terminal 11 may also be connected to the domain name resolution server 13. The terminal 11 may obtain the IP address list corresponding to the domain name through the domain name resolution server 13, and the terminal 11 may also store multiple IP address lists.
网关12还可以与域名解析服务器13连接,从而进行相应地信令交互。The gateway 12 can also be connected with the domain name resolution server 13 to perform corresponding signaling interaction.
图2为相关技术提供的一种IP地址的更新方法的流程示意图,如图2所示,该IP地址的更新方法包括:Fig. 2 is a schematic flowchart of an IP address update method provided by related technologies. As shown in Fig. 2, the IP address update method includes:
S201、终端向域名解析服务器发送域名解析请求;域名解析请求中包括目标域名;服务器接收终端发送的域名解析请求。S201. The terminal sends a domain name resolution request to a domain name resolution server; the domain name resolution request includes the target domain name; the server receives the domain name resolution request sent by the terminal.
S203、域名解析服务器响应域名解析请求,并基于域名解析请求中的目标域名,确定与该目标域名对应的目标IP地址列表。S203. The domain name resolution server responds to the domain name resolution request, and based on the target domain name in the domain name resolution request, determines a target IP address list corresponding to the target domain name.
S205、域名解析服务器向终端发送目标IP地址列表,终端接收目标IP地址列表。S205: The domain name resolution server sends the target IP address list to the terminal, and the terminal receives the target IP address list.
S207、终端启动定时器,并确定到定时器超时。S207. The terminal starts a timer, and determines that the timer expires.
其中,定时器的运行时长可以是终端自己预设或者域名解析服务器配置,定时器的运行时长可以是1天、7天或14天等。Among them, the running time of the timer can be preset by the terminal or configured by the domain name resolution server, and the running time of the timer can be 1 day, 7 days, or 14 days, etc.
S209、在终端的定时器的运行过程中,域名解析服务器中的目标IP地址列表进行了更新。S209. During the operation of the timer of the terminal, the target IP address list in the domain name resolution server is updated.
S211、终端再次向服务器发送域名解析请求;服务器接收终端发送的域名解析请求;域名解析请求中包括目标域名。S211. The terminal sends a domain name resolution request to the server again; the server receives the domain name resolution request sent by the terminal; the domain name resolution request includes the target domain name.
在S211中,终端再次发送域名解析请求的时机为定时器超时的时机。In S211, the time when the terminal resends the domain name resolution request is the time when the timer expires.
S213、域名解析服务器响应域名解析请求,并基于域名解析请求中的目标域名,确定与该目标域名对应的更新后的目标IP地址列表。S213. The domain name resolution server responds to the domain name resolution request, and based on the target domain name in the domain name resolution request, determines an updated target IP address list corresponding to the target domain name.
S215、域名解析服务器向终端发送更新后的目标IP地址列表,终端接收更新后的目标IP地址列表。S215. The domain name resolution server sends the updated target IP address list to the terminal, and the terminal receives the updated target IP address list.
在相关技术中,终端在定时器的运行期间内,如果域名解析服务器中的目标IP地址列表进行了更新,但是终端中的目标IP地址列表还没有更新,这样,终端还是通过目标IP地址列表来进行访问,会导致终端的访问的失败率高。In the related art, if the target IP address list in the domain name resolution server is updated during the operation of the timer, but the target IP address list in the terminal has not been updated yet, the terminal still uses the target IP address list. Performing access will result in a high failure rate of terminal access.
图3为本申请实施例提供的一种IP地址的更新方法的实现流程示意图,如图3所示,该方法应用于终端,该方法包括:FIG. 3 is a schematic diagram of the implementation process of an IP address update method provided by an embodiment of the application. As shown in FIG. 3, the method is applied to a terminal, and the method includes:
S301、终端向网关发送第一访问请求。S301: The terminal sends a first access request to the gateway.
第一访问请求可以用于请求与第一访问请求对应的第一访问结果,第一访问结果中包括终端需要访问的资源。The first access request may be used to request the first access result corresponding to the first access request, and the first access result includes the resource that the terminal needs to access.
终端中可以保存有多个域名与IP地址列表之间的映射,例如,终端中可以保存有域名A、域名B和域名C等,并保存有域名A与第一个IP地址列表之间的映射,域名B与第二个IP地址列表之间的映射,和域名C与第三个IP地址列表之间的映射。每个IP地址列表中可以包括至少一个IP地址。The terminal can store multiple mappings between domain names and IP address lists. For example, the terminal can store domain name A, domain name B, domain name C, etc., and store the mapping between domain name A and the first IP address list , The mapping between domain name B and the second IP address list, and the mapping between domain name C and the third IP address list. Each IP address list can include at least one IP address.
在终端需要访问域名B时,终端首先可以在内部查询是否存在域名B,在查询到后,通过第二IP地址列表中的IP地址来进行访问。然而,在终端需要访问域名G时,终端查询内部存储的域名并未找到域名G,这时,终端可以向域名解析服务器发送包括域名G的域名解析请求,域名解析服务器在接收到域名解析请求后,向终端发送与域名G对应的IP地址列表,从而终端可以通过域名G对应的IP地址列表来进行访问。进一步,终端可以将域名G和与域名G对应的IP地址列表存储至内部存储(例如SDK)中,从而在下次访问域名G的时候,可以通过查询内部存储得到与域名G对应的IP地址列表。When the terminal needs to access the domain name B, the terminal can first inquire whether the domain name B exists internally, and after the query is found, it can access through the IP address in the second IP address list. However, when the terminal needs to access the domain name G, the terminal queries the internally stored domain name but does not find the domain name G. At this time, the terminal can send a domain name resolution request including the domain name G to the domain name resolution server. The domain name resolution server receives the domain name resolution request. , Send the IP address list corresponding to the domain name G to the terminal, so that the terminal can access through the IP address list corresponding to the domain name G. Further, the terminal may store the domain name G and the IP address list corresponding to the domain name G in internal storage (such as SDK), so that when accessing the domain name G next time, it can obtain the IP address list corresponding to the domain name G by querying the internal storage.
在本申请实施例中,终端可以确定待访问的第一服务器的IP地址,基于第一服务器的IP地址向网关发送第一访问请求。例如,在S301之前,终端可以执行从内部存储中获得第一IP地址列表,并从第一IP地址列表中确定第一服务器的IP地址,接着利用第一服务器的IP地址进行访问,即向网关发送访问请求,以使网关向第一服务器转发第一访问请求,从而建立终端与第一服务器之间的连接。能够理解的是,第一IP地址列表中可以包括第一服务器的IP地址。其中,第一IP地址列表可以保存在终端的软件开发工具包(Software Development Kit,SDK)中。In the embodiment of the present application, the terminal may determine the IP address of the first server to be accessed, and send the first access request to the gateway based on the IP address of the first server. For example, before S301, the terminal may obtain the first IP address list from internal storage, determine the IP address of the first server from the first IP address list, and then use the IP address of the first server to access, that is, to the gateway Sending the access request, so that the gateway forwards the first access request to the first server, thereby establishing a connection between the terminal and the first server. It can be understood that the first IP address list may include the IP address of the first server. Among them, the first IP address list may be stored in a software development kit (Software Development Kit, SDK) of the terminal.
S303、终端接收网关发送的通知消息和第一访问结果;通知消息用于指示第一IP地址列表发生更新。S303. The terminal receives the notification message and the first access result sent by the gateway; the notification message is used to indicate that the first IP address list is updated.
在网关接收到第一访问请求后,可以将第一访问请求转发至第一服务器,并接收第一服务器在响应第一访问请求后反馈的第一访问结果。After receiving the first access request, the gateway may forward the first access request to the first server, and receive the first access result fed back by the first server after responding to the first access request.
在本申请实施例中,通知消息用于终端从域名解析服务器中,获取对第一IP地址列表更新后得到的第二IP地址列表。In the embodiment of the present application, the notification message is used by the terminal to obtain the second IP address list obtained after updating the first IP address list from the domain name resolution server.
在一种实施方式中,网关可以将访问结果和通知消息集成在一个信令消息中,并将该信令消息发送给终端。在另一种实施方式中,网关可以通过两个信令消息来分别发送访问结果和通知消息。In an implementation manner, the gateway may integrate the access result and the notification message into one signaling message, and send the signaling message to the terminal. In another implementation manner, the gateway may send the access result and the notification message respectively through two signaling messages.
第一IP地址列表可以是与网关对应的IP地址列表,例如,与网关对应的IP地址列表可以是一个IP地址列表,也可以是多个IP地址列表,第一IP地址列表可以是与网关对应的多个IP地址列表中的一个IP地址列表。The first IP address list may be an IP address list corresponding to the gateway. For example, the IP address list corresponding to the gateway may be one IP address list or multiple IP address lists. The first IP address list may correspond to the gateway. A list of IP addresses in multiple IP address lists.
在一种实施例中,第一IP地址列表中可以包括第一服务器的IP地址,从而终端在接收到通知消息后,可以通过第一服务器的IP地址确定第一IP地址列表。In an embodiment, the first IP address list may include the IP address of the first server, so that after receiving the notification message, the terminal may determine the first IP address list based on the IP address of the first server.
在另一种实施方式中,第一IP地址列表中可以不包括第一服务器的IP地址,但是通知消息中可以包括第一域名,从而终端在接收到通知消息后,可以根据第一域名确定到第一IP地址列表。In another implementation manner, the first IP address list may not include the IP address of the first server, but the notification message may include the first domain name, so that after receiving the notification message, the terminal can determine the first domain name according to the first domain name. The first IP address list.
S305、终端基于通知消息,从域名解析服务器中获得域名解析结果;域名解析结果包括对第一IP地址列表更新后得到的第二IP地址列表。S305. The terminal obtains a domain name resolution result from the domain name resolution server based on the notification message; the domain name resolution result includes the second IP address list obtained after updating the first IP address list.
其中,域名解析结果中至少包括第二IP地址列表。第二IP地址列表中可以包括或者不包括第一服务器的IP地址。Wherein, the domain name resolution result includes at least the second IP address list. The second IP address list may or may not include the IP address of the first server.
本申请实施例中,在终端接收到通知消息之后,终端就确定第一IP地址列表发生更新,接着从域名解析服务器中获得对第一IP地址列表更新后得到的第二IP地址列表,从而终端能够及时地得到第二IP地址列表,进而能够提高终端的访问成功率。In the embodiment of the present application, after the terminal receives the notification message, the terminal determines that the first IP address list is updated, and then obtains the second IP address list obtained after updating the first IP address list from the domain name resolution server, so that the terminal The second IP address list can be obtained in time, and thus the access success rate of the terminal can be improved.
图4为本申请实施例提供的另一种IP地址的更新方法的实现流程示意图,如图4所示,该方法包括:FIG. 4 is a schematic diagram of the implementation process of another method for updating an IP address provided by an embodiment of the application. As shown in FIG. 4, the method includes:
S401、域名解析服务器向网关发送通知消息;网关接收域名解析服务器发送的通知消息。S401. The domain name resolution server sends a notification message to the gateway; the gateway receives the notification message sent by the domain name resolution server.
通知消息用于指示第一IP地址列表发生更新,并用于终端从域名解析服务器中,获取对第一IP地址列表更新后得到的第二IP地址列表。The notification message is used to indicate that the first IP address list is updated, and is used for the terminal to obtain the second IP address list obtained after updating the first IP address list from the domain name resolution server.
在一种实施方式中,通知消息中可以不包括第一IP地址列表对应的第一域名,终端可以通过第一服务器的IP地址来确定第一IP地址列表对应的第一域名。例如,由于终端的内部存储有第一域名与第一IP地址列表之间的映射,因此,终端可以基于第一服务器的IP地址和该映射,确定与第一IP地址列表对应的第一域名。在另一种实施方式中,通知消息中可以包括第一域名,从而终端可以解析通知消息得到第一域名。In an implementation manner, the notification message may not include the first domain name corresponding to the first IP address list, and the terminal may determine the first domain name corresponding to the first IP address list through the IP address of the first server. For example, since a mapping between the first domain name and the first IP address list is stored inside the terminal, the terminal may determine the first domain name corresponding to the first IP address list based on the IP address of the first server and the mapping. In another implementation manner, the notification message may include the first domain name, so that the terminal can parse the notification message to obtain the first domain name.
在一种实施方式中,域名解析服务器可以在确定到第一IP地址列表发生更新时,生成通知消息,并向网关发送该通知消息。第一IP地址列表发生更新可以是:向第一IP地址列表中增加IP地址、减少第一IP地址列表中的IP地址或者改变第一IP地址列表中的IP地址。In an implementation manner, the domain name resolution server may generate a notification message when determining that the first IP address list is updated, and send the notification message to the gateway. The update of the first IP address list may be: adding an IP address to the first IP address list, reducing the IP address in the first IP address list, or changing the IP address in the first IP address list.
在一种实例过程中,第一IP地址列表中可以包括M个IP地址,M个IP地址中每一个IP地址对应一个业务服务器,域名解析服务器可以接收与M个IP地址一一对应的M个业务服务器中,任一个业务服务器通过网关发送的第一IP地址列表中IP地址的改变消息,从而域名解析服务器基于该改变消息,更新第一IP地址列表。其中,M为大于或等于1的整数。在另一种实施过程中,域名解析服务器可以接收其它设备发送的IP地址的改变消息,基于改变消息更新第一IP地址列表。In an example process, the first IP address list may include M IP addresses, each of the M IP addresses corresponds to a service server, and the domain name resolution server may receive M corresponding to the M IP addresses. In the service server, any service server sends the change message of the IP address in the first IP address list through the gateway, so that the domain name resolution server updates the first IP address list based on the change message. Among them, M is an integer greater than or equal to 1. In another implementation process, the domain name resolution server may receive an IP address change message sent by another device, and update the first IP address list based on the change message.
在另一种实例过程中,第二IP地址列表中可以包括N个IP地址,N个IP地址中每一个IP地址对应一个业务服务器。其中,N为大于或等于1的整数。In another example process, the second IP address list may include N IP addresses, and each IP address of the N IP addresses corresponds to a service server. Wherein, N is an integer greater than or equal to 1.
S403、终端向网关发送第一访问请求;网关接收终端发送的第一访问请求。S403: The terminal sends a first access request to the gateway; the gateway receives the first access request sent by the terminal.
本申请实施例并不限定网关接收到通知消息和第一访问请求的先后顺序。The embodiment of the present application does not limit the sequence in which the gateway receives the notification message and the first access request.
S405、网关向终端发送通知消息和第一访问结果;终端接收网关发送的通知消息和 第一访问结果。S405. The gateway sends a notification message and the first access result to the terminal; the terminal receives the notification message and the first access result sent by the gateway.
应理解,网关在接收到通知消息,并在接收到终端发送的第一访问请求后,向终端发送通知消息和第一访问结果。第一访问结果对应于第一访问请求。It should be understood that the gateway sends the notification message and the first access result to the terminal after receiving the notification message and after receiving the first access request sent by the terminal. The first access result corresponds to the first access request.
S407、终端基于通知消息,从域名解析服务器中获得域名解析结果;域名解析结果包括对第一IP地址列表更新后得到的第二IP地址列表。S407. The terminal obtains a domain name resolution result from the domain name resolution server based on the notification message; the domain name resolution result includes the second IP address list obtained after updating the first IP address list.
在本申请实施例中,通过终端、网关和域名解析服务器之间的交互流程,使得域名解析服务器在确定到第一IP地址列表发生更新的情况下,就向网关发送通知消息,从而终端通过网关接收通知消息,并基于通知消息获取到对第一IP地址列表更新后得到的第二IP地址列表,进而能够实现在域名解析服务器中的第一IP地址发生更新后,终端也能及时得到更新的第二IP地址列表,从而能够提高终端的访问成功率。In the embodiment of this application, through the interaction process between the terminal, the gateway, and the domain name resolution server, the domain name resolution server sends a notification message to the gateway when it determines that the first IP address list is updated, so that the terminal passes through the gateway. Receive the notification message, and obtain the second IP address list obtained after updating the first IP address list based on the notification message, so that the terminal can also be updated in time after the first IP address in the domain name resolution server is updated The second IP address list can improve the access success rate of the terminal.
图5为本申请实施例提供的又一种IP地址的更新方法的实现流程示意图,如图5所示,该方法包括:FIG. 5 is a schematic diagram of the implementation process of another method for updating an IP address provided by an embodiment of the application. As shown in FIG. 5, the method includes:
S501、域名解析服务器向网关发送通知消息。S501: The domain name resolution server sends a notification message to the gateway.
通知消息用于指示第一IP地址列表发生更新,并用于终端接收到网关发送的通知消息后,从域名解析服务器中,获取对第一IP地址列表更新后得到的第二IP地址列表。The notification message is used to indicate that the first IP address list is updated, and is used for the terminal to obtain the second IP address list obtained after updating the first IP address list from the domain name resolution server after receiving the notification message sent by the gateway.
S503、终端从第一IP地址列表中,确定第一服务器的IP地址。S503. The terminal determines the IP address of the first server from the first IP address list.
终端与网关之间的通信协议可以为网关协议(Gateway to Gateway Protocol,GGP)或其它网络协议。The communication protocol between the terminal and the gateway may be a gateway protocol (Gateway to Gateway Protocol, GGP) or other network protocols.
终端的SDK中可以存储有多个域名中每一个域名与每一个IP地址列表之间的映射。终端可以基于用户对终端的操作,确定待访问的第一域名,从而在多个映射中确定第一域名对应的第一IP地址列表。例如,在第一域名为www.baidu.com的情况下,终端可以在SDK中存储的多个映射中确定与域名www.baidu.com对应的IP地址列表,从而可以基于得到的www.baidu.com对应的IP地址列表中的一个IP地址来进行访问。The SDK of the terminal can store the mapping between each of the multiple domain names and each IP address list. The terminal may determine the first domain name to be accessed based on the user's operation on the terminal, so as to determine the first IP address list corresponding to the first domain name among multiple mappings. For example, in the case where the first domain name is www.baidu.com, the terminal can determine the IP address list corresponding to the domain name www.baidu.com from multiple mappings stored in the SDK, which can be based on the obtained www.baidu. Visit an IP address in the IP address list corresponding to com.
在本申请实施方式中,在第一IP地址列表中,第一IP地址列表不仅包括至少一个IP地址,还可以包括与至少一个IP地址一一对应的至少一个权重参数,终端可以基于至少一个权重参数确定首先访问的IP地址,如果基于该首先访问的IP地址访问失败,基于至少一个权重参数确定第二个访问的IP地址,直到访问成功。终端可以基于权重随机算法或者随机权重算法,随机选择至少一个IP地址中的一个IP地址作为连接。In the embodiment of the present application, in the first IP address list, the first IP address list includes not only at least one IP address, but also at least one weight parameter corresponding to the at least one IP address. The terminal may be based on the at least one weight. The parameter determines the IP address to be accessed first. If the access fails based on the IP address that is accessed first, the IP address of the second access is determined based on at least one weight parameter until the access is successful. The terminal may randomly select one of the at least one IP address as a connection based on a weighted random algorithm or a random weighted algorithm.
S505、终端可以基于第一服务器的IP地址向网关发送第一访问请求。网关接收终端发送的第一访问请求。S505: The terminal may send a first access request to the gateway based on the IP address of the first server. The gateway receives the first access request sent by the terminal.
第一IP地址列表中可以包括:M个IP地址和与M个IP地址一一对应的M个权重参数,M为大于或等于1的整数;终端可以基于M个权重参数,从M个IP地址中,确定第一服务器的IP地址,进而可以基于第一服务器的IP地址向网关发送第一访问请求。The first IP address list may include: M IP addresses and M weight parameters one-to-one corresponding to the M IP addresses, where M is an integer greater than or equal to 1; the terminal may be based on the M weight parameters from the M IP addresses , The IP address of the first server is determined, and the first access request may be sent to the gateway based on the IP address of the first server.
在网关接收到第一访问请求之后,可以基于第一访问请求中的第一服务器的IP地址,确定终端访问的业务服务器为第一服务器。接着,网关可以向第一服务器转发第一访问请求,第一服务器在接收到第一访问请求后,响应第一访问请求,并基于第一访问请求确定第一访问结果,然后向网关发送该第一访问结果。After the gateway receives the first access request, it can determine that the service server accessed by the terminal is the first server based on the IP address of the first server in the first access request. Then, the gateway may forward the first access request to the first server. After receiving the first access request, the first server responds to the first access request, determines the first access result based on the first access request, and then sends the first access request to the gateway. One visit result.
S507、网关向终端发送通知消息和第一访问结果;终端接收网关发送的通知消息和第一访问结果。S507: The gateway sends a notification message and the first access result to the terminal; the terminal receives the notification message and the first access result sent by the gateway.
S509、终端基于通知消息,确定与第一IP地址列表对应的第一域名。S509. The terminal determines the first domain name corresponding to the first IP address list based on the notification message.
终端可以在接收到通知消息后,触发确定与第一服务器的IP地址对应的域名的流程。在一种实施方式中,终端可以基于终端中存储的第一域名与第一IP地址列表之间的映射,确定与第一服务器的IP地址对应的第一域名。After receiving the notification message, the terminal may trigger the process of determining the domain name corresponding to the IP address of the first server. In an implementation manner, the terminal may determine the first domain name corresponding to the IP address of the first server based on the mapping between the first domain name stored in the terminal and the first IP address list.
S511、终端向域名解析服务器发送域名解析请求;域名解析请求包括第一域名;域名解析服务器接收终端发送的域名解析请求。S511. The terminal sends a domain name resolution request to the domain name resolution server; the domain name resolution request includes the first domain name; and the domain name resolution server receives the domain name resolution request sent by the terminal.
其中,终端与域名解析服务器之间的通信协议为HTTP。HTTP是因特网上应用最为广泛的一种网络传输协议,所有的WWW文件都遵守这个标准。随着互联网技术的飞速发展,网络服务成为人们生活中不可缺少的一项服务,当前,互联网企业通常使用域名来给用户提供服务。Among them, the communication protocol between the terminal and the domain name resolution server is HTTP. HTTP is the most widely used network transmission protocol on the Internet, and all WWW documents comply with this standard. With the rapid development of Internet technology, network services have become an indispensable service in people's lives. Currently, Internet companies usually use domain names to provide services to users.
S513、域名解析服务器向终端发送域名解析结果;终端接收域名解析服务器发送的域名解析结果。S513. The domain name resolution server sends a domain name resolution result to the terminal; the terminal receives the domain name resolution result sent by the domain name resolution server.
其中,域名解析结果包括对第一IP地址列表更新后得到的第二IP地址列表。Wherein, the domain name resolution result includes the second IP address list obtained after updating the first IP address list.
域名解析服务器向终端发送的DNS数据(例如第二IP地址列表),如果未经过校验,容易被第三方篡改伪造。为了解决这个问题,在域名解析服务器向终端发送的第二IP地址列表时,可以采用非对称加密的方法对第二IP地址列表进行加密,加密方式可以是域名解析服务器采用私钥对第二IP地址列表进行加密,终端采用公钥对加密数据进行解密,或者,加密方式可以是域名解析服务器采用公钥对第二IP地址列表进行加密,终端采用私钥对加密数据进行解密。If the DNS data (for example, the second IP address list) sent by the domain name resolution server to the terminal is not verified, it is easy to be tampered with and forged by a third party. To solve this problem, when the domain name resolution server sends the second IP address list to the terminal, the second IP address list can be encrypted using asymmetric encryption. The encryption method can be that the domain name resolution server uses a private key to encrypt the second IP address list. The address list is encrypted, and the terminal uses the public key to decrypt the encrypted data, or the encryption method may be that the domain name resolution server uses the public key to encrypt the second IP address list, and the terminal uses the private key to decrypt the encrypted data.
在域名解析服务器以私钥加密时,域名解析服务器可以先对第二IP地址列表进行哈希计算,得到第一哈希值;接着可以采用私钥对第一哈希值加密,得到第一签名;然后可以基于第一签名和第二IP地址列表,例如对第一签名和第二IP地址列表进行编码,进而确定域名解析结果。其中,域名解析结果可以包括第一签名和第二IP地址列表。When the domain name resolution server is encrypted with the private key, the domain name resolution server can first perform a hash calculation on the second IP address list to obtain the first hash value; then it can use the private key to encrypt the first hash value to obtain the first signature ; Then, based on the first signature and the second IP address list, for example, the first signature and the second IP address list are encoded to determine the domain name resolution result. Wherein, the domain name resolution result may include the first signature and the second IP address list.
S515、终端对域名解析结果校验,并在检验成功后,将终端中存储的第一映射,更新为第二映射。S515. The terminal verifies the domain name resolution result, and after the verification is successful, updates the first mapping stored in the terminal to the second mapping.
其中,第一映射可以包括:域名与第一IP地址列表之间的映射,第二映射可以包括:域名与第二IP地址列表之间的映射。Wherein, the first mapping may include: mapping between the domain name and the first IP address list, and the second mapping may include: the mapping between the domain name and the second IP address list.
第一映射和第二映射可以都存储在SDK的域名解析信息或域名解析模块中。Both the first mapping and the second mapping may be stored in the domain name resolution information or domain name resolution module of the SDK.
在终端以公钥解密时,终端首先可以确定与域名解析服务器对应的公钥;接着可以采用公钥解密第一签名,得到第一哈希值;然后可以计算第二IP地址列表的哈希值,得到第二哈希值;如果第一哈希值和第二哈希值相同,确定对域名解析结果校验成功。When the terminal uses the public key to decrypt, the terminal can first determine the public key corresponding to the domain name resolution server; then the public key can be used to decrypt the first signature to obtain the first hash value; then the hash value of the second IP address list can be calculated , To obtain the second hash value; if the first hash value and the second hash value are the same, it is determined that the verification of the domain name resolution result is successful.
在一种实施方式中,与域名解析服务器对应的公钥可以是在终端内部存储的,终端可以从其内部获取与域名解析服务器对应的公钥。在一种实施场景时,公钥可以在终端内部存储的数字证书中提取。在另一种实施方式中,与域名解析服务器对应的公钥可以是域名解析服务器发送给终端的,公钥可以包括在域名解析结果中,或者域名解析服务器单独发送公钥给终端。在又一种实施方式中,域名解析服务器还可以向服务器发送数字证书,数字证书中可以包括公钥,从而终端可以通过数字证书获取到公钥,其中,数字证书可以包括在域名解析结果中,或者域名解析服务器单独发送数字证书给终端。In an implementation manner, the public key corresponding to the domain name resolution server may be stored inside the terminal, and the terminal may obtain the public key corresponding to the domain name resolution server from its inside. In an implementation scenario, the public key can be extracted from a digital certificate stored inside the terminal. In another embodiment, the public key corresponding to the domain name resolution server may be sent by the domain name resolution server to the terminal, and the public key may be included in the domain name resolution result, or the domain name resolution server may separately send the public key to the terminal. In another embodiment, the domain name resolution server may also send a digital certificate to the server, and the digital certificate may include a public key, so that the terminal may obtain the public key through the digital certificate, where the digital certificate may be included in the domain name resolution result, Or the domain name resolution server separately sends the digital certificate to the terminal.
在S515之后,终端可以基于第二IP地址列表进行第一域名的访问。After S515, the terminal can access the first domain name based on the second IP address list.
其中,如果第二IP地址列表中包括一个IP地址,那么这个IP地址就是第一服务器的IP地址,终端可以采用IP地址列表中的这一个IP地址进行访问。如果第二IP地址列表中包括至少两个IP地址,终端可以基于至少两个权重参数,确定第一权重参数;然后从至少两个IP地址中,确定与第一权重参数对应的第一待访问IP地址,采用第一待访问IP地址进行访问。Wherein, if an IP address is included in the second IP address list, then this IP address is the IP address of the first server, and the terminal can use this IP address in the IP address list for access. If the second IP address list includes at least two IP addresses, the terminal may determine the first weight parameter based on the at least two weight parameters; then, from the at least two IP addresses, determine the first to-be-accessed corresponding to the first weight parameter IP address, using the first IP address to be visited for access.
在一种实施方式中,终端在采用第一待访问IP地址访问失败的情况下,可以从至少两个权重参数中,确定除第一权重参数外的第二权重参数;接着可以从至少两个IP地址中,确定与第二权重参数对应的第二待访问IP地址,采用第二待访问IP地址进行访问。In one embodiment, when the terminal fails to access the first IP address to be accessed, it can determine a second weight parameter other than the first weight parameter from the at least two weight parameters; In the IP address, the second IP address to be accessed corresponding to the second weight parameter is determined, and the second IP address to be accessed is used for access.
通过这种方式,由于终端将其内存储的第一IP地址列表修改为第二IP地址列表,从而终端在下次确定到针对域名的访问请求时,可以通过第二IP地址列表来进行访问。In this way, since the terminal modifies the first IP address list stored in it to the second IP address list, the terminal can access through the second IP address list when it determines an access request for the domain name next time.
在终端将第一IP地址列表更新为第二IP地址列表后,如果不通知与第二IP地址列表中的网关,网关就不知道终端是否将第一IP地址列表进行了更新。为了解决这个问题,IP地址的更新方法还可以包括执行以下步骤:终端向网关发送更新完成消息;网关接收终端发送的更新完成消息;更新完成消息用于指示终端完成对存储的第一IP地址列表的更新。After the terminal updates the first IP address list to the second IP address list, if it does not notify the gateway in the second IP address list, the gateway does not know whether the terminal has updated the first IP address list. In order to solve this problem, the IP address update method may further include the following steps: the terminal sends an update complete message to the gateway; the gateway receives the update complete message sent by the terminal; the update complete message is used to instruct the terminal to complete the stored first IP address list Update.
其中,终端向网关发送更新完成消息的时机可以是,终端在接收到域名解析服务器发送的域名解析结果之后,或者,终端在将内部存储的第一映射更新为第二映射之后。The timing for the terminal to send the update completion message to the gateway may be after the terminal receives the domain name resolution result sent by the domain name resolution server, or after the terminal updates the first mapping stored internally to the second mapping.
网关接收到更新完成消息后,可以基于更新完成消息,在接收到终端基于第二服务器的IP地址发送的第二访问请求后,向终端发送第二访问结果。在此之后,在网关再次接收到域名解析服务器发送的通知消息,并接受到终端的访问请求后,向终端发送该通知消息。After receiving the update complete message, the gateway may send the second access result to the terminal after receiving the second access request sent by the terminal based on the IP address of the second server based on the update complete message. After that, after the gateway again receives the notification message sent by the domain name resolution server and receives the access request of the terminal, it sends the notification message to the terminal.
在本申请实施例中,通过终端、网关和域名解析服务器之间的交互流程,由于第二IP地址列表中可以包括至少一个IP地址和与至少一个IP地址一一对应的至少一个权重参数,从而终端能够从第二IP地址列表中,采用权重随机算法确定首先访问的一个IP地址,避免了相关技术中,终端每次访问都是基于从第一个IP地址开始访问,导致第一个IP地址对应的网关产生请求聚集的情况。并且,由于终端对域名解析服务器发送的第二IP地址列表进行了校验,从而避免第二IP地址被第三方篡改伪造的情况发生。In the embodiment of the present application, through the interaction process between the terminal, the gateway, and the domain name resolution server, since the second IP address list may include at least one IP address and at least one weight parameter corresponding to the at least one IP address, so The terminal can use the weighted random algorithm to determine the first IP address to be accessed from the second IP address list, which avoids that in related technologies, each access of the terminal is based on the access from the first IP address, resulting in the first IP address The corresponding gateway generates a request for aggregation. In addition, since the terminal verifies the second IP address list sent by the domain name resolution server, the second IP address is prevented from being tampered with by a third party.
图6为本申请实施例提供的一种终端获得第二IP地址列表的流程示意图,如图6所示,终端获取第二IP地址列表的方式可以通过以下S601至S611的步骤实现:FIG. 6 is a schematic diagram of a process for obtaining a second IP address list by a terminal according to an embodiment of the application. As shown in FIG. 6, the manner in which the terminal obtains the second IP address list can be implemented through the following steps S601 to S611:
S601、终端向域名解析服务器发送DNS请求。S601. The terminal sends a DNS request to the domain name resolution server.
DNS请求中可以包括域名,例如,域名可以为www.domain.com,DNS请求可以是上述实施例中的域名解析请求。The DNS request may include a domain name, for example, the domain name may be www.domain.com, and the DNS request may be the domain name resolution request in the foregoing embodiment.
S603、HTTPDNS服务器在接收到DNS请求之后,查询与DNS请求中的域名对应的第二IP地址列表。S603. After receiving the DNS request, the HTTPDNS server queries the second IP address list corresponding to the domain name in the DNS request.
如图6所示,第二IP地址列表中有三个IP地址,分比为IP1、IP2以及IP3,这三个IP地址的权重(对应上述实施例的权重参数)分别为0.4、0.3以及0.3。As shown in FIG. 6, there are three IP addresses in the second IP address list, and the ratios are IP1, IP2, and IP3. The weights of these three IP addresses (corresponding to the weight parameters of the foregoing embodiment) are 0.4, 0.3, and 0.3, respectively.
S605、HTTPDNS服务器可以采用私钥加密第二IP地址列表。S605. The HTTPDNS server may use the private key to encrypt the second IP address list.
加密方式为,HTTPDNS服务器计算第二IP地址列表的哈希值,得到第一哈希值,并对第一哈希值进行加密,得到第一签名。The encryption method is that the HTTPDNS server calculates the hash value of the second IP address list to obtain the first hash value, and encrypts the first hash value to obtain the first signature.
S607、HTTPDNS服务器可以向终端返回DNS请求的结果。S607. The HTTPDNS server may return the result of the DNS request to the terminal.
返回的结果可以是域名解析结果,域名解析结果中包括第一签名和第二IP地址列表。The returned result may be the domain name resolution result, and the domain name resolution result includes the first signature and the second IP address list.
S609、终端采用公钥解密并校验。S609. The terminal uses the public key to decrypt and verify.
解密并校验的方式为:确定与域名解析服务器对应的公钥;采用公钥解密第一签名,得到第一哈希值;计算更新后的IP地址列表的哈希值,得到第二哈希值;如果第一哈希值和第二哈希值相同,确定对域名解析结果校验成功。The method of decryption and verification is: determine the public key corresponding to the domain name resolution server; use the public key to decrypt the first signature to obtain the first hash value; calculate the hash value of the updated IP address list to obtain the second hash Value; if the first hash value and the second hash value are the same, it is determined that the verification of the domain name resolution result is successful.
HTTPDNS服务器可以下发公钥,或者可以是HTTPDNS服务器下发证书,从而使终端通过证书获取公钥。The HTTPDNS server may issue a public key, or the HTTPDNS server may issue a certificate, so that the terminal obtains the public key through the certificate.
S611、终端将第一IP地址列表更新为第二IP地址列表。S611. The terminal updates the first IP address list to the second IP address list.
在校验成功后,终端可以确定第二IP地址列表为域名解析服务器发送,接着终端可以将第一IP地址列表更新为第二IP地址列表。终端的更新流程可以是删除第一IP地址列表,写入第二IP地址列表。After the verification is successful, the terminal can determine that the second IP address list is sent by the domain name resolution server, and then the terminal can update the first IP address list to the second IP address list. The update procedure of the terminal may be to delete the first IP address list and write to the second IP address list.
在本申请实施例中,针对请求返回结果进行非对称加密,有效的保证了数据内容在网络传输过程的安全性,内容无法被篡改;同时通过下发证书和解密令牌(Token)(可以为理解为公钥)的形式提供给合法授权的终端,避免的无关方或者恶意用户使用该服务。这种直接下发Token的方式同时也避免了使用传输层安全协议(Transport Layer Security,TLS)连接多次握手带来的性能损耗。In the embodiment of this application, asymmetric encryption is performed for the result of the request, which effectively guarantees the security of the data content during the network transmission process, and the content cannot be tampered with; at the same time, the certificate and the decryption token (Token) (which can be It is understood as a public key) to be provided to legally authorized terminals to prevent irrelevant parties or malicious users from using the service. This method of directly issuing Tokens also avoids the performance loss caused by multiple handshake connections using Transport Layer Security (TLS).
图7为本申请实施例提供的再一种IP地址的更新方法的实现流程示意图,如图7所示,该方法可以包括:FIG. 7 is a schematic diagram of the implementation process of another method for updating an IP address provided by an embodiment of the application. As shown in FIG. 7, the method may include:
S701、终端向域名解析服务器发送DNS请求,并接收域名解析服务器响应于该DNS请求的IP地址列表AAA。S701. The terminal sends a DNS request to a domain name resolution server, and receives an IP address list AAA from the domain name resolution server in response to the DNS request.
其中,IP地址列表AAA包括地址AAA。Among them, the IP address list AAA includes the address AAA.
S703、终端向网关发送访问请求。S703: The terminal sends an access request to the gateway.
终端可以基于地址AAA,向网关发送访问请求。The terminal can send an access request to the gateway based on the address AAA.
S705、网关将请求转发至业务服务器A。S705: The gateway forwards the request to the service server A.
业务服务器A与地址AAA对应。The service server A corresponds to the address AAA.
S707、在HTTPDNS服务器确定IP地址列表AAA更改为IP地址列表BBB,向网关发送通知消息。S707. The HTTPDNS server determines that the IP address list AAA is changed to the IP address list BBB, and sends a notification message to the gateway.
IP地址列表BBB中包括IP地址BBB。通知消息用于指示IP地址列表AAA发生变更。The IP address list BBB includes the IP address BBB. The notification message is used to indicate that the IP address list AAA has changed.
S709、网关向终端发送访问结果和通知消息。S709. The gateway sends an access result and a notification message to the terminal.
通知消息用于告知终端IP地址列表AAA变更。The notification message is used to notify the terminal IP address list AAA to change.
S711、终端在基于通知消息得到IP地址列表BBB之后,可以更新内部存储的IP地址列表AAA为IP地址列表BBB。S711. After obtaining the IP address list BBB based on the notification message, the terminal may update the internally stored IP address list AAA to the IP address list BBB.
在此之后,终端可以基于IP地址列表BBB中的地址BBB来访问业务服务器B。After that, the terminal can access the service server B based on the address BBB in the IP address list BBB.
本申请实施例中,在IP地址配置发生改变时,通过网关协议告知使用方IP地址已经发生修改。使用方(终端)收到网关发送的消息后后,实时发出Dns请求刷新对应域名的IP地址,达到了实时刷新的能力。In the embodiment of the present application, when the IP address configuration changes, the user is notified through the gateway protocol that the IP address has been modified. After the user (terminal) receives the message sent by the gateway, it sends a Dns request in real time to refresh the IP address of the corresponding domain name, achieving the real-time refresh capability.
在本申请实施例中,基于HTTPDNS服务,提出一套带权重可实时刷新IP地址、防劫持的技术方案,解决了传统HTTPDNS面临的请求聚集、内容被篡改、终端缓存等几大痛点问题,极大的提高了HTTPDNS的安全性、可用性和灵活性。In the embodiment of this application, based on the HTTPDNS service, a set of weighted real-time IP address refreshing and anti-hijacking technical solutions are proposed, which solves the problems of request aggregation, content tampering, terminal caching and other major pain points faced by traditional HTTPDNS. Greatly improve the security, availability and flexibility of HTTPDNS.
在本申请实施例中,HTTPDNS服务返回带权重的IP地址,保证了IP地址访问的均衡;采用非对称加密对HTTPDNS通信数据进行加密传输,保证了内容防篡改;通过网关协议通知使用方实时刷新缓存,提高了实时性。In the embodiment of this application, the HTTPDNS service returns a weighted IP address, which ensures the balance of IP address access; uses asymmetric encryption to encrypt transmission of HTTPDNS communication data to ensure that the content is tamper-proof; the user is notified of real-time refresh through the gateway protocol Caching improves real-time performance.
基于前述的实施例,本申请实施例提供一种IP地址的更新装置,该装置包括所包括的各单元、以及各单元所包括的各模块,可以通过终端、网关或域名解析服务器中的处理器来实现;当然也可通过具体的逻辑电路实现;在实施的过程中,处理器可以为中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)或现场可编程门阵列(FPGA)等。Based on the foregoing embodiment, the embodiment of the present application provides an IP address update device, which includes each unit included and each module included in each unit, which can be passed through a terminal, a gateway, or a processor in a domain name resolution server. Of course, it can also be realized by specific logic circuits; in the process of implementation, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA) and so on.
图8为本申请实施例提供的一种IP地址的更新装置的组成结构示意图,如图8所示,IP地址的更新装置80可以应用于终端,IP地址的更新装置80包括:FIG. 8 is a schematic diagram of the composition structure of an IP address updating device provided by an embodiment of the application. As shown in FIG. 8, the IP address updating device 80 can be applied to a terminal, and the IP address updating device 80 includes:
发送单元81,用于向网关发送第一访问请求;The sending unit 81 is configured to send the first access request to the gateway;
接收单元82,用于接收网关发送的通知消息和第一访问结果;通知消息用于指示第一IP地址列表发生更新;The receiving unit 82 is configured to receive a notification message and the first access result sent by the gateway; the notification message is used to indicate that the first IP address list is updated;
获得单元83,用于基于通知消息,从域名解析服务器中获得域名解析结果;域名解 析结果包括对第一IP地址列表更新后得到的第二IP地址列表。The obtaining unit 83 is configured to obtain a domain name resolution result from the domain name resolution server based on the notification message; the domain name resolution result includes the second IP address list obtained after updating the first IP address list.
在一些实施例中,IP地址的更新装置80还包括:确定单元84,用于基于通知消息,确定与第一IP地址列表对应的第一域名;In some embodiments, the IP address updating device 80 further includes: a determining unit 84, configured to determine the first domain name corresponding to the first IP address list based on the notification message;
发送单元81,还用于向域名解析服务器发送域名解析请求;域名解析请求包括第一域名;The sending unit 81 is further configured to send a domain name resolution request to a domain name resolution server; the domain name resolution request includes the first domain name;
接收单元82,还用于接收域名解析服务器发送的域名解析结果。The receiving unit 82 is also configured to receive the domain name resolution result sent by the domain name resolution server.
在一些实施例中,第一IP地址列表包括:M个IP地址和与M个IP地址一一对应的M个权重参数,M为大于或等于1的整数;In some embodiments, the first IP address list includes: M IP addresses and M weight parameters one-to-one corresponding to the M IP addresses, and M is an integer greater than or equal to 1;
IP地址的更新装置80还包括:确定单元84,还用于基于M个权重参数,从M个IP地址中,确定第一服务器的IP地址;The IP address updating device 80 further includes: a determining unit 84, which is further configured to determine the IP address of the first server from the M IP addresses based on the M weight parameters;
发送单元81,还用于基于第一服务器的IP地址向网关发送第一访问请求。The sending unit 81 is further configured to send a first access request to the gateway based on the IP address of the first server.
在一些实施例中,域名解析结果还包括第一签名,IP地址的更新装置80还包括:校验单元85,用于确定与域名解析服务器对应的公钥;采用公钥解密第一签名,得到第一哈希值;计算第二IP地址列表的哈希值,得到第二哈希值;如果第一哈希值和第二哈希值相同,确定对域名解析结果校验成功。In some embodiments, the domain name resolution result further includes a first signature, and the IP address update device 80 further includes: a verification unit 85, configured to determine the public key corresponding to the domain name resolution server; and decrypt the first signature using the public key to obtain The first hash value; the hash value of the second IP address list is calculated to obtain the second hash value; if the first hash value and the second hash value are the same, it is determined that the verification of the domain name resolution result is successful.
在一些实施例中,IP地址的更新装置80还包括:更新单元86,用于将终端中存储的第一映射,更新为第二映射;其中,第一映射包括:第一域名与第一IP地址列表之间的映射,第二映射包括:第一域名与第二IP地址列表之间的映射。In some embodiments, the device 80 for updating the IP address further includes: an updating unit 86, configured to update the first mapping stored in the terminal to the second mapping; wherein, the first mapping includes: the first domain name and the first IP The mapping between the address lists, the second mapping includes: the mapping between the first domain name and the second IP address list.
在一些实施例中,第二IP地址列表包括:N个IP地址和与N个IP地址一一对应的N个权重参数,N为大于或等于1的整数;In some embodiments, the second IP address list includes: N IP addresses and N weight parameters one-to-one corresponding to the N IP addresses, where N is an integer greater than or equal to 1;
确定单元84,还用于基于N个权重参数,从N个IP地址中,确定第二服务器的IP地址;The determining unit 84 is further configured to determine the IP address of the second server from the N IP addresses based on the N weight parameters;
发送单元81,还用于基于第二服务器的IP地址向网关发送第二访问请求;The sending unit 81 is further configured to send a second access request to the gateway based on the IP address of the second server;
接收单元82,还用于接收网关发送的第二访问结果。The receiving unit 82 is further configured to receive the second access result sent by the gateway.
在一些实施例中,终端与网关之间的通信协议为网关协议,终端与域名解析服务器之间的通信协议为超文本传输协议。In some embodiments, the communication protocol between the terminal and the gateway is a gateway protocol, and the communication protocol between the terminal and the domain name resolution server is a hypertext transfer protocol.
在一些实施例中,发送单元81,还用于向网关发送更新完成消息,更新完成消息用于指示终端完成对存储的第一IP地址列表的更新。In some embodiments, the sending unit 81 is further configured to send an update complete message to the gateway, where the update complete message is used to instruct the terminal to complete the update of the stored first IP address list.
图9为本申请实施例提供的另一种IP地址的更新装置的组成结构示意图,如图9所示,IP地址的更新装置90可以应用于网关,IP地址的更新装置90包括:FIG. 9 is a schematic diagram of the composition structure of another device for updating an IP address provided by an embodiment of the application. As shown in FIG. 9, the device 90 for updating an IP address can be applied to a gateway, and the device 90 for updating an IP address includes:
接收单元91,用于接收域名解析服务器发送的通知消息;通知消息用于指示第一IP地址列表发生更新,并用于终端从域名解析服务器中,获取对第一IP地址列表更新后得到的第二IP地址列表;The receiving unit 91 is configured to receive a notification message sent by the domain name resolution server; the notification message is used to indicate that the first IP address list is updated, and is used for the terminal to obtain the second IP address list obtained after the first IP address list is updated from the domain name resolution server. IP address list;
接收单元91,还用于接收终端发送的第一访问请求;The receiving unit 91 is further configured to receive the first access request sent by the terminal;
发送单元92,用于向终端发送通知消息和第一访问结果。The sending unit 92 is configured to send a notification message and the first access result to the terminal.
在一些实施例中,接收单元91,还用于接收终端基于第一服务器的IP地址发送的第一访问请求;In some embodiments, the receiving unit 91 is further configured to receive the first access request sent by the terminal based on the IP address of the first server;
发送单元92,还用于向第一服务器发送第一访问请求,并接收第一服务器发送的第一访问结果。The sending unit 92 is further configured to send a first access request to the first server, and receive the first access result sent by the first server.
在一些实施例中,接收单元91,还用于接收终端发送的更新完成消息,更新完成消息用于指示终端完成对存储的第一IP地址列表的更新;基于更新完成消息,在接收到终端基于第二服务器的IP地址发送的第二访问请求后,向终端发送第二访问结果。In some embodiments, the receiving unit 91 is further configured to receive an update completion message sent by the terminal. The update completion message is used to instruct the terminal to complete the update of the stored first IP address list; based on the update completion message, the terminal is based on the After the second access request sent by the IP address of the second server, the second access result is sent to the terminal.
图10为本申请实施例提供的又一种IP地址的更新装置的组成结构示意图,如图10 所示,IP地址的更新装置100可以应用于域名解析服务器,IP地址的更新装置100包括:FIG. 10 is a schematic diagram of the composition structure of another device for updating an IP address provided by an embodiment of the application. As shown in FIG. 10, the device 100 for updating an IP address can be applied to a domain name resolution server, and the device 100 for updating an IP address includes:
发送单元101,用于向网关发送通知消息;通知消息用于指示第一IP地址列表发生更新,并用于终端接收到网关发送的通知消息后,从域名解析服务器中,获取对第一IP地址列表更新后得到的第二IP地址列表。The sending unit 101 is configured to send a notification message to the gateway; the notification message is used to indicate that the first IP address list is updated, and is used for the terminal to obtain the first IP address list from the domain name resolution server after receiving the notification message sent by the gateway The updated second IP address list.
在一些实施例中,IP地址的更新装置100还包括:接收单元102,用于接收终端发送的域名解析请求;域名解析请求包括第一域名;In some embodiments, the device 100 for updating the IP address further includes: a receiving unit 102, configured to receive a domain name resolution request sent by the terminal; the domain name resolution request includes the first domain name;
发送单元101,还用于向终端发送域名解析结果,域名解析结果包括第二IP地址列表。The sending unit 101 is further configured to send a domain name resolution result to the terminal, where the domain name resolution result includes the second IP address list.
在一些实施例中,IP地址的更新装置100还包括:加密单元103,用于对第二IP地址列表进行哈希计算,得到第一哈希值;采用私钥对第一哈希值加密,得到第一签名;基于第一签名和第二IP地址列表,确定域名解析结果。In some embodiments, the device 100 for updating the IP address further includes: an encryption unit 103, configured to perform a hash calculation on the second IP address list to obtain a first hash value; encrypt the first hash value with a private key, Obtain the first signature; determine the domain name resolution result based on the first signature and the second IP address list.
在一些实施例中,第二IP地址列表包括:N个IP地址和与N个IP地址一一对应的N个权重参数,N为大于或等于1的整数。In some embodiments, the second IP address list includes: N IP addresses and N weight parameters one-to-one corresponding to the N IP addresses, and N is an integer greater than or equal to 1.
以上装置实施例的描述,与上述方法实施例的描述是类似的,具有同方法实施例相似的有益效果。对于本申请装置实施例中未披露的技术细节,请参照本申请方法实施例的描述而理解。The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiments of the present application, please refer to the description of the method embodiments of the present application for understanding.
需要说明的是,本申请实施例中,如果以软件功能模块的形式实现上述的IP地址的更新方法,并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台终端、网关或域名解析服务器执行本申请各个实施例方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read Only Memory,ROM)、磁碟或者光盘等各种可以存储程序代码的介质。这样,本申请实施例不限制于任何特定的硬件和软件结合。It should be noted that, in the embodiments of the present application, if the above IP address update method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application can be embodied in the form of software products in essence or the parts that contribute to related technologies. The computer software products are stored in a storage medium and include several instructions to enable A terminal, gateway, or domain name resolution server executes all or part of the methods in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read only memory (Read Only Memory, ROM), magnetic disk or optical disk and other media that can store program codes. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.
需要说明的是,图11为本申请实施例提供的一种IP地址的更新设备的组成结构示意图,如图11所示,IP地址的更新设备110可以为上述的终端、网关或域名解析服务器,IP地址的更新设备110的硬件实体包括:处理器111和存储器112,其中,存储器112存储有可在处理器111上运行的计算机程序,处理器111执行程序时实现上述任一实施例的方法中的步骤。It should be noted that FIG. 11 is a schematic diagram of the composition structure of an IP address updating device provided by an embodiment of the application. As shown in FIG. 11, the IP address updating device 110 may be the aforementioned terminal, gateway, or domain name resolution server. The hardware entity of the device 110 for updating the IP address includes a processor 111 and a memory 112. The memory 112 stores a computer program that can run on the processor 111. A step of.
存储器112存储有可在处理器上运行的计算机程序,存储器112配置为存储由处理器111可执行的指令和应用,还可以缓存待处理器111以及IP地址的更新设备110中各模块待处理或已经处理的数据(例如,图像数据、音频数据、语音通信数据和视频通信数据),可以通过闪存(FLASH)或随机访问存储器(Random Access Memory,RAM)实现。The memory 112 stores computer programs that can run on the processor. The memory 112 is configured to store instructions and applications executable by the processor 111. It can also cache the processor 111 and each module in the IP address update device 110 to be processed or The processed data (for example, image data, audio data, voice communication data, and video communication data) can be implemented by flash memory (FLASH) or random access memory (RAM).
处理器111执行程序时实现上述任一项的IP地址的更新方法的步骤。处理器111通常控制IP地址的更新设备110的总体操作。When the processor 111 executes the program, the steps of the method for updating any one of the above IP addresses are implemented. The processor 111 generally controls the overall operation of the IP address updating device 110.
本申请实施例提供一种计算机存储介质,计算机存储介质存储有一个或者多个程序,一个或者多个程序可被一个或者多个处理器执行,以实现上述方法中终端执行的方法的步骤。The embodiment of the present application provides a computer storage medium, and the computer storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the method executed by the terminal in the foregoing method.
本申请实施例提供一种计算机存储介质,计算机存储介质存储有一个或者多个程序,一个或者多个程序可被一个或者多个处理器执行,以实现上述方法中网关执行的方法的步骤。The embodiment of the present application provides a computer storage medium, and the computer storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the method executed by the gateway in the foregoing method.
本申请实施例提供一种计算机存储介质,计算机存储介质存储有一个或者多个程 序,一个或者多个程序可被一个或者多个处理器执行,以实现上述方法中域名解析服务器执行的方法的步骤。The embodiment of the present application provides a computer storage medium. The computer storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the method executed by the domain name resolution server in the above method. .
这里需要指出的是:以上存储介质和设备实施例的描述,与上述方法实施例的描述是类似的,具有同方法实施例相似的有益效果。对于本申请存储介质和设备实施例中未披露的技术细节,请参照本申请方法实施例的描述而理解。It should be pointed out here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
图12是本申请实施例提供的一种芯片的结构示意图。图12所示的芯片120包括处理器121,处理器121可以从存储器中调用并运行计算机程序,以实现本申请实施例中终端、网关或域名解析服务器执行的方法的步骤。FIG. 12 is a schematic structural diagram of a chip provided by an embodiment of the present application. The chip 120 shown in FIG. 12 includes a processor 121, and the processor 121 can call and run a computer program from the memory to implement the steps of the method executed by the terminal, gateway, or domain name resolution server in the embodiment of the present application.
在一些实施例中,如图12所示,芯片120还可以包括存储器122。其中,处理器121可以从存储器122中调用并运行计算机程序,以实现本申请实施例中终端、网关或域名解析服务器执行的方法的步骤。In some embodiments, as shown in FIG. 12, the chip 120 may further include a memory 122. The processor 121 may call and run a computer program from the memory 122 to implement the steps of the method executed by the terminal, gateway, or domain name resolution server in the embodiment of the present application.
其中,存储器122可以是独立于处理器121的一个单独的器件,也可以集成在处理器121中。The memory 122 may be a separate device independent of the processor 121, or may be integrated in the processor 121.
在一些实施例中,该芯片120还可以包括输入接口123。其中,处理器121可以控制该输入接口123与其他设备或芯片进行通信,具体地,可以获取其他设备或芯片发送的信息或数据。In some embodiments, the chip 120 may further include an input interface 123. The processor 121 can control the input interface 123 to communicate with other devices or chips, and specifically, can obtain information or data sent by other devices or chips.
在一些实施例中,该芯片120还可以包括输出接口124。其中,处理器121可以控制该输出接口124与其他设备或芯片进行通信,具体地,可以向其他设备或芯片输出信息或数据。In some embodiments, the chip 120 may further include an output interface 124. The processor 121 can control the output interface 124 to communicate with other devices or chips, and specifically, can output information or data to other devices or chips.
在一些实施例中,该芯片可应用于本申请实施例中的网络设备,并且该芯片可以实现本申请实施例的各个方法中由网络设备实现的相应流程,为了简洁,在此不再赘述。In some embodiments, the chip can be applied to the network device in the embodiments of the present application, and the chip can implement the corresponding processes implemented by the network device in the various methods of the embodiments of the present application. For the sake of brevity, details are not described herein again.
在一些实施例中,该芯片可应用于本申请实施例中的终端、网关或域名解析服务器,并且该芯片可以实现本申请实施例的各个方法中由终端、网关或域名解析服务器实现的相应流程,为了简洁,在此不再赘述。In some embodiments, the chip can be applied to the terminal, gateway, or domain name resolution server in the embodiments of this application, and the chip can implement the corresponding processes implemented by the terminal, gateway, or domain name resolution server in the various methods of the embodiments of this application. , For the sake of brevity, I won’t repeat it here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片,系统芯片,芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiment of the present application may also be referred to as a system-level chip, a system-on-chip, a system-on-chip, or a system-on-chip, etc.
本申请实施例提供一种计算机程序产品,计算机程序产品包括计算机存储介质,计算机存储介质存储计算机程序代码,计算机程序代码包括能够由至少一个处理器执行的指令,当指令由至少一个处理器执行时实现上述方法中终端、网关或域名解析服务器执行的方法的步骤。The embodiments of the present application provide a computer program product. The computer program product includes a computer storage medium, and the computer storage medium stores computer program code. The computer program code includes instructions that can be executed by at least one processor. The steps of the method executed by the terminal, gateway or domain name resolution server in the above method are implemented.
在一些实施例中,该计算机程序产品可应用于本申请实施例中的终端、网关或域名解析服务器,并且该计算机程序指令使得计算机执行本申请实施例的各个方法中由终端、网关或域名解析服务器实现的相应流程,为了简洁,在此不再赘述。In some embodiments, the computer program product can be applied to the terminal, gateway, or domain name resolution server in the embodiments of the present application, and the computer program instructions cause the computer to execute each method in the embodiments of the present application by the terminal, gateway, or domain name resolution server. For the sake of brevity, the corresponding process implemented by the server will not be repeated here.
这里需要指出的是:以上存储介质和终端、网关或域名解析服务器实施例的描述,与上述方法实施例的描述是类似的,具有同方法实施例相似的有益效果。对于本申请存储介质和终端、网关或域名解析服务器实施例中未披露的技术细节,请参照本申请方法实施例的描述而理解。It should be pointed out here that the description of the foregoing storage medium and terminal, gateway, or domain name resolution server embodiment is similar to the description of the foregoing method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the embodiments of the storage medium and terminal, gateway, or domain name resolution server of this application, please refer to the description of the method embodiments of this application for understanding.
应理解,本申请实施例的处理器可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法实施例的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开 的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。It should be understood that the processor of the embodiment of the present application may be an integrated circuit chip with signal processing capability. In the implementation process, the steps of the foregoing method embodiments may be completed by hardware integrated logic circuits in the processor or instructions in the form of software. The above-mentioned processor may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (ASIC), a ready-made programmable gate array (Field Programmable Gate Array, FPGA) or other Programming logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field, such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
可以理解,本申请实施例中的存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DR RAM)。应注意,本文描述的系统和方法的存储器旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. Among them, the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), and electrically available Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory. The volatile memory may be a random access memory (Random Access Memory, RAM), which is used as an external cache. By way of exemplary but not restrictive description, many forms of RAM are available, such as static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, 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 (Synchlink DRAM, SLDRAM) ) And Direct Rambus RAM (DR RAM). It should be noted that the memories of the systems and methods described herein are intended to include, but are not limited to, these and any other suitable types of memories.
应理解,上述存储器为示例性但不是限制性说明,例如,本申请实施例中的存储器还可以是静态随机存取存储器(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 should be understood that the foregoing memory is exemplary but not restrictive. For example, the memory in the embodiment of the present application may also be static random access memory (static RAM, SRAM), dynamic random access memory (dynamic RAM, DRAM), Synchronous dynamic random access memory (synchronous DRAM, 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 connection Dynamic random access memory (synch link DRAM, SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DR RAM) and so on. That is to say, the memory in the embodiments of the present application is intended to include, but is not limited to, these and any other suitable types of memory.
这里需要指出的是:以上存储介质、计算机程序、芯片和设备实施例的描述,与上述方法实施例的描述是类似的,具有同方法实施例相似的有益效果。对于本申请存储介质和设备实施例中未披露的技术细节,请参照本申请方法实施例的描述而理解。It should be pointed out here that the description of the above storage medium, computer program, chip, and device embodiments is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
应理解,说明书通篇中提到的“一个实施例”或“一实施例”或“本申请实施例”或“前述实施例”意味着与实施例有关的特定特征、结构或特性包括在本申请的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”或“本申请实施例”或“前述实施例”未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。It should be understood that “one embodiment” or “an embodiment” or “an embodiment of the application” or “the foregoing embodiment” mentioned throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in this In at least one embodiment of the application. Therefore, the appearance of "in one embodiment" or "in an embodiment" or "an embodiment of the present application" or "the foregoing embodiment" in various places throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in the various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not correspond to the embodiments of the present application. The implementation process constitutes any limitation. The serial numbers of the foregoing embodiments of the present application are only for description, and do not represent the superiority or inferiority of the embodiments.
在未做特殊说明的情况下,终端、网关或域名解析服务器执行本申请实施例中的任一步骤,可以是终端、网关或域名解析服务器的处理器执行该步骤。除非特殊说明,本申请实施例并不限定终端、网关或域名解析服务器执行下述步骤的先后顺序。另外,不同实施例中对数据进行处理所采用的方式可以是相同的方法或不同的方法。还需说明的是,本申请实施例中的任一步骤是终端、网关或域名解析服务器可以独立执行的,即终端、网关或域名解析服务器执行上述实施例中的任一步骤时,可以不依赖于其它步骤的 执行。Unless otherwise specified, the terminal, gateway, or domain name resolution server executes any step in the embodiments of the present application, and the processor of the terminal, gateway, or domain name resolution server may execute the step. Unless otherwise specified, the embodiment of the present application does not limit the sequence in which the terminal, gateway, or domain name resolution server executes the following steps. In addition, the methods used to process data in different embodiments may be the same method or different methods. It should also be noted that any step in the embodiment of this application can be independently executed by the terminal, gateway or domain name resolution server, that is, when the terminal, gateway or domain name resolution server executes any of the steps in the above embodiments, it may not rely on For the execution of other steps.
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the several embodiments provided in this application, it should be understood that the disclosed device and method may be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, such as: multiple units or components can be combined, or It can be integrated into another system, or some features can be ignored or not implemented. In addition, the coupling, or direct coupling, or communication connection between the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms. of.
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元;既可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各实施例中的各功能单元可以全部集成在一个处理单元中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, the functional units in the embodiments of the present application can be all integrated into one processing unit, or each unit can be individually used as a unit, or two or more units can be integrated into one unit; the above-mentioned integration The unit can be implemented in the form of hardware, or in the form of hardware plus software functional units.
本申请所提供的几个方法实施例中所揭露的方法,在不冲突的情况下可以任意组合,得到新的方法实施例。The methods disclosed in the several method embodiments provided in this application can be combined arbitrarily without conflict to obtain new method embodiments.
本申请所提供的几个产品实施例中所揭露的特征,在不冲突的情况下可以任意组合,得到新的产品实施例。The features disclosed in the several product embodiments provided in this application can be combined arbitrarily without conflict to obtain new product embodiments.
本申请所提供的几个方法或设备实施例中所揭露的特征,在不冲突的情况下可以任意组合,得到新的方法实施例或设备实施例。The features disclosed in the several method or device embodiments provided in this application can be combined arbitrarily without conflict to obtain a new method embodiment or device embodiment.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(Read Only Memory,ROM)、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps in the above method embodiments can be implemented by a program instructing relevant hardware. The foregoing program can be stored in a computer readable storage medium. When the program is executed, the execution includes The steps of the foregoing method embodiment; and the foregoing storage medium includes: various media that can store program codes, such as a mobile storage device, a read only memory (Read Only Memory, ROM), a magnetic disk, or an optical disk.
或者,本申请上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本申请各个实施例所述方法的全部或部分。而前述的存储介质包括:移动存储设备、ROM、磁碟或者光盘等各种可以存储程序代码的介质。Alternatively, if the aforementioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it may also be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application can be embodied in the form of software products in essence or the parts that contribute to related technologies. The computer software products are stored in a storage medium and include several instructions to enable A computer device (which may be a personal computer, a server, or a network device, etc.) executes all or part of the methods described in the various embodiments of the present application. The aforementioned storage media include: removable storage devices, ROMs, magnetic disks, or optical disks and other media that can store program codes.
在本申请实施例中,不同实施例中相同步骤和相同内容的说明,可以互相参照。在本申请实施例中,术语“并”不对步骤的先后顺序造成影响,例如,终端、网关或域名解析服务器执行A,并执行B,可以是终端、网关或域名解析服务器先执行A,再执行B,或者是终端、网关或域名解析服务器先执行B,再执行A,或者是终端、网关或域名解析服务器执行A的同时执行B。In the embodiments of the present application, descriptions of the same steps and the same content in different embodiments may be referred to each other. In the embodiment of this application, the term “union” does not affect the sequence of steps. For example, the terminal, gateway, or domain name resolution server executes A and executes B. It can be that the terminal, gateway or domain name resolution server executes A first and then executes B, or the terminal, gateway, or domain name resolution server executes B first, and then executes A, or the terminal, gateway, or domain name resolution server executes A while executing B.
以上所述,仅为本申请的实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only the implementation manners of this application, but the protection scope of this application is not limited to this. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in this application. Covered in the scope of protection of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.
工业实用性Industrial applicability
本申请实施例提供了一种IP地址的更新方法、装置、设备及计算机存储介质,采用本申请中的IP地址的更新方案,终端能够通过通知消息来得到对所述第一IP地址列表更新后得到的第二IP地址列表,从而能够提高终端的访问成功率。The embodiments of the application provide an IP address update method, device, device, and computer storage medium. Using the IP address update solution in this application, the terminal can obtain the updated first IP address list through a notification message. The obtained second IP address list can thereby improve the access success rate of the terminal.

Claims (22)

  1. 一种IP地址的更新方法,包括:An IP address update method, including:
    终端向网关发送第一访问请求;The terminal sends the first access request to the gateway;
    接收网关发送的通知消息和第一访问结果;所述通知消息用于指示第一IP地址列表发生更新;Receiving a notification message and a first access result sent by the gateway; the notification message is used to indicate that the first IP address list is updated;
    基于所述通知消息,从域名解析服务器中获得域名解析结果;所述域名解析结果包括对所述第一IP地址列表更新后得到的第二IP地址列表。Based on the notification message, a domain name resolution result is obtained from a domain name resolution server; the domain name resolution result includes a second IP address list obtained after updating the first IP address list.
  2. 根据权利要求1所述的方法,其中,所述基于所述通知消息,从域名解析服务器中获得域名解析结果,包括:The method according to claim 1, wherein the obtaining a domain name resolution result from a domain name resolution server based on the notification message comprises:
    基于所述通知消息,确定与所述第一IP地址列表对应的第一域名;Determine the first domain name corresponding to the first IP address list based on the notification message;
    向所述域名解析服务器发送域名解析请求;所述域名解析请求包括所述第一域名;Sending a domain name resolution request to the domain name resolution server; the domain name resolution request includes the first domain name;
    接收所述域名解析服务器发送的所述域名解析结果。Receiving the domain name resolution result sent by the domain name resolution server.
  3. 根据权利要求1或2所述的方法,其中,所述第一IP地址列表包括:M个IP地址和与所述M个IP地址一一对应的M个权重参数,M为大于或等于1的整数;The method according to claim 1 or 2, wherein the first IP address list comprises: M IP addresses and M weight parameters corresponding to the M IP addresses one-to-one, and M is greater than or equal to 1. Integer
    所述终端向网关发送第一访问请求之前,还包括:Before the terminal sends the first access request to the gateway, the method further includes:
    基于所述M个权重参数,从所述M个IP地址中,确定所述第一服务器的IP地址;Determine the IP address of the first server from the M IP addresses based on the M weight parameters;
    所述终端向网关发送第一访问请求,包括:所述终端基于第一服务器的IP地址向所述网关发送所述第一访问请求。The sending of the first access request by the terminal to the gateway includes: the terminal sending the first access request to the gateway based on the IP address of the first server.
  4. 根据权利要求1至3任一项所述的方法,其中,所述域名解析结果还包括第一签名;所述基于所述通知消息,从域名解析服务器中获得域名解析结果之后,还包括:The method according to any one of claims 1 to 3, wherein the domain name resolution result further includes a first signature; after obtaining the domain name resolution result from a domain name resolution server based on the notification message, the method further includes:
    确定与所述域名解析服务器对应的公钥;Determining the public key corresponding to the domain name resolution server;
    采用所述公钥解密所述第一签名,得到第一哈希值;Decrypt the first signature using the public key to obtain a first hash value;
    计算所述第二IP地址列表的哈希值,得到第二哈希值;Calculating the hash value of the second IP address list to obtain the second hash value;
    如果所述第一哈希值和所述第二哈希值相同,确定对所述域名解析结果校验成功。If the first hash value and the second hash value are the same, it is determined that the verification of the domain name resolution result is successful.
  5. 根据权利要求4所述的方法,其中,所述确定对所述域名解析结果校验成功之后,还包括:The method according to claim 4, wherein after the determining that the verification of the domain name resolution result is successful, the method further comprises:
    将所述终端中存储的第一映射,更新为第二映射;其中,所述第一映射包括:所述第一域名与所述第一IP地址列表之间的映射,所述第二映射包括:所述第一域名与所述第二IP地址列表之间的映射。The first mapping stored in the terminal is updated to a second mapping; wherein, the first mapping includes: a mapping between the first domain name and the first IP address list, and the second mapping includes : The mapping between the first domain name and the second IP address list.
  6. 根据权利要求1至5任一项所述的方法,其中,所述第二IP地址列表包括:N个IP地址和与所述N个IP地址一一对应的N个权重参数,N为大于或等于1的整数;The method according to any one of claims 1 to 5, wherein the second IP address list comprises: N IP addresses and N weight parameters corresponding to the N IP addresses one-to-one, where N is greater than or An integer equal to 1;
    所述基于所述通知消息,从域名解析服务器中获得域名解析结果之后,还包括:After obtaining the domain name resolution result from the domain name resolution server based on the notification message, the method further includes:
    基于所述N个权重参数,从所述N个IP地址中,确定第二服务器的IP地址;Determine the IP address of the second server from the N IP addresses based on the N weight parameters;
    基于所述第二服务器的IP地址向网关发送第二访问请求;Sending a second access request to the gateway based on the IP address of the second server;
    接收所述网关发送的第二访问结果。Receiving the second access result sent by the gateway.
  7. 根据权利要求1至6任一项所述的方法,其中,所述终端与所述网关之间的通信协议为网关协议,所述终端与所述域名解析服务器之间的通信协议为超文本传输协议。The method according to any one of claims 1 to 6, wherein the communication protocol between the terminal and the gateway is a gateway protocol, and the communication protocol between the terminal and the domain name resolution server is hypertext transmission protocol.
  8. 根据权利要求1至7任一项所述的方法,其中,所述基于所述通知消息,从域名解析服务器中获得域名解析结果之后,还包括:The method according to any one of claims 1 to 7, wherein, after obtaining a domain name resolution result from a domain name resolution server based on the notification message, the method further comprises:
    向所述网关发送更新完成消息,所述更新完成消息用于指示所述终端完成对存储的所述第一IP地址列表的更新。Send an update complete message to the gateway, where the update complete message is used to instruct the terminal to complete the update of the stored first IP address list.
  9. 一种IP地址的更新方法,包括:An IP address update method, including:
    网关接收域名解析服务器发送的通知消息;所述通知消息用于指示第一IP地址列表发生更新,并用于终端从所述域名解析服务器中,获取对所述第一IP地址列表更新后得到的第二IP地址列表;The gateway receives the notification message sent by the domain name resolution server; the notification message is used to indicate that the first IP address list is updated, and is used for the terminal to obtain the first IP address list obtained after updating the first IP address list from the domain name resolution server. 2. List of IP addresses;
    接收所述终端发送的第一访问请求;Receiving the first access request sent by the terminal;
    向所述终端发送通知消息和第一访问结果。Send a notification message and the first access result to the terminal.
  10. 根据权利要求9所述的方法,其中,所述接收所述终端发送的第一访问请求,包括:The method according to claim 9, wherein the receiving the first access request sent by the terminal comprises:
    接收所述终端基于第一服务器的IP地址发送的第一访问请求;Receiving the first access request sent by the terminal based on the IP address of the first server;
    所述向所述终端发送通知消息和第一访问结果之前,还包括:Before sending the notification message and the first access result to the terminal, the method further includes:
    向所述第一服务器发送所述第一访问请求,并接收所述第一服务器发送的所述第一访问结果。Sending the first access request to the first server, and receiving the first access result sent by the first server.
  11. 根据权利要求9或10所述的方法,其中,所述向所述终端发送通知消息和第一访问结果之后,还包括:The method according to claim 9 or 10, wherein after the sending the notification message and the first access result to the terminal, the method further comprises:
    接收所述终端发送的更新完成消息,所述更新完成消息用于指示所述终端完成对存储的所述第一IP地址列表的更新;Receiving an update complete message sent by the terminal, where the update complete message is used to instruct the terminal to complete the update of the stored first IP address list;
    基于所述更新完成消息,在接收到所述终端基于所述第二服务器的IP地址发送的第二访问请求后,向所述终端发送第二访问结果。Based on the update completion message, after receiving the second access request sent by the terminal based on the IP address of the second server, the second access result is sent to the terminal.
  12. 一种IP地址的更新方法,包括:An IP address update method, including:
    域名解析服务器向网关发送通知消息;所述通知消息用于指示第一IP地址列表发生更新,并用于终端接收到网关发送的所述通知消息后,从所述域名解析服务器中,获取对所述第一IP地址列表更新后得到的第二IP地址列表。The domain name resolution server sends a notification message to the gateway; the notification message is used to indicate that the first IP address list has been updated, and is used by the terminal to obtain information from the domain name resolution server after receiving the notification message sent by the gateway. The second IP address list obtained after the first IP address list is updated.
  13. 根据权利要求12所述的方法,其中,所述域名解析服务器向网关发送通知消息之后,还包括:The method according to claim 12, wherein after the domain name resolution server sends a notification message to the gateway, the method further comprises:
    接收所述终端发送的域名解析请求;所述域名解析请求包括所述第一域名;Receiving a domain name resolution request sent by the terminal; the domain name resolution request includes the first domain name;
    向所述终端发送域名解析结果,所述域名解析结果包括所述第二IP地址列表。Sending a domain name resolution result to the terminal, where the domain name resolution result includes the second IP address list.
  14. 根据权利要求12或13所述的方法,其中,所述向所述终端发送域名解析结果之前,还包括:The method according to claim 12 or 13, wherein before the sending the domain name resolution result to the terminal, the method further comprises:
    对所述第二IP地址列表进行哈希计算,得到第一哈希值;Perform a hash calculation on the second IP address list to obtain a first hash value;
    采用私钥对所述第一哈希值加密,得到第一签名;Encrypting the first hash value with a private key to obtain a first signature;
    基于所述第一签名和所述第二IP地址列表,确定所述域名解析结果。Determine the domain name resolution result based on the first signature and the second IP address list.
  15. 根据权利要求12至14任一项所述的方法,其中,所述第二IP地址列表包括:N个IP地址和与所述N个IP地址一一对应的N个权重参数,N为大于或等于1的整数。The method according to any one of claims 12 to 14, wherein the second IP address list comprises: N IP addresses and N weight parameters corresponding to the N IP addresses one-to-one, where N is greater than or An integer equal to 1.
  16. 一种IP地址的更新装置,包括:A device for updating an IP address includes:
    发送单元,用于向网关发送第一访问请求;The sending unit is used to send the first access request to the gateway;
    接收单元,用于接收网关发送的通知消息和第一访问结果;所述通知消息用于指示第一IP地址列表发生更新;A receiving unit, configured to receive a notification message and a first access result sent by the gateway; the notification message is used to indicate that the first IP address list is updated;
    获得单元,用于基于所述通知消息,从域名解析服务器中获得域名解析结果;所述域名解析结果包括对所述第一IP地址列表更新后得到的第二IP地址列表。The obtaining unit is configured to obtain a domain name resolution result from a domain name resolution server based on the notification message; the domain name resolution result includes a second IP address list obtained after updating the first IP address list.
  17. 一种IP地址的更新装置,包括:A device for updating an IP address includes:
    接收单元,用于接收域名解析服务器发送的通知消息;所述通知消息用于指示第一IP地址列表发生更新,并用于终端从所述域名解析服务器中,获取对所述第一IP地址列表更新后得到的第二IP地址列表;The receiving unit is configured to receive a notification message sent by a domain name resolution server; the notification message is used to indicate that the first IP address list is updated, and is used for the terminal to obtain updates to the first IP address list from the domain name resolution server The second IP address list obtained afterwards;
    所述接收单元,还用于接收所述终端发送的第一访问请求;The receiving unit is further configured to receive the first access request sent by the terminal;
    发送单元,用于向所述终端发送通知消息和第一访问结果。The sending unit is configured to send a notification message and the first access result to the terminal.
  18. 一种IP地址的更新装置,包括:A device for updating an IP address includes:
    发送单元,用于向网关发送通知消息;所述通知消息用于指示第一IP地址列表发生更新,并用于终端接收到网关发送的所述通知消息后,从所述域名解析服务器中,获取对所述第一IP地址列表更新后得到的第二IP地址列表。The sending unit is configured to send a notification message to the gateway; the notification message is used to indicate that the first IP address list is updated, and is used for the terminal to obtain the response from the domain name resolution server after receiving the notification message sent by the gateway The second IP address list obtained after the first IP address list is updated.
  19. 一种IP地址的更新设备,包括:存储器和处理器,A device for updating an IP address, including: a memory and a processor,
    所述存储器存储有可在处理器上运行的计算机程序,The memory stores a computer program that can run on the processor,
    所述处理器执行所述程序时实现权利要求1至8任一项所述方法中的步骤;When the processor executes the program, the steps in the method according to any one of claims 1 to 8 are implemented;
    或者,所述处理器执行所述程序时实现权利要求9至11任一项所述方法中的步骤;Or, when the processor executes the program, the steps in the method according to any one of claims 9 to 11 are implemented;
    或者,所述处理器执行所述程序时实现权利要求12至15任一项所述方法中的步骤。Or, when the processor executes the program, the steps in the method according to any one of claims 12 to 15 are implemented.
  20. 一种计算机存储介质,所述计算机存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现权利要求1至8任一项所述方法中的步骤;A computer storage medium, the computer storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the method described in any one of claims 1 to 8 A step of;
    或者,所述一个或者多个程序可被一个或者多个处理器执行,以实现权利要求9至11任一项所述方法中的步骤;Alternatively, the one or more programs may be executed by one or more processors to implement the steps in the method according to any one of claims 9 to 11;
    或者,所述一个或者多个程序可被一个或者多个处理器执行,以实现权利要求12至15任一项所述方法中的步骤。Alternatively, the one or more programs may be executed by one or more processors to implement the steps in the method according to any one of claims 12 to 15.
  21. 一种芯片,包括:处理器,用于从存储器中调用并运行计算机程序,使得安装有所述芯片的设备执行如权利要求1至8任一项所述方法中的步骤;A chip comprising: a processor, configured to call and run a computer program from a memory, so that a device installed with the chip executes the steps in the method according to any one of claims 1 to 8;
    或者,用于从存储器中调用并运行计算机程序,使得安装有所述芯片的设备执行如权利要求9至11任一项所述方法中的步骤;Or, used to call and run a computer program from the memory, so that the device installed with the chip executes the steps in the method according to any one of claims 9 to 11;
    或者,用于从存储器中调用并运行计算机程序,使得安装有所述芯片的设备执行如权利要求12至15任一项所述方法中的步骤。Alternatively, it is used to call and run a computer program from the memory, so that the device installed with the chip executes the steps in the method according to any one of claims 12 to 15.
  22. 一种计算机程序产品,所述计算机程序产品包括计算机存储介质,所述计算机存储介质存储计算机程序代码,所述计算机程序代码包括能够由至少一个处理器执行的指令,当所述指令由所述至少一个处理器执行时实现权利要求1至8中任一项所述的方法中的步骤;A computer program product includes a computer storage medium, the computer storage medium stores computer program code, and the computer program code includes instructions that can be executed by at least one processor. A processor implements the steps in the method of any one of claims 1 to 8 when executed;
    或者,当所述指令由所述至少一个处理器执行时实现权利要求9至11中任一项所述的方法中的步骤;Or, when the instructions are executed by the at least one processor, the steps in the method according to any one of claims 9 to 11 are implemented;
    或者,当所述指令由所述至少一个处理器执行时实现权利要求12至15中任一项所述的方法中的步骤。Or, when the instructions are executed by the at least one processor, the steps in the method according to any one of claims 12 to 15 are implemented.
PCT/CN2020/090097 2020-05-13 2020-05-13 Ip address updating method, apparatus, and device, and computer storage medium WO2021226894A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202080100495.9A CN115516835B (en) 2020-05-13 2020-05-13 Method, device, equipment and computer storage medium for updating IP address
PCT/CN2020/090097 WO2021226894A1 (en) 2020-05-13 2020-05-13 Ip address updating method, apparatus, and device, and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/090097 WO2021226894A1 (en) 2020-05-13 2020-05-13 Ip address updating method, apparatus, and device, and computer storage medium

Publications (1)

Publication Number Publication Date
WO2021226894A1 true WO2021226894A1 (en) 2021-11-18

Family

ID=78526165

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/090097 WO2021226894A1 (en) 2020-05-13 2020-05-13 Ip address updating method, apparatus, and device, and computer storage medium

Country Status (2)

Country Link
CN (1) CN115516835B (en)
WO (1) WO2021226894A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338630A (en) * 2021-12-13 2022-04-12 海尔优家智能科技(北京)有限公司 Domain name access method, device, electronic equipment, storage medium and program product
CN114979071A (en) * 2022-06-16 2022-08-30 Oppo广东移动通信有限公司 Dynamic domain name configuration method and device, electronic equipment and storage medium
CN115883515A (en) * 2022-12-23 2023-03-31 广州市保伦电子有限公司 Separable conference terminal IP configuration method, device, computer equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571956A (en) * 2012-01-09 2012-07-11 华为技术有限公司 Correlation identification table updating method, correlation identification method, device and system
CN105516394A (en) * 2016-01-15 2016-04-20 青岛海信移动通信技术股份有限公司 DNS (Domain Name System) address management method and terminal
US20160323238A1 (en) * 2013-12-17 2016-11-03 Tencent Technology (Shenzhen) Company Limited Ip management method, client and server
CN110855466A (en) * 2018-12-24 2020-02-28 互联网域名系统北京市工程研究中心有限公司 Method for actively pushing update to client by DNS (Domain name Server)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102231765A (en) * 2011-06-28 2011-11-02 中兴通讯股份有限公司 Method and device for realizing load balance and set-top box
CN103888358B (en) * 2012-12-20 2017-05-03 中国移动通信集团公司 Routing method, device, system and gateway equipment
RU2610586C2 (en) * 2013-05-13 2017-02-13 Общество С Ограниченной Ответственностью "Яндекс" Method and system for providing client device automatic update of ip address corresponding to domain name
CN110224996A (en) * 2019-05-20 2019-09-10 深圳壹账通智能科技有限公司 Network Access Method, device, computer equipment and the storage medium of application program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571956A (en) * 2012-01-09 2012-07-11 华为技术有限公司 Correlation identification table updating method, correlation identification method, device and system
US20160323238A1 (en) * 2013-12-17 2016-11-03 Tencent Technology (Shenzhen) Company Limited Ip management method, client and server
CN105516394A (en) * 2016-01-15 2016-04-20 青岛海信移动通信技术股份有限公司 DNS (Domain Name System) address management method and terminal
CN110855466A (en) * 2018-12-24 2020-02-28 互联网域名系统北京市工程研究中心有限公司 Method for actively pushing update to client by DNS (Domain name Server)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338630A (en) * 2021-12-13 2022-04-12 海尔优家智能科技(北京)有限公司 Domain name access method, device, electronic equipment, storage medium and program product
CN114338630B (en) * 2021-12-13 2024-04-19 海尔优家智能科技(北京)有限公司 Domain name access method, device, electronic equipment, storage medium and program product
CN114979071A (en) * 2022-06-16 2022-08-30 Oppo广东移动通信有限公司 Dynamic domain name configuration method and device, electronic equipment and storage medium
CN114979071B (en) * 2022-06-16 2024-03-26 Oppo广东移动通信有限公司 Dynamic domain name configuration method, device, electronic equipment and storage medium
CN115883515A (en) * 2022-12-23 2023-03-31 广州市保伦电子有限公司 Separable conference terminal IP configuration method, device, computer equipment and medium
CN115883515B (en) * 2022-12-23 2023-09-08 广东保伦电子股份有限公司 Separable conference terminal IP configuration method, device, computer equipment and medium

Also Published As

Publication number Publication date
CN115516835A (en) 2022-12-23
CN115516835B (en) 2024-03-29

Similar Documents

Publication Publication Date Title
US10735202B2 (en) Anonymous consent and data sharing on a blockchain
WO2021226894A1 (en) Ip address updating method, apparatus, and device, and computer storage medium
US8924674B2 (en) Permissions of objects in hosted storage
US20210385231A1 (en) Distributed data authentication and validation using blockchain
US10650119B2 (en) Multimedia data processing method, apparatus, system, and storage medium
US11233779B2 (en) Wireless credential sharing
US11509709B1 (en) Providing access to encrypted insights using anonymous insight records
JP7132350B2 (en) Domain-specific browser identifiers as a replacement for browser cookies
US11537738B2 (en) Self-consistent structures for secure transmission and temporary storage of sensitive data
JP2016530850A (en) Resource locator with key
TWI663865B (en) Identity management system based on cross-chain and method thereof
US11582020B2 (en) Homomorphic encryption offload for lightweight devices
US8924725B2 (en) Authenticated file handles for network file systems
WO2022068237A1 (en) Information processing method and apparatus for generating key on the basis of attribute of information, and device
WO2023051337A1 (en) Data processing method and apparatus, and device and storage medium
WO2022247385A1 (en) Blockchain-based data processing method, and blockchain node apparatus
JP2022543947A (en) Protect browser cookies
JP2023096089A (en) Pseudonym event certification by group signature
WO2022068235A1 (en) Information processing method and apparatus for generating random number on the basis of attribute of information, and device
US11604784B2 (en) Establishing decentralized identifiers for algorithms, data schemas, data sets, and algorithm execution requests
US20200382297A1 (en) Key registration transparency for secure messaging
JP6965885B2 (en) Information processing equipment, information processing methods, and programs
US11870763B2 (en) Systems and methods for inter-system account identification
WO2020238248A1 (en) Data storage method, apparatus and device
WO2011077305A1 (en) Methods and apparatuses for providing content for user terminals

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20935181

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 12/04/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20935181

Country of ref document: EP

Kind code of ref document: A1