CN110519401B - Method, device, equipment and storage medium for improving network access success rate - Google Patents

Method, device, equipment and storage medium for improving network access success rate Download PDF

Info

Publication number
CN110519401B
CN110519401B CN201910606353.9A CN201910606353A CN110519401B CN 110519401 B CN110519401 B CN 110519401B CN 201910606353 A CN201910606353 A CN 201910606353A CN 110519401 B CN110519401 B CN 110519401B
Authority
CN
China
Prior art keywords
list
address
domain name
available
server
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
Application number
CN201910606353.9A
Other languages
Chinese (zh)
Other versions
CN110519401A (en
Inventor
杭强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty Insurance Company of China Ltd
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 Ping An Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN201910606353.9A priority Critical patent/CN110519401B/en
Publication of CN110519401A publication Critical patent/CN110519401A/en
Application granted granted Critical
Publication of CN110519401B publication Critical patent/CN110519401B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5053Lease time; Renewal aspects

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the application belongs to the field of information security, and relates to a method, a device, equipment and a storage medium for improving network access success rate, wherein the method comprises the following steps: acquiring an IP list corresponding to a domain name obtained in advance under the condition of changing network conditions; selecting an IP address in an IP list corresponding to the domain name, and sending an access request to a service module preset by a server corresponding to the IP address through the IP address; if access information returned by the service module is received, writing the IP address and the corresponding domain name into an available IP list; and acquiring a target domain name input by a user, and selecting an available IP address for the target domain name based on the available IP list under the current network condition, wherein the selected available IP address is used for network access aiming at the target domain name. And an access request is sent to the service module of the corresponding server in advance through the IP address in the IP list, the availability of the IP address is detected, and the success rate of network access is favorably improved.

Description

Method, device, equipment and storage medium for improving network access success rate
Technical Field
The present application relates to the field of information security, and in particular, to a method, an apparatus, a device, and a storage medium for improving a success rate of network access.
Background
At present, in conventional http (hyper Text Transport protocol) network access, a user inputs a Domain Name through a client, after the Domain Name input by the client is analyzed through a local DNS Server, the DNS Server randomly returns an IP address (IP address) to the client, the client makes an access request to a corresponding Server through the IP address, and the Server issues corresponding web content according to the request of the client, thereby implementing network access. If the IP address is unavailable and cannot be predicted before the server corresponding to the request accesses, the IP address is switched to access by sending a request for re-acquiring the IP address to the corresponding server again in the following process. It can be seen that the current network access to the IP address has a problem of low access success rate.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method, an apparatus, a device, and a storage medium for improving a network access success rate, which can improve the network access success rate.
In order to solve the above technical problem, an embodiment of the present application provides a method for improving a success rate of network access, which adopts the following technical scheme:
the method comprises the following steps:
acquiring an IP list corresponding to a domain name obtained in advance under the condition of changing network conditions, wherein the corresponding IP list is obtained by DNS analysis or issued by a server;
selecting an IP address in an IP list corresponding to the domain name, and sending an access request to a service module preset by a server corresponding to the IP address through the IP address, wherein the service module comprises a data packet with a preset size and is used for responding to the access request;
if access information returned by the service module is received, writing the IP address and the corresponding domain name into an available IP list, wherein the available IP list corresponds to the current network condition;
and acquiring a target domain name input by a user, and selecting an available IP address for the target domain name based on the available IP list under the current network condition, wherein the selected available IP address is used for network access aiming at the target domain name.
Further, the method comprises the following steps:
detecting network conditions in real time or on a timed basis;
if the network condition change is detected, the IP list is obtained again, and an access request is sent to the corresponding server;
and if the access information returned by the corresponding server is received, updating the IP list before the network condition is changed according to the re-acquired IP list.
Further, the step of retrieving the IP list specifically includes:
acquiring the use frequency of the domain name under the current network condition;
and requesting an IP list from a corresponding domain name server according to the use frequency of the domain name.
Further, the step of retrieving the IP list specifically includes the following steps:
under the current network condition, sending an access request to the corresponding server through an IP address corresponding to the current network condition, wherein the server is provided with a service module in advance, and the service module comprises access information used for verifying whether network access is successful;
and if the access information returned by the corresponding server is not received within the preset time, writing the IP address corresponding to the current network condition into an unavailable list.
Further, the acquiring a target domain name input by a user, and based on the available IP list under the current network condition, selecting an available IP address for the target domain name, where the selected available IP address is used for network access to the target domain name specifically includes the following steps:
matching a corresponding available IP list according to the current network condition;
acquiring the target domain name input by a user;
and matching the corresponding IP address as an available IP address in the corresponding available IP list according to the target domain name input by the user for network access.
Further, before the step of acquiring a target domain name input by a user and selecting an available IP address for the target domain name based on the available IP list under the current network condition, the method further includes the following steps:
detecting whether an available IP list corresponding to the target domain name exists;
and if the available IP list corresponding to the target domain name does not exist, sending an access request for reacquiring the IP list to the corresponding server.
In order to solve the foregoing technical problem, an embodiment of the present application further provides an apparatus for increasing a success rate of network access, where the following technical solution is adopted:
the device for improving the success rate of network access comprises:
the first acquisition module is used for acquiring an IP list corresponding to a domain name obtained in advance under the condition of changing network conditions, wherein the corresponding IP list is obtained by DNS analysis or issued by a server;
the sending module is used for selecting an IP address in an IP list corresponding to the domain name, sending an access request to a service module preset by a server corresponding to the IP address through the IP address, wherein the service module comprises a data packet with a preset size and is used for responding to the access request;
a writing module, configured to write the IP address and the corresponding domain name into an available IP list if access information returned by the service module is received, where the available IP list corresponds to a current network condition;
and the selection module is used for acquiring a target domain name input by a user, and selecting an available IP address for the target domain name based on the available IP list under the current network condition, wherein the selected available IP address is used for network access aiming at the target domain name.
In order to solve the above technical problem, an embodiment of the present application further provides a computer device, which adopts the following technical solutions:
the computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the methods for improving the success rate of network access provided in the embodiments of the present application when executing the computer program.
In order to solve the above technical problem, an embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solutions:
the computer readable storage medium has stored thereon a computer program, which when executed by a processor implements the steps of any one of the methods for improving network access success rate set forth in the embodiments of the present application.
Compared with the prior art, the embodiment of the application mainly has the following beneficial effects: acquiring an IP list corresponding to a domain name obtained in advance under the condition of changing network conditions, wherein the corresponding IP list is obtained by DNS analysis or issued by a server; selecting an IP address in an IP list corresponding to the domain name, and sending an access request to a service module preset by a server corresponding to the IP address through the IP address, wherein the service module comprises a data packet with a preset size and is used for responding to the access request; if access information returned by the service module is received, writing the IP address and the corresponding domain name into an available IP list, wherein the available IP list corresponds to the current network condition; and acquiring a target domain name input by a user, and selecting an available IP address for the target domain name based on the available IP list under the current network condition, wherein the selected available IP address is used for network access aiming at the target domain name. The IP address in the IP list is requested to the corresponding server in advance, the availability of the IP address is detected, long-time waiting for acquiring the corresponding server again and obtaining the IP address through analysis due to the unavailability of the IP address under the condition of network change is avoided, and the success rate of network access is improved.
Drawings
In order to more clearly illustrate the solution of the present application, the drawings needed for describing the embodiments of the present application will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
FIG. 1 is an exemplary system architecture diagram to which the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a method of increasing network access success rate according to the present application;
FIG. 3 is a flow diagram of another embodiment of a method of increasing network access success rate according to the present application;
FIG. 4 is a flow diagram for one embodiment of step 302 of FIG. 3;
FIG. 5 is a flow diagram of another embodiment of step 302 of FIG. 3;
FIG. 6 is a flow diagram for one embodiment of step 203 of FIG. 2;
FIG. 7 is a flow diagram of another embodiment of a method of increasing network access success rate according to the present application;
fig. 8 is a schematic structural diagram of an embodiment of an apparatus for increasing a success rate of network access according to the present application;
fig. 9 is a schematic structural diagram of another embodiment of the apparatus for increasing network access success rate according to the present application;
FIG. 10 is a schematic diagram of one embodiment of a second acquisition module shown in FIG. 9;
FIG. 11 is a schematic structural diagram of another embodiment of the second acquisition module shown in FIG. 9;
FIG. 12 is a block diagram of one embodiment of the selection module of FIG. 8;
fig. 13 is a schematic structural diagram of another embodiment of the apparatus for increasing network access success rate according to the present application;
FIG. 14 is a schematic block diagram of one embodiment of a computer device according to the present application.
Detailed Description
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs; the terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "including" and "having," and any variations thereof in the description and claims of this application and the description of the figures above, are intended to cover non-exclusive inclusions. The terms "first," "second," and the like in the description and claims of this application or in the above-described drawings are used for distinguishing between different objects and not for describing a particular order.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The client may use the terminal devices 101, 102, 103 to interact with the server 105 over the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have installed thereon various communication client applications, such as a web browser application, a search-type application, an instant messaging tool, and the like.
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background server providing support for pages displayed on the terminal devices 101, 102, 103.
It should be noted that the method for improving the success rate of network access provided in the embodiment of the present application may be executed by a server/terminal device, and accordingly, the apparatus for improving the success rate of network access may be disposed in the server/terminal device.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continuing reference to fig. 2, a flow diagram of one embodiment of a method of increasing network access success rate in accordance with the present application is shown. The method for improving the success rate of network access comprises the following steps:
step 201, under the condition of changing network conditions, acquiring an IP list corresponding to a domain name obtained in advance, where the corresponding IP list is obtained by DNS resolution or issued by a server.
In this embodiment, the electronic device (for example, the server/terminal device shown in fig. 1) on which the method for improving the success rate of network access operates may obtain the application for customer claims of the target policy through a wired connection manner or a wireless connection manner. It should be noted that the Wireless connection manner may include, but is not limited to, a 3G/4G connection, a WiFi (Wireless-Fidelity) connection, a bluetooth connection, a wimax (worldwide Interoperability for Microwave access) connection, a Zigbee (low power local area network protocol), a uwb (ultra wideband) connection, and other Wireless connection manners known now or developed in the future.
The domain name is the name of a computer or a group of computers on the Internet (Internet) and is used to identify the electronic position (sometimes referred to as geographical position) of the computer during data transmission. Domain names are composed of a string of names separated by dots, usually containing the name of an organization, and always include a two to three letter suffix to indicate the type of organization or country or region in which the domain is located. The IP list may be a list of IP addresses corresponding to one or more domain names, and the IP list may include a server IP list, a resolved IP list, and a fixed IP list. The server IP list is obtained by a request from a user to a server, the resolution list can be obtained by resolution of a domain name corresponding to an IP address in the server IP list, or can be obtained by resolution of a specific domain name input by a user, and the fixed IP list can be a fixed dead IP list. In the IP list, one domain name may correspond to multiple IP addresses, and one IP address may also correspond to multiple domain names. The IP address may be an IP address obtained by DNS resolution, or an IP address issued by a server. Each computer on the internet is assigned an IP address, data transmission can be performed between different IP addresses, for example, a computer used at home for internet access is also assigned an IP address after internet access, and the IP address is dynamic. The DNS is a server that performs domain name and IP address conversion corresponding to the domain name, and a table of the domain name and the IP address corresponding to the domain name is stored in the DNS, so as to resolve the domain name of the received information, that is, the DNS is a domain name resolution server in a certain network range, and is used to analyze the domain name corresponding to the user request, that is, the domain name obtained in advance.
Step 202, selecting an IP address in an IP list corresponding to the domain name, and sending an access request to a service module preset by a server corresponding to the IP address through the IP address, where the service module includes a data packet with a preset size for responding to the access request.
In the server, a service module may be preset, and the content in the service module may be a byte-level message, for example: a 2 byte message, etc. The data packet preset in the service module may include data for processing an access request, determining validity of the IP address, and responding to the access request according to the validity. Therefore, the end-to-end test of the user side and the server is realized by setting the service model in the server to be accessed by the user, the test takes shorter time, the access result is returned by the request between the user side and the service module, the transmission speed in the return process is high, and the IP address can be quickly selected.
More specifically, the method may include performing resolution according to a specific domain name input by a user to obtain a corresponding IP list, matching an IP address corresponding to the domain name in the IP list, sending a corresponding access request to a service module of a server corresponding to the IP address, and waiting for the service module of the server to receive the access request and respond. The IP addresses in the IP list may be selected randomly or in a preset order. Under the condition that one domain name corresponds to a plurality of IP addresses, the domain name can be a random one of the IP addresses in an IP list corresponding to the domain name, or can be selected according to the sequence of the IP list, an analytic IP list and a fixed IP list. In this way, more options are provided for the way the IP address is selected.
Step 203, if receiving the access information returned by the service module, writing the IP address and the corresponding domain name into an available IP list, where the available IP list corresponds to the current network condition.
In this embodiment, the returned access information may be content in a service module of the server, and when the service module receives an access request, it returns an access information to the client, and if the client receives the access information returned by the service module, it indicates that the IP address is accessible to the corresponding server, that is, an available IP address, and the available IP address may be written into an available IP list for storage, and in the available IP list, the domain name and the available IP address have an index relationship, that is, the available IP address may be found by the domain name. There may be several available IP addresses in the IP list, and the available IP addresses may be selected sequentially or randomly based on the domain name, with higher success rate and higher access speed. Therefore, the availability of the IP address is judged by the access information returned by the service module received by the user terminal, which is equivalent to that the user terminal performs one-time end-to-end access to the server, and when the return information of the service module is received by the user terminal, the server can be accessed through the IP address. Therefore, the method is beneficial to obtaining the available IP address and improves the success rate of network access.
Alternatively, an IP list pool may be preset for the IP list, and the IP list pool may be a newly established IP list pool for the current network. The IP list pool may be an IP list storage or an IP list storage area, or may be a set of multiple IP lists, where multiple IP lists may be stored in the IP list pool, available IP lists of multiple domain names may be stored in the IP list pool, and the IP list pool may include an IP list to be verified, an available IP list, and an unavailable IP list. Therefore, the IP addresses can be respectively stored in the corresponding IP lists according to the types, the selection of the IP addresses in the IP lists is facilitated, the situation that various types of IP addresses are randomly stored in one IP list is avoided, and the time for selecting the IP addresses is prolonged.
Step 204, acquiring a target domain name input by a user, and selecting an available IP address for the target domain name based on the available IP list under the current network condition, wherein the selected available IP address is used for network access for the target domain name.
The domain name matching can be character matching or character string matching, the selection of the available IP address in the available IP list can be random selection, or the selection can be performed according to the time length returned by the service module in the available IP address, and the available IP address with the shortest time returned by the service module can be selected preferentially, so that the success rate of network access is improved.
In a possible implementation manner, one domain name corresponds to a plurality of available IP lists, and the available IP list with the best (that is, the average time returned by the service module is shortest) is selected as the optimal available IP list according to the sorting of the available IP lists, and the available IP address is selected from the optimal available IP list. Therefore, the method is beneficial to selecting the optimal IP address for accessing/visiting, and the success rate of network access is improved.
In another possible implementation manner, one IP address may be preferentially selected from an available IP list in an IP list path directly issued by the server for access, if there is no available IP list in the IP list path directly issued by the server, then the available IP address is selected from the available IP list analyzed by the domain name, and finally, if there is no available IP list analyzed by the domain name, then the available IP address is selected from the fixed IP list. This is advantageous in providing more options for IP addresses that need to be accessed.
In another possible implementation manner, before all the IP addresses are verified, the target domain name may be matched in the available IP list, and the available IP address may be selected. That is, the target domain name input by the user is obtained in advance, and the IP address corresponding to the target domain name in the available IP list is selected according to the available IP list corresponding to the target domain name. Therefore, all IP addresses can be prevented from being matched once, and the matching time of the target domain name and the IP addresses is reduced.
In this embodiment, under a network condition change condition, an IP list corresponding to a domain name obtained in advance is obtained, where the corresponding IP list is obtained by DNS resolution or issued by a server; selecting an IP address in an IP list corresponding to the domain name, and sending an access request to a service module preset by a server corresponding to the IP address through the IP address, wherein the service module comprises a data packet with a preset size and is used for responding to the access request; if access information returned by the service module is received, writing the IP address and the corresponding domain name into an available IP list, wherein the available IP list corresponds to the current network condition; and acquiring a target domain name input by a user, and selecting an available IP address for the target domain name based on the available IP list under the current network condition, wherein the selected available IP address is used for network access aiming at the target domain name. The IP list is used for requesting the corresponding server in advance, the availability of the IP address is detected, long-time waiting for acquiring the IP address obtained by DNS analysis of the corresponding server again due to the unavailable IP address is avoided, and the success rate of network access is improved.
Further, as shown in fig. 3, the method may further include the following steps:
step 301, detecting network conditions in real time or at regular time;
step 302, if detecting that the network condition is changed, re-acquiring the IP list and sending an access request to a corresponding server;
and step 303, if receiving the access information returned by the corresponding server, updating the IP list before the network condition is changed according to the re-acquired IP list.
In this embodiment, the network condition may include a network type and a network state, where an IP address in an IP list is selected according to a pre-obtained IP list of domain names, and before an access request is sent to a server corresponding to the IP address, whether the network state or the network type changes may be detected, if the current network state or the network type changes, an IP list acquisition request is sent to the server to request to acquire an IP list delivered by the server again, and a domain name corresponding to the IP address in the IP list may be subjected to DNS resolution to acquire a new resolved IP list. If the current network state or type is not changed, an IP list request can be sent to the server at regular time/real time so as to update the IP list at regular time. Therefore, the latest IP list can be acquired regardless of whether the network condition is changed.
Optionally, after the network is changed, the to-be-verified IP list in the IP list pool may be updated to the to-be-verified IP list after the network is changed; the available IP list before network change can be reserved, and the verification is carried out again when the network is recovered; and deleting the verified IP address in the IP list to be verified. Of course, under the condition that the user side is changed, the IP list may be obtained again, for example: and under the conditions that the user side is uninstalled and reinstalled, the user side is upgraded and other changes occur, the request for acquiring the IP list is sent again. Therefore, the request for acquiring the IP list can be sent to the corresponding server under the condition that the user side is changed, and the condition that the IP list is empty is avoided.
Therefore, the IP list is obtained from the corresponding server again under the network change condition and verified, the latest IP list can be obtained when other networks are changed, matching of the corresponding IP addresses in the IP list according to the target domain name provided by the user is facilitated, and the success rate of network access can be improved.
Further, as shown in fig. 4, the step 302 may specifically include:
step 401, acquiring the use frequency of the domain name under the current network condition;
step 402, requesting an IP list from a corresponding domain name server according to the frequency of using the domain name.
In this embodiment, the usage frequency of the domain name may be a usage frequency in the near term, for example: the frequency of use for the last week was 20. The frequency of use of the domain name can be obtained through the access of the corresponding history record of the domain name. Optionally, the request for obtaining the IP list from the corresponding server may be a request for requesting the IP list corresponding to the domain name with the highest frequency of use from the server preferentially under the condition of network change. If the use frequency is high, which may indicate that the network quality is good, the IP list corresponding to the domain name with the highest use frequency is preferentially acquired. Therefore, the access success rate of the network is improved. Of course, it is also possible to request the IP list from the server randomly, or use the IP list with a frequency within a certain range, for example: IP lists that were used more frequently than 30 times in the last two days.
Optionally, the IP list obtained by the priority request may be tested preferentially, and of course, the test may be performed after the IP list is completely listed. The IP list is preferentially tested, the quality of the IP addresses in the IP list can be predicted, the IP addresses with the high quality can be arranged in front through testing, the IP list with the high quality can be obtained beneficially, the IP addresses with the high quality are stored in the IP list with the high quality, and the success rate of accessing the IP addresses can be improved beneficially.
Therefore, under the condition of network change, the IP list is requested from the server according to the use frequency of the domain names, the IP list of the domain names with high use frequency can be requested preferentially, the domain names with high use frequency can be verified preferentially when the network is changed, and the success rate of network access of the domain names with high use frequency is improved in a targeted manner.
Further, as shown in fig. 5, the specific steps of the step 302 may include the following steps:
step 501, under the current network condition, sending an access request to the corresponding server through an IP address corresponding to the current network condition, wherein the server is provided with a service module in advance, and the service module comprises access information used for verifying whether network access is successful;
step 502, if the access information returned by the corresponding server is not received within a preset time, writing the IP address corresponding to the current network condition into an unavailable list.
In this embodiment, the sending of the access request to the corresponding server at the IP address of the current network condition may be that access information returned by the service module is not received within a preset time, for example: 10 seconds, 5 seconds, etc., the IP address can be written into an unavailable list; the unavailable list can be stored in an IP list pool and is cleared at regular time, or the number of the unavailable IP addresses in the unavailable IP list is limited, and after the number exceeds a certain number, the unavailable IP list is deleted from the IP list pool, and the empty unavailable IP list is used for storing the unavailable IP addresses. Therefore, the number of the unavailable IP lists in the IP list pool can be ensured to be in an optimal range, and the excessive occupation of space is avoided.
In one possible implementation, a domain name may correspond to multiple available IP lists, which may be available IP lists under different networks, for example: under a mobile network, the domain name has an available IP list, and under a wifi network, the domain name has an available IP list; alternatively, the multiple available IP lists may also be available IP lists that differ in time, such as: a list of available IPs in the last week and a list of available IPs in the last week. In this way, the inclusive nature of the available IP list is broadened.
Optionally, the multiple available IP lists corresponding to one domain name may also be divided according to an IP acquisition approach, for example: and directly issuing the obtained available IP list from the server, and obtaining a resolution available IP list by using DNS (domain name system) for resolution and an available IP list of the fixed IP. Different types of partitioning approaches may be provided for the available IP list.
Therefore, under the current network condition, the IP list is obtained from the server again, the condition that the access information returned by the service module of the corresponding server is not received within the limited time is judged, the IP address sending the request to the server is stored in the unavailable IP address, and the condition that the IP address is used again when the access information is sent to the server next time, so that the access failure or the time for obtaining the access information is too long is avoided.
Further, as shown in fig. 6, the step 204 specifically includes the following steps:
step 601, matching a corresponding available IP list according to the current network condition;
step 602, acquiring the target domain name input by the user;
step 603, in the corresponding available IP list, matching the corresponding IP address according to the target domain name input by the user as an available IP address for network access.
In this embodiment, the network access can be realized by matching the available IP list under the current network condition and matching the IP address in the target domain name in the IP list. The target domain name may be a target website address, for example: www.sougou.com are provided. After the target website is converted into the corresponding IP address, a processing procedure may be performed, that is, the IP address in the sequence before the target website is used as the target IP address for access, for example: the target IP address under the domain name www.sougou.com is 14.215.177.39. The target website can play a role in marking and memorizing.
Therefore, under the current network condition, the target domain name can be matched based on the available IP list in which the available IP address and the corresponding domain name are written, the target IP address in the target P list which is sequenced in the front is obtained for access, and the success rate of network access can be improved.
Further, as shown in fig. 7, before the step 204, the method may further include the following steps:
step 701, detecting whether an available IP list corresponding to the target domain name exists;
step 702, if there is no available IP list corresponding to the target domain name, sending an access request for reacquiring the IP list to the corresponding server.
In this embodiment, whether an available IP list matching the target domain name exists can be detected by comparing the domain name in the IP list with the target domain name input by the user, and if no matched available IP list is detected, the IP address in the IP list to be detected can be used for accessing, and the access request for acquiring the IP list is sent to the corresponding server again, which is beneficial to providing more possibilities for successful access.
Optionally, the IP address in the IP list sent by the server is selected for access, which may be the IP address corresponding to the domain name in the IP list; optionally, selecting an IP address in the IP list after DNS resolution for access; alternatively, a write-dead fixed IP may be selected for access. It is advantageous to provide the possibility of multiple options for access.
Therefore, after the access information returned by the server is received and the IP address selected according to the IP list of the domain name obtained in advance and the corresponding domain name are written into the available IP list, the target IP list matched with the target domain name is detected in advance, the situation that no available IP list exists, namely no available IP address is accessed can be effectively avoided, if no available IP list exists, adjustment can be made in time, other selectable IP addresses can be selectively accessed, and the success rate of network access is favorably improved.
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 may be implemented by a computer program, which may be stored in a computer readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. The storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Access Memory (RAM).
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of execution is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
With further reference to fig. 8, as an implementation of the method shown in fig. 2, the present application provides an embodiment of an apparatus for increasing a success rate of network access, where the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 2, and the apparatus may be specifically applied to various electronic devices.
As shown in fig. 8, the apparatus 800 for increasing network access success rate according to this embodiment includes: a first obtaining module 801, a sending module 802, a writing module 803, and a selecting module 804. Wherein:
a first obtaining module 801, configured to obtain, under a network condition change condition, an IP list corresponding to a domain name obtained in advance, where the corresponding IP list is obtained through DNS resolution or obtained through server issuance;
a sending module 802, configured to select an IP address in an IP list corresponding to the domain name, and send an access request to a service module preset by a server corresponding to the IP address through the IP address, where the service module includes a data packet with a preset size and is used for responding to the access request;
a writing module 803, configured to write the IP address and the corresponding domain name into an available IP list if access information returned by the service module is received, where the available IP list corresponds to a current network condition;
a selecting module 804, configured to obtain a target domain name input by a user, and perform available IP address selection on the target domain name based on the available IP list under the current network condition, where the selected available IP address is used for network access for the target domain name.
Further, as shown in fig. 9, the apparatus 800 may further include: a first detection module 805, a second acquisition module 806, and an update module 807. Wherein the content of the first and second substances,
a first detection module 805 for detecting network conditions in real time or on a timed basis;
a second obtaining module 806, configured to, if it is detected that the network condition is changed, obtain the IP list again, and send an access request to a corresponding server;
an updating module 807, configured to update the IP list before the network condition is changed according to the re-acquired IP list if access information returned by the corresponding server is received.
Further, as shown in fig. 10, which is a schematic structural diagram of a specific implementation of the second obtaining module 806, the second obtaining module 806 includes: a first obtaining submodule 8061 and a request submodule 8062. Wherein the content of the first and second substances,
the first obtaining sub-module 8061 is configured to obtain the frequency of use of the domain name under the current network condition;
the request sub-module 8062 is configured to request an IP list from a corresponding domain name server according to the frequency of use of the domain name.
Further, as shown in fig. 11, which is a schematic structural diagram of another specific implementation of the second obtaining module 806, the second obtaining module 806 further includes: a sending submodule 8063 and a writing submodule 8064. Wherein the content of the first and second substances,
the sending submodule 8063 is configured to send, under the current network condition, an access request to the corresponding server through the IP address corresponding to the current network condition, where the server is preset with a service module, and the service module includes access information used to verify whether network access is successful;
the writing sub-module 8064 is configured to, if the access information returned by the corresponding server is not received within a preset time by using the IP address corresponding to the current network condition, write the IP address corresponding to the current network condition into an unavailable list.
Further, as shown in fig. 12, for a schematic structural diagram of an embodiment of the selecting module 804, the selecting module 804 includes: a first matching sub-module 8041, a second acquisition sub-module 8042, and a second matching sub-module 8043.
The first matching submodule 8031 is configured to match a corresponding available IP list according to a current network condition;
the second obtaining sub-module 8032 is configured to obtain the target domain name input by the user;
the second matching sub-module 8033 is configured to match, in the corresponding available IP list, the corresponding IP address as an available IP address according to the target domain name input by the user, so as to perform network access.
Further, as shown in fig. 13, the apparatus 800 may further include: a second detection module 808 and a third acquisition module 809. Wherein the content of the first and second substances,
the second detecting module 808 is configured to detect whether there is an available IP list corresponding to the target domain name;
the third obtaining module 809 is configured to send an access request for re-obtaining an IP list to a corresponding server if there is no available IP list corresponding to the target domain name.
The apparatus for improving a success rate of network access provided in the embodiment of the present application can implement each implementation manner in the method embodiments of fig. 2 to fig. 7, and corresponding beneficial effects, and for avoiding repetition, details are not repeated here.
In order to solve the technical problem, an embodiment of the present application further provides a computer device. Referring to fig. 14, fig. 14 is a block diagram of a basic structure of a computer device according to the present embodiment.
The computer device 14 includes a memory 141, a processor 142, and a network interface 143 communicatively coupled to each other via a system bus. It is noted that only computer device 14 having components 141 and 143 is shown, but it is understood that not all of the illustrated components are required and that more or fewer components may alternatively be implemented. As will be understood by those skilled in the art, the computer device is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and the hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable gate array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The computer device can be a desktop computer, a notebook, a palm computer, a cloud server and other computing devices. The computer equipment can be in man-machine interaction with a client in a keyboard, a mouse, a remote controller, a touch panel or a voice control device and the like.
The memory 141 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the storage 141 may be an internal storage unit of the computer device 14, such as a hard disk or a memory of the computer device 14. In other embodiments, the memory 141 may also be an external storage device of the computer device 14, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the computer device 14. Of course, the memory 141 may also include both internal and external storage devices of the computer device 14. In this embodiment, the memory 141 is generally used for storing an operating system and various application software installed on the computer device 14, such as program codes of a method for increasing a success rate of network access. In addition, the memory 141 may also be used to temporarily store various types of data that have been output or are to be output.
The processor 142 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 142 is generally operative to control overall operation of the computer device 14. In this embodiment, the processor 142 is configured to execute the program code stored in the memory 141 or process data, for example, execute the program code of the method for increasing the success rate of network access.
The network interface 143 may include a wireless network interface or a wired network interface, and the network interface 143 is generally used to establish a communication connection between the computer device 14 and other electronic devices.
The present application further provides another embodiment, which is to provide a computer-readable storage medium storing a network access success rate improving program, where the network access success rate improving program is executable by at least one processor, so that the at least one processor performs the steps of the network access success rate improving method.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
It is to be understood that the above-described embodiments are merely illustrative of some, but not restrictive, of the broad invention, and that the appended drawings illustrate preferred embodiments of the invention and do not limit the scope of the invention. This application is capable of embodiments in many different forms and is provided for the purpose of enabling a thorough understanding of the disclosure of the application. Although the present application has been described in detail with reference to the foregoing embodiments, it will be apparent to one skilled in the art that the present application may be practiced without modification or with equivalents of some of the features described in the foregoing embodiments. All equivalent structures made by using the contents of the specification and the drawings of the present application are directly or indirectly applied to other related technical fields and are within the protection scope of the present application.

Claims (10)

1. A method for improving network access success rate is characterized by comprising the following steps:
acquiring an IP list corresponding to a domain name obtained in advance under the condition of changing network conditions, wherein the corresponding IP list is obtained by DNS analysis or issued by a server;
selecting an IP address in an IP list corresponding to the domain name, sending an access request to a service module preset by a server corresponding to the IP address through the IP address, wherein the service module comprises a data packet with a preset size and is used for judging the validity of the IP address, and responding to the access request according to the validity;
if access information returned by the service module is received, writing the IP address and the corresponding domain name into an available IP list, wherein the available IP list corresponds to the current network condition;
and acquiring a target domain name input by a user, and selecting an available IP address for the target domain name based on the available IP list under the current network condition, wherein the selected available IP address is used for network access aiming at the target domain name.
2. The method for improving network access success rate according to claim 1, further comprising the steps of:
detecting network conditions in real time or on a timed basis;
if the network condition change is detected, the IP list is obtained again, and an access request is sent to the corresponding server;
and if the access information returned by the corresponding server is received, updating the IP list before the network condition is changed according to the re-acquired IP list.
3. The method according to claim 2, wherein the step of retrieving the IP list specifically includes:
acquiring the use frequency of the domain name under the current network condition;
and requesting an IP list from a corresponding domain name server according to the use frequency of the domain name.
4. The method according to claim 2, wherein the step of retrieving the IP list specifically comprises the steps of:
under the current network condition, sending an access request to the corresponding server through an IP address corresponding to the current network condition, wherein the server is provided with a service module in advance, and the service module comprises access information used for verifying whether network access is successful;
and if the access information returned by the corresponding server is not received within the preset time, writing the IP address corresponding to the current network condition into an unavailable list.
5. The method according to claim 1, wherein the obtaining of the target domain name input by the user, based on the available IP list under the current network condition, performs available IP address selection on the target domain name, and the selected available IP address is used for network access to the target domain name specifically includes the following steps:
matching a corresponding available IP list according to the current network condition;
acquiring the target domain name input by a user;
and matching the corresponding IP address as an available IP address in the corresponding available IP list according to the target domain name input by the user for network access.
6. The method according to claim 5, wherein the method for obtaining the target domain name input by the user, based on the available IP list under the current network condition, performs available IP address selection on the target domain name, and the selected available IP address is used before the step of network access for the target domain name, the method further comprising the steps of:
detecting whether an available IP list corresponding to the target domain name exists;
and if the available IP list corresponding to the target domain name does not exist, sending an access request for re-acquiring the IP list to the corresponding server.
7. An apparatus for increasing network access success rate, comprising:
the first acquisition module is used for acquiring an IP list corresponding to a domain name obtained in advance under the condition of changing network conditions, wherein the corresponding IP list is obtained by DNS analysis or issued by a server;
the sending module is used for selecting an IP address in an IP list corresponding to the domain name, sending an access request to a service module preset by a server corresponding to the IP address through the IP address, wherein the service module comprises a data packet with a preset size and is used for judging the validity of the IP address, and responding to the access request according to the validity;
a writing module, configured to write the IP address and the corresponding domain name into an available IP list if access information returned by the service module is received, where the available IP list corresponds to a current network condition;
and the selection module is used for acquiring a target domain name input by a user, and selecting an available IP address for the target domain name based on the available IP list under the current network condition, wherein the selected available IP address is used for network access aiming at the target domain name.
8. The apparatus of claim 7, comprising:
the first detection module is used for detecting network conditions in real time or at regular time;
the second acquisition module is used for re-acquiring the IP list and sending an access request to the corresponding server if the change of the network condition is detected;
and the updating module is used for updating the IP list before the network condition is changed according to the re-acquired IP list if the access information returned by the corresponding server is received.
9. A computer device comprising a memory in which a computer program is stored and a processor which, when executing the computer program, carries out the steps of the method of improving network access success rate according to any one of claims 1 to 6.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method for improving network access success rate according to any one of claims 1 to 6.
CN201910606353.9A 2019-07-05 2019-07-05 Method, device, equipment and storage medium for improving network access success rate Active CN110519401B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910606353.9A CN110519401B (en) 2019-07-05 2019-07-05 Method, device, equipment and storage medium for improving network access success rate

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910606353.9A CN110519401B (en) 2019-07-05 2019-07-05 Method, device, equipment and storage medium for improving network access success rate

Publications (2)

Publication Number Publication Date
CN110519401A CN110519401A (en) 2019-11-29
CN110519401B true CN110519401B (en) 2022-06-10

Family

ID=68622632

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910606353.9A Active CN110519401B (en) 2019-07-05 2019-07-05 Method, device, equipment and storage medium for improving network access success rate

Country Status (1)

Country Link
CN (1) CN110519401B (en)

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111131549B (en) * 2019-12-31 2022-04-01 福建天泉教育科技有限公司 Method for prefetching data by client and storage medium
CN111212156B (en) * 2020-01-15 2022-11-11 中国银联股份有限公司 Network connection method and device
CN111273965B (en) * 2020-02-17 2021-10-29 支付宝(杭州)信息技术有限公司 Container application starting method, system and device and electronic equipment
CN111935327B (en) * 2020-02-24 2023-07-25 北京豆萌信息技术有限公司 Domain name assignment method, device, equipment and computer readable storage medium
CN111541798B (en) * 2020-04-24 2022-09-13 东软睿驰汽车技术(沈阳)有限公司 Domain name resolution method and device and electronic equipment
CN111683163A (en) * 2020-06-11 2020-09-18 杭州安恒信息技术股份有限公司 Proxy IP address allocation method, device, computer equipment and readable storage medium
CN111885145A (en) * 2020-07-20 2020-11-03 北京百度网讯科技有限公司 Switching method, device, equipment and computer storage medium
CN114172863B (en) * 2020-08-21 2024-04-26 北京金山云网络技术有限公司 Method, device, readable medium and equipment for searching internet protocol address
CN112153170B (en) * 2020-09-15 2022-08-26 广州华多网络科技有限公司 Method, device and equipment for accessing server and storage medium
CN112187924B (en) * 2020-09-28 2024-03-01 深圳前海微众银行股份有限公司 Service request method, device, equipment and computer storage medium
CN113206785B (en) * 2021-05-28 2023-01-10 深圳市中科明望通信软件有限公司 Network request method and device, terminal equipment and storage medium
CN113992578B (en) * 2021-09-09 2023-11-03 新华三大数据技术有限公司 Method, device, equipment and storage medium for switching servers of cloud desktop terminal
CN114039944A (en) * 2021-10-08 2022-02-11 中移(杭州)信息技术有限公司 Website access address selection method, equipment, storage medium and device
CN114124883B (en) * 2021-10-12 2023-09-12 鸬鹚科技(深圳)有限公司 Data access method and device based on cloud storage address, computer equipment and medium
CN113992626A (en) * 2021-10-22 2022-01-28 浪潮思科网络科技有限公司 Method, device and storage medium for realizing DNS
CN114666303B (en) * 2022-03-18 2024-01-30 唯品会(广州)软件有限公司 DNS scheduling method and device and computer equipment
CN114866611A (en) * 2022-03-23 2022-08-05 Oppo广东移动通信有限公司 Message callback method, device, storage medium and computer equipment
CN114500471A (en) * 2022-03-28 2022-05-13 北京天维信通科技有限公司 IP address list analysis and maintenance method, system, intelligent terminal and storage medium
CN114844866A (en) * 2022-03-29 2022-08-02 武汉斗鱼鱼乐网络科技有限公司 Network request connection method and related equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006058456A1 (en) * 2004-11-30 2006-06-08 Zte Corporation Call protecting method and device for personalized ring back tone in an intelligent network
CN106921537A (en) * 2015-12-28 2017-07-04 中国电信股份有限公司 Website visiting quality detecting method, server and system
CN106936944A (en) * 2017-03-31 2017-07-07 苏州科达科技股份有限公司 A kind of method and device for detecting and processing network address collision
CN107395783A (en) * 2017-07-25 2017-11-24 北京奇艺世纪科技有限公司 A kind of IP address processing method, system, device and electronic equipment
CN107592291A (en) * 2017-07-25 2018-01-16 北京奇艺世纪科技有限公司 A kind of IP address detection method, system, device and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006058456A1 (en) * 2004-11-30 2006-06-08 Zte Corporation Call protecting method and device for personalized ring back tone in an intelligent network
CN106921537A (en) * 2015-12-28 2017-07-04 中国电信股份有限公司 Website visiting quality detecting method, server and system
CN106936944A (en) * 2017-03-31 2017-07-07 苏州科达科技股份有限公司 A kind of method and device for detecting and processing network address collision
CN107395783A (en) * 2017-07-25 2017-11-24 北京奇艺世纪科技有限公司 A kind of IP address processing method, system, device and electronic equipment
CN107592291A (en) * 2017-07-25 2018-01-16 北京奇艺世纪科技有限公司 A kind of IP address detection method, system, device and electronic equipment

Also Published As

Publication number Publication date
CN110519401A (en) 2019-11-29

Similar Documents

Publication Publication Date Title
CN110519401B (en) Method, device, equipment and storage medium for improving network access success rate
CN109409043B (en) Login method of application system, terminal equipment and medium
CN112765271B (en) Block chain transaction index storage method and device, computer equipment and medium
CN108135026B (en) Wi-Fi connection method, computer device and storage medium
CN109936621B (en) Information security multi-page message pushing method, device, equipment and storage medium
KR102090982B1 (en) How to identify malicious websites, devices and computer storage media
CN110798445B (en) Public gateway interface testing method and device, computer equipment and storage medium
CN106599017B (en) Scanning analytic method, device and the mobile terminal of installation kit
CN109889511B (en) Process DNS activity monitoring method, equipment and medium
CN107241300B (en) User request intercepting method and device
CN110134869B (en) Information pushing method, device, equipment and storage medium
CN111177672A (en) Page access control method and device and electronic equipment
CN111372115B (en) Application program access method and device and communication system
CN110677506B (en) Network access method, device, computer equipment and storage medium
CN109271778B (en) Using installation source differentiating method, electronic equipment and computer storage medium
CN114095567A (en) Data access request processing method and device, computer equipment and medium
CN103973506A (en) Domain name verifying method, device and system
CN112953962A (en) Domain name access method and device
CN103067465B (en) Sharing files method and system
CN108011936B (en) Method and device for pushing information
CN111538922A (en) Link skip method, application client, device and storage medium
EP2998885A1 (en) Method and device for information search
CN115344315A (en) Skin switching method and device of applet page and electronic equipment
CN111783005A (en) Method, apparatus and system for displaying web page, computer system and medium
CN105610596B (en) Resource directory management method and network terminal

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