Summary of the invention
In view of the above problems, the present invention is proposed to provide a kind of overcoming the problems referred to above or a kind of data transmission method solved the problem at least in part and system.
According to one aspect of the present invention, provide a kind of data transmission method, wherein, the method comprises: the data transfer request receiving client, the network attribute information corresponding according to the IP address of this client of IP address acquisition of this client; Then according to obtained network attribute information, from the multiple data, services machine rooms being deployed in each position, a transfer of data data server room the most fast for this client is selected; The reference address of selected data, services machine room is returned to this client, makes this client transfer data to data server in this data, services machine room; Wherein, the network attribute information that the IP address of this client is corresponding comprises: regional information and operator's informaiton, and these multiple data, services machine rooms being deployed in each position belong to different operators and are distributed in different regions.
Alternatively, the network attribute information corresponding according to the IP address of this client of IP address acquisition of this client comprises: the IP address field belonging to IP address searching this client from IP information bank, and obtains the regional information corresponding with this IP address field and operator's informaiton.Wherein, the every bar record in IP information bank comprises IP address field and regional information corresponding to this IP address field and operator's informaiton, and IP address field comprises start ip address and the cut-off IP address of this IP address field.
Alternatively, according to obtained network attribute information, from the multiple data, services machine rooms being deployed in each position, transfer of data for this client is selected to comprise in a data server room the most fast: the operator's informaiton corresponding according to the IP address of this client, finds out the data, services machine room belonging 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 geographically nearest from this client data, services machine room.
Alternatively, the regional information corresponding according to the IP address of this client, be subordinated in the data, services machine room of this operator and select geographically to comprise from the data, services machine room that this client is nearest: the regional information corresponding according to the IP address of this client, search the region corresponding to the minimum weights of distance represented between this region from region distance weight table, and select should the data, services machine room of region.Wherein every a line of region distance weight table comprises: the region that this row is corresponding and represent the weights of distance between the region that this row is corresponding and other each region.
According to another aspect of the present invention, provide a kind of data transmission system, wherein, this system comprises client server, IP Analysis server and voting server; Client server, be suitable for the data transfer request receiving client, the inquiry request comprising the IP address of this client is sent to IP Analysis server, receive the network attribute information that the IP address of this client that IP Analysis server returns is corresponding, the inquiry request comprising this network attribute information is sent to voting server, receive the reference address of the data, services machine room that voting server returns, the reference address of this data, services machine room is returned to this client, makes this client by the data server in this data, services machine room of transfer of data; IP Analysis server, is suitable for obtaining the network attribute information that the IP address of this client is corresponding; Voting server, is suitable for according to this network attribute information, selects a transfer of data data server room the most fast for this client from the multiple data, services machine rooms being deployed in each position.
Alternatively, client server is suitable for receiving regional information corresponding to the IP address of this client that IP Analysis server returns and operator's informaiton, and sends the inquiry request comprising this regional information and operator's informaiton to voting server.IP Analysis server is suitable for obtaining regional information corresponding to the IP address of this client and operator's informaiton.Voting server is suitable for according to regional information corresponding to the IP address of this client and operator's informaiton, selects a transfer of data data server room the most fast for this client from the multiple data, services machine rooms being deployed in each position.Wherein, these multiple data, services machine rooms being deployed in each position belong to different operators and are distributed in different regions.
Alternatively, IP Analysis server is suitable for the IP address field belonging to IP address searching this client from IP information bank, and obtains the regional information corresponding with this IP address field and operator's informaiton; Wherein, the every bar record in IP information bank comprises IP address field and regional information corresponding to this IP address field and operator's informaiton, and IP address field comprises start ip address and the cut-off IP address of this IP address field.
Alternatively, voting server is suitable for the operator's informaiton corresponding according to the IP address of this client, find out the data, services machine room belonging to this operator, then corresponding according to the IP address of this client regional information, is subordinated in the data, services machine room of this operator and selects geographically nearest from this client data, services machine room.
Alternatively, voting server is suitable for the regional information corresponding according to the IP address of this client, searches the region corresponding to the minimum weights of distance represented between this region from region distance weight table, and selects should the data, services machine room of region; Wherein every a line of region distance weight table comprises: the region that this row is corresponding and represent the weights of distance between the region that this row is corresponding and other each region.
According to data transmission scheme of the present invention, first the data transfer request of client is received, the network attribute information corresponding according to the IP address of this client of IP address acquisition of this client, according to obtained network attribute information, a transfer of data data server room the most fast for this client is selected from the multiple data, services machine rooms being deployed in each position, the reference address of selected data, services machine room is returned to this client, this client is made to transfer data to data server in this data, services machine room, solve thus multiple spot machine room to provide on the server of the correspondence of each subscription client in data transport service scheme by distributing regularly the not high problem of the efficiency of transmission that causes, achieve as the fastest data, services machine room address of clients providing data transmission speed, improve data transmission bauds and success rate, and then improve the beneficial effect of Consumer's Experience.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of specification, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed 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 the multiple data, services machine rooms being deployed in each position, select a transfer of data data server room the most fast for this client, be this clients providing data transmission service.The present invention by selecting the process of data, services machine room the fastest for client to be split as analytic process and selection course, thus more conveniently searches most suitable data transfer server for client.
Can be come 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 complete 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 shows the composition structure of data transfer server according to an embodiment of the invention and the interactive relation schematic diagram with client.As shown in Figure 3, this data transfer server 300 comprises: requesting processing 301, IP analytic unit 302, election unit 303, first memory cell 304 and the second memory cell 305.Also illustrate in Fig. 3 and carry out mutual multiple clients 333 with requesting processing 301.
Requesting processing 301 is suitable for the data transfer request receiving certain client 333, the inquiry request comprising the IP address of this client 333 is sent to IP analytic unit 302, and the network attribute information that the IP address receiving this client 333 that this IP analytic unit 302 returns is corresponding, then send out 303 to election unit and send the inquiry request comprising this network attribute information, and receive the reference address of the data, services machine room that election unit 303 returns, finally the reference address of this data, services machine room is returned to this client 333, this client 333 is made to transfer data to data server in this data, services machine room.
IP analytic unit 302 is suitable for obtaining network attribute information corresponding to the IP address of this client 333.
Election unit 303 is suitable for according to this network attribute information, selects a transfer of data data server room the most fast for this client 333 from the multiple data, services machine rooms being deployed in each position.
Like this, the data, services machine room that data transmission bauds is the fastest for this client 333 end exactly that requesting processing 301 returns to client 333, this client 333 can obtain data transport service the most fast.Here data transport service 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.The i.e. regional information at client 333 place and the operator's informaiton belonging to client.The regional information at client 333 place and the operator's informaiton belonging to client are 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 regional information corresponding to the IP address of this client 333 and operator's informaiton.Specifically, IP information bank is preserved in the first memory cell 304; Wherein, the every bar record in this IP information bank comprises IP address field and regional information corresponding to this IP address field and operator's informaiton, and IP address field comprises start ip address and the cut-off IP address of this IP address field.Such as, the form of a record in IP information bank is: [IP, cut-off IP, corresponding operator's informaiton, accordingly domain information].Then IP analytic unit 302 searches the IP address field belonging to IP address of this client 333 from the IP information bank the first memory cell 304, and obtains the regional information corresponding with this IP address field and operator's informaiton.
Requesting processing 301 is suitable for receiving regional information corresponding to the IP address of this client 333 that IP analytic unit 302 returns and operator's informaiton, then sends to election unit 303 inquiry request comprising this regional information and operator's informaiton.
Election unit 303 is suitable for according to regional information corresponding to the IP address of this client 333 and operator's informaiton, selects a transfer of data data server room the most fast for this client 333 from the multiple data, services machine rooms being deployed in each position; Wherein, these multiple data, services machine rooms being 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 belonging to described operator, then corresponding according to the IP address of described client 333 regional information, is subordinated in the data, services machine room of described operator and selects geographically nearest from this client 333 data, services machine room.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, region distance weight table is preserved in the second memory cell 305; Wherein every a line of this region distance weight table comprises: the region that this row is corresponding and represent the weights of distance between the region that this row is corresponding and other each region.Then elect the regional information that unit 303 is corresponding according to the IP address of this client 333, search the region corresponding to the minimum weights of distance that represent between this region from the region distance weight table the second memory cell 305, and select should the data, services machine room of region.
For example, suppose that user network is telecommunications and is positioned at Jilin.Namely the operator of user network is telecommunications.The data, services machine room of institute subordinate comprises: Beijing Telecom's machine room, Jinan UNICOM machine room, Tianjin telecommunications room and Shanghai Mobile's machine room.First, according to same operator rule, elect the data, services machine room belonging to an operator with user network together, specifically eliminate Jinan UNICOM machine room and Shanghai Mobile's machine room, other telecommunications room alternatively enter next step election.Then, according to nearby principle, from candidate's machine room, select geographically nearest from Jilin machine room.Such as, the region weight table in an embodiment in 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
See table 1, candidate's machine room is Beijing Telecom's machine room and Tianjin telecommunications room, and the distance weights in Beijing and Jilin are 6, and the distance weights in Tianjin and Jilin are 5, weights less expression distance is nearer, therefore selects Tianjin telecommunications room to provide the machine room of data transport service as this user.Can select from the machine room of institute subordinate like this and can provide the machine room of preferably serving for user, substantially increase data transmission efficiency, improve the satisfaction of user.
In other embodiments of the invention, the region weight table shown in table 1 can be similar to according to the actual range formulation between the regional information of the transfer of data machine room of actual deployment and each region.Namely table 1 can not as the restriction of the content to the region weight table in the embodiment of the present invention.
By technical scheme of the present invention, greatly reduce the number of users that cross operator carries out transfer of data, improve the speed that user carries out transfer of data.Found by statistics, if the upload file of user's cross operator, average speed is at about 10k/s, and when uploading to the machine room of same operator, average speed can reach more than 100k/s.
Fig. 4 shows the composition of the data transmission system of another embodiment of the present invention and is intended to the interactive relation schematic representation of client.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 respective independently servers.Also illustrate in Fig. 4 and carry out mutual multiple clients 444 with client server 410.
Client server 430 is suitable for the data transfer request receiving certain client 444, the inquiry request comprising the IP address of this client 444 is sent to IP Analysis server 420, this receiving that IP Analysis server 420 returns states network attribute information corresponding to the IP address of client 444, then the inquiry request comprising this network attribute information is sent to voting server 430, receive the reference address of the data, services machine room that voting server 430 returns, the reference address of this data, services machine room is returned to this client 444, make this client 444 by the data server in this data, services machine room of transfer of data.
IP Analysis server 420 is suitable for obtaining network attribute information corresponding to the IP address of this client 444.
Voting server 430 is suitable for according to this network attribute information, selects a transfer of data data server room the most fast for this client 444 from the multiple data, services machine rooms being deployed in each position.
In one embodiment of the invention, network attribute information can specifically comprise: regional information and operator's informaiton.The i.e. regional information at client place and the operator's informaiton belonging to client.The regional information at client place and the operator's informaiton belonging to client are 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 regional information corresponding to the IP address of this client 444 and operator's informaiton.Specifically, IP Analysis server 420 is suitable for the IP address field belonging to IP address searching this client from IP information bank, and obtains the regional information corresponding with this IP address field and operator's informaiton; Wherein, the every bar record in IP information bank comprises IP address field and regional information corresponding to this IP address field and operator's informaiton, and IP address field comprises start ip address and the cut-off IP address of this IP address field.Such as, the form of a record in IP information bank is: [IP, cut-off IP, corresponding operator's informaiton, accordingly domain information].
Client server 410 is suitable for receiving regional information corresponding to the IP address of this client 444 that IP Analysis server 420 returns and operator's informaiton, and sends the inquiry request comprising this regional information and operator's informaiton to this voting server 430.
Voting server 430 is suitable for according to regional information corresponding to the IP address of this client 444 and operator's informaiton, selects a transfer of data data server room the most fast for this client 444 from the multiple data, services machine rooms being deployed in each position; Wherein, these multiple data, services machine rooms being 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 belonging to described operator, then corresponding according to the IP address of this client 444 regional information, is subordinated in the data, services machine room of described operator and selects geographically nearest from this client data, services machine room.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, searches the region corresponding to the minimum weights of distance represented between this region from region distance weight table, and selects should the data, services machine room of region; Wherein every a line of region distance weight table comprises: the region that this row is corresponding and represent the weights of distance between the region that this row is corresponding and other each region.The one of weight table illustrates as shown in table 1, no longer repeats here.
Fig. 5 shows the flow chart that data transmission system according to an embodiment of the invention realizes a data transmission procedure.
As shown in Figure 5, data transmission procedure starts from step S501, client should send data transfer request to client server, comprising the IP address of client in step.
Subsequently in step S502, client server inquires about network attribute information corresponding to the IP address of this client to IP Analysis server.
In step S503, IP Analysis server returns network attribute information corresponding to the IP address of this client to client server, is specially corresponding regional information and operator's informaiton.Then step S504 is performed.
In step S504, client server is to the optimum data, services machine room of voting server request election, and this request comprises regional information corresponding to the IP address of this client and operator's informaiton.
In step S505, voting server returns the data, services machine room of elected optimum 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 belonging to this operator, then corresponding according to the IP address of this client regional information, is subordinated in the data, services machine room of this operator and selects geographically nearest from this client data, services machine room.
Then, in step S506, client server returns the reference address of the data, services machine room that voting server returns to client.
So in step s 507, the reference address that client returns according to client server, in the data server machine room corresponding with this reference address, server carries out transfer of data, can be specifically uploading data, also can be downloading data.
In the above-described embodiments, client server, IP Analysis server and voting server are three servers independently.In other embodiments of the invention, client server and IP Analysis server can be same servers, and voting server is an independently server; Or 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, and IP Analysis server is an independently server.
Fig. 6 shows the flow chart of data transmission method according to an embodiment of the invention.
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, the network attribute information corresponding according to the IP address of this client of IP address acquisition of this client.
In one embodiment of the invention, the network attribute information that the IP address of this client is corresponding comprises: regional information and operator's informaiton.
Specifically can search the IP address field belonging to IP address of this client from IP information bank, and obtain the regional information corresponding with this IP address field and operator's informaiton; Wherein, the every bar record in this IP information bank comprises IP address field and regional information corresponding to this IP address field and operator's informaiton, and IP address field comprises start ip address and the cut-off IP address of this IP address field.In one embodiment of the invention, IP information bank is kept in text.
In step S630 subsequently, according to obtained network attribute information, from the multiple data, services machine rooms being deployed in each position, select a transfer of data data server room the most fast for this client.
These multiple data, services machine rooms being 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 belonging to this operator.Then corresponding according to the IP address of this client regional information, is subordinated in the data, services machine room of this operator and selects geographically nearest from described client data, services machine room; More particularly, the regional information corresponding according to the IP address of this client, searches the region corresponding to the minimum weights of distance represented between this region from region distance weight table, and selects should the data, services machine room of region; Wherein this every a line stating region distance weight table comprises: the region that this row is corresponding and represent the weights of distance between the region that this row is corresponding and other each region.
Last in step S640, the reference address of selected data, services machine room is returned to this client, makes this client transfer data to data server in this data, services machine room.
In sum, according to the data transfer request of this reception client of the present invention, the network attribute information corresponding according to the IP address of this client of IP address acquisition of this client, according to obtained network attribute information, a transfer of data data server room the most fast for this client is selected from the multiple data, services machine rooms being deployed in each position, the reference address of selected data, services machine room is returned to this client, this client is made to transfer data to data server in this data, services machine room, solve thus multiple spot machine room to provide on the server of the correspondence of each subscription client in data transport service scheme by distributing regularly the not high problem of the efficiency of transmission that causes, achieve as the fastest data, services machine room address of clients providing data transmission speed, improve data transmission bauds and success rate, and then improve the beneficial effect of Consumer's Experience.
It should be noted that:
Intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with display at this algorithm provided.Various general-purpose system also can with use based on together with this teaching.According to description above, the structure constructed required by this type systematic is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In specification provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.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 in each inventive aspect one or more, in the description above 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.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary compound mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the some or all parts in the data transmission system of the embodiment of the present invention.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of 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 does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computer of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.