Summary of the invention
Technical problem to be solved by this invention is, a kind of method, apparatus and system of distribution basis facility are provided, take solve according to all data transfer request in prior art all by the server of network service, carry out the processing of distribution basis facility and the server load that causes excessive, be difficult in time the long technical problem of response time as mass data transmission request distribution basis facility and data transfer request.
First aspect, the embodiment of the present invention provides a kind of method of distribution basis facility, is applied to the server of network service, and the method comprises:
Infrastructure assignment record corresponding to buffer memory target domain name not while receiving client to the domain name mapping request of target domain name in response to local domain name server, receives the domain name analysis request that described local domain name server sends; Wherein, domain name analysis request is used for asking distribution basis facility, the name space that the server that described target domain name belongs to described network service is managed;
According to domain name analysis request, select infrastructure, and generate infrastructure assignment record corresponding to described target domain name with the selection result of infrastructure;
The infrastructure assignment record that described target domain name is corresponding sends to described local domain name server, so that infrastructure assignment record corresponding to target domain name described in described local domain name server buffer memory, and infrastructure assignment record corresponding to described target domain name sent to described client;
Infrastructure record corresponding to target domain name described in buffer memory while receiving domain name analysis request in response to local domain name server, infrastructure record corresponding to described target domain name given described client by described local domain name server reading and sending from buffer memory.
In the possible implementation of the first of first aspect, domain name analysis request is the transmission distribution basis facility of target data specifically for request, and the selection result of described infrastructure comprises available infrastructure and the transmissions links of described target data in described available infrastructure of selecting according to domain name analysis request.
In the possible implementation of the second of first aspect, in conjunction with the possible implementation of the first of first aspect, the selection result of described infrastructure comprises a plurality of described available infrastructure and described target data transmissions links in available infrastructure described in each.
In the third possible implementation of first aspect, infrastructure assignment record corresponding to described target domain name is specially the TXT record of described target domain name.
In the 4th kind of possible implementation of first aspect, the described selection result with infrastructure generates infrastructure assignment record corresponding to described target domain name, comprising:
Selection result to described infrastructure is encrypted, and obtains encrypting selection result;
With described encryption selection result, generate infrastructure assignment record corresponding to described target domain name, so as described client when obtaining described infrastructure assignment record by described encryption selection result is decrypted to the selection result that obtains described infrastructure.
Second aspect, the embodiment of the present invention provides a kind of method of distribution basis facility, is applied to client, and the method comprises:
In response to request distribution basis facility, the local domain name server under described client sends the domain name mapping request to target domain name; The name space that the server that described target domain name belongs to network service is managed;
In response to infrastructure assignment record corresponding to target domain name described in buffer memory in described local domain name server, receive the infrastructure assignment record corresponding to described target domain name of described local domain name server reading and sending from buffer memory;
In response to infrastructure assignment record corresponding to target domain name described in buffer memory not in described local domain name server, receive infrastructure assignment record corresponding to described target domain name that described local domain name server obtains and sends from the server of described network service;
Wherein, infrastructure assignment record corresponding to described target domain name that described local domain name server obtains from the server of described network service, the domain name analysis request that the server that is specially described network service sends according to described local domain name server is selected infrastructure and with infrastructure selection result, is generated and sent to described local domain name server, so that described local domain name server buffer memory send infrastructure assignment record corresponding to described target domain name to described client.
In the possible implementation of the first of second aspect, domain name analysis request is the transmission distribution basis facility of target data specifically for request, and the selection result of described infrastructure comprises available infrastructure and the transmissions links of described target data in described available infrastructure of selecting according to domain name analysis request.
In the possible implementation of the second of second aspect, in conjunction with the possible implementation of the first of second aspect, the selection result of described infrastructure comprises a plurality of described available infrastructure and described target data transmissions links in available infrastructure described in each.
In the third possible implementation of second aspect, infrastructure assignment record corresponding to described target domain name is specially the TXT record of described target domain name.
In the 4th kind of possible implementation of second aspect, infrastructure assignment record corresponding to described target domain name is specially the encryption selection result that the server of described network service obtains so that the selection result of described infrastructure is encrypted and generates, so as described client when obtaining described infrastructure assignment record by described encryption selection result is decrypted to the selection result that obtains described infrastructure.
The third aspect, the embodiment of the present invention provides a kind of equipment of distribution basis facility, is disposed at the server of network service, and this equipment comprises:
Analysis request receiver module, infrastructure assignment record corresponding to buffer memory target domain name not when receiving client to the domain name mapping request of target domain name in response to local domain name server, receives the domain name analysis request that described local domain name server sends; Wherein, domain name analysis request is used for asking distribution basis facility, the name space that the server that described target domain name belongs to described network service is managed;
Infrastructure is selected module, for selecting infrastructure according to domain name analysis request;
Assignment record generation module, generates infrastructure assignment record corresponding to described target domain name for the selection result with infrastructure;
Assignment record sending module, for infrastructure assignment record corresponding to described target domain name sent to described local domain name server, so that infrastructure assignment record corresponding to target domain name described in described local domain name server buffer memory, and infrastructure assignment record corresponding to described target domain name sent to described client;
Infrastructure record corresponding to target domain name described in buffer memory while receiving domain name analysis request in response to local domain name server, infrastructure record corresponding to described target domain name given described client by described local domain name server reading and sending from buffer memory.
Fourth aspect, the embodiment of the present invention provides a kind of equipment of distribution basis facility, is disposed at client, and this equipment comprises:
Analysis request sending module, in response to request distribution basis facility, the local domain name server under described client sends the domain name mapping request to target domain name; The name space that the server that described target domain name belongs to network service is managed;
The first assignment record receiver module, for in response to infrastructure assignment record corresponding to target domain name described in described local domain name server buffer memory, receive the infrastructure assignment record corresponding to described target domain name of described local domain name server reading and sending from buffer memory;
The second assignment record receiver module, for in response to described local domain name server infrastructure assignment record corresponding to target domain name described in buffer memory not, receive infrastructure assignment record corresponding to described target domain name that described local domain name server obtains and sends from the server of described network service;
Wherein, infrastructure assignment record corresponding to described target domain name that described local domain name server obtains from the server of described network service, the domain name analysis request that the server that is specially described network service sends according to described local domain name server select infrastructure and and with infrastructure selection result, generate and send to described local domain name server so that described local domain name server buffer memory send infrastructure assignment record corresponding to described target domain name to described client.
The 5th aspect, the embodiment of the present invention provides a kind of system of distribution basis facility, and this system comprises the affiliated local domain name server of server, client and described client of network service;
Wherein, the server of described network service disposes the equipment of aforementioned any one implementation of the third aspect, and described client configuration puts just like the aforementioned the 4th the equipment of showing off arbitrarily middle implementation.
According in embodiment of the present invention for the method, apparatus and system of distribution basis facility, employing be the distribution that the transmission mechanism of domain name system (Domain Name System is called for short DNS) completes infrastructure.Particularly, the server of network service can be managed a name space, when user needs request msg transmission, client can be initiated domain name mapping request (DNS request) to the affiliated local domain name server of this client to belonging to the target domain name of this name space, if this local domain name server is infrastructure assignment record corresponding to this target domain name of buffer memory, can from buffer memory, read infrastructure assignment record corresponding to this target domain name and send to this client, if this local domain name server is infrastructure assignment record corresponding to this target domain name of buffer memory not, this domain name mapping request can be sent to the server of this network service, the server of this network service can be selected infrastructure and generate infrastructure assignment record corresponding to this target domain name with the selection result of infrastructure according to this domain name mapping request, again infrastructure assignment record corresponding to this target domain name sent to local domain name server, this local domain name server can be by infrastructure assignment record buffer memory corresponding to described target domain name, and send to this client.
As can be seen here, by the server of network service, take the selection result of the infrastructure corresponding formation base facility of the target domain name assignment record within belonging to the name space of its management, make infrastructure selection result to send to client by DNS transmission mechanism, therefore, at local domain name server, from the server of network service, obtain and buffer memory after infrastructure assignment record corresponding to target domain name, when each client that belongs to this local domain name server is initiated the domain name mapping request to target domain name for request distribution basis facility the selection result of basic facilities can by local domain name server from buffer memory reading and sending to client, and without processed again the distribution of infrastructure by the server of network service, thereby make the local domain name server under each client can bear the request that a part of transfer of data is distributed infrastructure, avoid all data transfer request all by the server of network service, to be processed the distribution of infrastructure, alleviated the server burden of network service, and shortened response time of data transfer request, for user has brought better experience.
Embodiment
In order to make those skilled in the art person understand better the application's scheme, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the application's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills are not making the every other embodiment obtaining under creative work prerequisite, all belong to the scope of the application's protection.
The present inventor finds through research, on the one hand, in prior art, when user is transmitted in request msg, client sends an infrastructure distribution request to the server of network service, the server of network service just need to go to select infrastructure and the selection result of infrastructure is returned to client for this request, this just makes all data transfer request all need the server of network service to process the distribution of infrastructure, thereby causes the server of network service to be difficult to support a large amount of concurrent data transfer request.Therefore,, in order to support a large amount of concurrent data transfer request, need other equipment to bear the request that some transfer of data are distributed infrastructure.On the other hand, in DNS transmission mechanism, for the domain name belonging in domain name authority resolution server institute's management domain name space of network service, client is in order to obtain IP address corresponding to this domain name, need to initiate a domain name mapping request to the local domain name server under it to this domain name; If this local domain name server buffer memory record corresponding to this domain name from its buffer memory, read record corresponding to this domain name and return to client, wherein, in record corresponding to this domain name, include IP address corresponding to this domain name; If this local domain name server not record corresponding to this domain name of buffer memory sends to this domain name mapping request domain name authority resolution server, this domain name authority resolution server is with record corresponding to this domain name of IP address generation corresponding to this domain name, and record corresponding to this domain name returned to local domain name server, this local domain name server can return to client by record corresponding to this domain name, and can be by record buffer memory corresponding to this domain name, to can directly read from buffer memory while receiving again the domain name mapping request to this domain name.Visible, in DNS transmission mechanism, local domain name server has been born the analysis request of a part of client to IP address by record corresponding to buffer memory domain name, and the server of network service does not need to process all analysis request to IP address.Again on the one hand, the client that belongs to same local domain name server is located at same region, and in same region, be all identical with charging based on each infrastructure performance, what network service was generally that the client of same region distributes is identical infrastructure, therefore the client that, belongs to same local domain name server is distributed the normally identical infrastructure obtaining.
Based on above-mentioned research, one of main thought of the application is: the target domain name in the name space of managing for the server that belongs to network service, by client, need to ask infrastructure to divide timing to initiate the server of the domain name mapping request of this target domain name and network service to generate record corresponding to this target domain name with the selection result of infrastructure, can be so that the selection result of infrastructure can send to client by DNS transmission mechanism as IP address, therefore, owing to belonging to the client of same local domain name server, to distribute what obtain be identical infrastructure, at local domain name server, from the server of network service, obtain and buffer memory after record corresponding to target domain name, when each client that belongs to this local domain name server is initiated the domain name mapping request to target domain name for request distribution basis facility, the selection result of infrastructure can be read and be returned to by local domain name server client from buffer memory, and without processed again the distribution of infrastructure by the server of network service, thereby make local domain name server bear the request that a part of transfer of data is distributed infrastructure, avoided all data transfer request all by the server of network service, to be processed the distribution of infrastructure.
Based on above-mentioned basic thought, one of application scenarios of embodiment of the present invention, can be by realizing between server 103 threes of client 101, local domain name server 102 and network service, as shown in Figure 1 alternately.
It should be noted that, client 101 herein can be existing, that researching and developing or in the future research and development, can be by any type of wired and/or wireless connections (for example, Wi-Fi, LAN, honeycomb, coaxial cable etc.) with the mutual any client of local domain name server 102, include but not limited to: existing, researching and developing or the smart mobile phone of research and development in the future, non intelligent mobile phone, panel computer, laptop PC, desktop personal computer, minicom, medium-size computer, mainframe computer etc.
It is also to be noted that, herein the server 103 of network service be only existing, that researching and developing or in the future research and development, can realize infrastructure in network service and distribute and the equipment of domain name mapping or an example of system.In embodiments of the present invention, the server 103 of this network service can be to realize with an independent entity device, can be also that the system forming with a plurality of entity devices realizes.Embodiments of the present invention are unrestricted in this regard.
In exemplary application scene based on shown in Fig. 1, the server 103 of network service can be managed a name space, when user needs request msg transmission, client 101 can be initiated domain name mapping request (DNS request) to the affiliated local domain name server 102 of this client 101 to belonging to the target domain name of this name space, if this local domain name server 102 is infrastructure assignment record corresponding to this target domain name of buffer memory, can from buffer memory, read infrastructure assignment record corresponding to this target domain name and send to this client 101, if this local domain name server 102 is infrastructure assignment record corresponding to this target domain name of buffer memory not, this domain name mapping request can be sent to the server 103 of this network service, the server 103 of this network service can be selected infrastructure and generate infrastructure assignment record corresponding to this target domain name with the selection result of infrastructure according to this domain name mapping request, again infrastructure assignment record corresponding to this target domain name sent to local domain name server 102, 102 of this local domain name servers can be by infrastructure assignment record buffer memory corresponding to described target domain name, and send to this client 101.
It should be noted that above-mentioned application scenarios is only to illustrate for the ease of understanding spirit of the present invention and principle, embodiments of the present invention are unrestricted in this regard.On the contrary, any scene that embodiments of the present invention can be applied to be suitable for.
After having introduced main thought of the present invention, below in conjunction with accompanying drawing, describe various non-limiting execution mode of the present invention in detail.
Referring to Fig. 2, show the flow chart of distribution basis facility embodiment 1 in the present invention.The present embodiment can be applied to the server of network service, for example, specifically can comprise the steps:
S201, infrastructure assignment record corresponding to buffer memory target domain name not while receiving client to the domain name mapping request of target domain name in response to local domain name server, receive the domain name analysis request that described local domain name server sends; Wherein, domain name analysis request is used for asking distribution basis facility, the name space that the server that described target domain name belongs to described network service is managed.
Wherein, a domain name authority resolution server can be set in the server of network service and manage a name space (as " * .foo.com "), so that the server of network service generates record corresponding to domain name in this name space with the selection result of infrastructure, like this, when client needs transfer of data, in order to ask distribution basis facility, can initiate a domain name mapping request to the target domain name in this name space (as " cdn-list.foo.com "), by DNS transmission mechanism, client just can obtain record corresponding to this target domain name, thereby obtain the infrastructure selection result in this record.
Particularly, when client need to ask to transmit a target data, in order to ask the transmission distribution basis facility for this target data, can initiate a domain name mapping request to the local domain name server under this client to target domain name, local domain name server is searched the infrastructure assignment record that whether has this target domain name corresponding in its local cache, if search less than, target domain name based on this domain name mapping request, this domain name mapping request will be sent to the server of network service.Wherein, in target domain name, carry the sign of the target data of this client-requested transmission, so that the server of network service is to should target data selecting infrastructure.
It should be noted that, if local domain name server can find infrastructure assignment record corresponding to this target domain name in its local cache, can and return to client from its local cache, and without again this domain name mapping request being sent to the server of network service.Particularly, infrastructure record corresponding to target domain name described in buffer memory while receiving domain name analysis request in response to local domain name server, infrastructure record corresponding to described target domain name given described client by described local domain name server reading and sending from buffer memory.
Be understandable that, related " network service " in the present embodiment, it can be for example the content service that provides Web content to download for user, what related " transfer of data " represented can be that data are downloaded, as Internet video is downloaded, network file is downloaded or other network content resources are downloaded.
Will also be appreciated that in the present embodiment, target domain name is for asking infrastructure to be distributed, the selection result that is actually infrastructure of its correspondence, and as a rule in DNS system, in fact there is not IP address corresponding to target domain name.
S202, according to domain name analysis request, select infrastructure, and generate infrastructure assignment record corresponding to described target domain name with the selection result of infrastructure.
Wherein, an infrastructure selector can be set in the server of network service, when the server of this network service receives domain name mapping request, infrastructure selector can be selected infrastructure for this domain name mapping request.Be understandable that, this infrastructure selector and aforementioned domain name authority resolution server can be for example to realize in same entity device, or can be also in two different entity devices, to realize respectively.
It should be noted that the selection result of infrastructure can be selected to determine according to the region at client place.Wherein, region, client place can obtain by domain name mapping request.Be understandable that, the selection result of infrastructure can adopt any one existing or may occur in the future selection mode, for example, can consider paying price of the delivery flow rate that the performance of each infrastructure in region, client place and each infrastructure produce region, client place etc.
Be understandable that, in some execution modes of the present embodiment, it can be specifically for asking the transmission distribution basis facility for target data that client is initiated domain name mapping request, now, the selection result of described infrastructure can comprise available infrastructure and the transmissions links of described target data in described available infrastructure of selecting according to domain name analysis request, like this, client can be utilized the chain returning to fetch realization and obtain target data by available infrastructure.In addition, in some execution modes of the present embodiment, target domain name can also have the sign of the target data that client asks, make the server of network service can based target domain name return to the transmissions links of target data, now, client, for the transmission request of different target data, can be initiated the domain name mapping request to different target domain name, thereby obtains the infrastructure assignment record that comprises the link of different target transfer of data.
Furthermore, in other execution modes of the present embodiment, in order to make user have certain autonomous choice to infrastructure, in client-requested infrastructure, divide timing, the server of network service can be selected a plurality of available infrastructure for client, and the transmissions links in each available infrastructure all returns to client by a plurality of available infrastructure and target data, thereby make user in a plurality of available infrastructure of principal and subordinate, to select one to carry out transfer of data.Now, in returning to the infrastructure assignment record of client, the selection result of described infrastructure can comprise a plurality of described available infrastructure and described target data transmissions links in available infrastructure described in each.
In the other execution mode of the present embodiment, in DNS transmission mechanism, conventionally there is the multiple different textual form can be for record corresponding to domain name, in these textual forms, TXT record is to the hard-core a kind of textual form of text size.Therefore, in order to make the text size of infrastructure assignment record long so that the infrastructure selection result of a plurality of available infrastructure can write as far as possible, infrastructure assignment record corresponding to described target domain name can be specially the TXT record of described target domain name.
In some execution modes again of the present embodiment, because infrastructure assignment record corresponding to target domain name can be buffered in each local domain name server, and local domain name server is the open equipment in network, for fear of infrastructure selection result, from local domain name server, maliciously obtained, can be encrypted the selection result of the infrastructure in infrastructure assignment record, thereby prevent that infrastructure selection result from maliciously being obtained.Particularly, when formation base facility assignment record, for example, specifically can comprise the selection result of described infrastructure is encrypted, obtain encrypting selection result; With described encryption selection result, generate infrastructure assignment record corresponding to described target domain name, so as described client when obtaining described infrastructure assignment record by described encryption selection result is decrypted to the selection result that obtains described infrastructure.Be understandable that, in the execution mode being encrypted in the infrastructure selection result in infrastructure assignment record, the server of network service need to match to the manner of decryption of selection result with the client of request msg transmission to the cipher mode of selection result, makes the client of request msg transmission can obtain by deciphering the selection result of infrastructure.
S203, infrastructure assignment record corresponding to described target domain name sent to described local domain name server, so that infrastructure assignment record corresponding to target domain name described in described local domain name server buffer memory, and infrastructure assignment record corresponding to described target domain name sent to described client.Be understandable that, although the infrastructure assignment record of target domain name comprises, be the selection result of infrastructure and the IP address that not originally will transmit in DNS transmission mechanism, but for local domain name server, whether it can't go to identify in record corresponding to target domain name is to comprise IP address actually, therefore, local domain name server after receiving infrastructure assignment record corresponding to target domain name, to the processing mode of infrastructure assignment record with to the processing mode of the record of IP address, be identical.Particularly, local domain name server is when receiving infrastructure assignment record corresponding to target domain name, this infrastructure assignment record can be returned on the one hand to this and target domain name be initiated to the client of domain name mapping request, on the other hand can be in this infrastructure assignment record of its local cache, when with box lunch, it receives the domain name mapping request to target domain name again, can from buffer memory, read this infrastructure assignment record and return, and needn't be again to the server request distribution basis facility of network service.Therefore, in the present embodiment, by existing local domain name server, just can realize and utilize DNS transmission mechanism to client distribution basis facility, thus can be without existing local domain name server is undergone technological transformation.
In addition, in some embodiments, infrastructure assignment record corresponding to target domain name is after sending to local domain name server, the cache-time (TTL) of this infrastructure assignment record can also be set on this local domain name server, after making to reach cache-time, can upgrade infrastructure assignment record corresponding to target domain name by local domain name server, thereby upgrade, be buffered in the infrastructure selection result on local domain name server, the change of infrastructure selection result being made to adapt to the server of network service.
It should be noted that, conventionally the client that belongs to same local domain name server is located at same region, and in same region, be all identical with charging based on each infrastructure performance, what network service was generally that the client of same region distributes is identical infrastructure, therefore, each client that belongs to same local domain name server is distributed the normally identical infrastructure obtaining, thereby makes local domain name server the same infrastructure assignment record based on its buffer memory to be distributed to each client that is under the jurisdiction of this local domain name server.
The technical scheme of the present embodiment, by the server of network service, take the selection result of the infrastructure corresponding formation base facility of the target domain name assignment record within belonging to the name space of its management, make infrastructure selection result to send to client by DNS transmission mechanism, therefore, at local domain name server, from the server of network service, obtain and buffer memory after infrastructure assignment record corresponding to target domain name, when each client that belongs to this local domain name server is initiated the domain name mapping request to target domain name for request distribution basis facility the selection result of basic facilities can by local domain name server from buffer memory reading and sending to client, and without processed again the distribution of infrastructure by the server of network service, thereby make the local domain name server under each client can bear the request that a part of transfer of data is distributed infrastructure, avoid all data transfer request all by the server of network service, to be processed the distribution of infrastructure, alleviated the server burden of network service, and shortened response time of data transfer request, for user has brought better experience.
Referring to Fig. 3, show the flow chart of the embodiment of the method 2 of distribution basis facility in the present invention.The present embodiment can be applied to client, for example, specifically can comprise the steps:
S301, in response to request distribution basis facility, the local domain name server under described client sends the domain name mapping request to target domain name; The name space that the server that described target domain name belongs to network service is managed.
Local domain name server is when the domain name mapping request receiving target domain name, can search and in its local cache, whether there is infrastructure assignment record corresponding to this target domain name, if had, from its local cache, read infrastructure assignment record corresponding to this target domain name and send to client, enter and carry out S302; If do not had, local domain name server can send to according to this domain name mapping request of this aiming field star the server of network service, the server of network service can be selected infrastructure according to this domain name mapping request, and generate infrastructure assignment record corresponding to this target domain name with the selection result of infrastructure, the infrastructure assignment record that this target domain name is corresponding sends to local domain name server, this local domain name server can be by infrastructure assignment record buffer memory corresponding to this domain name, and send to client, enter and carry out S303.
S302, in response to infrastructure assignment record corresponding to target domain name described in buffer memory in described local domain name server, receive the infrastructure assignment record corresponding to described target domain name of described local domain name server reading and sending from buffer memory.
S303, in response to infrastructure assignment record corresponding to target domain name described in buffer memory not in described local domain name server, receive infrastructure assignment record corresponding to described target domain name that described local domain name server obtains and sends from the server of described network service.
Wherein, infrastructure assignment record corresponding to described target domain name that described local domain name server obtains from the server of described network service, the domain name analysis request that the server that is specially described network service sends according to described local domain name server is selected infrastructure and with infrastructure selection result, is generated and sent to described local domain name server, so that described local domain name server buffer memory send infrastructure assignment record corresponding to described target domain name to described client.
It should be noted that, in S302 and S303, for client, what it will be carried out is only to receive infrastructure assignment record from local domain name server, and not need to identify infrastructure assignment record that local domain name server sends be that local domain name server reads from buffer memory or local domain name server obtains to the server request of network service, that is to say, no matter infrastructure assignment record is that local domain name server reads from buffer memory or local domain name server obtains to the server request of network service, client is all identical for receiving the performed action of infrastructure assignment record.
Be understandable that, in some execution modes of the present embodiment, it can be specifically for asking the transmission distribution basis facility for target data that client is initiated domain name mapping request, now, the selection result of described infrastructure can comprise available infrastructure and the transmissions links of described target data in described available infrastructure of selecting according to domain name analysis request, like this, client can be utilized the chain returning to fetch realization and obtain target data by available infrastructure.
Furthermore, in other execution modes of the present embodiment, in order to make user have certain autonomous choice to infrastructure, in client-requested infrastructure, divide timing, the server of network service can be selected a plurality of available infrastructure for client, and the transmissions links in each available infrastructure all returns to client by a plurality of available infrastructure and target data, thereby make user in a plurality of available infrastructure of principal and subordinate, to select one to carry out transfer of data.Now, in returning to the infrastructure assignment record of client, the selection result of described infrastructure can comprise a plurality of described available infrastructure and described target data transmissions links in available infrastructure described in each.
In the other execution mode of the present embodiment, in DNS transmission mechanism, conventionally there is the multiple different textual form can be for record corresponding to domain name, in these textual forms, TXT record is to the hard-core a kind of textual form of text size.Therefore, in order to make the text size of infrastructure assignment record long so that the infrastructure selection result of a plurality of available infrastructure can write as far as possible, infrastructure assignment record corresponding to described target domain name can be specially the TXT record of described target domain name.
In some execution modes again of the present embodiment, because infrastructure assignment record corresponding to target domain name can be buffered in each local domain name server, and local domain name server is the open equipment in network, for fear of infrastructure selection result, from local domain name server, maliciously obtained, can be encrypted the selection result of the infrastructure in infrastructure assignment record, thereby prevent that infrastructure selection result from maliciously being obtained.Particularly, infrastructure assignment record corresponding to described target domain name is specifically as follows the encryption selection result that the server of described network service obtains so that the selection result of described infrastructure is encrypted and generates, so as described client when obtaining described infrastructure assignment record by described encryption selection result is decrypted to the selection result that obtains described infrastructure.Be understandable that, in the execution mode being encrypted in the infrastructure selection result in infrastructure assignment record, the server of network service need to match to the manner of decryption of selection result with the client of request msg transmission to the cipher mode of selection result, makes the client of request msg transmission can obtain by deciphering the selection result of infrastructure.
By the technical scheme of the present embodiment, by the server of network service, take the selection result of the infrastructure corresponding formation base facility of the target domain name assignment record within belonging to the name space of its management, make infrastructure selection result to send to client by DNS transmission mechanism, therefore, local domain name server under each client can be born the request that a part of transfer of data is distributed infrastructure, avoid all data transfer request all by the server of network service, to be processed the distribution of infrastructure, alleviated the server burden of network service, and shortened response time of data transfer request, for user has brought better experience.
Aforementioned respectively after from the server and client side's of network service angle, to the present invention, exemplary method is introduced, in order to make those skilled in the art more know that the present invention, for the application mode of the method for distribution basis facility, is introduced from the angle of information interaction below.
Referring to Fig. 4, show the flow chart of distribution basis facility embodiment 3 in the present invention.In the present embodiment, for example specifically can comprise the steps:
S401, client end response are in the request that infrastructure is distributed, and the local domain name server under this client sends the domain name mapping request to target domain name.
Wherein, this domain name mapping request is specifically for asking the transmission distribution basis facility for target data, the name space that the server that this target domain name specifically belongs to network service is managed.
S402, local domain name server are searched infrastructure assignment record corresponding to this target domain name in local cache; If can find, can enter and carry out S403; If search less than, can enter and carry out S404.
Wherein, the infrastructure assignment record that target domain name is corresponding, can be specifically the TXT record that includes infrastructure selection result, the infrastructure list that this infrastructure selection result specifically can the transmissions links in each available infrastructure forms by a plurality of available infrastructure and target data.
S403, local domain name server read infrastructure assignment record corresponding to this target domain name from buffer memory, and return to client.
S404, local domain name server send to the server of network service according to this domain name mapping request of aiming field star.
The server of S405, network service is selected infrastructure according to this domain name mapping request, and generates infrastructure assignment record corresponding to this target domain name with the selection result of infrastructure.
Client wherein, during formation base facility assignment record, can first to the selection result of infrastructure, be encrypted, then generate record with the selection result of encrypting, so that could obtain the selection result of infrastructure by deciphering.
The server of S406, network service returns to local domain name server by infrastructure assignment record corresponding to this target domain name.
S407, local domain name server be in infrastructure assignment record corresponding to this target domain name of local cache, and infrastructure assignment record corresponding to this target domain name returned to client.
By the technical scheme of the present embodiment, by the server of network service, take the selection result of the infrastructure corresponding formation base facility of the target domain name assignment record within belonging to the name space of its management, make infrastructure selection result to send to client by DNS transmission mechanism, therefore, local domain name server under each client can be born the request that a part of transfer of data is distributed infrastructure, avoid all data transfer request all by the server of network service, to be processed the distribution of infrastructure, alleviated the server burden of network service, and shortened response time of data transfer request, for user has brought better experience.
After having introduced the illustrative methods of embodiment of the present invention, below by embodiment of the present invention, for the example devices of distribution basis facility, be introduced.
Referring to Fig. 5, show the structure chart of the apparatus embodiments 1 of distribution basis facility in the present invention.The equipment of the present embodiment can be disposed at the server of network service, for example, specifically can comprise:
Analysis request receiver module 501, infrastructure assignment record corresponding to buffer memory target domain name not when receiving client to the domain name mapping request of target domain name in response to local domain name server, receives the domain name analysis request that described local domain name server sends; Wherein, domain name analysis request is used for asking distribution basis facility, the name space that the server that described target domain name belongs to described network service is managed;
Infrastructure is selected module 502, for selecting infrastructure according to domain name analysis request;
Assignment record generation module 503, generates infrastructure assignment record corresponding to described target domain name for the selection result with infrastructure;
Assignment record sending module 504, for infrastructure assignment record corresponding to described target domain name sent to described local domain name server, so that infrastructure assignment record corresponding to target domain name described in described local domain name server buffer memory, and infrastructure assignment record corresponding to described target domain name sent to described client;
Infrastructure record corresponding to target domain name described in buffer memory while receiving domain name analysis request in response to local domain name server, infrastructure record corresponding to described target domain name given described client by described local domain name server reading and sending from buffer memory.
Optionally, in some execution modes of the present embodiment, domain name analysis request can be the transmission distribution basis facility of target data specifically for request, and the selection result of described infrastructure comprises available infrastructure and the transmissions links of described target data in described available infrastructure of selecting according to domain name analysis request.Further alternative, in other execution modes of the present embodiment, the selection result of described infrastructure can comprise a plurality of described available infrastructure and described target data transmissions links in available infrastructure described in each.
Optionally, in the other execution mode of the present embodiment, infrastructure assignment record corresponding to described target domain name can be specially the TXT record of described target domain name.
Optionally, in some execution modes again of the present embodiment, described assignment record generation module 503 for example specifically can comprise:
Encrypt submodule, for the selection result to described infrastructure, be encrypted, obtain encrypting selection result;
Generate submodule, for generating infrastructure assignment record corresponding to described target domain name with described encryption selection result, so as described client when obtaining described infrastructure assignment record by described encryption selection result is decrypted to the selection result that obtains described infrastructure.
Referring to Fig. 6, show the structure chart of the apparatus embodiments 2 of distribution basis facility in the present invention.The equipment of the present embodiment can be disposed at client, for example, specifically can comprise:
Analysis request sending module 601, in response to request distribution basis facility, the local domain name server under described client sends the domain name mapping request to target domain name; The name space that the server that described target domain name belongs to network service is managed;
The first assignment record receiver module 602, for in response to infrastructure assignment record corresponding to target domain name described in described local domain name server buffer memory, receive the infrastructure assignment record corresponding to described target domain name of described local domain name server reading and sending from buffer memory;
The second assignment record receiver module 603, for in response to described local domain name server infrastructure assignment record corresponding to target domain name described in buffer memory not, receive infrastructure assignment record corresponding to described target domain name that described local domain name server obtains and sends from the server of described network service;
Wherein, infrastructure assignment record corresponding to described target domain name that described local domain name server obtains from the server of described network service, the domain name analysis request that the server that is specially described network service sends according to described local domain name server select infrastructure and and with infrastructure selection result, generate and send to described local domain name server so that described local domain name server buffer memory send infrastructure assignment record corresponding to described target domain name to described client.
Optionally, in some execution modes of the present embodiment, domain name analysis request can be the transmission distribution basis facility of target data specifically for request, and the selection result of described infrastructure comprises available infrastructure and the transmissions links of described target data in described available infrastructure of selecting according to domain name analysis request.Further alternative, in other execution modes of the present embodiment, the selection result of described infrastructure can comprise a plurality of described available infrastructure and described target data transmissions links in available infrastructure described in each.
Optionally, in the other execution mode of the present embodiment, infrastructure assignment record corresponding to described target domain name can be specially the TXT record of described target domain name.
Optionally, in some execution modes again of the present embodiment, infrastructure assignment record corresponding to described target domain name can be specially the encryption selection result that the server of described network service obtains so that the selection result of described infrastructure is encrypted and generate, so as described client when obtaining described infrastructure assignment record by described encryption selection result is decrypted to the selection result that obtains described infrastructure.
Referring to Fig. 7, show the structure chart of the system embodiment 1 of distribution basis facility in the present invention.The equipment of this enforcement, for example, specifically can comprise: the local domain name server 703 under the server 701 of network service, client 702 and described client 702; Wherein, the server 701 of described network service disposes the equipment of the server that is disposed at network service of aforementioned any one execution mode, and described client 702 disposes the equipment that is disposed at client of aforementioned any one execution mode.
By the technical scheme of the present embodiment, by the server of network service, take the selection result of the infrastructure corresponding formation base facility of the target domain name assignment record within belonging to the name space of its management, make infrastructure selection result to send to client by DNS transmission mechanism, therefore, local domain name server under each client can be born the request that a part of transfer of data is distributed infrastructure, avoid all data transfer request all by the server of network service, to be processed the distribution of infrastructure, alleviated the server burden of network service, and shortened response time of data transfer request, for user has brought better experience.
It should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.Term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
For system embodiment, because it corresponds essentially to embodiment of the method, so relevant part is referring to the part explanation of embodiment of the method.System embodiment described above is only schematic, the wherein said unit as separating component explanation can or can not be also physically to separate, the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in a plurality of network element.Can select according to the actual needs some or all of module wherein to realize the object of the present embodiment scheme.Those of ordinary skills, in the situation that not paying creative work, are appreciated that and implement.
The above is only the application's embodiment; it should be pointed out that for those skilled in the art, do not departing under the prerequisite of the application's principle; can also make some improvements and modifications, these improvements and modifications also should be considered as the application's protection range.