CN102571997B - Method, system and device for data access - Google Patents

Method, system and device for data access Download PDF

Info

Publication number
CN102571997B
CN102571997B CN201010612005.1A CN201010612005A CN102571997B CN 102571997 B CN102571997 B CN 102571997B CN 201010612005 A CN201010612005 A CN 201010612005A CN 102571997 B CN102571997 B CN 102571997B
Authority
CN
China
Prior art keywords
domain
name information
address
cache servers
dns
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201010612005.1A
Other languages
Chinese (zh)
Other versions
CN102571997A (en
Inventor
姜欣
白爱军
杜建凤
赵新宁
赵堃亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Group Beijing Co Ltd
Original Assignee
China Mobile Group Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Group Beijing Co Ltd filed Critical China Mobile Group Beijing Co Ltd
Priority to CN201010612005.1A priority Critical patent/CN102571997B/en
Publication of CN102571997A publication Critical patent/CN102571997A/en
Application granted granted Critical
Publication of CN102571997B publication Critical patent/CN102571997B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method, a system and a device for data access. The method includes that a domain name server (DNS) sends domain name information to a Cache server; for the received domain name information, the Cache server downloads data from the network side and stores the corresponding data at a local; corresponding relation of the domain name information and an internet protocol (IP) address of the Cache server is stored in the DNS; when a client initiates a domain name resolution request aiming at the domain name information, resolution results formed by mapping relation between a domain name and the IP address of the Cache server can be fed back directly through the DNS; after the IP address of the Cache server is returned to the client, the indicated client access data of the corresponding Cache server. A scheme of the method, the system and the device for data access dose not need to arrange a large number of data processing installations (DPIs), potential fault points in a network system are reduced. Simultaneously, hot contents are located through the DNS, and the scheme is more accurate in hot content location than a traditional scheme.

Description

A kind of method, system and equipment of data access
Technical field
The present invention relates to the communications field, relate in particular to a kind of data access method for domain name, system and equipment.
Background technology
Network-caching (Web Cache) business refers to the focus web content of client-access is stored in Cache equipment, when this focus web content is during again by client-access, access request needn't be connected to the Website server at web content place, but access request is forwarded to Cache equipment, return to corresponding web content by Cache equipment to client, improve client-access speed with this, if and the local domain name server at Cache equipment and client place (Local DNS) is in the time of same local area network (LAN), can also improve the access quality of client, reduce Internet exportation crowding.
Currently used Web Cache business comprises following content:
The first step: client is sent domain name mapping request to Local DNS, carries domain-name information in domain name analysis request.
Second step: Local DNS judges that whether life span (TTL) field is empty or out of date, if so, carries out the 3rd step; Otherwise, by the domain-name information of buffer memory and the corresponding relation of IP address, domain name information is resolved, and returns to client.
The 3rd step: domain name mapping request is sent to outer net DNS by Local DNS, and send to Cache equipment after domain name mapping request being copied to portion by deep-packet detection (Deep Packet Inspection, DPI) equipment.
The 4th step: Cache equipment judges whether the domain-name information receiving is predefined information (as: hot information), if, the IP address of IP address corresponding domain-name information (being the IP address obtaining after outer net dns resolution) being revised as to Cache equipment, and the IP address of Cache equipment is carried at and in domain name mapping result, returns to Local DNS.
The 5th step: the domain name mapping result of the IP address of carrying Cache equipment is returned to client by Local DNS.
In the 3rd step, domain name mapping request is sent to outer net DNS by Local DNS, and therefore, outer net DNS also will send domain name mapping result to Local DNS.But because outer net DNS receives and time of response field name analysis request is longer than Cache equipment, therefore Local DNS receives after the domain name mapping result that Cache equipment returns, and the domain name mapping result that the outer net DNS again receiving is returned abandons.
The 6th step: after the domain name mapping result that client returns to Cache equipment, according to the IP address of the Cache equipment wherein carrying, to Cache device initializes data access request.
The 7th step: Cache equipment judges local web content of whether preserving request, if so, web content is returned to client; Otherwise, to IP address corresponding to outer net DNS nslookup information, and obtain web content from this IP address corresponding device according to domain-name information, the web content of obtaining is kept to this locality and returns to client.
Although above-mentioned Web Cache business can improve the web access efficiency of client, but still there is following problem:
Problem one:
Aforesaid way need to be disposed DPI at the network port and obtain the domain name mapping request that client is sent, and Local DNS is while receiving the domain name mapping request that client sends, if ttl field is not empty, Local DNS directly resolves domain name mapping request at local cache, and do not transmit by the network port, in the case, DPI cannot obtain domain name mapping request.And in practical operation, the overwhelming majority (approximately 80%) domain name mapping request is resolved at Local DNS local cache, therefore, most domain name mapping requests are not obtained by DPI, cause Web Cache business normally not carry out.
Problem two:
Additionally disposing DPI at the network port can impact the former network architecture and Network, and network port quantity is more, need to dispose a large amount of DPI equipment, except realizing difficulty, increase a large amount of equipment and also mean and increased potential faults point, bring to many unsafe factors to network system.
Summary of the invention
The embodiment of the present invention provides a kind of method, system and equipment of data access, in order to solve the problem that exists deployment DPI to cause potential faults point to increase in prior art.
A method for data access, described method comprises:
DNS receives the domain name mapping request that client sends, and according to the corresponding relation of the domain-name information of having stored and Cache servers IP address, Cache servers IP address corresponding to domain-name information in nslookup analysis request;
DNS is carried at the Cache servers IP address inquiring in domain name mapping result and returns to client, and instruction client is according to the Cache servers IP address receiving, to corresponding Cache servers visit data;
Described corresponding relation is that DNS sends domain-name information to Cache servers, and indicates Cache servers to download and generate after the data that the domain-name information that receives is corresponding are preserved in this locality.
A system for data access, described system comprises:
Client, for sending domain name mapping request and acceptance domain name analysis result, and according to the Cache servers IP address of carrying in domain name mapping result, to corresponding Cache servers visit data;
Domain name server (DNS), for sending domain-name information to buffer memory Cache servers, receive the corresponding relation of this domain-name information and Cache servers IP address, and the domain name mapping request of reception client transmission, according to the described corresponding relation of having stored, Cache servers IP address corresponding to domain-name information in nslookup analysis request, and the Cache servers IP address inquiring is carried in domain name mapping result and returns to client;
Cache servers, for receiving after the domain-name information of DNS transmission, preserve data corresponding to domain-name information that receive in this locality, and the access of customer in response end to data.
A kind of name server, comprising:
Corresponding relation respond module, for sending domain-name information to Cache servers, and preserves after the data that the domain-name information that receives is corresponding the corresponding relation of storage domain name information and Cache servers IP address Cache servers are local;
Request receiving module, the domain name mapping request sending for receiving client;
Enquiry module, the corresponding relation of having stored for basis, Cache servers IP address corresponding to domain-name information in nslookup analysis request;
Result is returned to module, for the Cache servers IP address inquiring is carried to domain name mapping result and returns to client.
A kind of buffer memory Cache servers, comprising:
Domain-name information receiver module, the domain-name information sending for receiving name server;
Data are preserved module, for downloading and preserve in this locality data corresponding to domain-name information that receive;
Request respond module, the access for customer in response end to data.
Beneficial effect of the present invention is as follows:
Domain-name information is sent to Cache servers by DNS in the embodiment of the present invention, download and preserve corresponding data in this locality from network side for the domain-name information receiving by Cache servers, in DNS, store the corresponding relation of domain-name information and Cache servers IP address, then in the time having client to initiate domain name mapping request for domain name information, the corresponding relation that can be returned by DNS query cache server, Cache servers IP address is returned to client, instruction client according to Cache servers IP address to corresponding Cache servers visit data.Because the scheme of the embodiment of the present invention does not need to dispose in a large number DPI, therefore reduce the potential faults point in network system.
Brief description of the drawings
Fig. 1 is the method flow schematic diagram of data access in the embodiment of the present invention one;
Fig. 2 is the mutual method flow schematic diagram of determining corresponding relation between DNS and Cache servers in the embodiment of the present invention two;
Fig. 3 is the form schematic diagram of SPDL protocol massages;
Fig. 4 is the system configuration schematic diagram of data access in the embodiment of the present invention three;
Fig. 5 is name server structural representation in the embodiment of the present invention four;
Fig. 6 is the Cache servers structural representation in the embodiment of the present invention five.
Embodiment
The embodiment of the present invention proposes a kind of new data access mode, by DNS, focus domain-name information is sent to Cache servers, download and in this locality preserve corresponding data for the domain-name information receiving from network side by Cache servers, and the corresponding relation of the domain-name information of downloading data and Cache servers IP address is informed to DNS, then in the time having client to initiate domain name mapping request for described focus domain-name information, the corresponding relation that can be returned by DNS query cache server, Cache servers IP address is returned to client, instruction client according to Cache servers IP address to corresponding Cache servers visit data.Because the scheme of the embodiment of the present invention does not need to dispose in a large number DPI, therefore reduce the potential faults point in network system, also reduce the impact on existing business; Meanwhile, the network element that must access while being client-access the Internet due to DNS, therefore, can, to all client executing Web Cache, improve data access speed by the scheme of the embodiment of the present invention.
Below in conjunction with Figure of description, the embodiment of the present invention is described in detail.
Embodiment mono-:
As shown in Figure 1, be the method flow schematic diagram of data access in the embodiment of the present invention one, said method comprising the steps of:
Step 101: client sends domain name mapping request to DNS, carries domain-name information in domain name analysis request.
Step 102:DNS is according to the domain-name information stored and the corresponding relation of buffer memory Cache servers IP address, judges in described corresponding relation, whether to have recorded Cache servers IP address corresponding to domain-name information receiving; If so, perform step 103; Otherwise, execution step 104.
The corresponding relation relating in this step is that DNS is local for client provides Web Cache business to be kept at before, and this corresponding relation is determined in the following manner:
DNS sends domain-name information to Cache servers, require Cache servers to download and preserve in this locality from network side data corresponding to domain-name information that receive, then after corresponding relation is set up in the domain-name information by Cache servers, DNS being sent and the IP address of self, notify DNS, DNS is kept at this locality by the corresponding relation receiving again.In the time that a certain domain-name information that has client-requested to record in to corresponding relation carries out domain name mapping, can directly resolve to the Cache servers IP address in corresponding relation, and no longer carry out domain name mapping by the DNS of outer net.
Step 103:DNS is carried at the Cache servers IP address inquiring in domain name mapping result and returns to client, and jumps to step 105.
The domain name mapping result that step 104:DNS returns to outer net DNS sends to client, and domain name analysis result carries the IP address of the data place network element of client-requested, and jumps to step 105.
In the present embodiment, DNS receives after the domain name mapping request of client transmission, perform step on the one hand 102 content, whether inquiry there is corresponding Cache servers IP address, in a conventional manner domain name mapping request is forwarded to outer net DNS on the other hand, inquires about the real corresponding IP address of domain-name information in this domain name mapping request.In step 102, if judging, DNS in described corresponding relation, do not record Cache servers IP address corresponding to domain-name information in domain name mapping request, the domain name mapping result of outer net DNS being returned sends to client, requires client to carry out data access operation according to the IP address of outer net dns resolution.
Step 105: client is according to the IP address in the domain name mapping result receiving, to corresponding network element visit data.
If inquire Cache servers IP address corresponding to domain-name information in domain name mapping request in step 102, in step 105, client conducts interviews to Cache servers; If do not inquire corresponding Cache servers IP address in step 102, but IP address after the outer net dns resolution of returning to client, in step 105, client conducts interviews to the network element of outer net.
By the scheme of the embodiment of the present invention one, without disposing a large amount of DPI, therefore reduced the potential faults point in network system, also reduced the impact on existing business, and after data corresponding to the local storage of Cache servers focus domain-name information, can carry out data access without carrying out domain name mapping by outer net and being connected to outer net, client can directly be carried out data access to Cache servers, has effectively improved the efficiency of data access.
Embodiment bis-:
The embodiment of the present invention two is before embodiment mono-carries out, as shown in Figure 2, be said method comprising the steps of by the corresponding relation between mutual domain-name information and the Cache servers IP address using while determining that Web Cache business is carried out between DNS and Cache servers:
Step 201:DNS determines focus domain-name information.
In the scheme of the present embodiment two, DNS is (as every T1 duration) renewal focus domain-name information periodically, and is performing step 202~step 206 after each renewal focus domain-name information.
The specific implementation of this step includes but not limited to following two kinds of modes:
Mode one:
First, DNS analyzes the domain-name information of setting in the each domain name mapping request receiving in duration, and records the accessed number of times of each domain-name information, reads a the domain-name information that wherein accessed number of times is maximum.
Then, DNS determines a self-defining b domain-name information, here a self-defining b domain-name information can be the domain-name information of predefined important website, so that in the time that client-requested is accessed these important websites, even if these important websites are often not accessed website, also can make the local data of preserving of client fast access Cache servers, improve access efficiency.
Finally, using an a maximum accessed number of times domain-name information and a self-defining b domain-name information as focus domain-name information, if a domain-name information and b domain-name information have repetition, can filtering repeat domain-name information.
More preferably, can also preset and not allow at local domain-name information corresponding to data of preserving of Cache servers, after definite a+b domain-name information, whether DNS judgement wherein comprises does not allow at local domain-name information corresponding to data of preserving of Cache servers, if comprising c does not allow at local domain-name information corresponding to data of preserving of Cache servers, should in a+b domain-name information, remove this c domain-name information, a+b-c is the focus domain-name information finally obtaining.
Mode two:
Mode two is with the difference of mode one, mode two is taking IP address corresponding to domain-name information as Rule of judgment, due to the domain-name information corresponding multiple IP of a possibility address, therefore, the domain-name information that the domain-name information that employing mode two finally obtains and employing mode one obtain may have difference.
The main contents of mode two are:
First, DNS analyzes the domain-name information of setting in the each domain name mapping request receiving in duration, determines the IP address that each domain-name information is corresponding, and records the accessed number of times in each IP address, reads A the IP address that wherein accessed number of times is maximum.
Then, DNS determines self-defining B IP address, here self-defining B the IP address that IP address is predefined important website.
Finally, using A maximum accessed number of times IP address and self-defining B the domain-name information that IP address is corresponding as focus domain-name information.
With mode one similarly, can also preset and not allow in local IP address corresponding to data of preserving of Cache servers, behind definite A+B IP address, whether DNS judgement wherein comprises does not allow in local IP address corresponding to data of preserving of Cache servers, if comprising C does not allow in local IP address corresponding to data of preserving of Cache servers, should in A+B IP address, remove this C IP address, domain-name information corresponding to A+B-CIP address is the focus domain-name information finally obtaining.
Focus domain-name information is sent to Cache servers by step 202:DNS.
Step 203:Cache server parses corresponding IP address according to the focus domain-name information receiving.
Step 204:Cache server is downloading data (as web page contents) from network element corresponding to the IP address that parses, and the data of download are kept to Cache servers this locality.
In step 203 and step 204, Cache servers receive the domain-name information from the a+b-c of DNS, or domain-name information corresponding to IP address of A+B-C, and for downloading data under the indicated website of the domain-name information receiving.
Step 205:Cache server is set up the corresponding relation of focus domain-name information and Cache servers IP address, and returns to DNS.
In this step, which data that Cache servers are downloaded, just will be downloaded to domain-name information corresponding to local data and corresponding relation is set up in the IP address of self, so that client while carrying out data access for focus domain-name information, can replace real Website server to provide visit data to client by Cache servers.
The corresponding relation receiving is stored in this locality by step 206:DNS, and be that the corresponding relation receiving is set existence duration T2 (i.e. the first duration).
Because focus domain-name information often can change; the corresponding relation that DNS receives can only be within a period of time can be effectively for client provides Web Cache service for the access of focus domain-name information; therefore; be correspondence setting existence duration T2 in this step, represent the term of validity of this corresponding relation.
Be will start timer after the correspondence setting existence duration T2 receiving at DNS, judge and in the T2 duration receiving after corresponding relation, whether receive the domain name access request from client, if receive, utilize the corresponding relation of having stored to carry out the step of the embodiment of the present invention one; Otherwise, in the time that T2 duration finishes, the corresponding relation of preservation is labeled as to inefficacy.
It should be noted that, due in step 201, DNS can be updated periodically focus domain-name information with duration T1, and utilizes the focus domain-name information execution step 202~step 206 after upgrading, and therefore, the length of duration T1 and duration T2 can have following relation:
1, duration T1≤duration T2.
Due in step 201, DNS sends after popular domain-name information to Cache servers, and the execution of step 202~step 205 will take certain time length t, that is to say, in step 206, when DNS receives corresponding relation, in step 201, the timer of computing cycle has been crossed duration t.Now, if duration T1≤duration T2, before corresponding relation lost efficacy in DNS, the corresponding relation being obtained by the focus domain-name information in next cycle has arrived DSN.The benefit of doing is like this that on the one hand, DSN can use the up-to-date corresponding relation receiving to carry out the scheme of embodiment mono-, guarantees the real-time update of focus domain-name information; On the other hand, the corresponding relation of avoiding preserving in DSN had lost efficacy but new corresponding relation does not also send to the situation of DSN occurs.
2, duration T1-duration T2≤duration t.
Described duration t is the duration that takies of execution step 202~step 205, and in the situation that the difference of duration T1 and duration T2 is not more than duration t, the corresponding relation that also can avoid preserving in DSN had lost efficacy but new corresponding relation does not also send to the situation of DSN occurs.
By the scheme of the embodiment of the present invention two, data corresponding to focus domain-name information have been stored in Cache servers this locality, and stored the corresponding relation of focus domain-name information and Cache servers IP address in DNS this locality, can utilize afterwards the scheme of carrying out embodiment mono-at the corresponding relation of the local storage of DNS.
In the step 202 and step 205 of embodiment bis-, between DNS and Cache servers, to communicate, in order to realize the communication between DNS and Cache servers, the present embodiment two has defined a kind of application layer protocol message: synchronous protocol (the synchronous protocol for domain listing between DNS and webcache sever downloading based on domain name list between DNS and Cache servers, SPDL agreement) message, SPDL protocol massages can use 3001 ports of TCP, and its message format and each explanation of field are as follows:
As shown in Figure 3, be the form schematic diagram of SPDL protocol massages, SPDL protocol massages mainly comprises header and report body.
Header comprises following field:
(1), protocol version field: 2bit, can support 4 protocol versions, in the scheme of the present embodiment two, use first version 000.
(2), message type field: 3bit, altogether 8 kinds of type of messages of definable have defined two kinds of type of messages in the scheme of the present embodiment two:
000 represents data download message, sends to Cache servers by DNS, requires Cache servers for the downloading data from corresponding website of the domain-name information in SPDL protocol massages, and now, predefined domain-name information is carried in the data field of report body.
001 represents corresponding relation feedback message, send to DNS by Cache servers, corresponding relation between notice DNS domain-name information and Cache servers IP address, now, the corresponding relation of domain-name information and Cache servers IP address is carried in the data field of report body.
010,011,100,101,110,111 6 type of message is for later stage expansion.
(3), message length field: 11bit, 2 bytes of unit, message length is 2048 bytes.
(4), message complement mark field: 1bit, be mainly used in for through burst transmission and same serial number message, whether be last fragment message, if this position 1 of last burst, if not this position 0.
(5), retransmit attribute field: 1bit, put and represent that dns server sends to the some concrete burst request retransmission message of the SPDL protocol massages of Cache servers at 1 o'clock, or represent that Cache servers return to the some concrete burst request retransmission message of the SPDL protocol massages of DNS.
(6), burst field: 6bit, a serial number message can be divided at most 64 bursts and carry out message transmissions.
(7), reserved field: 8bit, expand for the later stage.
(8), message sequence number field: 16 bytes, for identifying Cache servers list.
(7), life span ttl field: 16bit, maximum 18 hours.In the time that DNS sends domain-name information by SPDL protocol massages to Cache servers, the second duration carrying in this ttl field represents the duration of corresponding relation buffer memory in DNS; In the time that Cache servers send corresponding relation by SPDL protocol massages to DNS, the 3rd duration carrying in ttl field represents the duration that the data of Cache servers download are preserved in this locality.
Report body comprises following field:
(1), domain-name information data field: indefinite length, it is domain-name information length and the content that sends to Cache servers that field is filled content.Each domain-name information comprises three marks, and the count value of lead-in joint number illustrates this domain-name information length, is the content of domain-name information afterwards, and last name is with 0 end.Multiple domain-name informations fill in this field in order.
Fill field: fill 0bit.
(2), corresponding relation data field: indefinite length, it is length and the content that sends to the corresponding relation of DNS that field is filled content.Each corresponding relation comprises three marks, and the count value of lead-in joint number illustrates this corresponding relation length, is the content of corresponding relation afterwards, and last name is with 0 end.Multiple corresponding relations fill in this field in order.
Fill: fill 0bit.
Embodiment tri-:
The embodiment of the present invention three also provides a kind of system of data access, as shown in Figure 4, described system comprises client 11, name server 12 and Cache servers 13, wherein, client 11 is for sending domain name mapping request and acceptance domain name analysis result, and according to the Cache servers IP address of carrying in domain name mapping result, to corresponding Cache servers visit data; Name server 12 is for sending domain-name information to buffer memory Cache servers, receive the corresponding relation of this domain-name information and Cache servers IP address, and the domain name mapping request of reception client transmission, according to the described corresponding relation of having stored, Cache servers IP address corresponding to domain-name information in nslookup analysis request, and the Cache servers IP address inquiring is carried in domain name mapping result and returns to client; Cache servers 13, for receiving after the domain-name information of DNS transmission, are preserved data corresponding to domain-name information that receive in this locality, and the access of customer in response end to data.
Domain name server 12 is also used to correspondence setting the first duration receiving, and in the time receiving domain name mapping request, judge what whether this domain name mapping request received in the first duration receiving after described corresponding relation, if so, the Cache servers IP address corresponding according to the domain-name information in described corresponding relation nslookup analysis request.
Domain name server 12 is specifically for a domain-name information that periodically read access number of times is maximum, determine a predefined b domain-name information, and using a described a domain-name information and b domain-name information as the domain-name information that sends to Cache servers, wherein, the access times of domain-name information are that the quantity statistics of setting the domain-name information in the domain name mapping request that in duration, DNS receives is determined; Or, specifically for A the IP address that periodically read access number of times is maximum, determine predefined B IP address, and using domain-name information corresponding to described A IP address and B IP address as the domain-name information that sends to Cache servers, wherein, the access times of IP address are that the quantity statistics of setting the IP address that domain-name information in the domain name mapping request that DNS receives in duration is corresponding is determined.
As shown in Figure 4, the system of the data access of the present embodiment three can be applied under the network architecture that comprises Inside and outside network, name server 12 in the present embodiment is Local DNS that the Intranet of service can be provided for client, this Local DNS is in the time carrying out the scheme of the embodiment of the present invention, also the domain name mapping request of client is forwarded to the DNS of outer net, and receive the domain name mapping result of carrying Website server IP address that outer net DNS returns, in this Website server, there are the data of client-requested.Cache servers, in the time receiving the domain-name information of Local DNS transmission, also, to outer net DNS request domain name analysis, obtain Website server IP address, and then from corresponding Website server downloading data.
Embodiment tetra-:
As shown in Figure 5, for name server structural representation in the embodiment of the present invention four, comprise that corresponding relation respond module 21, request receiving module 22, enquiry module 23 and result return to module 24, wherein: corresponding relation respond module 21 is for sending domain-name information to Cache servers, and preserve after the data that the domain-name information that receives is corresponding the corresponding relation of storage domain name information and Cache servers IP address Cache servers are local; The domain name mapping request that request receiving module 22 sends for receiving client; The corresponding relation that enquiry module 23 has been stored for basis, Cache servers IP address corresponding to domain-name information in nslookup analysis request; Result is returned to module 24 for the Cache servers IP address inquiring is carried to domain name mapping result and returns to client.
Described corresponding relation respond module 21 is also used to correspondence setting the first duration receiving; Described enquiry module 23 is specifically for judging what whether domain name analysis request received in the first duration receiving after described corresponding relation, if so, according to Cache servers IP address corresponding to domain-name information in the corresponding relation nslookup analysis request receiving.
Domain name server also comprises domain-name information determination module 25, for a the domain-name information that periodically read access number of times is maximum, determine a predefined b domain-name information, using a described a domain-name information and b domain-name information as sending to the domain-name information of Cache servers and triggering corresponding relation respond module, wherein, the access times of domain-name information are that the quantity statistics of setting the domain-name information in the domain name mapping request that in duration, DNS receives is determined; Or, specifically for A the IP address that periodically read access number of times is maximum, determine predefined B IP address, using domain-name information corresponding to described A IP address and B IP address as sending to the domain-name information of Cache servers and triggering corresponding relation respond module, wherein, the access times of IP address are that the quantity statistics of setting the IP address that domain-name information in the domain name mapping request that DNS receives in duration is corresponding is determined.
Embodiment five:
As shown in Figure 6, for the Cache servers structural representation in the embodiment of the present invention five, comprise domain-name information receiver module 31, data preservation module 32 and request respond module 33, wherein: the domain-name information that domain-name information receiver module 31 sends for receiving name server; Data are preserved module 32 for downloading and preserve in this locality data corresponding to domain-name information that receive; The access to data for customer in response end of request respond module 33.
Described Cache servers also comprise that corresponding relation returns to module 34, for the corresponding relation that downloads to domain-name information corresponding to local data and Cache servers IP address is returned to DNS.
Method, system and equipment that the embodiment of the present invention provides have the following advantages with respect to prior art:
1, in prior art, need carry out bypass light splitting at each network critical point, dispose DPI equipment, can cause certain influence to legacy network and business on the one hand, increase potential faults point, on the other hand, owing to having reduced original luminous power, must requirements at the higher level be proposed to the network equipment.And the scheme of utilizing the embodiment of the present invention can avoid disposing at all-network critical point DPI equipment, reduce potential faults point, also can reduce the impact on business simultaneously.
(2), most domain name mapping requests of the prior art Local DNS local cache resolve, therefore, most domain name mapping requests are not obtained by DPI, cause Web Cache business normally not carry out.And the network element that the scheme of the embodiment of the present invention must be accessed while being client-access the Internet due to DNS, therefore, DNS is receiving after the domain name mapping request that client sends, the domain-name information that utilization has been stored and the corresponding relation of Cache servers IP address, for client executing Web Cache business, improve data access speed.
(3), be that the domain name mapping request obtaining according to DPI judges focus domain-name information in prior art, because most domain name mapping requests are not obtained by DPI, therefore, definite focus domain-name information can not reflect real situation.And the scheme of the embodiment of the present invention decides focus domain-name information by DNS, because DNS is the first step that user accesses the Internet, all users will pass through DNS before access the Internet, it is natural domain name access " counter ", can 100% add up exactly the domain name access situation of client, basis according to this as focus domain-name information, can improve the hit rate of Web Cache business greatly.
(4), DPI ability restriction of the prior art domain name mapping request bag whether can be by complete comprehensive acquisition, therefore, the strategy of Web Cache business may cause failure due to the impact that is subject to the function of DPI own.And the embodiment of the present invention obtains domain name mapping request by DNS, can obtain accurately, all sidedly all domain name mapping requests, make the correct execution of Web Cache business.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if these amendments of the present invention and within modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.

Claims (14)

1. a method for data access, is characterized in that, described method comprises:
Domain name server (DNS) receives the domain name mapping request that client sends, and according to the corresponding relation of the domain-name information of having stored and buffer memory Cache servers IP address, Cache servers IP address corresponding to domain-name information in nslookup analysis request;
DNS is carried at the Cache servers IP address inquiring in domain name mapping result and returns to client, and instruction client is according to the Cache servers IP address receiving, to corresponding Cache servers visit data;
Described corresponding relation is that DNS sends domain-name information to Cache servers, and indicates Cache servers to download and generate after the data that the domain-name information that receives is corresponding are preserved in this locality.
2. the method for claim 1, is characterized in that, described corresponding relation specifically generates in the following manner:
DNS sends predefined domain-name information to Cache servers;
Cache servers parse corresponding IP address according to the domain-name information that receives, according to the IP address parsing downloading data be kept at this locality from corresponding network element;
The corresponding relation that downloads to domain-name information corresponding to local data and Cache servers IP address is returned to DNS by Cache servers.
3. method as claimed in claim 2, is characterized in that, after described corresponding relation is sent to DNS by Cache servers, and before the domain name mapping request of DNS reception client transmission, described method also comprises:
DNS is correspondence setting the first duration receiving;
Cache servers IP address corresponding to domain-name information in DNS nslookup analysis request, specifically comprises:
DNS judges what whether domain name analysis request received in the first duration receiving after described corresponding relation, if so, according to Cache servers IP address corresponding to domain-name information in the corresponding relation nslookup analysis request receiving.
4. method as claimed in claim 2, is characterized in that, DNS sends predefined domain-name information to Cache servers, specifically comprises:
DNS carries the mark of data download message in the message type field of the header of protocol massages, and predefined domain-name information is carried in the data field of report body, sends to Cache servers;
Described corresponding relation is returned to DNS by Cache servers, specifically comprises:
Cache servers carry the mark of corresponding relation feedback message in the message type field of the header of protocol massages, and the corresponding relation of domain-name information and Cache servers IP address are carried in the data field of report body, return to DNS.
5. method as claimed in claim 4, is characterized in that,
In the time that DNS sends predefined domain-name information by protocol massages to Cache servers, the second duration carrying in the life span ttl field of header represents the duration of corresponding relation buffer memory in DNS;
In the time that Cache servers send described corresponding relation by protocol massages to DNS, the 3rd duration carrying in the life span ttl field of header represents the duration that the data of Cache servers download are preserved in this locality.
6. the method for claim 1, is characterized in that, the domain-name information that DNS sends to Cache servers is determined in the following manner:
DNS a the domain-name information that periodically read access number of times is maximum, the access times of domain-name information are that the quantity statistics of setting the domain-name information in the domain name mapping request that in duration, DNS receives is determined;
DNS determines a predefined b domain-name information, and using a described a domain-name information and b domain-name information as the domain-name information that sends to Cache servers;
Or
DNS A the IP address that periodically read access number of times is maximum, the access times of IP address are that the quantity statistics of the IP address that the domain-name information in the domain name mapping request that in setting duration, DNS receives is corresponding is determined;
DNS determines predefined B IP address, and using domain-name information corresponding to described A IP address and B IP address as the domain-name information that sends to Cache servers.
7. method as claimed in claim 6, is characterized in that, described method also comprises:
If DNS sends to and has default not allowing at local domain-name information corresponding to data of preserving of Cache servers in the domain-name information of Cache servers, DNS does not allow to be sent giving described in removing in the domain-name information of Cache servers at local domain-name information corresponding to data of preserving of Cache servers.
8. a system for data access, is characterized in that, described system comprises:
Client, for sending domain name mapping request and acceptance domain name analysis result, and according to the Cache servers IP address of carrying in domain name mapping result, to corresponding Cache servers visit data;
Domain name server (DNS), for sending domain-name information to buffer memory Cache servers, receive the corresponding relation of this domain-name information and Cache servers IP address, and the domain name mapping request of reception client transmission, according to the described corresponding relation of having stored, Cache servers IP address corresponding to domain-name information in nslookup analysis request, and the Cache servers IP address inquiring is carried in domain name mapping result and returns to client;
Cache servers, for receiving after the domain-name information of DNS transmission, preserve data corresponding to domain-name information that receive in this locality, and the access of customer in response end to data.
9. system as claimed in claim 8, is characterized in that,
Described DNS, also be used to correspondence setting the first duration receiving, and in the time receiving domain name mapping request, judge what whether this domain name mapping request received in the first duration receiving after described corresponding relation, if so, the Cache servers IP address corresponding according to the domain-name information in described corresponding relation nslookup analysis request.
10. system as claimed in claim 8, is characterized in that,
Described DNS, specifically for a the domain-name information that periodically read access number of times is maximum, determine a predefined b domain-name information, and using a described a domain-name information and b domain-name information as the domain-name information that sends to Cache servers, wherein, the access times of domain-name information are that the quantity statistics of setting the domain-name information in the domain name mapping request that in duration, DNS receives is determined; Or
Specifically for A the IP address that periodically read access number of times is maximum, determine predefined B IP address, and using domain-name information corresponding to described A IP address and B IP address as the domain-name information that sends to Cache servers, wherein, the access times of IP address are that the quantity statistics of setting the IP address that domain-name information in the domain name mapping request that DNS receives in duration is corresponding is determined.
11. 1 kinds of name servers, is characterized in that, comprising:
Corresponding relation respond module, for sending domain-name information to Cache servers, and preserves after the data that the domain-name information that receives is corresponding the corresponding relation of storage domain name information and Cache servers IP address Cache servers are local;
Request receiving module, the domain name mapping request sending for receiving client;
Enquiry module, the corresponding relation of having stored for basis, Cache servers IP address corresponding to domain-name information in nslookup analysis request;
Result is returned to module, for the Cache servers IP address inquiring is carried to domain name mapping result and returns to client.
12. name servers as claimed in claim 11, is characterized in that,
Described corresponding relation respond module, is also used to correspondence setting the first duration receiving;
Described enquiry module, specifically for judging what whether domain name analysis request received in the first duration receiving after described corresponding relation, if so, according to Cache servers IP address corresponding to domain-name information in the corresponding relation nslookup analysis request receiving.
13. name servers as claimed in claim 11, is characterized in that, domain name server also comprises:
Domain-name information determination module, for a the domain-name information that periodically read access number of times is maximum, determine a predefined b domain-name information, using a described a domain-name information and b domain-name information as sending to the domain-name information of Cache servers and triggering corresponding relation respond module, wherein, the access times of domain-name information are that the quantity statistics of setting the domain-name information in the domain name mapping request that in duration, DNS receives is determined; Or
Specifically for A the IP address that periodically read access number of times is maximum, determine predefined B IP address, using domain-name information corresponding to described A IP address and B IP address as sending to the domain-name information of Cache servers and triggering corresponding relation respond module, wherein, the access times of IP address are that the quantity statistics of setting the IP address that domain-name information in the domain name mapping request that DNS receives in duration is corresponding is determined.
14. 1 kinds of buffer memory Cache servers, is characterized in that, comprising:
Domain-name information receiver module, the domain-name information sending for receiving name server;
Data are preserved module, for downloading and preserve in this locality data corresponding to domain-name information that receive;
Request respond module, the access for customer in response end to data;
Corresponding relation returns to module, for the corresponding relation that downloads to domain-name information corresponding to local data and Cache servers IP address is returned to DNS.
CN201010612005.1A 2010-12-29 2010-12-29 Method, system and device for data access Active CN102571997B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010612005.1A CN102571997B (en) 2010-12-29 2010-12-29 Method, system and device for data access

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010612005.1A CN102571997B (en) 2010-12-29 2010-12-29 Method, system and device for data access

Publications (2)

Publication Number Publication Date
CN102571997A CN102571997A (en) 2012-07-11
CN102571997B true CN102571997B (en) 2014-09-10

Family

ID=46416455

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010612005.1A Active CN102571997B (en) 2010-12-29 2010-12-29 Method, system and device for data access

Country Status (1)

Country Link
CN (1) CN102571997B (en)

Families Citing this family (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102301682B (en) * 2011-04-29 2014-02-19 华为技术有限公司 Method and system for network caching, domain name system redirection sub-system thereof
CN102843445B (en) * 2012-09-29 2016-01-13 北京奇虎科技有限公司 A kind of browser and carry out the method for domain name mapping
CN103825919B (en) * 2012-11-16 2017-06-20 中国移动通信集团北京有限公司 A kind of method, the apparatus and system of data cached resource
CN103905574B (en) * 2012-12-27 2017-09-08 中国移动通信集团公司 A kind of DNS Operational Visits method, DNS data synchronous method and equipment
CN104079534B (en) * 2013-03-27 2017-11-03 中国移动通信集团北京有限公司 A kind of HTTP cache implementing methods and system
CN104144123B (en) * 2013-05-10 2017-06-16 中国电信股份有限公司 Access method, system and the route type gateway apparatus of internet
CN104184841B (en) * 2013-05-23 2018-01-12 上海携程商务有限公司 Website dns resolution accelerated method and client
CN104427011B (en) * 2013-09-02 2019-03-22 中兴通讯股份有限公司 The method and domain name cache server of domain name mapping
CN104519148B (en) * 2013-09-30 2019-02-26 中国电信股份有限公司 The accessible detecting method and system of application server address
CN104702706B (en) * 2013-12-04 2018-05-11 中国移动通信集团公司 A kind of method and apparatus of acquisition DNS messages
CN104702705B (en) * 2013-12-04 2019-05-24 中国移动通信集团公司 A kind of domain name analytic method, equipment and system
CN103701957A (en) * 2014-01-14 2014-04-02 互联网域名系统北京市工程研究中心有限公司 Domain name server (DNS) recursive method and system thereof
CN105100174A (en) * 2014-05-22 2015-11-25 中国移动通信集团公司 Method, device and system for scheduling Internet resource
CN105704171B (en) * 2014-11-25 2020-07-28 北京奇虎科技有限公司 System and method for realizing CDN access
CN104935683A (en) * 2015-06-29 2015-09-23 北京经天科技有限公司 Buffer processing method and device for domain name resolution
CN105187384B (en) * 2015-08-06 2019-01-29 广州飞米电子科技有限公司 Flight control method and device, electronic equipment
CN105704246A (en) * 2016-04-12 2016-06-22 上海斐讯数据通信技术有限公司 Network distribution device and method based on SDN architecture
CN108270683A (en) * 2016-12-30 2018-07-10 华为软件技术有限公司 Flow optimization method, cache server and system under DNS forthright scenes
CN107707373B (en) * 2017-02-21 2018-08-17 贵州白山云科技有限公司 A kind of dynamic resource access accelerated method based on API request
CN110519411A (en) * 2019-09-03 2019-11-29 广州小鹏汽车科技有限公司 A kind of data download method and system
CN110535982B (en) * 2019-09-05 2023-04-07 赛尔网络有限公司 Ranking statistical method, device, system and medium based on DNS over TLS
CN110784553B (en) * 2019-11-05 2021-12-21 南京亚信智网科技有限公司 Message encapsulation method, device and domain name resolution system
CN112800470A (en) * 2021-02-20 2021-05-14 和芯星通科技(北京)有限公司 Management method and system of differential data, server and client
CN113726904A (en) * 2021-09-03 2021-11-30 杭州安恒信息技术股份有限公司 Server proxy method, device, equipment and computer readable storage medium
CN114124893A (en) * 2021-11-24 2022-03-01 广州方硅信息技术有限公司 Domain name caching method, device, system, storage medium and computer equipment
CN114338604B (en) * 2021-12-31 2024-04-12 北京奇艺世纪科技有限公司 DNS configuration updating method and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101272407A (en) * 2008-04-28 2008-09-24 杭州华三通信技术有限公司 Caching detecting method, caching detecting device and detection responding device for domain name system
CN101827136A (en) * 2010-03-30 2010-09-08 联想网御科技(北京)有限公司 Defense method for domain name system server buffer infection and network outlet equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8204082B2 (en) * 2000-06-23 2012-06-19 Cloudshield Technologies, Inc. Transparent provisioning of services over a network

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101272407A (en) * 2008-04-28 2008-09-24 杭州华三通信技术有限公司 Caching detecting method, caching detecting device and detection responding device for domain name system
CN101827136A (en) * 2010-03-30 2010-09-08 联想网御科技(北京)有限公司 Defense method for domain name system server buffer infection and network outlet equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
文秀林.Web代理服务器的研究与实现.《万方》.2010, *

Also Published As

Publication number Publication date
CN102571997A (en) 2012-07-11

Similar Documents

Publication Publication Date Title
CN102571997B (en) Method, system and device for data access
US10791190B2 (en) Systems and methods for avoiding server push of objects already cached at a client
CN103023768B (en) Edge routing node and its method from multi-source prefetching content
CA2703262C (en) Network event triggered software updates
CN103905397B (en) Data synchronization method and system
US8577992B1 (en) Request routing management based on network components
US9237210B2 (en) Internet access method, terminal and storage medium
CN102984286B (en) Method and device and system of domain name server (DNS) for buffering updating
CN102469167B (en) Domain name query implementing method and system
CN109067930A (en) Domain name cut-in method, domain name analytic method, server, terminal and storage medium
CN102932498A (en) Virtual machine internet protocol (IP) resource management method of cloud computing platform
CN103167045B (en) Select method, dns server and the DNS management system of network layer protocol
CN103581765B (en) The method and apparatus that a kind of message forwards
CN104394182A (en) Method for realizing content delivery network acceleration and source server
CN112073545B (en) MP-TCP capability for transmitting server devices using DNS
CN109729183A (en) Request processing method, device, equipment and storage medium
CN108989487A (en) CDN Optimization Scheduling based on local dns
CN103957289B (en) A kind of DNSSEC analytic methods based on complex network
CN108111639A (en) A kind of method and system for improving domain name system availability
CN103685584A (en) Method and system of resisting domain name hijacking based on tunnelling
CN103095608B (en) A kind of agency retransmission method of DNS data bag
CN109347996A (en) A kind of DNS domain name acquisition system and method
CN105491110B (en) Root server extended method and network based on HTTP or HTTPS
CN104486247A (en) Data transmission method and device based on serial server
CN107222588A (en) A kind of method and system of raising DNS availabilities

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant