Summary of the invention
In view of the above problems, the present invention has been proposed in order to a kind of a kind of data transmission method and server that overcomes the problems referred to above or address the above problem at least in part is provided.
According to one aspect of the present invention, a kind of data transmission method is provided, wherein, the method comprises: receive the data transfer request of client, according to the network attribute information corresponding to IP address of this client of IP address acquisition of this client; Then according to the network attribute information of obtaining, from a plurality of data, services machine rooms that are deployed in each position, select for this client the most fast data server room of transfer of data; The reference address of selected data, services machine room is returned to this client, so that this client transfers data to the data server in this data, services machine room.
Alternatively, the network attribute information corresponding to IP address of this client comprises: regional information and operator's informaiton.These a plurality of data, services machine rooms that are deployed in each position belong to different operators and are distributed in different regions.
Alternatively, network attribute information corresponding to IP address according to this client of IP address acquisition of this client comprises: search the IP address field under the IP address of this client from the IP information bank, and obtain the regional information corresponding with this IP address field and operator's informaiton.Wherein, every record in the IP information bank comprises IP address field and corresponding regional information and the operator's informaiton of this IP address field, and the IP address field comprises start ip address and the cut-off IP address of this IP address field.
Alternatively, according to the network attribute information of obtaining, selection transfer of data for this client comprises in a data server room the most fast from a plurality of data, services machine rooms that are deployed in each position: the operator's informaiton corresponding according to the IP address of this client finds out the data, services machine room that belongs to this operator; The regional information corresponding according to the IP address of this client is subordinated in the data, services machine room of this operator and selects on the region from the nearest data, services machine room of this client.
Alternatively, the regional information corresponding according to the IP address of this client, be subordinated to and select in the data, services machine room of this operator to comprise from the nearest data, services machine room of this client on the region: the regional information corresponding according to the IP address of this client, search the minimum corresponding region of weights of expression and the distance between this region from the region apart from weight table, and selection is to data, services machine room that should the region.Wherein the region comprises apart from every delegation of weight table: the region that this row is corresponding and represent region that this row is corresponding and other each region between the weights of distance.
According to another aspect of the present invention, a kind of data transfer server is provided, wherein, this server comprises requesting processing, IP analytic unit and election unit; Requesting processing, be suitable for receiving the data transfer request of client, send the query requests of the IP address that comprises this client to the IP analytic unit, the network attribute information corresponding to IP address of this client that reception IP analytic unit returns, send the query requests that comprises this network attribute information to the election unit, receive the reference address of the data, services machine room that returns the election unit, the reference address of this data, services machine room is returned to this client, so that this client transfers data to the data server in this data, services machine room; The IP analytic unit is suitable for obtaining the network attribute information corresponding to IP address of this client; The election unit is suitable for according to this network attribute information, selects for this client the most fast data server room of transfer of data from a plurality of data, services machine rooms that are deployed in each position.
Alternatively, requesting processing is suitable for receiving corresponding regional information and the operator's informaiton in IP address of this client that the IP analytic unit returns, and sends the query requests that comprises this regional information and operator's informaiton to the election unit.The IP analytic unit is suitable for obtaining corresponding regional information and the operator's informaiton in IP address of this client.The election unit is suitable for regional information and the operator's informaiton corresponding according to the IP address of this client, selects for this client the most fast data server room of transfer of data from a plurality of data, services machine rooms that are deployed in each position.Wherein, these a plurality of data, services machine rooms that are deployed in each position belong to different operators and are distributed in different regions.
Alternatively, this server also comprises the first memory cell.This first memory cell is suitable for preserving the IP information bank; Wherein, every record in the IP information bank comprises IP address field and corresponding regional information and the operator's informaiton of this IP address field, and the IP address field comprises start ip address and the cut-off IP address of this IP address field.The IP analytic unit is suitable for searching in the IP information bank from the first memory cell the IP address field under the IP address of this client, and obtains the regional information corresponding with this IP address field and operator's informaiton.
Alternatively, the election unit is suitable for the operator's informaiton corresponding according to the IP address of this client, find out the data, services machine room that belongs to this operator, then the regional information corresponding according to the IP address of this client is subordinated in the data, services machine room of this operator and selects on the region from the nearest data, services machine room of this client.
Alternatively, this server also comprises the second memory cell.This second memory cell is suitable for preserving the region apart from weight table; Wherein the region comprises apart from every delegation of weight table: the region that this row is corresponding and represent region that this row is corresponding and other each region between the weights of distance.The election unit is suitable for the regional information corresponding according to the IP address of this client, the minimum corresponding region of weights of expression and the distance between this region is searched apart from weight table in region from the second memory cell, and selection is to data, services machine room that should the region.
According to data transmission scheme of the present invention, at first receive the data transfer request of client, network attribute information corresponding to IP address according to this client of IP address acquisition of this client, according to the network attribute information of obtaining, from a plurality of data, services machine rooms that are deployed in each position, select for this client the most fast data server room of transfer of data, the reference address of selected data, services machine room is returned to this client, so that this client transfers data to the data server in this data, services machine room, solved thus the multiple spot machine room the not high problem of efficiency of transmission that is caused on the server of the correspondence that each subscription client in the data transport service scheme distributed regularly is provided, having obtained as client provides data transmission bauds the fastest data, services machine room address, improve data transmission bauds and success rate, and then improved the beneficial effect that the user experiences.
Above-mentioned explanation only is the general introduction of technical solution of the present invention, for can clearer understanding technological means of the present invention, and can be implemented according to the content of specification, and for above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
Embodiment
Exemplary embodiment of the present disclosure is described below with reference to accompanying drawings in more detail.Although shown exemplary embodiment of the present disclosure in the accompanying drawing, yet should be appreciated that and to realize the disclosure and the embodiment that should do not set forth limits here with various forms.On the contrary, it is in order to understand the disclosure more thoroughly that these embodiment are provided, and can with the scope of the present disclosure complete convey to those skilled in the art.
The present invention passes through by the network attribute information of server side according to the IP adress analysis client of client, then according to the network attribute of client, from a plurality of data, services machine rooms that are deployed in each position, select for this client the most fast data server room of transfer of data, for this client provides data transport service.The present invention is by the process of the fastest data, services machine room is split as analytic process and selection course for client selecting, thereby more conveniently searches only data transfer server for client.
Can be finished and mutual, the analysis of client ip address of client and the election of data, services machine room by a server, shown in this embodiment as described below with reference to Figure 3.Also can by three independently server finish respectively and mutual, the analysis of client ip address of client and the election of data, services machine room, shown in this embodiment as described below with reference to Figure 4.
Fig. 3 show data transfer server according to an embodiment of the invention the composition structure and with the interactive relation schematic diagram of client.As shown in Figure 3, this data transfer server 300 comprises: requesting processing 301, IP analytic unit 302, election unit 303, the first memory cell 304 and the second memory cell 305.Also illustrated among Fig. 3 with requesting processing 301 and carried out mutual a plurality of clients 333.
Requesting processing 301 is suitable for receiving the data transfer request of certain client 333, send the query requests of the IP address that comprises this client 333 to IP analytic unit 302, and receive the network attribute information corresponding to IP address of this client 333 that this IP analytic unit 302 returns, then send out 303 to the election unit and send the query requests that comprises this network attribute information, and receive the reference address of the data, services machine room that returns election unit 303, reference address with this data, services machine room returns to this client 333 at last, so that this client 333 transfers data to the data server in this data, services machine room.
IP analytic unit 302 is suitable for obtaining the network attribute information corresponding to IP address of this client 333.
Election unit 303 is suitable for according to this network attribute information, selects for this client 333 the most fast data server room of transfer of data from a plurality of data, services machine rooms that are deployed in each position.
Like this, the exactly the fastest data, services machine room of data transmission bauds for these client's 333 ends that requesting processing 301 is returned to client 333, this client 333 can obtain the most fast data transport service.The data transport service here comprises: to data, services machine room uploading data and from data, services machine room downloading data.
In one embodiment of the invention, network attribute information can specifically comprise: regional information and operator's informaiton.Be the regional information at client 333 places and the operator's informaiton under the client.Operator's informaiton under the regional information at client 333 places and the client is all relevant with the IP address of client 333, can go out according to the IP adress analysis of client 333.
In this case, IP analytic unit 302 obtains corresponding regional information and the operator's informaiton in IP address of this client 333.Specifically, preserve the IP information bank in the first memory cell 304; Wherein, every record in this IP information bank comprises IP address field and corresponding regional information and the operator's informaiton of this IP address field, and the IP address field comprises start ip address and the cut-off IP address of this IP address field.For example, the form of a record in the IP information bank is: [IP, cut-off IP, corresponding operator's informaiton, accordingly domain information].Then search the IP address field under the IP address of this client 333 in the IP information bank of IP analytic unit 302 from the first memory cell 304, and obtain the regional information corresponding with this IP address field and operator's informaiton.
Requesting processing 301 is suitable for receiving corresponding regional information and the operator's informaiton in IP address of this client 333 that IP analytic unit 302 returns, and then sends the query requests that comprises this regional information and operator's informaiton to election unit 303.
Election unit 303 is suitable for regional information and the operator's informaiton corresponding according to the IP address of this client 333, selects for this client 333 the most fast data server room of transfer of data from a plurality of data, services machine rooms that are deployed in each position; Wherein, these a plurality of data, services machine rooms that are deployed in each position belong to different operators and are distributed in different regions.
Specifically, election unit 303 is suitable for the operator's informaiton corresponding according to the IP address of this client 333, find out the data, services machine room that belongs to described operator, then the regional information corresponding according to the IP address of described client 333 is subordinated to and selects in the data, services machine room of described operator on the region from the nearest data, services machine room of this client 333.Election unit 303 is selected according to the descriptor of each data, services machine room, and the descriptor of data, services machine room comprises: machine room number, the operator's informaiton of machine room, the regional information of machine room.
More particularly, preserve the region in the second memory cell 305 apart from weight table; Wherein this region comprises apart from every delegation of weight table: the region that this row is corresponding and represent region that this row is corresponding and other each region between the weights of distance.Then elect unit 303 regional information corresponding according to the IP address of this client 333, the minimum corresponding region of weights of expression and the distance between this region is searched apart from weight table in region from the second memory cell 305, and selection is to data, services machine room that should the region.
For instance, suppose that user network is telecommunications and is positioned at Jilin.The operator that is user network is telecommunications.The subordinate's of institute data, services machine room comprises: Beijing Telecom's machine room, Jinan UNICOM machine room, Tianjin telecommunications room and Shanghai Mobile's machine room.At first, according to operator's rule, elect the data, services machine room that belongs to an operator with user network together, specifically removed Jinan UNICOM machine room and Shanghai Mobile's machine room, other telecommunications room enter next step election as the candidate.Then, according to nearby principle, from candidate's machine room, select on the region machine room nearest from Jilin.For example, the region weight table among the embodiment among the present invention is as shown in table 1:
? |
Beijing |
Tianjin |
Jilin |
Beijing |
0 |
1 |
6 |
Tianjin |
1 |
0 |
5 |
Jilin |
6 |
5 |
0 |
Table 1
Referring to table 1, candidate's machine room is Beijing Telecom's machine room and Tianjin telecommunications room, Beijing and Jilin be 6 apart from weights, Tianjin and Jilin be 5 apart from weights, the less expression distance of weights is nearer, therefore selects the Tianjin telecommunications room that the machine room of data transport service is provided as this user.Can from the subordinate's of institute machine room, select like this and can greatly improve data transmission efficiency for the user provides the preferably machine room of service, improve user's satisfaction.
In other embodiments of the invention, can formulate according to the regional information of the transfer of data machine room of actual deployment and the actual range between each region and be similar to the region weight table shown in the table 1.Namely table 1 can not be as the restriction to the content of the region weight table in the embodiment of the invention.
By technical scheme of the present invention, greatly reduced the number of users that cross operator carries out transfer of data, improved the speed that the user carries out transfer of data.Find that by statistics if the upload file of user's cross operator, average speed is about 10k/s, and when uploading to machine room with operator, average speed can reach more than the 100k/s.
Fig. 4 show another embodiment of the present invention data transmission system composition and with the interactive relation schematic representation of client intention.As shown in Figure 4, data transmission system 400 comprises: client server 410, IP Analysis server 420 and voting server 430.Client server 410, IP Analysis server 420 and voting server 430 are servers independently separately.Also illustrated among Fig. 4 with client server 410 and carried out mutual a plurality of clients 444.
Client server 430 is suitable for receiving the data transfer request of certain client 444, send the query requests of the IP address that comprises this client 444 to IP Analysis server 420, this that receives that IP Analysis server 420 returns stated the network attribute information corresponding to IP address of client 444, then send the query requests that comprises this network attribute information to voting server 430, the reference address of the data, services machine room that reception voting server 430 returns, the reference address of this data, services machine room is returned to this client 444, so that this client 444 is with the data server in this data, services machine room of transfer of data.
IP Analysis server 420 is suitable for obtaining the network attribute information corresponding to IP address of this client 444.
Voting server 430 is suitable for according to this network attribute information, selects for this client 444 the most fast data server room of transfer of data from a plurality of data, services machine rooms that are deployed in each position.
In one embodiment of the invention, network attribute information can specifically comprise: regional information and operator's informaiton.Be the regional information at client place and the operator's informaiton under the client.Operator's informaiton under the regional information at client place and the client is all relevant with the IP address of client, can go out according to the IP adress analysis of client.
In this case, IP Analysis server 420 is suitable for obtaining corresponding regional information and the operator's informaiton in IP address of this client 444.Specifically, IP Analysis server 420 is suitable for searching the IP address field under the IP address of this client from the IP information bank, and obtains the regional information corresponding with this IP address field and operator's informaiton; Wherein, every record in the IP information bank comprises IP address field and corresponding regional information and the operator's informaiton of this IP address field, and the IP address field comprises start ip address and the cut-off IP address of this IP address field.For example, the form of a record in the IP information bank is: [IP, cut-off IP, corresponding operator's informaiton, accordingly domain information].
Client server 410 is suitable for receiving corresponding regional information and the operator's informaiton in IP address of this client 444 that IP Analysis server 420 returns, and sends the query requests that comprises this regional information and operator's informaiton to this voting server 430.
Voting server 430 is suitable for regional information and the operator's informaiton corresponding according to the IP address of this client 444, selects for this client 444 the most fast data server room of transfer of data from a plurality of data, services machine rooms that are deployed in each position; Wherein, these a plurality of data, services machine rooms that are deployed in each position belong to different operators and are distributed in different regions.
Specifically, voting server 430 is suitable for the operator's informaiton corresponding according to the IP address of this client 444, find out the data, services machine room that belongs to described operator, then the regional information corresponding according to the IP address of this client 444 is subordinated in the data, services machine room of described operator and selects on the region from the nearest data, services machine room of this client.Voting server 430 is selected according to the descriptor of each data, services machine room, and the descriptor of data, services machine room comprises: machine room number, the operator's informaiton of machine room, the regional information of machine room.
More particularly, the regional information that voting server 430 is corresponding according to the IP address of this client 444 is searched the minimum corresponding region of weights of expression and the distance between this region from the region apart from weight table, and selection is to data, services machine room that should the region; Wherein the region comprises apart from every delegation of weight table: the region that this row is corresponding and represent region that this row is corresponding and other each region between the weights of distance.It is as shown in table 1 that weight table a kind of illustrates, and no longer repeats here.
Fig. 5 shows the according to an embodiment of the invention flow chart of a data transmission procedure of data transmission system realization.
As shown in Figure 5, data transmission procedure starts from step S501, should client send data transfer request to client server in step, comprising the IP address of client.
In step S502, client server is inquired about the network attribute information corresponding to IP address of this client to the IP Analysis server subsequently.
In step S503, the IP Analysis server returns the network attribute information corresponding to IP address of this client to client server, is specially corresponding regional information and operator's informaiton.Then execution in step S504.
In step S504, client server comprises corresponding regional information and the operator's informaiton in IP address of this client to the optimum data, services machine room of voting server request election in this request.
In step S505, voting server returns the data, services machine room of the optimum that elects to client server.
In this step, the operator's informaiton that election is first-selected corresponding according to the IP address of client, find out the data, services machine room that belongs to this operator, then the regional information corresponding according to the IP address of this client is subordinated in the data, services machine room of this operator and selects on the region from the nearest data, services machine room of this client.
Then in step S506, client server returns the reference address of the data, services machine room that voting server returns to client.
Like this in step S507, the reference address that client is returned according to client server, server carries out transfer of data in the data server machine room corresponding with this reference address, specifically can be uploading data, also can be downloading data.
In the above-described embodiments, client server, IP Analysis server and voting server are independently three servers of difference.In other embodiments of the invention, client server and IP Analysis server can be same servers, and voting server is an independently server; Perhaps client server is an independently server, and IP Analysis server and voting server are same servers; Again or, client server and voting server can be same servers, the IP Analysis server is an independently server.
Fig. 6 shows the according to an embodiment of the invention flow chart of data transmission method.
As shown in Figure 6, data transmission method starts from step S610, in this step, receives the data transfer request of client.
Then in step S620, according to the network attribute information corresponding to IP address of this client of IP address acquisition of this client.
In one embodiment of the invention, the network attribute information corresponding to IP address of this client comprises: regional information and operator's informaiton.
Specifically can from the IP information bank, search the IP address field under the IP address of this client, and obtain the regional information corresponding with this IP address field and operator's informaiton; Wherein, every record in this IP information bank comprises IP address field and corresponding regional information and the operator's informaiton of this IP address field, and the IP address field comprises start ip address and the cut-off IP address of this IP address field.In one embodiment of the invention, the IP information bank is kept in the text.
In step S630 subsequently, according to the network attribute information of obtaining, from a plurality of data, services machine rooms that are deployed in each position, select for this client the most fast data server room of transfer of data.
These a plurality of data, services machine rooms that are deployed in each position belong to different operators and are distributed in different regions.
Specifically, first corresponding according to the IP address of this client operator's informaiton finds out the data, services machine room that belongs to this operator.Then the regional information corresponding according to the IP address of this client is subordinated in the data, services machine room of this operator and selects on the region from the nearest data, services machine room of described client; More particularly, the regional information corresponding according to the IP address of this client searched the minimum corresponding region of weights of expression and the distance between this region from the region apart from weight table, and selection is to data, services machine room that should the region; Wherein this is stated the region and comprises apart from every delegation of weight table: the region that this row is corresponding and represent region that this row is corresponding and other each region between the weights of distance.
At last in step S640, the reference address of selected data, services machine room is returned to this client, so that this client transfers data to the data server in this data, services machine room.
In sum, data transfer request according to this reception client of the present invention, network attribute information corresponding to IP address according to this client of IP address acquisition of this client, according to the network attribute information of obtaining, from a plurality of data, services machine rooms that are deployed in each position, select for this client the most fast data server room of transfer of data, the reference address of selected data, services machine room is returned to this client, so that this client transfers data to the data server in this data, services machine room, solved thus the multiple spot machine room the not high problem of efficiency of transmission that is caused on the server of the correspondence that each subscription client in the data transport service scheme distributed regularly is provided, having obtained as client provides data transmission bauds the fastest data, services machine room address, improve data transmission bauds and success rate, and then improved the beneficial effect that the user experiences.
Need to prove:
Intrinsic not relevant with any certain computer, virtual system or miscellaneous equipment with demonstration at this algorithm that provides.Various general-purpose systems also can be with using based on the teaching at this.According to top description, it is apparent constructing the desired structure of this type systematic.In addition, the present invention is not also for any certain programmed language.Should be understood that and to utilize various programming languages to realize content of the present invention described here, and the top description that language-specific is done is in order to disclose preferred forms of the present invention.
In the specification that provides herein, a large amount of details have been described.Yet, can understand, embodiments of the invention can be put into practice in the situation of these details not having.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand one or more in each inventive aspect, in the description to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes in the above.Yet the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires the more feature of feature clearly put down in writing than institute in each claim.Or rather, as following claims reflected, inventive aspect was to be less than all features of the disclosed single embodiment in front.Therefore, follow claims of embodiment and incorporate clearly thus this embodiment into, wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and can adaptively change and they are arranged in one or more equipment different from this embodiment the module in the equipment among the embodiment.Can be combined into a module or unit or assembly to the module among the embodiment or unit or assembly, and can be divided into a plurality of submodules or subelement or sub-component to them in addition.In such feature and/or process or unit at least some are mutually repelling, and can adopt any combination to disclosed all features in this specification (comprising claim, summary and the accompanying drawing followed) and so all processes or the unit of disclosed any method or equipment make up.Unless in addition clearly statement, disclosed each feature can be by providing identical, being equal to or the alternative features of similar purpose replaces in this specification (comprising claim, summary and the accompanying drawing followed).
In addition, those skilled in the art can understand, although embodiment more described herein comprise some feature rather than further feature included among other embodiment, the combination of the feature of different embodiment means and is within the scope of the present invention and forms different embodiment.For example, in the following claims, the one of any of embodiment required for protection can be used with compound mode arbitrarily.
All parts embodiment of the present invention can realize with hardware, perhaps realizes with the software module of moving at one or more processor, and perhaps the combination with them realizes.It will be understood by those of skill in the art that and to use in practice microprocessor or digital signal processor (DSP) to realize according to some or all some or repertoire of parts in the data transfer server of the embodiment of the invention.The present invention can also be embodied as be used to part or all equipment or the device program (for example, computer program and computer program) of carrying out method as described herein.Such realization program of the present invention can be stored on the computer-readable medium, perhaps can have the form of one or more signal.Such signal can be downloaded from internet website and obtain, and perhaps provides at carrier signal, perhaps provides with any other form.
It should be noted above-described embodiment the present invention will be described rather than limit the invention, and those skilled in the art can design alternative embodiment in the situation of the scope that does not break away from claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and is not listed in element or step in the claim.Being positioned at word " " before the element or " one " does not get rid of and has a plurality of such elements.The present invention can realize by means of the hardware that includes some different elements and by means of the computer of suitably programming.In having enumerated the unit claim of some devices, several in these devices can be to come imbody by same hardware branch.The use of word first, second and C grade does not represent any order.Can be title with these word explanations.