CN109743364A - Multistep connection control method, device, computer equipment and storage medium - Google Patents
Multistep connection control method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN109743364A CN109743364A CN201811564625.5A CN201811564625A CN109743364A CN 109743364 A CN109743364 A CN 109743364A CN 201811564625 A CN201811564625 A CN 201811564625A CN 109743364 A CN109743364 A CN 109743364A
- Authority
- CN
- China
- Prior art keywords
- multistep
- access
- server
- information
- server end
- 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.)
- Pending
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the invention discloses a kind of multistep connection control method, device, computer equipment and storage medium, include the following steps: to obtain preset multistep access data list, wherein it includes at least two sets of multistep access schemes that multistep, which accesses data list,;Parsing successively is carried out at least two sets of multistep access schemes according to preset resolution rules and generates several server domain name information corresponding with multistep access scheme;Access attempts successively are initiated to be connected to server end to server end using several server domain name information according to preset multistep access strategy.Multiple server domain name information that the embodiment of the present invention is accessed in the multistep access scheme in data list by obtaining multistep, connection is established by using these server domain name information and server end, it is attached by covering access scheme with server end more, it can effectively reduce that single access way is disabled or risk disturbed and that lead to access failure, greatly improve the success rate connecting with server end.
Description
Technical field
The present embodiments relate to communication linkage technology field, especially a kind of multistep connection control method, device, calculating
Machine equipment and storage medium.
Background technique
For an application APP, allowing client to be successfully accessed background server is first using application APP
Step, especially for the application APP serviced towards global range, allowing client to connect with server just seems especially
It is important, it is attached currently, client generally passes through two schemes with server, one is the IP using domain name mapping is connected
It connects, client only knows domain name belonging to server, and the step of connecting with server is to first pass through DNS Protocol to take to domain name mapping
Business device initiates domain name mapping, is then attached using the IP that domain name mapping obtains;The second is being carried out using fixed IP and port
Connection, client directly save IP and the port of server, are not necessarily to domain name mapping process, directly initiate the connection to server.
But the network environment of regions of the world is extremely complex, the risk that existing cut-in method is closed or interfered
Larger, as long as local operator simply seals off the one of them of the domain name of server, IP, port or agreement, client be will be unable to
Access is completed, so that IP, port, domain name or agreement that server occur in some areas occur is caused to connect by different degrees of closing
The case where entering unsuccessfully, the success rate of client access server is low.
Summary of the invention
The embodiment of the present invention provides one kind and uses multistep access scheme to connect to improve with server end by redundancy
Multistep connection control method, device, computer equipment and the storage medium of success rate.
In order to solve the above technical problems, the technical solution that the embodiment of the invention uses is: it is more to provide one kind
Connection control method is walked, is included the following steps:
Obtain preset multistep access data list, wherein the multistep access data list includes at least two sets of multisteps
Access scheme;
According to preset resolution rules successively at least two sets of multistep access schemes carry out parsing generate with it is described more
Walk the corresponding several server domain name information of access scheme;
It is successively connect using several server domain name information to server end initiation according to preset multistep access strategy
Enter to attempt to be connected to the server end.
Optionally, described successively to use several server domain name information to service according to preset multistep access strategy
Device end is initiated the step of access attempts are to be connected to the server end, including such as following step:
Domain name mapping is successively initiated according to several server domain name information to generate and several server domain names letters
The corresponding several IP address informations of manner of breathing;
A target in several ports of the server end is successively randomly selected according to several IP address informations
Port carries out access attempts.
Optionally, several ports of the server end further include 80 ports.
Optionally, described successively to use several server domain name information to service according to preset multistep access strategy
Further include such as following step after the step of access attempts are to be connected to the server end is initiated at device end:
Obtain the history information that connect with the server end, wherein the history information include with it is described
The history IP address information and history port information that server end is successfully connected;
Access attempts are initiated to the server end according to the history IP address information and history port information.
Optionally, described to initiate to access to the server end according to the history IP address information and history port information
Further include such as following step after the step of trial:
Obtain preset proxy server information, wherein the proxy server information includes preset custom protocol
Information;
Connect according to the custom protocol information with proxy server communication, with by the proxy server to described
Server end initiates access attempts.
Optionally, described to be connect according to the custom protocol information with proxy server communication, to pass through the agency
Further include such as following step after the step of server initiates access attempts to the server end:
Obtain preset standby address data list, wherein the standby address data list includes several first spare
IP address information;
Access attempts successively are initiated to the server end according to several first secondary ip address information.
Optionally, described successively to be tasted to server end initiation access according to several first secondary ip address information
Further include such as following step after the step of examination:
Obtain the IP address encryption file that preset third party website server saves;
IP address encryption file is decrypted according to preset decipherment algorithm and generates the second secondary ip address
Information;
Access attempts are initiated to the server end according to the second secondary ip address information.
In order to solve the above technical problems, the embodiment of the present invention also provides a kind of multistep access control apparatus, comprising:
First obtains module, for obtaining preset multistep access data list, wherein the multistep accesses data list
Including at least two sets of multistep access schemes;
First processing module, for successively being carried out at least two sets of multistep access schemes according to preset resolution rules
Parsing generates several server domain name information corresponding with the multistep access scheme;
First execution module, for successively using several server domain name information according to preset multistep access strategy
Access attempts are initiated to server end to be connected to the server end.
In order to solve the above technical problems, the embodiment of the present invention also provides a kind of computer equipment, including memory and processing
Device is stored with computer-readable instruction in the memory, when the computer-readable instruction is executed by the processor, so that
The processor executes the step of above-mentioned multistep connection control method.
In order to solve the above technical problems, the embodiment of the present invention also provides a kind of storage Jie for being stored with computer-readable instruction
Matter, when the computer-readable instruction is executed by one or more processors, so that one or more processors execution is above-mentioned more
The step of walking connection control method.
Having the beneficial effect that for the embodiment of the present invention accesses data list by obtaining preset multistep, which accesses number
According to including more set multistep access schemes in list, then the multistep access scheme is parsed according to resolution rules, every set is more
Walking access scheme includes several server domain name information, successively uses these server domain names by preset multistep access strategy
Information initiates access attempts to server end, until connection is established with server end, by using more set access schemes and service
Device end is attached, and can effectively reduce that single access way is disabled or risk disturbed and that lead to access failure, significantly
Improve the success rate connecting with server end.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is the basic procedure schematic diagram of multistep of embodiment of the present invention connection control method;
Fig. 2 is the flow diagram that the embodiment of the present invention is attached by server domain name information;
Fig. 3 is the flow diagram that the embodiment of the present invention is attached using the IP address and port of last time successful connection;
Fig. 4 is the flow diagram that the embodiment of the present invention is attached by proxy server;
Fig. 5 is the flow diagram that the embodiment of the present invention is attached by spare IP;
Fig. 6 is the flow diagram that the IP file that the embodiment of the present invention is saved by third-party server is attached;
Fig. 7 is multistep of embodiment of the present invention access control apparatus basic structure schematic diagram;
Fig. 8 is computer equipment of embodiment of the present invention basic structure block diagram.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described.
In some processes of the description in description and claims of this specification and above-mentioned attached drawing, contain according to
Multiple operations that particular order occurs, but it should be clearly understood that these operations can not be what appears in this article suitable according to its
Sequence is executed or is executed parallel, and serial number of operation such as 101,102 etc. is only used for distinguishing each different operation, serial number
It itself does not represent and any executes sequence.In addition, these processes may include more or fewer operations, and these operations can
To execute or execute parallel in order.It should be noted that the description such as " first " herein, " second ", is for distinguishing not
Same message, equipment, module etc., does not represent sequencing, does not also limit " first " and " second " and be different type.
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts
Example, shall fall within the protection scope of the present invention.
Embodiment 1
It is the basic procedure schematic diagram of the present embodiment multistep connection control method referring specifically to Fig. 1, Fig. 1.
As shown in Figure 1, a kind of multistep connection control method, includes the following steps:
S1100, preset multistep access data list is obtained, wherein the multistep access data list includes at least two
Cover multistep access scheme;
Multistep access data list is that preset carry covers (such as 5 sets, 10 sets or 20 sets) multistep access schemes more
Information summary table, by the multistep access these available multistep access schemes of data list, implement when, it is more with the present invention
Walk connection control method be applied to user terminal for, user terminal include but is not limited to smart phone, tablet computer, Intelligent bracelet,
Calculator and other electronic equipments with communication connection function are stored with multistep access number in the local data base of user terminal
According to list, the multistep stored in local data base can be read by SQL statement and accesses data list, SQL (Structured
Query Language, structured query language) be a kind of data base querying and programming language, for access data and
Relational database system is queried, updated, and managed, in one embodiment, assets/ is stored in multistep access data list
For under folder name/×× .sql, when multistep of the application program in reading local data base accesses data list file,
The SQL statement in it is executed, such as: it is called in the onCreate method of SqLiteOpenHelper class
ExecuteAssetsSQL (db, " ×× .sql ") can obtain multistep access data list.
S1200, according to preset resolution rules successively at least two sets of multistep access schemes carry out parsing generate with
The corresponding several server domain name information of the multistep access scheme;
After obtaining multistep access data list, the multistep is accessed in data list extremely by preset resolution rules
Few two sets of multistep access schemes are successively parsed, to generate several server domain names corresponding with the multistep access scheme
Information, resolution rules are preset for being parsed to multistep access scheme to obtain the clothes carried in the multistep access scheme
Business device domain-name information, such as using list resolution formula (list comprehension, list resolution) to multistep access scheme
It is parsed to obtain multiple server domain name information in the multistep access scheme, when implementing, every suit multistep access side
Case is correspondingly arranged on multiple (such as 3,5 or 6) server domain name information, more in same set of multistep access scheme
The application service that a server domain name information mapped server end and server end provide is identical, so that with
Family end passes through the available identical service of any one server domain name information.
S1300, successively use several server domain name information to server end according to preset multistep access strategy
Access attempts are initiated to be connected to the server end.
After obtaining multiple server domain name information in more set multistep access schemes, successively selected according to multistep access strategy
A server domain name information is taken to initiate access attempts until connecting with server end, multistep access strategy is pre- to server end
If for randomly selected in multiple server domain name information a server domain name information to server end initiate access taste
Examination, when a server domain name information cannot allow user terminal to connect with server end, choose another server domain name information into
Row access attempts, until there is server domain name information user terminal can be allowed to be connected to server end.
When implementing, for including two sets of multistep access schemes in multistep access data list, including the first multistep is connect
Enter scheme and the second multistep access scheme, wherein the first multistep access scheme includes 3 server domain name information, respectively the
One server domain name information, second server domain-name information and third server domain name information, the second multistep access scheme include 2
A server domain name information, respectively the 4th server domain name information and the 5th server domain name information access plan according to multistep
Slightly choose first server domain-name information, second server domain-name information, third server domain name information, the 4th server domain name
Any one in information and the 5th server domain name information initiates domain name mapping to server end, wherein domain name mapping is exactly
Domain name to IP address conversion process, such as choose first server domain-name information carry out domain name mapping, then according to parsing tie
Successively any one port into multiple ports of server end carries out access attempts to fruit, and when implementing, server end can be with
Multiple (such as 4,8 or 10) ports are provided with, cannot be connected with server end when by first server domain-name information
When connecing, chooses other server domain name information and initiate domain name mapping, such as randomly select second server domain-name information, third
Any one in server domain name information, the 4th server domain name information and the 5th server domain name information is sent out to server end
Domain name mapping is played, a port is randomly selected further according to parsing result and carries out access attempts, until being connect with server end, is serviced
Device end is disposed using multiple spot, that is, is provided with multiple server domain name information, although so IP corresponding with server domain name information
Different but be to provide identical service, user terminal, which accesses any one server end all, can obtain the service of indifference.It needs to refer to
Out, the port number of the quantity of multistep access scheme, the quantity of server domain name information and server end is not limited to
Above-mentioned specific value, according to different application scenarios, the quantity of multistep access scheme, the quantity of server domain name information and
The port number of server end can be devised by other specific values.
The present embodiment accesses data list by obtaining preset multistep, and it includes that more sets are more which, which accesses in data list,
Access scheme is walked, then the multistep access scheme is parsed according to resolution rules, every set multistep access scheme includes several
Server domain name information successively uses these server domain name information to initiate to server end by preset multistep access strategy
Access attempts are attached by using more set access schemes with server end until establishing connection with server end, can be effective
It reduces that single access way is disabled or risk disturbed and that lead to access failure, greatly improves and connect with server end
Success rate.
In one alternate embodiment, referring to Fig. 2, Fig. 2 is that one embodiment of the invention passes through server domain name information
The flow diagram being attached.
As shown in Fig. 2, step S1300 includes such as following step:
S1310, domain name mapping generation and several servers are successively initiated according to several server domain name information
The corresponding several IP address informations of domain-name information;
After obtaining multiple server domain name information in multistep access scheme, successively according to these server domain name information
It chooses a server domain name information and initiates domain name mapping to server end, domain name mapping is exactly domain name to the converted of IP address
Journey exactly translates domain name into IP, and it is domain name mapping to an IP address, then in this IP that service is completed by dns server
A subdirectory and domain name are bound on the host of address, i.e., a server domain name information initiates domain name mapping and generates an IP
Address information can initiate domain name mapping by domain name mapping software, such as pass through BIND (Berkeley when implementing
Internet Name Domae)、DJBDNS(Dan J Bernstein's DNS implementation)、MaraDNS、NSD
(Name Server Daemon) or PowerDNS etc. initiate domain name mapping and generate IP address information.
S1320, successively randomly selected according to several IP address informations in several ports of the server end one
A target port carries out access attempts.
It, can be according to the IP address information after initiating domain name mapping according to server domain name information and generating IP address information
It chooses a target port in N number of port of server end and carries out access attempts, N is any positive integer greater than 1, with this hair
For bright multistep connection control method is using 3 server domain names, including Main Domain, spare domain name and proxy server domain
Name, firstly, initiating domain name mapping to the Main Domain of server end generates IP address information, is then tied according to parsing when implementing
The a port that the IP address information of fruit and Main Domain randomly selects server end is attached, if Main Domain parsing failure
Words, then go to parse spare domain name and proxy server domain name, and it is disabled or the problem of sealed to can effectively prevent Main Domain.
In one embodiment, several ports of the server end further include 80 ports, when to server domain name information
When initiating domain name mapping generation IP address information, random port connection is carried out, it, can be by using IP address information when implementing
80 port connections are carried out, 80 ports are opened for HTTP (HyperText Transport Protocol) i.e. hypertext transfer protocol
It puts, this is the most agreement of access times of surfing the web, and is mainly used for WWW (World WideWeb) i.e. WWW transmission letter
The agreement of breath, can effective settlement server end the case where only allowing 80 ports to be attached.It in one embodiment, can be with
Carry out other port connections, such as 21 ports or 23 ports, wherein 21 ports are mainly used for FTP (File
TransferProtocol, File Transfer Protocol) service, 23 ports are the ports of telnet.Telnet agreement is TCP/IP association
A member in race is discussed, is the standard agreement and major way of Internet remote login service, so that settlement server end only permits
Perhaps the case where 21 ports or 23 ports are attached.
In one embodiment, it can also be attached by default IP with port, default IP refers to the part clothes selected
Business device IP list, by taking multistep connection control method of the present invention is applied to user terminal as an example, user terminal is simultaneously to these defaults IP hair
Connection is played, and carries out subsequent interaction using the IP and port being successfully connected earliest, can prevent Main Domain and spare domain name from all being sealed
The case where taboo.
In another alternative embodiment, referring to Fig. 3, Fig. 3 is that one embodiment of the invention uses last time successful connection
IP address and the basic procedure schematic diagram that is attached of port.
As shown in figure 3, further including such as following step after step S1300:
S1400, the history information that is connect with the server end of acquisition, wherein the history information includes
The history IP address information and history port information being successfully connected with the server end;
It still cannot be with server when carrying out access attempts using multiple server domain name information in multistep access scheme
It, can be by obtaining the history information connecting with server end, including what is be successfully connected with the server end when the connection of end
History IP address information and history port information, when implementing, the IP address information of available last time successful connection and end
Mouthful, and attempt to access with server end again by the IP address information of last successful connection and port.
S1500, access attempts are initiated to the server end according to the history IP address information and history port information.
It, can be according to this after obtaining the history IP address information being successfully connected with the server end and history port information
History IP address information and history port information initiate access attempts to the server end, when implementing, can also pass through root
According to the history information that (such as: 5 days, 7 days or 10 days) within a preset period of time connect with server end, then according to should
History information is counted, such as counts history IP most with server end successful connection number within a preset period of time
Address information and history port information simultaneously initiate access attempts to server end, to improve the success connecting with server end
Rate.
When implementing, domain name mapping is initiated to the Main Domain of server end first, randomly selects one according to parsing result
Port is attached, and if Main Domain parsing failure, can be gone to parse spare domain name and proxy server domain name, be prevented main domain
Name is by envelope problem, when spare domain name and proxy server domain name are all connected with unsuccessfully, can also reuse Main Domain carry out with
The connection of generator terminal mouth, can effectively avoid the reason of Main Domain is because of some bursts (such as network fluctuation) from leading to connection failure problem.
In one alternate embodiment, referring to Fig. 4, Fig. 4 is that one embodiment of the invention is carried out by proxy server
The basic procedure schematic diagram of connection.
As shown in figure 4, further including such as following step after step 1500:
S1600, preset proxy server information is obtained, wherein the proxy server information includes preset makes by oneself
Adopted protocol information;
It is initiated using the history IP address information and history port information that are successfully connected with server end to server end
When access attempts still cannot be connect with server end, it can also be attached by proxy server and server end, in reality
Shi Shi, the available proxy server information with proxy server mapping, the proxy server are provided with custom protocol letter
Breath, wherein custom protocol is the consensus standard that a set of inside is made by oneself, and user terminal can be by the way that the custom protocol to be packaged into
Agency agreement is directly and proxy server communication.
S1700, it is connect according to the custom protocol information with proxy server communication, to pass through the proxy server
Access attempts are initiated to the server end.
It is customized according to the custom protocol information mapped after the custom protocol information for obtaining proxy server
Agreement is connect with proxy server communication, is attached by proxy server proxy user end with server end.
When implementing, can be attached by using HTTP Proxy or SOCKS agency with server end, wherein
SOCKS agency only simply transmits data packet, is which kind of application protocol without being concerned about, with applied widely, speed is fast
The characteristics of.In one embodiment, by taking multistep connection control method of the present invention is applied to user terminal as an example, user terminal is used
The connection process of SOCKS proxy server are as follows:
IP of the user terminal to name server request analysis proxy server;
User terminal is initiated the connection using the IP of domain name mapping and the known port of proxy server to proxy server;
User terminal tells IP and the port of Proxy target server (server end) using SOCKS agency agreement;
Proxy server is initiated the connection to destination server.
This is arrived, entire interface channel is established, and proxy server can be carried out subsequent protocol as destination server by user terminal
Interaction, and user terminal and proxy server use SOCK protocol communication, can effectively avoid the occurrence of user terminal and server end is logical
The problem of proprietary protocol feature of letter is identified and is closed.
In one alternate embodiment, referring to Fig. 5, Fig. 5 is that one embodiment of the invention is attached by spare IP
Basic procedure schematic diagram.
As shown in figure 5, further including such as following step after step S1700:
S1800, preset standby address data list is obtained, wherein the standby address data list includes several the
One secondary ip address information;
It, can be with when initiate access attempts to server end using proxy server still cannot connect with server end
It is connect by secondary ip address with server end, it, can be by obtaining standby address data list, the standby address when implementing
Data list includes multiple first secondary ip address information, by taking multistep connection control method of the present invention is applied to user terminal as an example,
It is stored with standby address data list in the local data base of user terminal, standby address number can be obtained by the local data base
According to list, to obtain multiple first secondary ip address information.
S1900, access attempts successively are initiated to the server end according to several first secondary ip address information.
After obtaining the first secondary ip address information, can successively it randomly select in multiple first secondary ip address information
One secondary ip address information initiates access attempts until establishing connection with server end to server end, can effectively prevent default
IP address (i.e. the IP address of the Main Domain of server end, spare domain name and proxy server domain name) the case where being sealed, mention
The success rate that high user terminal is connect with server end.
In one alternate embodiment, referring to Fig. 6, Fig. 6 is that one embodiment of the invention is protected by third-party server
The basic procedure schematic diagram that the IP file deposited is attached.
As shown in fig. 6, further including such as following step after step S1900:
S2000, the IP address encryption file that preset third party website server saves is obtained;
It still cannot be with server end initiating access attempts to server end using multiple first secondary ip address information
When connection, file can also be encrypted by the IP address obtained in third party website server, it, can be by selected when implementing
The IP address and port information of server end are simultaneously saved into the encryption file of third party website server, such as pre- by obtaining
If IP address and port information that period (such as 15 days, 20 days or 30 days) interior user terminal and server end are successfully connected,
For by the estimated time, section is 30 days, wherein attempting the IP address connecting with server end and port information in 30 days has 10
Ten thousand, and the IP address being successfully connected with server end and port information have 20,000, then believe 20,000 IP address and port
Breath is saved into the encryption file of third party website server, by communicating to connect with can obtaining the IP with third-party server
Location encrypts file.
S2100, that generation is decrypted to IP address encryption file according to preset decipherment algorithm is second spare
IP address information;
After obtaining IP address encryption file, file can be encrypted to the IP address by decipherment algorithm and be decrypted
To generate the second secondary ip address information, when implementing, decipherment algorithm is calculated with encryption used in IP address encryption file
Method is corresponding, and user terminal downloads IP address encryption file from third-party server first, then encrypts text to the IP address
Part obtains the second secondary ip address information after being decrypted.
S2200, access attempts are initiated to the server end according to the second secondary ip address information.
After obtaining the second secondary ip address information, it can be established according to the second secondary ip address information and server end
Connection, by using the mode that multistep accesses, the singular association mode in server end that can effectively reduce is closed and leads to user
Terminate the network environment that global application APP reply each department complexity is highly suitable for into risk not.
In one embodiment, above steps can also execute parallel, such as step S1400 is to step S1500, step
What S1600 to step S1700, step S1800 can be executed side by side to step S1900 and step S2000 to step S2200,
For example: when still cannot be connect with server end after step S1100 is finished to step S1300, optional choosing at this time
Step S1400 to step S1500, step S1600 are selected to step S1700, step S1800 to step S1900 and step S2000
Into step S2200, any one carries out access attempts, i.e. step S1400 to step S1500, step S1600 to step
S1700, step S1800 can be used as step to any one into step S2200 of step S1900 and step S2000
The subsequent step of S1100 to step S1300, so as to which the access between server end is neatly realized in several ways
It attempts.
In order to solve the above technical problems, the embodiment of the present invention also provides a kind of multistep access control apparatus.
It is the present embodiment multistep access control apparatus basic structure schematic diagram referring specifically to Fig. 7, Fig. 7.
As shown in fig. 7, a kind of multistep access control apparatus, comprising: first obtains module 2100, first processing module 2200
With the first execution module 2300, wherein the first acquisition module 2100 is for obtaining preset multistep access data list, wherein
The multistep access data list includes at least two sets of multistep access schemes;First processing module 2200 is used for according to preset solution
If it is corresponding with the multistep access scheme that analysis rule successively carries out parsing generation at least two sets of multistep access schemes
Dry server domain name information;First execution module 2300 is used to successively use several clothes according to preset multistep access strategy
Business device domain-name information initiates access attempts to server end to be connected to the server end.
The present embodiment accesses data list by obtaining preset multistep, and it includes that more sets are more which, which accesses in data list,
Access scheme is walked, then the multistep access scheme is parsed according to resolution rules, every set multistep access scheme includes several
Server domain name information successively uses these server domain name information to initiate to server end by preset multistep access strategy
Access attempts are attached by using more set access schemes with server end until establishing connection with server end, can be effective
It reduces that single access way is disabled or risk disturbed and that lead to access failure, greatly improves and connect with server end
Success rate.
In some embodiments, multistep access control apparatus further include: the first processing submodule and first executes submodule
Block, wherein the first processing submodule is used to successively initiate domain name mapping generation and institute according to several server domain name information
State the corresponding several IP address informations of several server domain name information;First implementation sub-module is used for successively according to described several
IP address information randomly selects a target port in several ports of the server end and carries out access attempts.
In some embodiments, multistep access control apparatus further include: several ports of the server end further include
80 ports.
In some embodiments, multistep access control apparatus further include: second obtains module and the second execution module,
In, the second acquisition module is for obtaining the history information connecting with the server end, wherein the history information
Including the history IP address information being successfully connected with the server end and history port information;Second execution module is used for basis
The history IP address information and history port information initiate access attempts to the server end.
In some embodiments, multistep access control apparatus further include: third obtains module and third execution module,
In, third obtains module for obtaining preset proxy server information, wherein the proxy server information includes preset
Custom protocol information;Third execution module is used to be connect according to the custom protocol information with proxy server communication, with
Access attempts are initiated to the server end by the proxy server.
In some embodiments, multistep access control apparatus further include: the 4th obtains module and the 4th execution module,
In, the 4th acquisition module is for obtaining preset standby address data list, wherein if the standby address data list includes
Dry first secondary ip address information;4th execution module is used for according to several first secondary ip address information successively to described
Server end initiates access attempts.
In some embodiments, multistep access control apparatus further include: the 5th acquisition module, deciphering module and the 5th are held
Row module, wherein the 5th acquisition module is used to obtain the IP address encryption file that preset third party website server saves;Solution
Close module is used to that IP address encryption file to be decrypted with generating the second spare IP according to preset decipherment algorithm
Location information;5th execution module is used to initiate access attempts to the server end according to the second secondary ip address information.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
In order to solve the above technical problems, the embodiment of the present invention also provides computer equipment.It is this referring specifically to Fig. 8, Fig. 8
Embodiment computer equipment basic structure block diagram.
As shown in figure 8, the schematic diagram of internal structure of computer equipment.As shown in figure 8, the computer equipment includes passing through to be
Processor, non-volatile memory medium, memory and the network interface of bus of uniting connection.Wherein, the computer equipment is non-easy
The property lost storage medium is stored with operating system, database and computer-readable instruction, can be stored with control information sequence in database
Column, when which is executed by processor, may make processor to realize a kind of multistep connection control method.The calculating
The processor of machine equipment supports the operation of entire computer equipment for providing calculating and control ability.The computer equipment
It can be stored with computer-readable instruction in memory, when which is executed by processor, processor may make to hold
A kind of multistep connection control method of row.The network interface of the computer equipment is used for and terminal connection communication.Those skilled in the art
Member is it is appreciated that structure shown in figure, and only the block diagram of part-structure relevant to application scheme, is not constituted to this
The restriction for the computer equipment that application scheme is applied thereon, specific computer equipment may include more than as shown in the figure
Or less component, perhaps combine certain components or with different component layouts.
Processor obtains module 2100, first processing module 2200 and for executing in Fig. 7 first in present embodiment
One execution module 2300, program code and Various types of data needed for memory is stored with the above-mentioned module of execution.Network interface is used for
To the data transmission between user terminal or server.Memory in present embodiment is stored in multistep access control apparatus
Program code needed for executing all submodules and data, server is capable of the program code of invoking server and data execute institute
There is the function of submodule.
Computer accesses data list by obtaining preset multistep, and it includes more set multisteps which, which accesses in data list,
Then access scheme parses the multistep access scheme according to resolution rules, every set multistep access scheme includes several clothes
Business device domain-name information is successively connect using these server domain name information to server end initiation by preset multistep access strategy
Enter to attempt, until establishing connection with server end, is attached, can be effectively dropped with server end by using more set access schemes
Low single access way is disabled or risk disturbed and that lead to access failure, greatly improve connect with server end at
Power.
The present invention also provides a kind of storage mediums for being stored with computer-readable instruction, and the computer-readable instruction is by one
When a or multiple processors execute, so that one or more processors execute multistep described in any of the above-described embodiment and access controlling party
The step of method.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, which can be stored in computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, storage medium above-mentioned can be magnetic
The non-volatile memory mediums such as dish, CD, read-only memory (Read-Only Memory, ROM) or random storage memory
Body (Random Access Memory, RAM) etc..
It should be understood that although each step in the flow chart of attached drawing is successively shown according to the instruction of arrow,
These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps
Execution there is no stringent sequences to limit, can execute in the other order.Moreover, at least one in the flow chart of attached drawing
Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps
Completion is executed, but can be executed at different times, execution sequence, which is also not necessarily, successively to be carried out, but can be with other
At least part of the sub-step or stage of step or other steps executes in turn or alternately.
The above is only some embodiments of the invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (10)
1. a kind of multistep connection control method, which is characterized in that include the following steps:
Obtain preset multistep access data list, wherein the multistep access data list includes at least two sets of multistep accesses
Scheme;
Successively parsing generation is carried out at least two sets of multistep access schemes according to preset resolution rules to connect with the multistep
Enter the corresponding several server domain name information of scheme;
Successively access is initiated to server end using several server domain name information according to preset multistep access strategy to taste
Examination is to be connected to the server end.
2. multistep connection control method according to claim 1, which is characterized in that described to access plan according to preset multistep
Slightly access attempts successively are initiated to be connected to the server end to server end using several server domain name information
Step, including such as following step:
Domain name mapping is successively initiated according to several server domain name information to generate and several server domain name information phases
Corresponding several IP address informations;
A target port in several ports of the server end is successively randomly selected according to several IP address informations
Carry out access attempts.
3. multistep connection control method according to claim 2, which is characterized in that several ports of the server end are also
Including 80 ports.
4. multistep connection control method according to claim 1, which is characterized in that described to access plan according to preset multistep
Slightly access attempts successively are initiated to be connected to the server end to server end using several server domain name information
Further include such as following step after step:
Obtain the history information that connect with the server end, wherein the history information includes and the service
The history IP address information and history port information that device end is successfully connected;
Access attempts are initiated to the server end according to the history IP address information and history port information.
5. multistep connection control method according to claim 4, which is characterized in that described to be believed according to the history IP address
Further include such as following step after the step of breath and history port information initiate access attempts to the server end:
Obtain preset proxy server information, wherein the proxy server information includes preset custom protocol information;
Connect according to the custom protocol information with proxy server communication, with by the proxy server to the service
Initiate access attempts in device end.
6. multistep connection control method according to claim 5, which is characterized in that described to be believed according to the custom protocol
Breath connect with proxy server communication, with pass through the proxy server to the server end initiation access attempts the step of it
Afterwards, further include such as following step:
Obtain preset standby address data list, wherein the standby address data list includes several first spare IP
Location information;
Access attempts successively are initiated to the server end according to several first secondary ip address information.
7. multistep connection control method according to claim 6, which is characterized in that described spare according to described several first
Further include such as following step after the step of IP address information successively initiates access attempts to the server end:
Obtain the IP address encryption file that preset third party website server saves;
IP address encryption file is decrypted according to preset decipherment algorithm and generates the second secondary ip address information;
Access attempts are initiated to the server end according to the second secondary ip address information.
8. a kind of multistep access control apparatus characterized by comprising
First obtains module, for obtaining preset multistep access data list, wherein the multistep accesses data list and includes
At least two sets of multistep access schemes;
First processing module, for successively being parsed at least two sets of multistep access schemes according to preset resolution rules
Generate several server domain name information corresponding with the multistep access scheme;
First execution module, for successively using several server domain name information to clothes according to preset multistep access strategy
Device end initiation access attempts be engaged in be connected to the server end.
9. a kind of computer equipment, including memory and processor, it is stored with computer-readable instruction in the memory, it is described
When computer-readable instruction is executed by the processor, so that the processor executes such as any one of claims 1 to 7 right
It is required that the step of multistep connection control method.
10. a kind of storage medium for being stored with computer-readable instruction, the computer-readable instruction is handled by one or more
When device executes, so that one or more processors execute the multistep access control as described in any one of claims 1 to 7 claim
The step of method processed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811564625.5A CN109743364A (en) | 2018-12-20 | 2018-12-20 | Multistep connection control method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811564625.5A CN109743364A (en) | 2018-12-20 | 2018-12-20 | Multistep connection control method, device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109743364A true CN109743364A (en) | 2019-05-10 |
Family
ID=66360887
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811564625.5A Pending CN109743364A (en) | 2018-12-20 | 2018-12-20 | Multistep connection control method, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109743364A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111327581A (en) * | 2019-08-08 | 2020-06-23 | 杭州海康威视系统技术有限公司 | Equipment access method and device, electronic equipment and storage medium |
CN112751931A (en) * | 2020-12-29 | 2021-05-04 | 中国工商银行股份有限公司 | Network connection method and device, electronic device, and medium |
CN114051016A (en) * | 2022-01-12 | 2022-02-15 | 满金坝(深圳)科技有限公司 | IP intelligent matching method of mobile terminal in HTTP request and mobile terminal |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103905500A (en) * | 2012-12-27 | 2014-07-02 | 腾讯数码(天津)有限公司 | Method and apparatus for accessing to application server |
CN104639666A (en) * | 2013-11-06 | 2015-05-20 | 腾讯科技(深圳)有限公司 | Domain name access method and device |
CN104796387A (en) * | 2014-01-21 | 2015-07-22 | 腾讯科技(深圳)有限公司 | Communication method and device of long connection of network |
CN107154963A (en) * | 2017-03-31 | 2017-09-12 | 北京猎豹移动科技有限公司 | A kind of request processing method, device and electronic equipment |
CN107396423A (en) * | 2017-07-26 | 2017-11-24 | 腾讯科技(深圳)有限公司 | Method for network access and device, storage medium and electronic installation |
-
2018
- 2018-12-20 CN CN201811564625.5A patent/CN109743364A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103905500A (en) * | 2012-12-27 | 2014-07-02 | 腾讯数码(天津)有限公司 | Method and apparatus for accessing to application server |
CN104639666A (en) * | 2013-11-06 | 2015-05-20 | 腾讯科技(深圳)有限公司 | Domain name access method and device |
CN104796387A (en) * | 2014-01-21 | 2015-07-22 | 腾讯科技(深圳)有限公司 | Communication method and device of long connection of network |
CN107154963A (en) * | 2017-03-31 | 2017-09-12 | 北京猎豹移动科技有限公司 | A kind of request processing method, device and electronic equipment |
CN107396423A (en) * | 2017-07-26 | 2017-11-24 | 腾讯科技(深圳)有限公司 | Method for network access and device, storage medium and electronic installation |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111327581A (en) * | 2019-08-08 | 2020-06-23 | 杭州海康威视系统技术有限公司 | Equipment access method and device, electronic equipment and storage medium |
CN112751931A (en) * | 2020-12-29 | 2021-05-04 | 中国工商银行股份有限公司 | Network connection method and device, electronic device, and medium |
CN112751931B (en) * | 2020-12-29 | 2022-10-14 | 中国工商银行股份有限公司 | Network connection method and device, electronic device, and medium |
CN114051016A (en) * | 2022-01-12 | 2022-02-15 | 满金坝(深圳)科技有限公司 | IP intelligent matching method of mobile terminal in HTTP request and mobile terminal |
CN114051016B (en) * | 2022-01-12 | 2022-04-12 | 满金坝(深圳)科技有限公司 | IP intelligent matching method of mobile terminal in HTTP request and mobile terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Day | Patterns in network architecture | |
CN109743364A (en) | Multistep connection control method, device, computer equipment and storage medium | |
US11025724B2 (en) | Transport of control data in proxy-based network communications | |
CN103649966B (en) | The method of network equipment and protection content based on content name | |
CN107809425A (en) | A kind of honey jar deployment system | |
CN105122741B (en) | The business chain control method and device of Business Stream | |
CN107872542A (en) | The method and the network equipment of a kind of data transfer | |
US10601777B2 (en) | Data inspection system and method | |
CN105847312B (en) | A kind of resource access method and user terminal | |
CN107659485A (en) | A kind of method and device of equipment and server communication in VPN VPN | |
CN105939284B (en) | The matching process and device of message control strategy | |
CN107508907A (en) | A kind of data transmission method and device | |
CN108011927A (en) | The method, apparatus and storage medium and electronic equipment of request data | |
CN105227673B (en) | Data download method, client, server and the system of anti-abduction | |
US20170031926A1 (en) | Development of a Motility Scoring Methodology to Facilitate Urbanomic Mobility | |
CN107948215A (en) | A kind of remote invocation method and device based on UDP communications | |
CN107124483A (en) | Domain name analytic method and server | |
CN108718313A (en) | Application of software data uses method, terminal device and server safely | |
CN109639451A (en) | Port configuration method, device, storage medium and electronic device | |
CN106411742A (en) | Message transmission method and device | |
CN110198333A (en) | Data capture method and device, storage medium and electronic device | |
US10911583B1 (en) | System and method for processing a network message | |
CN108282537A (en) | A kind of method that Portal User is offline and access device | |
US11457023B2 (en) | Chunk-scanning of web application layer requests to reduce delays | |
CN108667948B (en) | A kind of method and device for realizing general protocol schedule |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190510 |