CN112153170B - Method, device and equipment for accessing server and storage medium - Google Patents
Method, device and equipment for accessing server and storage medium Download PDFInfo
- Publication number
- CN112153170B CN112153170B CN202010964644.8A CN202010964644A CN112153170B CN 112153170 B CN112153170 B CN 112153170B CN 202010964644 A CN202010964644 A CN 202010964644A CN 112153170 B CN112153170 B CN 112153170B
- Authority
- CN
- China
- Prior art keywords
- target
- list
- domain name
- server
- initial
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 63
- 238000012163 sequencing technique Methods 0.000 claims abstract description 21
- 238000004590 computer program Methods 0.000 claims description 31
- 238000004891 communication Methods 0.000 claims description 6
- 238000012545 processing Methods 0.000 claims description 4
- 238000001514 detection method Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 10
- 230000000694 effects Effects 0.000 description 6
- 230000008569 process Effects 0.000 description 5
- 238000012217 deletion Methods 0.000 description 2
- 230000037430 deletion Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application discloses a method, a device, equipment and a storage medium for accessing a server, and belongs to the technical field of internet. The method comprises the following steps: acquiring a target domain name corresponding to a target service, and acquiring an IP address of each server for providing the target service based on the target domain name; sequencing the obtained IP addresses according to the sequence of the access speed from high to low to obtain an initial sequencing list; deleting n-bit IP addresses after ranking in the initial ranking list from the initial ranking list to obtain a target ranking list, wherein n is a positive integer; and sending the target ordered list to a client, wherein the target ordered list is used for the client to access the servers corresponding to the IP addresses in the target ordered list according to the sequence from first to last under the condition that the client needs to access the target domain name. The technical scheme provided by the embodiment of the application can ensure the access efficiency of the client to the service under the condition that the network environment where the domain name server is located is poor.
Description
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method, an apparatus, a device, and a storage medium for accessing a server.
Background
In practical applications, when accessing a certain service (for example, the service may be a web service, a picture service, or a music service), a client needs to acquire a domain name corresponding to the service, and request a domain name server (that is, a DNS server) for an IP address of a server providing the service based on the acquired domain name, and after receiving the IP address returned by the domain name server, the client may access the server providing the service based on the IP address, thereby implementing access to the service.
However, in many cases, the network environment in which the domain name server is located is likely to be poor, e.g., in some countries where network infrastructure is not up to date, the network environment in which the domain name server is located is generally poor. In this case, the time delay for the client to acquire the IP address returned by the domain name server is large, which results in low efficiency of the client's access to the service. Currently, how to ensure the access efficiency of a client to a service becomes an urgent problem to be solved under the condition that the network environment where a domain name server is located is poor.
Disclosure of Invention
Based on this, the embodiments of the present application provide a method, an apparatus, a device, and a storage medium for accessing a server, which can ensure the efficiency of accessing a service by a client under the condition that the network environment where a domain name server is located is poor.
In a first aspect, a method for accessing a server is provided, and the method includes:
acquiring a target domain name corresponding to a target service, and acquiring an IP address of each server for providing the target service based on the target domain name; sequencing the obtained IP addresses according to the sequence of the access speed from high to low to obtain an initial sequencing list; deleting n-bit IP addresses after ranking in the initial ranking list from the initial ranking list to obtain a target ranking list, wherein n is a positive integer; and sending the target ordered list to a client, wherein the target ordered list is used for the client to access the servers corresponding to the IP addresses in the target ordered list according to the sequence from first to last under the condition that the client needs to access the target domain name.
In one embodiment, deleting n-bit ranked IP addresses in the initial ordered list from the initial ordered list to obtain a target ordered list, including:
detecting whether the number of the IP addresses in the initial sorted list is larger than a first preset number threshold, wherein the first preset number threshold is determined according to the size of n; and if the number of the IP addresses in the initial ordered list is greater than the first preset number threshold, deleting the N-bit IP addresses ranked in the initial ordered list from the initial ordered list to obtain the target ordered list.
In one embodiment, the method further comprises:
and if the number of the IP addresses in the initial ordered list is less than or equal to the first preset number threshold, forbidding to delete the n-bit IP addresses ranked in the initial ordered list from the initial ordered list, and sending the initial ordered list to the client, wherein the initial ordered list is used for accessing the servers corresponding to the IP addresses in the initial ordered list according to the sequence from first to last under the condition that the client needs to access the target domain name.
In one embodiment, deleting n-bit ranked IP addresses in the initial ordered list from the initial ordered list to obtain a target ordered list, including:
detecting whether the access speed of the IP address of m-bit before the ranking in the initial ranking list is greater than a preset access speed threshold value, wherein m is a positive integer; and if the access speed of the IP address m before the ranking in the initial ranking list is greater than the preset access speed threshold, deleting the IP address n after the ranking in the initial ranking list from the initial ranking list to obtain the target ranking list.
In one embodiment, the method further comprises:
and if the access speed of the IP address of m bits before the ranking in the initial ordered list is less than or equal to the preset access speed threshold, forbidding to delete the IP address of n bits after the ranking in the initial ordered list from the initial ordered list, and sending the initial ordered list to the client, wherein the initial ordered list is used for accessing the server corresponding to the IP address in the initial ordered list according to the sequence from first to last under the condition that the client needs to access the target domain name.
In one embodiment, acquiring a target domain name corresponding to a target service, and acquiring an IP address of each server for providing the target service based on the target domain name includes:
detecting whether the number of access failure information received in a preset time before the current time exceeds a second preset number threshold or not, wherein the access failure information is used for indicating that the target service is failed to be accessed; if the number of the access failure information received in the preset time before the current time exceeds the second preset number threshold, the target domain name is obtained, and the IP address of each server for providing the target service is obtained based on the target domain name.
In one embodiment, obtaining the IP address of each server for providing the target service based on the target domain name includes:
sending a domain name resolution request to a domain name server, wherein the domain name resolution request comprises the target domain name; and receiving the IP address of each server for providing the target service, which is returned by the domain name server and is obtained based on the target domain name query.
In a second aspect, a method for accessing a server is provided, the method including:
after an access instruction for a target service is detected, a target domain name corresponding to the target service is acquired;
detecting whether a target ordered list is stored locally or not based on the target domain name, wherein the target ordered list is obtained by sequencing the IP addresses of all servers for providing the target service according to the sequence of the access speed from high to low by the server to obtain an initial ordered list and deleting n-bit IP addresses ranked in the initial ordered list from the initial ordered list; and if the target ordered list is locally stored, accessing the servers corresponding to the IP addresses in the target ordered list according to the sequence from first to last.
In one embodiment, the method further comprises:
and if the access to the servers corresponding to the IP addresses in the target ordered list fails, sending access failure information to the servers, wherein the access failure information is used for indicating that the access to the target service fails.
In a third aspect, an apparatus for accessing a server is provided, the apparatus for accessing a server including:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a target domain name corresponding to a target service and acquiring the IP address of each server for providing the target service based on the target domain name;
the sequencing module is used for sequencing the acquired IP addresses according to the sequence from high access speed to low access speed to obtain an initial sequencing list;
a deleting module, configured to delete n ranked IP addresses in the initial sorted list from the initial sorted list to obtain a target sorted list, where n is a positive integer;
and the sending module is used for sending the target ordered list to the client, and the target ordered list is used for allowing the client to access the servers corresponding to the IP addresses in the target ordered list according to the sequence from first to last under the condition that the client needs to access the target domain name.
In one embodiment, the deletion module is specifically configured to: detecting whether the number of the IP addresses in the initial sorted list is larger than a first preset number threshold, wherein the first preset number threshold is determined according to the size of n; and if the number of the IP addresses in the initial ordered list is greater than the first preset number threshold, deleting the N-bit IP addresses ranked in the initial ordered list from the initial ordered list to obtain the target ordered list.
In one embodiment, the sending module is further configured to: and if the number of the IP addresses in the initial ordered list is less than or equal to the first preset number threshold, forbidding to delete the n-bit IP addresses ranked in the initial ordered list from the initial ordered list, and sending the initial ordered list to the client, wherein the initial ordered list is used for accessing the servers corresponding to the IP addresses in the initial ordered list according to the sequence from first to last under the condition that the client needs to access the target domain name.
In one embodiment, the deleting module is specifically configured to: detecting whether the access speed of the IP address of m-bit before the ranking in the initial ranking list is greater than a preset access speed threshold value, wherein m is a positive integer; and if the access speed of the IP address m before the ranking in the initial ranking list is greater than the preset access speed threshold, deleting the IP address n after the ranking in the initial ranking list from the initial ranking list to obtain the target ranking list.
In one embodiment, the sending module is further configured to: and if the access speed of the IP address of m bits before the ranking in the initial ordered list is less than or equal to the preset access speed threshold, forbidding to delete the IP address of n bits after the ranking in the initial ordered list from the initial ordered list, and sending the initial ordered list to the client, wherein the initial ordered list is used for accessing the server corresponding to the IP address in the initial ordered list according to the sequence from first to last under the condition that the client needs to access the target domain name.
In one embodiment, the obtaining module is specifically configured to: detecting whether the number of access failure information received in a preset time before the current time exceeds a second preset number threshold or not, wherein the access failure information is used for indicating that the target service is failed to be accessed; if the number of the access failure information received in the preset time before the current time exceeds the second preset number threshold, the target domain name is obtained, and the IP address of each server for providing the target service is obtained based on the target domain name.
In one embodiment, the obtaining module is specifically configured to: sending a domain name resolution request to a domain name server, wherein the domain name resolution request comprises the target domain name; and receiving the IP address of each server for providing the target service, which is returned by the domain name server and is obtained based on the target domain name query.
In a fourth aspect, there is provided an apparatus for accessing a server, the apparatus for accessing a server comprising:
the acquisition module is used for acquiring a target domain name corresponding to a target service after detecting an access instruction aiming at the target service;
the detection module is used for detecting whether a target ordered list is stored locally or not based on the target domain name, wherein the target ordered list is obtained by sequencing the IP addresses of all servers for providing the target service according to the sequence from high access speed to low access speed by the servers to obtain an initial ordered list and deleting the N-bit IP addresses after being ranked in the initial ordered list from the initial ordered list;
and the access module is used for accessing the servers corresponding to the IP addresses in the target ordered list according to the sequence from first to last under the condition that the target ordered list is locally stored.
In one embodiment, the apparatus further comprises a sending module;
the sending module is configured to send access failure information to the server when all servers corresponding to the IP addresses in the target ordered list fail to access, where the access failure information is used to indicate that the access to the target service fails.
In a fifth aspect, there is provided a computer device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, implements the method of accessing a server as described in any one of the first aspects above; alternatively, the computer program, when executed by the processor, implements a method of accessing a server as described in any of the second aspects above.
A sixth aspect provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of accessing a server as described in any one of the first aspects above; alternatively, the computer program, when executed by a processor, implements a method of accessing a server as described in any of the second aspects above.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
the method comprises the steps of obtaining a target domain name corresponding to a target service, obtaining IP addresses of servers for providing the target service based on the target domain name, sequencing the obtained IP addresses in a sequence from high access speed to low access speed to obtain an initial ordered list, deleting n-bit IP addresses ranked in the initial ordered list from the initial ordered list to obtain a target ordered list, and sending the target ordered list to a client, wherein the target ordered list is used for the client to access the servers corresponding to the IP addresses in the target ordered list in a sequence from first to last under the condition that the client needs to access the target domain name, so that the client does not need to request the IP addresses from a domain name server and can directly obtain the IP addresses from the target ordered list when the client needs to access the target domain name, and the time delay of the client for obtaining the IP addresses is not influenced by the network environment where the domain name server is located, therefore, even under the condition that the network environment of the domain name server is poor, the access efficiency of the client to the target service can be ensured.
Drawings
FIG. 1 is a flow chart of accessing a service;
FIG. 2 is a schematic diagram of an implementation environment in which embodiments of the present application are related;
fig. 3 is a flowchart of a method for accessing a server according to an embodiment of the present application;
fig. 4 is a flowchart of a manner in which n IP addresses ranked in the initial sorted list are deleted from the initial sorted list according to an embodiment of the present application;
fig. 5 is a flowchart of a manner in which n IP addresses ranked in the initial sorted list are deleted from the initial sorted list according to the embodiment of the present application;
fig. 6 is a flowchart of a method for accessing a server according to an embodiment of the present application;
fig. 7 is a flowchart of a method for accessing a server according to an embodiment of the present application;
fig. 8 is a block diagram of an apparatus for accessing a server according to an embodiment of the present disclosure;
fig. 9 is a block diagram of another apparatus for accessing a server according to an embodiment of the present disclosure;
FIG. 10 is a block diagram of another apparatus for accessing a server according to an embodiment of the present disclosure
Fig. 11 is a block diagram of a computer device according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
In practical application, when accessing a certain service, the client needs to interact with the domain name server to request the domain name server for the IP address of the server providing the service, and then the client can access the corresponding server according to the IP address returned by the domain name server, thereby realizing the access to the service.
Referring to fig. 1, for example, if a client needs to access a certain picture service, the client may obtain a url domain name corresponding to the picture service, and then the client may send the url domain name to a domain name server, where the domain name server may obtain an IP address of a server providing the picture service based on a query of the url domain name, and then the domain name server may send the IP address to the client, and the client may access the server providing the picture service based on the IP address and request a picture resource from the server by accessing the server, where the server may send the picture resource to the client based on a request of the client.
However, in practical applications, the network environment where the domain name server is located is likely to be poor, and in this case, the interaction delay between the client and the domain name server is increased, and then the delay for the client to obtain the IP address from the domain name server is increased, which may reduce the access efficiency of the client to the service.
In view of this, an embodiment of the present application provides a method for accessing a server, in which a target domain name corresponding to a target service may be obtained, IP addresses of servers for providing the target service are obtained based on the target domain name, then the obtained IP addresses are sorted according to a sequence from a fast access speed to a slow access speed to obtain an initial sorted list, n-th IP addresses ranked in the initial sorted list are deleted from the initial sorted list to obtain a target sorted list, and then the target sorted list is sent to a client, where the target sorted list is used for the client to access the servers corresponding to the IP addresses in the target sorted list according to a sequence from the first to the last when the client needs to access the target domain name, so that the client does not need to request the domain name server for the IP addresses when the client needs to access the target domain name, the IP address can be directly obtained from the target ordered list, so that the time delay of the client for obtaining the IP address can not be influenced by the network environment of the domain name server, and the access efficiency of the client to the target service can be ensured even under the condition that the network environment of the domain name server is poor.
In the following, a brief description will be given of an implementation environment related to the method for accessing a server provided in the embodiment of the present application.
As shown in fig. 2, the implementation environment may include a client 101, a list server 102, and a domain name server 103, where the client 101 establishes a communication connection with the list server 102 and the domain name server 103, respectively, and the list server 102 establishes a communication connection with the domain name server 103.
The client 101 may be a terminal device such as a smart phone, a tablet computer, a desktop computer, a wearable device, an MP3 player, an e-book reader, and a vehicle-mounted device, and may also be an application installed in the terminal device, which is not specifically limited in the embodiment of the present application.
The list server 102 may be one server or a server cluster including a plurality of servers, and the domain name server 103 may be one server or a server cluster including a plurality of servers.
It should be noted that, in an alternative embodiment of the present application, the list server 102 and the domain name server 103 may be the same server or different servers, and this is not specifically limited in the present application.
Referring to fig. 3, a flowchart of a method for accessing a server according to an embodiment of the present application is shown, where the method for accessing a server may be applied to the list server 102 in the implementation environment shown in fig. 2. As shown in fig. 3, the method for accessing a server may include the steps of:
In an optional embodiment of the present application, the list server may maintain a plurality of services, where the target service is any one of the plurality of services maintained by the list server, in other words, in an embodiment of the present application, the list server may perform the method for accessing the server provided in the embodiment of the present application on each service maintained by the list server.
In a possible implementation manner, the list server may periodically perform a technical process of acquiring a target domain name corresponding to the target service, and acquiring an IP address of each server for providing the target service based on the target domain name.
In another possible implementation manner, the list server may periodically detect whether the number of access failure information received within a preset time period before the current time exceeds a second preset number threshold, where the access failure information is used to indicate that the access to the target service fails.
If the number of the access failure information received within the preset time before the current time exceeds a second preset number threshold, it indicates that the IP addresses in the target ordered list pushed to the client by the list server history are invalid, so that the client cannot successfully access the target service according to the IP addresses in the target ordered list pushed to the client by the list server history, where the target ordered list includes the IP addresses of a plurality of servers for providing the target service, or indicates that the network environment where the domain name server is currently located is poor, so that the client cannot obtain the IP address of the server for providing the target service from the domain name server.
In the above case, the list server may perform a technical process of acquiring a target domain name corresponding to the target service and acquiring an IP address of each server for providing the target service based on the target domain name. In this way, the list server can push the target ordered list to the client in a subsequent step. In the case where the client stores the target ordered list pushed to the client by the list server history, the client may update the target ordered list pushed to the client by the list server history stored in the client by using the target ordered list pushed to the client by the list server in the subsequent step. In the case that the client does not store the target ordered list which is historically pushed to the client by the list server, the client may locally store the target ordered list which is pushed to the client by the list server in the subsequent steps.
In an alternative embodiment of the present application, the list server may obtain the IP addresses of the servers for providing the target service by using the following technical process: the list server sends a domain name resolution request to a domain name server, wherein the domain name resolution request comprises a target domain name, and the list server receives IP addresses of all servers which are used for providing target services and are obtained based on the target domain name query and returned by the domain name server.
After acquiring the IP addresses of the plurality of servers for providing the target service, the list server may transmit a ping command to each of the servers for providing the target service based on the acquired respective IP addresses, and the list server may determine an access speed of each of the servers for providing the target service based on a time period during which each of the servers for providing the target service responds to the ping command. The list server may then rank the IP addresses of the plurality of servers for providing the target service based on the access speed of each server for providing the target service, resulting in the initial ranked list.
In general, the access speed of a server corresponding to an n-bit IP address in the initial ordered list is generally slow, pushing such an IP address to a client not only wastes network traffic, but also guides the client to access the server with the slow access speed, thereby causing a negative impact on the efficiency of the client in accessing a target service.
The target ordered list is used for the client to access the servers corresponding to the IP addresses in the target ordered list according to the sequence from first to last under the condition that the client needs to access the target domain name until the client accesses successfully or until the client accesses all the servers unsuccessfully.
The method for accessing a server provided in the embodiment of the application obtains a target domain name corresponding to a target service, obtains IP addresses of servers for providing the target service based on the target domain name, sorts the obtained IP addresses according to a sequence from high to low access speed to obtain an initial sorted list, deletes n-ranked IP addresses in the initial sorted list from the initial sorted list to obtain a target sorted list, and sends the target sorted list to a client, wherein the target sorted list is used for the client to access the servers corresponding to the IP addresses in the target sorted list according to a sequence from first to last when the client needs to access the target domain name, so that the client does not need to request the IP addresses from the domain name server when the client needs to access the target domain name, and can directly obtain the IP addresses from the target sorted list, therefore, the time delay of the client for acquiring the IP address can not be influenced by the network environment of the domain name server, so that the access efficiency of the client to the target service can be ensured even under the condition that the network environment of the domain name server is poor.
The embodiment of the present application provides two exemplary manners of deleting n-bit IP addresses ranked in the initial sorted list from the initial sorted list, and the two manners will be described in the embodiment of the present application one by one.
Referring to fig. 4, a first way to delete the n-bit ranked IP addresses in the initial sorted list from the initial sorted list is shown, and as shown in fig. 4, the method includes the following steps:
The first preset number threshold is determined according to the size of n, for example, the first number threshold may be obtained by a function calculation according to the size of n.
In practical application, if the number of the IP addresses in the initial ordered list is greater than the first preset number threshold, it indicates that there are more IP addresses in the initial ordered list for the client to try to access, and therefore, in this case, the list server may delete n ranked IP addresses in the initial ordered list from the initial ordered list, so as to save network traffic and avoid negative impact on the efficiency of the client in accessing the target service.
On the contrary, if the number of the IP addresses in the initial sorted list is less than or equal to the first preset number threshold, it indicates that the number of the IP addresses for the client to attempt to access is small in the initial sorted list, and in this case, if the IP addresses are also deleted from the initial sorted list, the number of the IP addresses for the client to attempt to access is further reduced, which may negatively affect the efficiency of the client to access the target service.
Referring to fig. 5, a second way of deleting n-bit ranked IP addresses in the initial sorted list from the initial sorted list is shown, which, as shown in fig. 5, includes the following steps:
The access speed of the IP address m bits before the ranking may be an average value of the access speeds of the IP addresses m bits before the ranking, or a minimum value of the access speeds of the IP addresses m bits before the ranking, which is not specifically limited in this embodiment of the application.
In practical application, if the access speed of the IP address m bits before the ranking in the initial sorted list is greater than the preset access speed threshold, it indicates that the client is likely to successfully implement access to the target service through the IP address m bits before the ranking in the initial sorted list.
On the contrary, if the access speed of the IP address m before the ranking in the initial sorted list is less than or equal to the preset access speed threshold, it indicates that the client may not successfully implement access to the target service through the IP address m before the ranking in the initial sorted list, and in this case, the client may need to try more IP addresses to implement access to the target service.
Referring to fig. 6, it shows a flowchart of a method for accessing a server according to an embodiment of the present application, where the method for accessing a server can be applied in the client 101 in the implementation environment shown in fig. 2. As shown in fig. 6, the method for accessing a server may include the steps of:
The target ordered list is obtained by the list server ordering the IP addresses of the servers for providing the target service according to the sequence from high access speed to low access speed to obtain an initial ordered list and deleting the N-bit IP addresses ranked in the initial ordered list from the initial ordered list.
In an optional embodiment of the present application, if all the servers corresponding to the IP addresses in the target ordered list fail to be accessed, the client sends access failure information to the list server, where the access failure information is used to indicate that the access to the target service fails.
Referring to fig. 7, a flowchart of a method for accessing a server according to an embodiment of the present application is shown, where the method for accessing a server may be applied in the implementation environment shown in fig. 2. As shown in fig. 7, the method for accessing a server may include the steps of:
step 701, the list server detects whether the number of access failure messages received within a preset time period before the current time exceeds a second preset number threshold.
Wherein the access failure information is used for indicating that the access to the target service fails.
Step 702, if the number of the access failure information received within the preset time period before the current time exceeds a second preset number threshold, the list server obtains a target domain name corresponding to the target service.
Step 703, the list server sends a domain name resolution request to the domain name server.
The domain name resolution request includes a target domain name.
Step 704, the list server receives the IP addresses of the servers for providing the target service, which are obtained based on the target domain name query and returned by the domain name server.
Step 705, the list server sorts the acquired IP addresses according to the sequence of the access speed from fast to slow, so as to obtain an initial sorted list.
Step 706, the list server detects whether the number of IP addresses in the initial sorted list is greater than a first preset number threshold.
Step 707, the list server detects whether the access speed of the IP address m bits before the rank in the initial sorted list is greater than a preset access speed threshold.
Step 708, if the number of the IP addresses in the initial sorted list is greater than a first preset number threshold, and the access speed of the IP address m before the ranking in the initial sorted list is greater than a preset access speed threshold, the list server deletes the IP address n after the ranking in the initial sorted list from the initial sorted list to obtain a target sorted list, where n is a positive integer.
If the number of the IP addresses in the initial ordered list is smaller than or equal to a first preset number threshold, or the access speed of the IP address m before the ranking in the initial ordered list is smaller than or equal to a preset access speed threshold, the list server prohibits deleting the IP address n after the ranking in the initial ordered list from the initial ordered list, and sends the initial ordered list to the client, wherein the initial ordered list is used for the client to access the server corresponding to the IP address in the initial ordered list according to the sequence from first to last under the condition that the client needs to access the target domain name.
Step 709, the list server sends the target ordered list to the client.
The target ordered list is used for the client to access the servers corresponding to the IP addresses in the target ordered list according to the sequence from first to last under the condition that the client needs to access the target domain name.
Step 710, after detecting the access instruction for the target service, the client obtains a target domain name corresponding to the target service.
Step 711, the client detects whether a target ordered list is stored locally based on the target domain name.
And 712, if the target ordered list is stored locally, the client accesses the servers corresponding to the IP addresses in the target ordered list according to the sequence from first to last.
And if the access to the servers corresponding to the IP addresses in the target ordered list fails, the client sends access failure information to the list server, wherein the access failure information is used for indicating that the access to the target service fails.
Referring to fig. 8, a block diagram of an apparatus 800 for accessing a server according to an embodiment of the present application is shown, where the apparatus 800 for accessing a server may be configured in the list server 102 shown in fig. 2. As shown in fig. 8, the apparatus 800 for accessing a server may include: an acquisition module 801, an ordering module 802, a deletion module 803, and a sending module 804.
The obtaining module 801 is configured to obtain a target domain name corresponding to a target service, and obtain an IP address of each server for providing the target service based on the target domain name.
The sorting module 802 is configured to sort the acquired IP addresses according to a sequence from a fast access speed to a slow access speed, so as to obtain an initial sorted list.
The deleting module 803 is configured to delete n ranked IP addresses in the initial sorted list from the initial sorted list to obtain a target sorted list, where n is a positive integer.
The sending module 804 is configured to send the target ordered list to the client, where the target ordered list is used for the client to access the servers corresponding to the IP addresses in the target ordered list according to a sequence from first to last when the client needs to access the target domain name.
In an optional embodiment of the present application, the deleting module 803 is specifically configured to: detecting whether the number of the IP addresses in the initial sorted list is larger than a first preset number threshold, wherein the first preset number threshold is determined according to the size of n; and if the number of the IP addresses in the initial ordered list is greater than the first preset number threshold, deleting the N-bit IP addresses ranked in the initial ordered list from the initial ordered list to obtain the target ordered list.
In an optional embodiment of the present application, the sending module 804 is further configured to: and if the number of the IP addresses in the initial ordered list is less than or equal to the first preset number threshold, forbidding to delete the n-bit IP addresses ranked in the initial ordered list from the initial ordered list, and sending the initial ordered list to the client, wherein the initial ordered list is used for accessing the servers corresponding to the IP addresses in the initial ordered list according to the sequence from first to last under the condition that the client needs to access the target domain name.
In an optional embodiment of the present application, the deleting module 803 is specifically configured to: detecting whether the access speed of the IP address of m-bit before the ranking in the initial ranking list is greater than a preset access speed threshold value, wherein m is a positive integer; and if the access speed of the IP address m before the ranking in the initial ranking list is greater than the preset access speed threshold, deleting the IP address n after the ranking in the initial ranking list from the initial ranking list to obtain the target ranking list.
In an optional embodiment of the present application, the sending module 804 is further configured to: and if the access speed of the IP address of m bits before the ranking in the initial ordered list is less than or equal to the preset access speed threshold, forbidding to delete the IP address of n bits after the ranking in the initial ordered list from the initial ordered list, and sending the initial ordered list to the client, wherein the initial ordered list is used for accessing the server corresponding to the IP address in the initial ordered list according to the sequence from first to last under the condition that the client needs to access the target domain name.
In an optional embodiment of the present application, the obtaining module 801 is specifically configured to: detecting whether the quantity of access failure information received in a preset time before the current time exceeds a second preset quantity threshold value or not, wherein the access failure information is used for indicating that the target service is failed to be accessed; if the number of the access failure information received in the preset time before the current time exceeds the second preset number threshold, the target domain name is obtained, and the IP address of each server for providing the target service is obtained based on the target domain name.
In an optional embodiment of the present application, the obtaining module 801 is specifically configured to: sending a domain name resolution request to a domain name server, wherein the domain name resolution request comprises the target domain name; and receiving the IP address of each server for providing the target service, which is returned by the domain name server and is obtained based on the target domain name query.
The apparatus for accessing a server provided in the embodiment of the present application may implement the method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
For specific limitations of the device for accessing the server, reference may be made to the above limitations of the method for accessing the server, which are not described herein again. The respective modules in the above-mentioned apparatus for accessing a server may be wholly or partially implemented by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute the operations of the modules.
Referring to fig. 9, a block diagram of an apparatus 900 for accessing a server according to an embodiment of the present application is shown, where the apparatus 900 for accessing a server may be configured in the client 101 shown in fig. 2. As shown in fig. 9, the apparatus 900 for accessing a server may include: an acquisition module 901, a detection module 902 and an access module 903.
The obtaining module 901 is configured to obtain a target domain name corresponding to a target service after detecting an access instruction for the target service.
The detecting module 902 is configured to detect whether a target ordered list is locally stored based on the target domain name, where the target ordered list is obtained by sorting, by the server, the IP addresses of the servers for providing the target service in an order from fast to slow access speed to obtain an initial ordered list, and deleting n IP addresses ranked in the initial ordered list from the initial ordered list.
The accessing module 903 is configured to, in a case that the target ordered list is locally stored, access a server corresponding to the IP address in the target ordered list according to a sequence from the first to the last.
Referring to fig. 10, a block diagram of another apparatus 1000 for accessing a server according to an embodiment of the present application is shown, where the apparatus 1000 for accessing a server includes, in addition to various modules included in the apparatus 900 for accessing a server, an optional sending module 904.
The sending module 904 is configured to send access failure information to the server when all the servers corresponding to the IP addresses in the target ordered list fail to access, where the access failure information is used to indicate that the access to the target service fails.
The apparatus for accessing a server provided in the embodiment of the present application may implement the method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
For specific limitations of the device for accessing the server, reference may be made to the above limitations of the method for accessing the server, which are not described herein again. The respective modules in the above-mentioned apparatus for accessing a server may be wholly or partially implemented by software, hardware, and a combination thereof. The modules can be embedded in hardware or independent of a processor in the computer device, or can be stored in a memory in the computer device in software, so that the processor can call and execute operations of the modules.
Referring to FIG. 11, a block diagram of an alternative computer device, which may be a server or a client, is shown, according to an embodiment of the present application, and may include a processor and memory connected via a system bus, as shown in FIG. 11. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operating system and the computer program to run on the non-volatile storage medium. The computer program when executed by a processor implements a method of accessing a computer device.
Those skilled in the art will appreciate that the architecture shown in fig. 11 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment of the present application, there is provided a computer device, which may be a server, comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the following steps when executing the computer program:
acquiring a target domain name corresponding to a target service, and acquiring an IP address of each server for providing the target service based on the target domain name; sequencing the obtained IP addresses according to the sequence of the access speed from high to low to obtain an initial sequencing list; deleting n-bit IP addresses after ranking in the initial ranking list from the initial ranking list to obtain a target ranking list, wherein n is a positive integer; and sending the target ordered list to a client, wherein the target ordered list is used for the client to access the servers corresponding to the IP addresses in the target ordered list according to the sequence from first to last under the condition that the client needs to access the target domain name.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: detecting whether the number of the IP addresses in the initial sorted list is larger than a first preset number threshold, wherein the first preset number threshold is determined according to the size of n; and if the number of the IP addresses in the initial ordered list is greater than the first preset number threshold, deleting the N-bit IP addresses ranked in the initial ordered list from the initial ordered list to obtain the target ordered list.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: and if the number of the IP addresses in the initial ordered list is less than or equal to the first preset number threshold, forbidding to delete the n-bit IP addresses ranked in the initial ordered list from the initial ordered list, and sending the initial ordered list to the client, wherein the initial ordered list is used for accessing the servers corresponding to the IP addresses in the initial ordered list according to the sequence from first to last under the condition that the client needs to access the target domain name.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: detecting whether the access speed of the IP address with m bits before the ranking in the initial ranking list is larger than a preset access speed threshold value or not, wherein m is a positive integer; and if the access speed of the IP address m before the ranking in the initial ranking list is greater than the preset access speed threshold, deleting the IP address n after the ranking in the initial ranking list from the initial ranking list to obtain the target ranking list.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: and if the access speed of the IP address of m bits before the ranking in the initial ordered list is less than or equal to the preset access speed threshold, forbidding to delete the IP address of n bits after the ranking in the initial ordered list from the initial ordered list, and sending the initial ordered list to the client, wherein the initial ordered list is used for accessing the server corresponding to the IP address in the initial ordered list according to the sequence from first to last under the condition that the client needs to access the target domain name.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: detecting whether the number of access failure information received in a preset time before the current time exceeds a second preset number threshold or not, wherein the access failure information is used for indicating that the target service is failed to be accessed; if the number of the access failure messages received within the preset time before the current moment exceeds the second preset number threshold, the target domain name is obtained, and the IP address of each server for providing the target service is obtained based on the target domain name.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: sending a domain name resolution request to a domain name server, wherein the domain name resolution request comprises the target domain name; and receiving the IP address of each server for providing the target service, which is returned by the domain name server and is obtained based on the target domain name query.
The implementation principle and technical effect of the computer device provided by the embodiment of the present application are similar to those of the method embodiment described above, and are not described herein again.
In one embodiment of the present application, there is provided a computer device, which may be a client, comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the following steps when executing the computer program:
after an access instruction for a target service is detected, a target domain name corresponding to the target service is acquired; detecting whether a target ordered list is stored locally or not based on the target domain name, wherein the target ordered list is obtained by sequencing the IP addresses of all servers for providing the target service according to the sequence of the access speed from high to low by the server to obtain an initial ordered list and deleting n-bit IP addresses ranked in the initial ordered list from the initial ordered list; and if the target ordered list is locally stored, accessing the servers corresponding to the IP addresses in the target ordered list according to the sequence from first to last.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: and if the access to the servers corresponding to the IP addresses in the target ordered list fails, sending access failure information to the servers, wherein the access failure information is used for indicating that the access to the target service fails.
The implementation principle and technical effect of the computer device provided in the embodiment of the present application are similar to those of the method embodiment described above, and are not described herein again.
In an embodiment of the application, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, performs the steps of:
acquiring a target domain name corresponding to a target service, and acquiring an IP address of each server for providing the target service based on the target domain name; sequencing the obtained IP addresses according to the sequence of the access speed from high to low to obtain an initial sequencing list; deleting n-bit IP addresses after ranking in the initial ranking list from the initial ranking list to obtain a target ranking list, wherein n is a positive integer; and sending the target ordered list to a client, wherein the target ordered list is used for the client to access the servers corresponding to the IP addresses in the target ordered list according to the sequence from first to last under the condition that the client needs to access the target domain name.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: detecting whether the number of the IP addresses in the initial sorted list is larger than a first preset number threshold, wherein the first preset number threshold is determined according to the size of n; and if the number of the IP addresses in the initial ordered list is greater than the first preset number threshold, deleting the N-bit IP addresses ranked in the initial ordered list from the initial ordered list to obtain the target ordered list.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: and if the number of the IP addresses in the initial ordered list is less than or equal to the first preset number threshold, forbidding to delete n-bit IP addresses ranked in the initial ordered list from the initial ordered list, and sending the initial ordered list to the client, wherein the initial ordered list is used for accessing the servers corresponding to the IP addresses in the initial ordered list according to the sequence from first to last under the condition that the client needs to access the target domain name.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: detecting whether the access speed of the IP address of m-bit before the ranking in the initial ranking list is greater than a preset access speed threshold value, wherein m is a positive integer; and if the access speed of the IP address m before the ranking in the initial ranking list is greater than the preset access speed threshold, deleting the IP address n after the ranking in the initial ranking list from the initial ranking list to obtain the target ranking list.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: and if the access speed of the IP address of m bits before the ranking in the initial ordered list is less than or equal to the preset access speed threshold, forbidding to delete the IP address of n bits after the ranking in the initial ordered list from the initial ordered list, and sending the initial ordered list to the client, wherein the initial ordered list is used for accessing the server corresponding to the IP address in the initial ordered list according to the sequence from first to last under the condition that the client needs to access the target domain name.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: detecting whether the number of access failure information received in a preset time before the current time exceeds a second preset number threshold or not, wherein the access failure information is used for indicating that the target service is failed to be accessed; if the number of the access failure information received in the preset time before the current time exceeds the second preset number threshold, the target domain name is obtained, and the IP address of each server for providing the target service is obtained based on the target domain name.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: sending a domain name resolution request to a domain name server, wherein the domain name resolution request comprises the target domain name; and receiving the IP address of each server for providing the target service, which is returned by the domain name server and is obtained based on the target domain name query.
The implementation principle and technical effect of the computer-readable storage medium provided by this embodiment are similar to those of the above-described method embodiment, and are not described herein again.
In an embodiment of the application, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of:
after an access instruction for a target service is detected, a target domain name corresponding to the target service is acquired; detecting whether a target ordered list is stored locally or not based on the target domain name, wherein the target ordered list is obtained by sequencing the IP addresses of all servers for providing the target service according to the sequence of the access speed from high to low by the server to obtain an initial ordered list and deleting n-bit IP addresses ranked in the initial ordered list from the initial ordered list; and if the target ordered list is locally stored, accessing the servers corresponding to the IP addresses in the target ordered list according to the sequence from first to last.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: and if the access to the servers corresponding to the IP addresses in the target ordered list fails, sending access failure information to the servers, wherein the access failure information is used for indicating that the access to the target service fails.
The implementation principle and technical effect of the computer-readable storage medium provided by this embodiment are similar to those of the above-described method embodiment, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several implementation modes of the present application, and the description thereof is specific and detailed, but not construed as limiting the scope of the claims. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. A method for accessing a server, wherein the method is used in a list server, and the list server establishes communication connections with a domain name server and a client, respectively, and the method includes:
periodically detecting whether the number of access failure information received in a preset time length before the current time exceeds a second preset number threshold or not, wherein the access failure information is used for indicating that the access to a target service fails, and the access failure information is sent under the condition that the client fails to access all servers corresponding to IP addresses in a locally stored ordered list;
if the number of the access failure information received within the preset time before the current time exceeds the second preset number threshold, acquiring a target domain name corresponding to the target service, sending a domain name resolution request to the domain name server, wherein the domain name resolution request comprises the target domain name, and receiving an IP address, which is returned by the domain name server and is obtained based on the target domain name query, of each server for providing the target service;
sequencing the obtained IP addresses according to the sequence of the access speed from high to low to obtain an initial sequencing list;
deleting n-bit IP addresses after ranking in the initial ranking list from the initial ranking list to obtain a target ranking list, wherein n is a positive integer;
and sending the target ordered list to a client, wherein the target ordered list is used for enabling the client to acquire the target domain name after detecting an access instruction for the target service, and accessing the servers corresponding to the IP addresses in the target ordered list according to the sequence from first to last under the condition that the target ordered list corresponding to the target domain name is determined to be locally stored on the basis of the target domain name.
2. The method of claim 1, wherein deleting n-bit IP addresses ranked in the initial sorted list from the initial sorted list to obtain a target sorted list comprises:
detecting whether the number of the IP addresses in the initial sorted list is larger than a first preset number threshold, wherein the first preset number threshold is determined according to the size of n;
and if the number of the IP addresses in the initial ordered list is greater than the first preset number threshold, deleting n-bit IP addresses ranked in the initial ordered list from the initial ordered list to obtain the target ordered list.
3. The method of claim 2, further comprising:
and if the number of the IP addresses in the initial ordered list is less than or equal to the first preset number threshold, forbidding to delete n-bit IP addresses ranked in the initial ordered list from the initial ordered list, and sending the initial ordered list to the client, wherein the initial ordered list is used for accessing the servers corresponding to the IP addresses in the initial ordered list according to the sequence from first to last under the condition that the client needs to access the target domain name.
4. The method of claim 1, wherein deleting n-bit IP addresses ranked in the initial sorted list from the initial sorted list to obtain a target sorted list comprises:
detecting whether the access speed of the IP address of m-th rank in the initial ranking list is greater than a preset access speed threshold value, wherein m is a positive integer;
and if the access speed of the IP address m before the ranking in the initial ranking list is greater than the preset access speed threshold, deleting the IP address n after the ranking in the initial ranking list from the initial ranking list to obtain the target ranking list.
5. The method of claim 4, further comprising:
and if the access speed of the IP address with m bits before the ranking in the initial ranking list is less than or equal to the preset access speed threshold, forbidding to delete the IP address with n bits after the ranking in the initial ranking list from the initial ranking list, and sending the initial ranking list to the client, wherein the initial ranking list is used for accessing the server corresponding to the IP address in the initial ranking list according to the sequence from first to last under the condition that the client needs to access the target domain name.
6. A method for accessing a server, the method being used in a client, the client establishing communication connections with a list server and a domain name server, respectively, the method comprising:
after an access instruction for a target service is detected, acquiring a target domain name corresponding to the target service;
detecting whether a target domain name is locally stored or not based on the target domain name, wherein the target domain name is obtained when the number of access failure information received by the list server within a preset time length before the current time is periodically detected exceeds a second preset number threshold, after a domain name resolution request is sent to the domain name server, the IP addresses of all servers, which are returned by the domain name server and used for providing the target service, are sequenced according to the sequence from high access speed to low access speed to obtain an initial sequence list, and n-bit IP addresses after ranking in the initial sequence list are deleted from the initial sequence list to obtain the domain name resolution request, wherein the domain name resolution request comprises the target domain name, and the access failure information is used for indicating that the target service is failed to access;
if the target ordered list is locally stored, accessing servers corresponding to the IP addresses in the target ordered list according to a sequence from first to last;
and if the access to the servers corresponding to the IP addresses in the target ordered list is failed, sending access failure information to the servers, wherein the access failure information is used for indicating that the access to the target service is failed.
7. An apparatus for accessing a server, the apparatus being used in a list server, the list server establishing communication connections with a domain name server and a client, respectively, the apparatus comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for periodically detecting whether the number of access failure information received in a preset time length before the current time exceeds a second preset number threshold value, the access failure information is used for indicating that the access to a target service fails, and the access failure information is sent under the condition that the client fails to access all servers corresponding to IP addresses in a locally stored ordered list; if the number of the access failure information received within the preset time before the current moment exceeds the second preset number threshold, acquiring a target domain name corresponding to the target service, sending a domain name resolution request to the domain name server, wherein the domain name resolution request comprises the target domain name, and receiving an IP address, which is returned by the domain name server and is obtained based on the target domain name query, of each server for providing the target service;
the sequencing module is used for sequencing the acquired IP addresses according to the sequence from high access speed to low access speed to obtain an initial sequencing list;
a deleting module, configured to delete n ranked IP addresses in the initial sorted list from the initial sorted list to obtain a target sorted list, where n is a positive integer;
and the sending module is used for sending the target ordered list to a client, wherein the target ordered list is used for the client to acquire the target domain name after detecting an access instruction for the target service, and to access the servers corresponding to the IP addresses in the target ordered list according to the sequence from first to last under the condition that the target ordered list corresponding to the target domain name is determined to be locally stored on the basis of the target domain name.
8. An apparatus for accessing a server, the apparatus being used in a client, the client establishing communication connections with a list server and a domain name server, respectively, the apparatus comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a target domain name corresponding to a target service after detecting an access instruction aiming at the target service;
a detection module for detecting whether a target sorted list is locally stored based on the target domain name, the target ordered list is when the list server periodically detects that the number of access failure messages received within a preset time period before the current time exceeds a second preset number threshold, obtaining the target domain name, and sending a domain name resolution request to the domain name server, sorting the IP addresses of the servers which are returned by the domain name server and used for providing the target service according to the sequence of the access speed from high to low to obtain an initial sorting list, and deleting the IP addresses of n ranked IP addresses in the initial ranking list from the initial ranking list, wherein the domain name resolution request comprises the target domain name, and the access failure information is used for indicating that the access to the target service fails;
the access module is used for accessing the servers corresponding to the IP addresses in the target ordered list according to the sequence from first to last under the condition that the target ordered list is locally stored;
and the sending module is used for sending access failure information to the server if the servers corresponding to the IP addresses in the target ordered list are all failed to access, wherein the access failure information is used for indicating that the target service is failed to access.
9. A computer device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, implements a method of accessing a server as claimed in any of claims 1 to 6.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method of accessing a server according to any one of claims 1 to 6.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010964644.8A CN112153170B (en) | 2020-09-15 | 2020-09-15 | Method, device and equipment for accessing server and storage medium |
PCT/CN2021/082878 WO2022057231A1 (en) | 2020-09-15 | 2021-03-25 | Method and apparatus for accessing server, device, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010964644.8A CN112153170B (en) | 2020-09-15 | 2020-09-15 | Method, device and equipment for accessing server and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112153170A CN112153170A (en) | 2020-12-29 |
CN112153170B true CN112153170B (en) | 2022-08-26 |
Family
ID=73893014
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010964644.8A Active CN112153170B (en) | 2020-09-15 | 2020-09-15 | Method, device and equipment for accessing server and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112153170B (en) |
WO (1) | WO2022057231A1 (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112153170B (en) * | 2020-09-15 | 2022-08-26 | 广州华多网络科技有限公司 | Method, device and equipment for accessing server and storage medium |
CN113923195B (en) * | 2021-09-30 | 2024-08-30 | 完美世界(北京)软件科技发展有限公司 | Scheduling system and method for instant messaging service |
CN114422396B (en) * | 2021-12-10 | 2023-07-14 | 苏州浪潮智能科技有限公司 | DNS server management method and device, electronic equipment and storage medium |
CN114785465B (en) * | 2022-04-26 | 2024-04-12 | 上海识装信息科技有限公司 | Implementation method, server and storage medium for multiple activities in different places |
CN115086332B (en) * | 2022-06-27 | 2024-03-08 | 北京奇艺世纪科技有限公司 | Communication method, device, electronic equipment and storage medium |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030055979A1 (en) * | 2001-09-19 | 2003-03-20 | Cooley William Ray | Internet domain name resolver |
CN103338279B (en) * | 2013-07-18 | 2016-03-16 | 上海数讯信息技术有限公司 | Based on optimization sequencing method and the system of domain name mapping |
CN104158919A (en) * | 2014-08-20 | 2014-11-19 | 安一恒通(北京)科技有限公司 | Webpage access implementation method, server and client |
CN107454205A (en) * | 2017-07-31 | 2017-12-08 | 北京北信源软件股份有限公司 | A kind of method and apparatus of connection server |
CN109981805B (en) * | 2017-12-28 | 2022-04-15 | 中国移动通信集团山东有限公司 | Domain name resolution method and device |
CN109981766A (en) * | 2019-03-19 | 2019-07-05 | 广州华多网络科技有限公司 | HTTP request processing method, processing system, server and storage medium |
CN110519401B (en) * | 2019-07-05 | 2022-06-10 | 中国平安财产保险股份有限公司 | Method, device, equipment and storage medium for improving network access success rate |
CN112153170B (en) * | 2020-09-15 | 2022-08-26 | 广州华多网络科技有限公司 | Method, device and equipment for accessing server and storage medium |
-
2020
- 2020-09-15 CN CN202010964644.8A patent/CN112153170B/en active Active
-
2021
- 2021-03-25 WO PCT/CN2021/082878 patent/WO2022057231A1/en active Application Filing
Also Published As
Publication number | Publication date |
---|---|
CN112153170A (en) | 2020-12-29 |
WO2022057231A1 (en) | 2022-03-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112153170B (en) | Method, device and equipment for accessing server and storage medium | |
CN109474668B (en) | CDN service switching method and device, computer equipment and storage medium | |
CN108491450B (en) | Data caching method, device, server and storage medium | |
CN110602169B (en) | Service calling method and device, computer equipment and storage medium | |
CN110727499A (en) | Resource data acquisition method and device, computer equipment and storage medium | |
CN112015674A (en) | Cache resource access method and device based on multiple hierarchies and computer equipment | |
CN110708247B (en) | Message routing method, message routing device, computer equipment and storage medium | |
CN111159233B (en) | Distributed caching method, system, computer equipment and storage medium | |
CN102137174A (en) | Method for caching of domain name system, authorized domain name server and cache domain name server | |
CN112612618B (en) | Interface current limiting method and device, computer equipment and storage medium | |
CN108763396B (en) | Access request processing method, device, computer equipment and storage medium | |
CN108595280B (en) | Interface adaptation method and device, computer equipment and storage medium | |
CN110222034A (en) | A kind of database maintenance method and device | |
CN104753922A (en) | Method for pre-loading, server side, client and system | |
CN111552696A (en) | Data processing method and device based on big data, computer equipment and medium | |
CN108389124B (en) | Data processing method, data processing device, computer equipment and storage medium | |
CN115203255A (en) | Data query method and device, electronic equipment and storage medium | |
CN110460685B (en) | User unique identifier processing method and device, computer equipment and storage medium | |
CN112989147A (en) | Data information pushing method and device, computer equipment and storage medium | |
CN114880543B (en) | Data query method, device, equipment and storage medium | |
CN108173892B (en) | Cloud mirror image operation method and device | |
CN110545336A (en) | IP address replacing method, device, computer equipment and storage medium | |
CN115357779A (en) | Data processing method, device and system, electronic equipment and storage medium | |
CN110944037B (en) | Method, computer device and storage medium for client cache change configuration | |
CN112954087A (en) | Domain name connection method and device for SaaS (software as a service), computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |