The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome the problems referred to above or at least in part solve on
State a kind of data transmission method and server of problem.
According to one aspect of the present invention, there is provided a kind of data transmission method, wherein, the method includes:Receive client
The data transfer request at end, according to the corresponding network attribute information of IP address that the IP address of the client obtains the client;
Then according to acquired network attribute information, select for the visitor from the multiple data, services machine rooms for being deployed in each position
The most quick data server room of data transfer for the end of family;The reference address of selected data, services machine room is returned
Give the client so that the client transfers data to the data server in the data, services machine room.
Alternatively, the corresponding network attribute information of the IP address of the client includes:Regional information and operator's informaiton.Should
The multiple data, services machine rooms for being deployed in each position belong to different operators and are distributed in different regions.
Alternatively, the corresponding network attribute information bag of IP address for the client being obtained according to the IP address of the client
Include:The IP address section belonging to the IP address of the client is searched from IP information banks, and is obtained correspondingly with the IP address section
Domain information and operator's informaiton.Wherein, the record per bar in IP information banks includes that IP address section and the IP address section are corresponding
Regional information and operator's informaiton, IP address section include the start ip address of the IP address section and cut-off IP address.
Alternatively, according to acquired network attribute information, from being deployed in multiple data, services machine rooms of each position
The most quick data server room of data transfer for the client is selected to include:According to the IP address of the client
Corresponding operator's informaiton, finds out the data, services machine room for belonging to the operator;It is corresponding according to the IP address of the client
Regional information, selects in being subordinated to the data, services machine room of the operator geographically from the data, services machine that the client is nearest
Room.
Alternatively, the corresponding regional information of IP address according to the client, is subordinated to the data, services machine of the operator
Select geographically to include from the nearest data, services machine room of the client in room:According to the corresponding region of IP address of the client
Information, from region apart from the region corresponding to the minimum weights of the distance between weight table lookup expression and the region, and selects
To should region data, services machine room.Wherein region includes apart from every a line of weight table:The corresponding region of the row and table
Show the weights of distance between the corresponding region of the row and other each regions.
According to another aspect of the present invention, there is provided a kind of data transfer server, wherein, the server is included at request
Reason unit, IP analytic units and election unit;Requesting processing, is suitable to receive the data transfer request of client, to IP point
Analysis unit sends the inquiry request of the IP address for including the client, receives the IP address of the client that IP analytic units are returned
Corresponding network attribute information, sends the inquiry request for including the network attribute information to election unit, receives election unit and returns
The reference address of the data, services machine room is returned to the client so that the visitor by the reference address of the data, services machine room for returning
Family end transfers data to the data server in the data, services machine room;IP analytic units, are suitable to obtain the IP of the client
The corresponding network attribute information in address;Election unit, is suitable to according to the network attribute information, from being deployed in the multiple of each position
The most quick data server room of the data transfer for the client is selected in data, services machine room.
Alternatively, requesting processing is suitable to the corresponding region of IP address for receiving the client that IP analytic units are returned
Information and operator's informaiton, and the inquiry request for including the regional information and operator's informaiton is sent to election unit.IP point
Analysis unit is suitable to the corresponding regional information of IP address and operator's informaiton for obtaining the client.Election unit is suitable to according to the visitor
The corresponding regional information of IP address at family end and operator's informaiton, select from the multiple data, services machine rooms for be deployed in each position
Select the most quick data server room of the data transfer for the client.Wherein, this is deployed in many of each position
Individual data server room belongs to different operators and is distributed in different regions.
Alternatively, the server also includes the first memory element.First memory element is suitable to preserve IP information banks;Its
In, the record per bar in IP information banks includes IP address section and the corresponding regional information of the IP address section and operator's informaiton,
IP address section includes the start ip address of the IP address section and cut-off IP address.IP analytic units are suitable to from the first memory element
IP information banks in search IP address section belonging to the IP address of the client, and obtain region corresponding with the IP address section and believe
Breath and operator's informaiton.
Alternatively, elect unit to be suitable to the corresponding operator's informaiton of IP address according to the client, find out and belong to this
The data, services machine room of operator, then the corresponding regional information of IP address according to the client, is subordinated to the operator
Select in data, services machine room geographically from the data, services machine room that the client is nearest.
Alternatively, the server also includes the second memory element.Second memory element is suitable to preserve region apart from weights
Table;Wherein region includes apart from every a line of weight table:The corresponding region of the row and represent the corresponding region of the row and other
The weights of distance between each region.Election unit is suitable to the corresponding regional information of IP address according to the client, deposits from second
The region corresponding to the minimum weights of the distance between expression and the region is searched in region in storage unit apart from weight table, and selects
Select to should region data, services machine room.
Data transmission scheme of the invention, receives the data transfer request of client, first according to the client
IP address obtains the corresponding network attribute information of IP address of the client, according to acquired network attribute information, from deployment
The most quick data clothes of the data transfer for the client are selected in multiple data, services machine rooms of each position
The reference address of selected data, services machine room is returned to the client by business machine room so that the client is by data transfer
To the data server in the data, services machine room, thus solve multiple spot machine room and each use in data transport service scheme is provided
On the corresponding server regularly distributed by family client caused by efficiency of transmission not high problem, achieve as client
There is provided data transmission bauds most fast data, services machine room address, improve data transmission bauds and success rate, and then improve
The beneficial effect of Consumer's Experience.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of description, and in order to allow the above and other objects of the present invention, feature and advantage can
Become apparent, below especially exemplified by the specific embodiment of the present invention.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in accompanying drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure and should not be by embodiments set forth here
Limited.On the contrary, there is provided these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure
Complete conveys to those skilled in the art.
Network attribute information by being analyzed client by server side according to the IP address of client of the invention, Ran Hougen
According to the network attribute of client, the number for the client is selected from the multiple data, services machine rooms for being deployed in each position
According to a data server room of fastest transmission speed, it is the clients providing data transmission service.The present invention is by right selecting
The process of most fast data, services machine room for client is split as analysis process and selection course, so as to be more convenient as client
Search most suitable data transfer server in end.
Can be completed by a server and the interacting of client, the analysis of client ip address and data, services machine
The election in room, shown in this embodiment as described below with reference to Figure 3.Can also be distinguished by three independent servers
Into with the interacting of client, the analysis of client ip address and the election of data, services machine room, this is such as below with reference to Fig. 4
Shown in described embodiment.
Fig. 3 show the composition structure of data transfer server according to an embodiment of the invention and with client
Interactive relation schematic diagram.As shown in figure 3, the data transfer server 300 includes:Requesting processing 301, IP analytic units
302nd, unit 303, the first memory element 304 and the second memory element 305 are elected.Also illustrate in Fig. 3 and process single with request
The multiple client 333 that unit 301 interacts.
Requesting processing 301 is suitable to the data transfer request for receiving certain client 333, to IP analytic units 302
Send the inquiry request of the IP address including the client 333, and receive the client 333 that the IP analytic units 302 are returned
The corresponding network attribute information of IP address, then send the inquiry request including the network attribute information to election unit 303, and
The reference address of the data, services machine room that election unit 303 is returned is received, finally the reference address of the data, services machine room is returned
Back to the client 333 so that the client 333 transfers data to the data server in the data, services machine room.
IP analytic units 302 are suitable to the corresponding network attribute information of IP address for obtaining the client 333.
Election unit 303 is suitable to according to the network attribute information, from the multiple data, services machine rooms for being deployed in each position
Middle selection most quick data server room of data transfer for the client 333.
So, what requesting processing 301 was returned to client 333 is exactly the data transfer for 333 end of client
Fastest data, services machine room, the client 333 can obtain most quick data transport service.Here data transfer
Service includes:Data are uploaded and from data, services machine room downloading data to data, services machine room.
In one embodiment of the invention, network attribute information can be specifically included:Regional information and operator's informaiton.
Operator's informaiton i.e. belonging to the regional information and client at the place of client 333.Regional information and visitor that client 333 is located
Operator's informaiton belonging to the end of family is all relevant with the IP address of client 333, can be analyzed according to the IP address of client 333
Go out.
In this case, IP analytic units 302 obtain the corresponding regional information of IP address and the operation of the client 333
Business's information.Specifically, IP information banks are preserved in the first memory element 304;Wherein, recording per bar in the IP information banks includes
IP address section and the corresponding regional information of the IP address section and operator's informaiton, IP address section include the starting of the IP address section
IP address and cut-off IP address.For example, the form of a record in IP information banks is:【IP, ends IP, and correspondence is runed
Business's information, correspondence regional information】.Then the client is searched in IP information banks of the IP analytic units 302 from the first memory element 304
IP address section belonging to the IP address at end 333, and obtain regional information corresponding with the IP address section and operator's informaiton.
Requesting processing 301 is suitable to the IP address of the client 333 for receiving 302 return of IP analytic units correspondingly
Domain information and operator's informaiton, then send the inquiry request for including the regional information and operator's informaiton to election unit 303.
Election unit 303 is suitable to the corresponding regional information of IP address and operator's informaiton according to the client 333, from portion
Administration selects the most quick number of data transfer for the client 333 in multiple data, services machine rooms of each position
According to service machine room;Wherein, these multiple data, services machine rooms for being deployed in each position belong to different operators and are distributed in
Different regions.
Specifically, elect unit 303 to be suitable to the corresponding operator's informaiton of IP address according to the client 333, search
Go out to belong to the data, services machine room of the operator, then the corresponding regional information of IP address according to the client 333, from
Select in the data, services machine room for belonging to the operator geographically from the data, services machine room that the client 333 is nearest.Election
Unit 303 is selected according to the description information of each data, services machine room, and the description information of data, services machine room includes:Machine room
Number, the operator's informaiton of machine room, the regional information of machine room.
More particularly, region is preserved in the second memory element 305 apart from weight table;Wherein the region is apart from weight table
Include per a line:The corresponding region of the row and represent the weights of distance between the corresponding region of the row and other each regions.Then
Election unit 303 according to the corresponding regional information of IP address of the client 333, the region from the second memory element 305 away from
Search the region corresponding to the weights for representing minimum with the distance between the region from weight table, and select to should region number
According to service machine room.
As an example it is assumed that user network is telecommunications and is located at Jilin.That is the operator of user network is telecommunications.Institute subordinate
Data, services machine room include:Beijing Telecom's machine room, Jinan UNICOM machine room, Tianjin telecommunications room and Shanghai Mobile's machine room.First,
According to same operator rule, the data, services machine room for belonging to an operator with user network together is elected, Jinan is specifically eliminated
UNICOM's machine room and Shanghai Mobile's machine room, other telecommunications room enter the election of next step as candidate.Then, according to former nearby
Then, select geographically from the machine room that Jilin is nearest from candidate's machine room.For example, the region power in the one embodiment in the present invention
Value table 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, and Beijing is 6 apart from weights with Jilin,
Tianjin and Jilin are 5 apart from weights, and weights are less to represent that distance is nearer, therefore selects Tianjin telecommunications room to carry as the user
For the machine room of data transport service.So can select from the machine room of institute subordinate and can provide the user the machine for preferably servicing
Room, substantially increases data transmission efficiency, improves the satisfaction of user.
In other embodiments of the invention, can be according to the regional information of the data transfer machine room of actual deployment and each
Actual range between region is formulated similar to the region weight table shown in table 1.I.e. table 1 can not be used as to the embodiment of the present invention
In region weight table content restriction.
By technical scheme, the number of users that cross operator carries out data transmission is greatly reduced, is improve
The speed that user carries out data transmission.Found by counting, if transmitting file on user's cross operator, average speed is in 10k/s
Left and right, 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 the interactive relation with client
Illustrate schematic diagram.As shown in figure 4, data transmission system 400 includes:Client server 410, IP Analysis servers 420 and election
Server 430.Client server 410, IP Analysis servers 420 and voting server 430 are each independent servers.Fig. 4
In also illustrate the multiple client 444 interacted with client server 410.
Client server 430 is suitable to the data transfer request for receiving certain client 444, to IP Analysis servers 420
Send the inquiry request of the IP address including the client 444, this for receiving that IP Analysis servers 420 return states client 444
The corresponding network attribute information of IP address, then sends the inquiry request for including the network attribute information to voting server 430,
The reference address of the data, services machine room that voting server 430 is returned is received, the reference address of the data, services machine room is returned
Give the client 444 so that the client 444 is by the data server in the data transfer data, services machine room.
IP Analysis servers 420 are suitable to the corresponding network attribute information of IP address for obtaining the client 444.
Voting server 430 is suitable to according to the network attribute information, from the multiple data, services machines for being deployed in each position
The most quick data server room of the data transfer for the client 444 is selected in room.
In one embodiment of the invention, network attribute information can be specifically included:Regional information and operator's informaiton.
Operator's informaiton i.e. belonging to the regional information and client at client place.Regional information and client institute that client is located
The operator's informaiton of category is all relevant with the IP address of client, can be analyzed according to the IP address of client.
In this case, IP Analysis servers 420 are suitable to the corresponding regional information of IP address for obtaining the client 444
And operator's informaiton.Specifically, IP Analysis servers 420 are suitable to from IP information banks to search belonging to the IP address of the client
IP address section, and obtain corresponding with IP address section regional information and operator's informaiton;Wherein, in IP information banks per bar
Record includes IP address section and the corresponding regional information of the IP address section and operator's informaiton, and IP address section includes the IP address
The start ip address and cut-off IP address of section.For example, the form of a record in IP information banks is:【IP, ends IP,
Correspondence operator's informaiton, correspondence regional information】.
Client server 410 is suitable to the IP address of the client 444 for receiving 420 return of IP Analysis servers correspondingly
Domain information and operator's informaiton, and the inquiry for including the regional information and operator's informaiton is sent to the voting server 430
Request.
Voting server 430 is suitable to the corresponding regional information of IP address and operator's informaiton according to the client 444, from
Select the data transfer for the client 444 most quick one in being deployed in multiple data, services machine rooms of each position
Data, services machine room;Wherein, these multiple data, services machine rooms for being deployed in each position belong to different operators and are distributed
In different regions.
Specifically, voting server 430 is suitable to the corresponding operator's informaiton of IP address according to the client 444, looks into
The data, services machine room for belonging to the operator is found out, then the corresponding regional information of IP address according to the client 444, from
Select in the data, services machine room for belonging to the operator geographically from the data, services machine room that the client is nearest.Election service
Device 430 is selected according to the description information of each data, services machine room, and the description information of data, services machine room includes:Machine room number,
The operator's informaiton of machine room, the regional information of machine room.
More particularly, IP address corresponding regional information of the voting server 430 according to the client 444, from region
Search the region corresponding to the weights for representing minimum with the distance between the region apart from weight table, and select to should region
Data, services machine room;Wherein region includes apart from every a line of weight table:The corresponding region of the row and represent that the row is corresponding
The weights of distance between region and other each regions.The a kind of of weight table illustrates as shown in table 1, no longer repeats here.
Fig. 5 shows that data transmission system according to an embodiment of the invention realizes the flow process of a data transmission procedure
Figure.
As shown in figure 5, data transmission procedure starts from step S501, client number should be sent to client server in step
According to transmission request, including the IP address of client.
Subsequently in step S502, client server is to the corresponding net of IP address that IP Analysis servers inquire about the client
Network attribute information.
In step S503, IP Analysis servers are to the corresponding network category of IP address that client server returns the client
Property information, specially corresponding regional information and operator's informaiton.Then execution step S504.
In step S504, client server asks the optimum data, services machine room of election, the request to voting server
Include the corresponding regional information of IP address and operator's informaiton of the client.
In step S505, voting server returns the data, services machine room of elected optimum to client server.
In this step, the first-selected corresponding operator's informaiton of IP address according to client of election finds out and belongs to the operation
The data, services machine room of business, then the corresponding regional information of IP address according to the client, is subordinated to the data of the operator
Select geographically from the data, services machine room that the client is nearest in service machine room.
Then, in step S506, client server returns the data, services machine room returned by voting server to client
Reference address.
So in step s 507, the reference address that client is returned according to client server, it is corresponding with the reference address
Data server machine room in server carry out data transmission, can be specifically to upload data, or downloading data.
In the above-described embodiments, client server, IP Analysis servers and voting server are three clothes independently
Business device.In other embodiments of the invention, client server and IP Analysis servers can be same servers, election clothes
Business device is an independent server;Or client server is an independent server, and IP Analysis servers and election
Server is same server;Again or, client server and voting server can be same servers, IP analysis clothes
Business device is an independent server.
The flow chart that Fig. 6 shows data transmission method according to an embodiment of the invention.
As shown in fig. 6, data transmission method starts from step S610, in this step, the data transfer for receiving client please
Ask.
Then in step S620, according to the corresponding network category of IP address that the IP address of the client obtains the client
Property information.
In one embodiment of the invention, the corresponding network attribute information of the IP address of the client includes:Believe region
Breath and operator's informaiton.
The IP address section belonging to the IP address of the client specifically can be searched from IP information banks, and is obtained and the IP ground
The corresponding regional information of location section and operator's informaiton;Wherein, the record per bar in the IP information banks includes IP address section and is somebody's turn to do
The corresponding regional information of IP address section and operator's informaiton, IP address section include the start ip address of the IP address section and cut-off IP
Address.In one embodiment of the invention, IP information banks are stored in text.
In subsequent step S630, according to acquired network attribute information, from many numbers for being deployed in each position
The most quick data server room of the data transfer for the client is selected according to servicing in machine room.
These multiple data, services machine rooms for being deployed in each position belong to different operators and are distributed in different ground
Domain.
Specifically, the corresponding operator's informaiton of IP address first according to the client, finds out and belongs to the operator
Data, services machine room.Then the corresponding regional information of IP address according to the client, is subordinated to the data, services of the operator
Select in machine room geographically from the data, services machine room that the client is nearest;More particularly, the IP ground according to the client
The corresponding regional information in location, searches corresponding to the minimum weights of the distance between expression and the region from region apart from weight table
Region, and select to should region data, services machine room;Wherein this is stated region and includes apart from every a line of weight table:The row pair
The region answered and the weights for representing distance between the corresponding region of the row and other each regions.
Finally in step S640, the reference address of selected data, services machine room is returned to into the client so that
The client transfers data to the data server in the data, services machine room.
In sum, this data transfer request for receiving client of the invention, according to the IP ground of the client
Location obtains the corresponding network attribute information of IP address of the client, according to acquired network attribute information, each from being deployed in
The most quick data server of the data transfer for the client is selected in multiple data, services machine rooms of individual position
The reference address of selected data, services machine room is returned to the client so that the client transfers data to this by room
Data server in data, services machine room, thus solves multiple spot machine room and provides each user visitor in data transport service scheme
On the corresponding server regularly distributed by family end caused by efficiency of transmission not high problem, achieve and provide for client
The most fast data, services machine room address of data transmission bauds, improves data transmission bauds and success rate, and then improves user
The beneficial effect of experience.
It should be noted that:
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein.
Various general-purpose systems can also be used together based on teaching in this.As described above, construct required by this kind of system
Structure be obvious.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to use it is various
Programming language realizes the content of invention described herein, and the description done to language-specific above is to disclose this
Bright preferred forms.
In description mentioned herein, a large amount of details are illustrated.It is to be appreciated, however, that the enforcement of the present invention
Example can be put into practice in the case where not having these details.In some instances, known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help understand one or more in each inventive aspect, exist
Above to, in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together into single enforcement sometimes
In example, figure or descriptions thereof.However, should the method for the disclosure be construed to reflect following intention:I.e. required guarantor
The more features of feature is expressly recited in each claim by the application claims ratio of shield.More precisely, such as following
Claims it is reflected as, inventive aspect is less than all features of single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself
All as the separate embodiments of the present invention.
Those skilled in the art are appreciated that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more different from embodiment equipment.Can be the module or list in embodiment
Unit or component are combined into a module or unit or component, and can be divided in addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit is excluded each other, can adopt any
Combination is to this specification(Including adjoint claim, summary and accompanying drawing)Disclosed in all features and so disclosed appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification(Including adjoint power
Profit requires, makes a summary and accompanying drawing)Disclosed in each feature can be by providing identical, equivalent or the alternative features of similar purpose carry out generation
Replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments
In some included features rather than further feature, but the combination of the feature of different embodiments means in of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment required for protection appoint
One of meaning can in any combination mode using.
The present invention all parts embodiment can be realized with hardware, or with one or more processor operation
Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that can use in practice
Microprocessor or digital signal processor(DSP)To realize some in data transfer server according to embodiments of the present invention
Or some or all functions of whole parts.The present invention is also implemented as performing the one of method as described herein
Partly or completely equipment or program of device(For example, computer program and computer program).It is such to realize this
The program of invention can be stored on a computer-readable medium, or can have the form of one or more signal.So
Signal can download from internet website and obtain, or provide on carrier signal, or provided with any other form.
It should be noted that above-described embodiment the present invention will be described rather than limits the invention, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference markss between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not
Element listed in the claims or step.Word "a" or "an" before element does not exclude the presence of multiple such
Element.The present invention can come real by means of the hardware for including some different elements and by means of properly programmed computer
It is existing.If in the unit claim for listing equipment for drying, several in these devices can be by same hardware branch
To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and be run after fame
Claim.