CN107819872A - Ask the method and device of network data - Google Patents
Ask the method and device of network data Download PDFInfo
- Publication number
- CN107819872A CN107819872A CN201711174568.5A CN201711174568A CN107819872A CN 107819872 A CN107819872 A CN 107819872A CN 201711174568 A CN201711174568 A CN 201711174568A CN 107819872 A CN107819872 A CN 107819872A
- Authority
- CN
- China
- Prior art keywords
- data
- server
- address
- network data
- proxy 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 34
- 230000004044 response Effects 0.000 description 16
- 238000013507 mapping Methods 0.000 description 9
- 241001269238 Data Species 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 210000004209 hair Anatomy 0.000 description 2
- 230000003284 homeostatic effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000002123 temporal effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0668—Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
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 present invention provides a kind of method and device for asking network data, and this method includes:Obtain the IP address of the internet protocol address of data server and at least one proxy server of the data server;According to the IP address of the data server and the IP address of at least one proxy server, to the data server requests network data.The reliability of network data is obtained for improving.
Description
Technical field
The present embodiments relate to network technique field, more particularly to a kind of method and device for asking network data.
Background technology
At present, terminal device directly can obtain network data from data server, or, terminal device can also pass through
Proxy server obtains network data from data server.
During terminal device is from data server acquisition network data, if terminal device passes through a data acquisition
Ask what is failed to acquire network data, then terminal device retransmission data obtains request, to ask network data again,
Until acquiring network data or time-out.For example, it is assumed that terminal device is directly to data server requests network data, when
Terminal device fails when acquiring network data, then terminal device is again directly to data server requests network number
According to until acquiring network data or time-out.Assuming that terminal device by proxy server to data server requests net
Network data, when terminal device, which fails, acquires network data, then terminal device again by proxy server to number
According to service request network data, until acquiring network data or time-out.
However, in actual application, when causing terminal device not acquire successfully due to data link failure
During network data, then network number still successfully can not be acquired from data server by identical link within short time interval
According to, cause obtain network data reliability it is relatively low.
The content of the invention
The embodiment of the present invention provides a kind of method and device for asking network data, improves and obtains the reliable of network data
Property.
In a first aspect, the embodiment of the present invention provides a kind of method for asking network data, including:
Obtain the internet protocol address of data server and at least one proxy server of the data server
IP address;
According to the IP address of the data server and the IP address of at least one proxy server, to the data
Server asks network data.
In a kind of possible embodiment, the IP address for obtaining data server and the data server are extremely
The IP address of a few proxy server, including:
Domain name analysis request is sent to domain name system DNS server, domain name analysis request includes the data clothes
The domain name of business device;
Receive the IP address for the data server that the dns server is sent and at least one proxy server
IP address.
In alternatively possible embodiment, the IP address according to the data server and described at least one
The IP address of proxy server, to the data server requests network data, including:
According to the IP address of the data server, to network data described in the data server requests;
If according to the IP address of the server it is failed acquire the network data, at least one according to
The IP address of individual proxy server, by least one proxy server to network number described in the data server requests
According to.
In alternatively possible embodiment, the IP address according at least one proxy server, pass through
At least one proxy server to network data described in the data server requests, including:
According to the priority of at least one proxy server, respectively according at least one proxy server to institute
Network data described in data server requests is stated, until acquiring the network number by least one proxy server
According to or by network data described in all proxy server to the data server requests.
In alternatively possible embodiment, the IP address according to the data server and described at least one
The IP address of proxy server, to the data server requests network data, including:
According to the IP address of the data server, to network data described in the data server requests, while basis
The IP address of each proxy server sends request, by each proxy server to the data server requests
The network data.
Second aspect, the embodiment of the present invention provide a kind of device for asking network data, including the first acquisition module and the
Two acquisition modules, wherein,
First acquisition module is used for, and obtains the internet protocol address of data server and the data server
At least one proxy server IP address;
Second acquisition module is used for, according to the IP address of the data server and at least one agency service
The IP address of device, to the data server requests network data.
In a kind of possible embodiment, first acquisition module is specifically used for:
Domain name analysis request is sent to domain name system DNS server, domain name analysis request includes the data clothes
The domain name of business device;
Receive the IP address for the data server that the dns server is sent and at least one proxy server
IP address.
In alternatively possible embodiment, second acquisition module includes first acquisition unit and second and obtains list
Member, wherein,
The first acquisition unit is used for, according to the IP address of the data server, to the data server requests
The network data;
The second acquisition unit is used for, the IP address according to the server it is failed acquire the network
During data, according to the IP address of at least one proxy server, by least one proxy server to the number
The network data is asked according to server.
In alternatively possible embodiment, the second acquisition unit is specifically used for:
According to the priority of at least one proxy server, respectively according at least one proxy server to institute
Network data described in data server requests is stated, until acquiring the network number by least one proxy server
According to or by network data described in all proxy server to the data server requests.
In alternatively possible embodiment, second acquisition module is specifically used for:
According to the IP address of the data server, to network data described in the data server requests, while basis
The IP address of each proxy server sends request, by each proxy server to the data server requests
The network data.
The method and device of request network data provided in an embodiment of the present invention, when terminal device needs to obtain network data
When, terminal device is with can obtaining the IP of the IP address of data server and at least one proxy server of data server
Location, and according to the IP address of data server and the IP address of at least one proxy server, to data server requests network
Data.In above process, terminal device both can be directly according to the IP address of data server, directly please to data server
Network data is sought, again can be according to the IP address of proxy server, by proxy server to data server requests network number
According to.That is, terminal device can be by a plurality of data link to data server requests network data, even if terminal device and data
A data link between server is broken down, and terminal device can also be asked by other data link to data server
Network data is sought, improves the reliability that terminal device obtains network data.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are this hairs
Some bright embodiments, for those of ordinary skill in the art, without having to pay creative labor, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is network architecture diagram provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet one of the method for request network data provided in an embodiment of the present invention;
Fig. 3 is the schematic flow sheet two of the method for request network data provided in an embodiment of the present invention;
Fig. 4 is the schematic flow sheet three of the method for request network data provided in an embodiment of the present invention;
Fig. 5 is the structural representation one of the device of request network data provided in an embodiment of the present invention;
Fig. 6 is the structural representation two of the device of request network data provided in an embodiment of the present invention.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
Part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Fig. 1 is network architecture diagram provided in an embodiment of the present invention.Refer to Fig. 1, including it is terminal device 101, at least one
Proxy server 102, data server 103 and domain name system (Domain Name System, DNS) server 104.Wherein,
Terminal device 101 can be mobile phone, apparatus such as computer.The number of proxy server 102 can be one, two etc., the present invention
Embodiment is not especially limited to the number of proxy server 102.Terminal device 101 can be by proxy server 102 from number
Network data is acquired according to server 103, terminal device 101 directly can also acquire network from data server 103
Data.Dns server 104 can provide the Internet protocol of data server corresponding to domain name to terminal device 101
The IP address of proxy server corresponding to (Internet Protocol, IP) address and domain name.
In embodiments of the present invention, due to terminal device the IP of data server can be acquired from dns server
Location and the IP address of proxy server, therefore, terminal device, both can direct roots when to data server requests network data
, again can directly to data server requests network data according to the IP address of data server according to the IP of proxy server
Location, by proxy server to data server requests network data.That is, terminal device can be by a plurality of data link to number
Network data is asked according to server, even if a data link between terminal device and data server breaks down, terminal
Equipment can also improve terminal device and obtain network data by other data link to data server requests network data
Reliability.
Below, by specific embodiment, the technical scheme shown in the application is described in detail.It should be noted that
Several specific embodiments can be combined with each other below, for same or analogous content, no longer carry out in various embodiments
Repeat specification.
Fig. 2 is the schematic flow sheet one of the method for request network data provided in an embodiment of the present invention.Fig. 2 is referred to, should
Method can include:
The IP address of S201, the IP address for obtaining data server and data server at least one proxy server.
Optionally, the executive agent of the embodiment of the present invention can be terminal device or the request being arranged in terminal device
The device of network data.Optionally, the device of the request network data can be realized by software, or, the request network number
According to device can also be implemented in combination with by software and hardware.
It should be noted that the data server shown in the embodiment of the present invention is used to provide data, services to terminal device.
Proxy server described in the embodiment of the present invention is proxy server corresponding to data server, and terminal device can pass through agency
Server access data server.
Optionally, data server can correspond to a proxy server, multiple proxy servers can also be corresponded to, in reality
In the application process of border, this can specifically not limited according to the number for being actually needed setting proxy server, the embodiment of the present invention
It is fixed.
Optionally, when terminal device needs to obtain network data from data server, data server can be obtained
The IP address of proxy server corresponding to IP address and data server.Certainly, terminal device can also obtain in other conditions
The IP address of data server and proxy server, the embodiment of the present invention obtain data server and agency service to terminal device
It is not especially limited at the time of the IP address of device.
Optionally, terminal device can obtain IP address and the agency of data server by following feasible implementation
The IP address of server:Domain name analysis request is sent to dns server, the domain for including data server is asked in domain name mapping
Name;Receive the IP address of data server and the IP address of at least one proxy server that dns server is sent.
Optionally, the domain name including data server, the IP address of data server and agency take in the dns server
The corresponding relation of the IP address of business device.For example, the corresponding relation can be as shown in table 1:
Table 1
| The domain name of data server | The IP address of data server | The IP address of proxy server |
| Domain name 1 | IP11 | IP12、IP13…… |
| Domain name 2 | IP21 | IP22、IP23…… |
| …… | …… | …… |
It should be noted that table 1 is the domain name of schematic data server, the IP of data server in exemplary fashion
Location, proxy server IP address corresponding relation,, can be with actual application not to the restriction of the corresponding relation
The corresponding relation is set according to being actually needed, the embodiment of the present invention is not especially limited to this.
S202, according to the IP address of data server and the IP address of at least one proxy server, to data server
Ask network data.
Optionally, can be by the feasible implementation of at least the following two kinds to data server requests network data:
A kind of feasible implementation:Terminal device is sequentially to data server and Proxy request network data.
In this kind of feasible implementation, first according to the IP address of data server, to data server requests network
Data;If according to the IP address of server it is failed acquire network data, according at least one proxy server
IP address, by least one proxy server to data server requests network data.
Optionally, the domain name of the data server in data acquisition request can be revised as to the IP of data server
Location, so that the data acquisition request can be sent to data server, network data is obtained in data server to realize.
When the network link failure between terminal device and data server, terminal device can not obtain from data server
Obtain network data.That is, terminal device does not receive the response message of data server transmission in preset period of time, then terminal is set
The standby IP address that the domain name of data server in data acquisition request is revised as to proxy server again, so that the data acquisition please
Transmission is asked after proxy server receives data acquisition request, just to be sent data acquisition request to number to proxy server
According to server, so that terminal device can acquire network data by proxy server.
Optionally, when terminal device obtains network data and generation by least one proxy server from data server
When managing the number of server more than 1, terminal device can be according to the priority of at least one proxy server, respectively according at least
One proxy server is to data server requests network data, until acquiring network by least one proxy server
Data or by all proxy servers to data server requests network data.
For example, it is assumed that the number of proxy server is 3, proxy server 1- proxy servers 3 are designated as respectively, and act on behalf of
The priority of server 1- proxy servers 3 reduces successively.Terminal device can first pass through proxy server 1 to data server
Network data is asked, if terminal device acquires network data, terminal device by proxy server 1 from data server
No longer by other proxy servers to data server requests network data, if terminal device can not by proxy server 1
Network data is acquired from data server, then terminal device is again by proxy server 2 to data server requests network
Data, said process is repeated, until terminal device acquires network data by proxy server or terminal device passes through
Proxy server 1- proxy servers 3 do not acquire network data from data server.
Optionally, when dns server sends the IP address of proxy server to terminal device, can be sent out to terminal device
Send the priority of proxy server.Optionally, can be according to load when dns server sets the priority of proxy server
Homeostatic principle sets the priority of proxy server, to realize the load balancing of proxy server.For example, for part domain name solution
Analysis request, the priority of proxy server 1 can be arranged to highest by dns server, so that terminal device can preferentially pass through
Proxy server 1 accesses data server, is asked for another part domain name mapping, dns server can be by proxy server 2
Priority be arranged to highest so that terminal device can preferentially pass through proxy server 2 access data server.
In this kind of feasible implementation, terminal device directly takes according to the IP address of data server to data first
Business device request network data, if terminal device directly can obtain network data to data server requests, can save generation
Manage the resource overhead of server;If terminal device obtains network data without normal direction data server requests, then is taken by acting on behalf of
Device be engaged in data server requests network data.In terminal device by proxy server to data server requests network data
During, terminal device is according to the priority of proxy server by proxy server to data server requests network number
According to so, it may be determined that the load balancing between each proxy server, and then improve and network is obtained by proxy server
The efficiency of data.
Another feasible implementation:Terminal device is simultaneously to data server and Proxy request network number
According to.
In this kind of feasible implementation, terminal device, please to data server according to the IP address of data server
Network data is sought, respectively according to the IP address of each proxy server, by each proxy server to data server
Ask network data.
Optionally, when terminal device is needed to data server requests network data, terminal device can be respectively by number
According to the domain name for obtaining the data server in asking with being revised as the IP address of data server and the IP of proxy server
Location, and then multiple data acquisition requests are obtained, and the multiple data acquisition requests of transmitted in parallel.Terminal is received in data server
After the data acquisition request that equipment is sent, data server sends network data to terminal device, is received in proxy server
After the data acquisition request sent to terminal device, proxy server obtains network data from data server, and to terminal
The network data that device forwards acquire.
From the foregoing, it will be observed that terminal device may simultaneously or successively receive the network that data server and proxy server are sent
Data, after terminal device receives network data, other identical network datas can be ignored, for example, can be by other phases
Same network data abandons.
, can be with this kind of feasible implementation, while to data server and Proxy request network data
Improve the efficiency for obtaining network data.
The method of request network data provided in an embodiment of the present invention, when terminal device needs to obtain network data, eventually
End equipment can obtain the IP address of data server and the IP address of at least one proxy server of data server, and root
According to the IP address of data server and the IP address of at least one proxy server, to data server requests network data.
In said process, terminal device both can be directly according to the IP address of data server, directly to data server requests network
Data, again can be according to the IP address of proxy server, by proxy server to data server requests network data.That is,
Terminal device can be by a plurality of data link to data server requests network data, even if terminal device and data server
Between a data link break down, terminal device can also be by other data link to data server requests network
Data, improve the reliability that terminal device obtains network data.
On the basis of embodiment illustrated in fig. 2, the IP of data server and proxy server is acquired in terminal device
After address, network data can be acquired by least two feasible implementation methods.Below, there is provided shown in Fig. 3-Fig. 4
Embodiment, introduce two kinds acquisition network data methods.
Fig. 3 is the schematic flow sheet two of the method for request network data provided in an embodiment of the present invention.Fig. 3 is referred to, should
Method can include:
S301, terminal device send domain name analysis request to dns server.
Wherein, domain name mapping request includes the mark of data server.The domain name mapping asks to be used for request data clothes
The IP address of the IP address of device of being engaged in and at least one proxy server of data server.
S302, dns server send domain name resolution response to terminal device.
Wherein, domain name mapping response includes the IP address of data server and at least one agency clothes of data server
The IP address of business device.
By above-mentioned S301-S302, terminal device can acquire the IP address and data server of data server
At least one proxy server IP address.
S303, terminal device send the first data acquisition request according to the IP address of data server to data server.
Wherein, the purpose IP address in the first data acquisition request is the IP address of data server.First data acquisition
Ask to be used for data server requests network data.
It should be noted that when terminal device can obtain network data from data server, then S303a is performed.
S303a, data server send the response of the first data acquisition to terminal device.
Wherein, the first data acquisition response includes network data.
It should be noted that S303a is optional step, when terminal device can not acquire network from data server
During data, then S303a is not performed.
S304, terminal device judge whether acquire network data according to the first data acquisition request.
If so, flow terminates.
If it is not, perform S305.
Optionally, if terminal device send the first data acquisition request after preset duration within do not receive data, services
The data acquisition response that device is sent, then can determine not acquire network data according to the first data acquisition request.
S305, terminal device send the second data acquisition according to the priority of proxy server to first agent's server
Request.
Wherein, first agent's server be at least one proxy server in, the proxy server of highest priority.
Wherein, the purpose IP address of the second data acquisition request is the IP address of first agent's server.Second data obtain
Request is taken to be used to ask network data.
It should be noted that when terminal device can obtain network data by first agent's server from data server
When, then perform S305a-S305c.
S305a, first agent's server forward the second data acquisition request to data server.
S305b, data server send the response of the second data acquisition to first agent's server.
Wherein, the second data acquisition response includes network data.
S305c, second agent's server forward the response of the second data acquisition to terminal device.
It should be noted that S305a-S305c is optional step, when terminal device can not obtain from data server
During to network data, then all or part in S305a-S305c is not performed.
S306, terminal device judge whether acquire network data according to the second data acquisition request.
If so, flow terminates.
If it is not, perform S307.
Optionally, if terminal device send the second data acquisition request after preset duration within do not receive agency service
The data acquisition response that device is sent, then can determine not acquire network data according to the second data acquisition request.
S307, terminal device send the 3rd data acquisition according to the priority of proxy server to second agent's server
Request, until acquiring network data or have sent data acquisition request to all proxy servers.
Wherein, second agent's server be at least one proxy server, the high proxy server of preferential level.
Wherein, the purpose IP address of the 3rd data acquisition request is the IP address of second agent's server.3rd data obtain
Request is taken to be used to ask network data.
In the embodiment shown in fig. 3, terminal device first directly can take according to the IP address of data server to data
It is engaged in device request network data, again by proxy server to data server requests if it directly can not ask to obtain network data
Network data, so, terminal device can be by a plurality of data link to data server requests network data, even if terminal is set
Standby a data link between data server breaks down, and terminal device can also be by other data link to data
Server asks network data, improves the reliability that terminal device obtains network data.
Fig. 4 is the schematic flow sheet three of the method for request network data provided in an embodiment of the present invention.Fig. 4 is referred to, should
Method can include:
S401, terminal device send domain name analysis request to dns server.
Wherein, domain name mapping request includes the mark of data server.The domain name mapping asks to be used for request data clothes
The IP address of the IP address of device of being engaged in and at least one proxy server of data server.
S402, dns server are corresponding to terminal device transmission domain name mapping.
Wherein, domain name mapping response includes the IP address of data server and at least one agency clothes of data server
The IP address of business device.
By above-mentioned S401-S402, terminal device can acquire the IP address and data server of data server
At least one proxy server IP address.
S403, terminal device send the first data acquisition request according to the IP address of data server to data server.
Wherein, the purpose IP address in the first data acquisition request is the IP address of data server.First data acquisition
Ask to be used for data server requests network data.
It should be noted that when terminal device can obtain network data from data server, then S403a is performed.
S403a, data server send the response of the first data acquisition to terminal device.
Wherein, the first data acquisition response includes network data.
It should be noted that S403a is optional step, when terminal device can not acquire network from data server
During data, then S403a is not performed.
S404, terminal device send the second data acquisition to proxy server respectively according to the IP address of proxy server
Request.
Wherein, the purpose IP address in the second data acquisition request is the IP address of proxy server.Second data acquisition
Ask to be used for data server requests network data.
Optionally, S403 and S404 can be performed simultaneously.
It should be noted that when terminal device can obtain network data by first agent's server from data server
When, then perform S404a-S404c.
S404a, proxy server forward the second data acquisition request to data server.
S404b, data server send the response of the second data acquisition to proxy server.
Wherein, the second data acquisition response includes network data.
S404c, proxy server send the response of the second data acquisition to terminal device.
It should be noted that S404a-S404c is optional step, when terminal device can not obtain from data server
During to network data, then all or part in S404a-S404c is not performed.
It should also be noted that, when if terminal device receives multiple identical network datas, terminal device can be adopted only
With one of network data, and ignore other identical network datas.
It should also be noted that, S403-S404 and S405-S407 do not have a temporal sequencing, S403-S404 with
S405-S407 can be performed simultaneously.
In the embodiment shown in fig. 4, terminal device is simultaneously to data server and Proxy request network data,
So, the efficiency for obtaining network data can be improved.Further, because terminal device can be by a plurality of data link to number
Network data is asked according to server, even if a data link between terminal device and data server breaks down, terminal
Equipment can also improve terminal device and obtain network data by other data link to data server requests network data
Reliability.
Fig. 5 is the structural representation one of the device of request network data provided in an embodiment of the present invention.Fig. 5 is referred to, should
Device can include the first acquisition module 11 and the second acquisition module 12, wherein,
First acquisition module 11 is used for, and obtains the internet protocol address of data server and the data, services
The IP address of at least one proxy server of device;
Second acquisition module 12 is used for, and is taken according to the IP address of the data server and at least one agency
The IP address of business device, to the data server requests network data.
The device of request network data provided in an embodiment of the present invention can perform the technology shown in above method embodiment
Scheme, its realization principle and beneficial effect are similar, are no longer repeated herein.
In a kind of possible embodiment, first acquisition module 11 is specifically used for:
Domain name analysis request is sent to domain name system DNS server, domain name analysis request includes the data clothes
The domain name of business device;
Receive the IP address for the data server that the dns server is sent and at least one proxy server
IP address.
Fig. 6 is the structural representation two of the device of request network data provided in an embodiment of the present invention.In implementation shown in Fig. 5
On the basis of example, Fig. 6 is referred to, second acquisition module 12 includes first acquisition unit 121 and second acquisition unit 122,
Wherein,
The first acquisition unit 121 is used for, please to the data server according to the IP address of the data server
Seek the network data;
The second acquisition unit 122 is used for, the IP address according to the server it is failed acquire described in
During network data, according to the IP address of at least one proxy server, by least one proxy server to institute
State network data described in data server requests.
In alternatively possible embodiment, the second acquisition unit 122 is specifically used for:
According to the priority of at least one proxy server, respectively according at least one proxy server to institute
Network data described in data server requests is stated, until acquiring the network number by least one proxy server
According to or by network data described in all proxy server to the data server requests.
In alternatively possible embodiment, second acquisition module 12 is specifically used for:
According to the IP address of the data server, to network data described in the data server requests, while basis
The IP address of each proxy server sends request, by each proxy server to the data server requests
The network data.
The device of request network data provided in an embodiment of the present invention can perform the technology shown in above method embodiment
Scheme, its realization principle and beneficial effect are similar, are no longer repeated herein.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to
The related hardware of programmed instruction is crossed to complete.Foregoing program can be stored in a computer read/write memory medium.The journey
Sequence upon execution, execution the step of including above-mentioned each method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or
Person's CD etc. is various can be with the medium of store program codes.
Finally it should be noted that:Various embodiments above is only illustrating the technical scheme of the embodiment of the present invention, rather than to it
Limitation;Although the embodiment of the present invention is described in detail with reference to foregoing embodiments, one of ordinary skill in the art
It should be understood that:It can still modify to the technical scheme described in foregoing embodiments, either to which part or
All technical characteristic carries out equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from this hair
The scope of bright embodiment scheme.
Claims (10)
- A kind of 1. method for asking network data, it is characterised in that including:Obtain the IP of the internet protocol address of data server and at least one proxy server of the data server Address;According to the IP address of the data server and the IP address of at least one proxy server, to the data, services Device asks network data.
- 2. according to the method for claim 1, it is characterised in that the IP address for obtaining data server and the data The IP address of at least one proxy server of server, including:Domain name analysis request is sent to domain name system DNS server, domain name analysis request includes the data server Domain name;Receive the IP address of the data server and the IP of at least one proxy server that the dns server is sent Address.
- 3. method according to claim 1 or 2, it is characterised in that the IP address according to the data server and The IP address of at least one proxy server, to the data server requests network data, including:According to the IP address of the data server, to network data described in the data server requests;If according to the IP address of the server it is failed acquire the network data, according at least one generation The IP address of server is managed, by least one proxy server to network data described in the data server requests.
- 4. according to the method for claim 3, it is characterised in that the IP according at least one proxy server Location, by least one proxy server to network data described in the data server requests, including:According to the priority of at least one proxy server, respectively according at least one proxy server to the number Ask the network data according to server, until by least one proxy server acquire the network data or Person passes through network data described in all proxy servers to the data server requests.
- 5. method according to claim 1 or 2, it is characterised in that the IP address according to the data server and The IP address of at least one proxy server, to the data server requests network data, including:According to the IP address of the data server, to network data described in the data server requests, while according to described The IP address of each proxy server sends request, by described in each proxy server to the data server requests Network data.
- A kind of 6. device for asking network data, it is characterised in that including the first acquisition module and the second acquisition module, wherein,First acquisition module is used for, obtain data server internet protocol address and the data server extremely The IP address of a few proxy server;Second acquisition module is used for, according to the IP address of the data server and at least one proxy server IP address, to the data server requests network data.
- 7. device according to claim 6, it is characterised in that first acquisition module is specifically used for:Domain name analysis request is sent to domain name system DNS server, domain name analysis request includes the data server Domain name;Receive the IP address of the data server and the IP of at least one proxy server that the dns server is sent Address.
- 8. the device according to claim 6 or 7, it is characterised in that second acquisition module includes first acquisition unit And second acquisition unit, wherein,The first acquisition unit is used for, according to the IP address of the data server, to described in the data server requests Network data;The second acquisition unit is used for, the IP address according to the server it is failed acquire the network data When, according to the IP address of at least one proxy server, taken by least one proxy server to the data Business device asks the network data.
- 9. device according to claim 8, it is characterised in that the second acquisition unit is specifically used for:According to the priority of at least one proxy server, respectively according at least one proxy server to the number Ask the network data according to server, until by least one proxy server acquire the network data or Person passes through network data described in all proxy servers to the data server requests.
- 10. the device according to claim 6 or 7, it is characterised in that second acquisition module is specifically used for:According to the IP address of the data server, to network data described in the data server requests, while according to described The IP address of each proxy server sends request, by described in each proxy server to the data server requests Network data.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711174568.5A CN107819872A (en) | 2017-11-22 | 2017-11-22 | Ask the method and device of network data |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711174568.5A CN107819872A (en) | 2017-11-22 | 2017-11-22 | Ask the method and device of network data |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN107819872A true CN107819872A (en) | 2018-03-20 |
Family
ID=61610413
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201711174568.5A Pending CN107819872A (en) | 2017-11-22 | 2017-11-22 | Ask the method and device of network data |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107819872A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108777709A (en) * | 2018-05-31 | 2018-11-09 | 康键信息技术(深圳)有限公司 | Website access method, device, computer equipment and storage medium |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101309167A (en) * | 2008-06-27 | 2008-11-19 | 华中科技大学 | Disaster recovery system and method based on cluster backup |
| US20110099480A1 (en) * | 2009-10-27 | 2011-04-28 | Arcot Systems, Inc. | Method and system for machine identification |
| CN102624920A (en) * | 2012-03-31 | 2012-08-01 | 奇智软件(北京)有限公司 | A method and device for accessing through a proxy server |
| CN102790808A (en) * | 2011-05-16 | 2012-11-21 | 奇智软件(北京)有限公司 | Domain name resolution method and system, client |
| CN103024933A (en) * | 2011-09-28 | 2013-04-03 | 腾讯科技(深圳)有限公司 | Mobile Internet access system and mobile Internet access method |
| CN105959413A (en) * | 2016-06-30 | 2016-09-21 | 上海智臻智能网络科技股份有限公司 | Network agent method and agent system |
| CN105991627A (en) * | 2015-03-13 | 2016-10-05 | 杭州迪普科技有限公司 | Data connection establishing method and device |
-
2017
- 2017-11-22 CN CN201711174568.5A patent/CN107819872A/en active Pending
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101309167A (en) * | 2008-06-27 | 2008-11-19 | 华中科技大学 | Disaster recovery system and method based on cluster backup |
| US20110099480A1 (en) * | 2009-10-27 | 2011-04-28 | Arcot Systems, Inc. | Method and system for machine identification |
| CN102790808A (en) * | 2011-05-16 | 2012-11-21 | 奇智软件(北京)有限公司 | Domain name resolution method and system, client |
| CN103024933A (en) * | 2011-09-28 | 2013-04-03 | 腾讯科技(深圳)有限公司 | Mobile Internet access system and mobile Internet access method |
| CN102624920A (en) * | 2012-03-31 | 2012-08-01 | 奇智软件(北京)有限公司 | A method and device for accessing through a proxy server |
| CN105991627A (en) * | 2015-03-13 | 2016-10-05 | 杭州迪普科技有限公司 | Data connection establishing method and device |
| CN105959413A (en) * | 2016-06-30 | 2016-09-21 | 上海智臻智能网络科技股份有限公司 | Network agent method and agent system |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108777709A (en) * | 2018-05-31 | 2018-11-09 | 康键信息技术(深圳)有限公司 | Website access method, device, computer equipment and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104717231B (en) | Pre-distribution processing method and device for content distribution network | |
| CN104660409B (en) | The method of system login and certificate server cluster under cluster environment | |
| CN105939313B (en) | Status code reorientation method and device | |
| US9965301B2 (en) | Systems and methods for managing emulation resources | |
| CN104144202B (en) | Access method, system and the device of Hadoop distributed file system | |
| US12041688B2 (en) | Screen projection method and system | |
| CN108933847A (en) | A kind of method and device that address is quickly distributed | |
| CN106209875A (en) | Method for processing business based on multi-services device and service server | |
| CN103259818A (en) | Distributed data access system and distributed data access method | |
| CN107819872A (en) | Ask the method and device of network data | |
| CN101018227A (en) | Data management device, storage medium having data management program, protocol switching device and method | |
| CN111193778A (en) | Method, device, equipment and medium for WEB service load balancing | |
| CN113452778B (en) | Session holding method, device, equipment, system and storage medium | |
| CN103560884B (en) | The cancellation method of subscriber identity information, system, certificate server and client | |
| CN107666401A (en) | A kind of configuration information obtaining method and terminal | |
| US8769104B2 (en) | System and method for loading web page using multiple paths in multiple interface circumstances | |
| CN102930400A (en) | Scheduling system for concurrent processing of multi-user login | |
| CN106790635A (en) | Cookie information management method and server | |
| US20140047014A1 (en) | Network access system | |
| CN115086216B (en) | Test method and system for multiple virtual terminals | |
| CN112689011B (en) | Service transmission method, device, equipment and medium based on NFS protocol | |
| CN113347046B (en) | Network access method and device | |
| CN116112508B (en) | Data processing method based on block chain network, related equipment and storage medium | |
| CN113973092B (en) | Link resource scheduling method, device, computing equipment and computer storage medium | |
| CN114221933A (en) | Multi-center multi-activity addressing method, device and system for mobile banking |
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 | ||
| TA01 | Transfer of patent application right |
Effective date of registration: 20180503 Address after: 266061 Songling Road, Laoshan District, Qingdao, Shandong Province, No. 399 Applicant after: Qingdao poly cloud Technology Co., Ltd. Address before: 266061 Songling Road, Laoshan District, Qingdao, Shandong Province, No. 399 Applicant before: Poly Polytron Technologies Inc |
|
| TA01 | Transfer of patent application right | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180320 |
|
| RJ01 | Rejection of invention patent application after publication |