CN107071091B - A kind of implementation method optimizing DNS name resolution - Google Patents
A kind of implementation method optimizing DNS name resolution Download PDFInfo
- Publication number
- CN107071091B CN107071091B CN201710385407.4A CN201710385407A CN107071091B CN 107071091 B CN107071091 B CN 107071091B CN 201710385407 A CN201710385407 A CN 201710385407A CN 107071091 B CN107071091 B CN 107071091B
- Authority
- CN
- China
- Prior art keywords
- ldns
- journal file
- implementation method
- data frame
- address
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention provides the implementation method of optimization DNS name resolution, WEB server saves client ip address corresponding to HTTP request and UUID in the form of the first journal file;Authoritative DNS saves the IP address of LDNS and UUID in the form of the second journal file;It is performed an analysis respectively to the first journal file and the second journal file using data analysis tool, third data frame is formed by union operation, and it is formed by the standard deviation data of client ip address during from browser initiation WEB request in response user to LDNS by third data frame, the LDNS scheduling strategy after output optimization is simultaneously sent to authoritative DNS.In the present invention, when the outlet IP address of user and LDNS be not at same geographical location, it can be evaluated by the history to LDNS using data, to be CDN server for client be matched to most reasonable edge node server carry out rationalize dispatch provide reliable reference, improve efficiency and accuracy that CDN server dispatches edge node server.
Description
Technical field
The present invention relates to internet domain name analytic technique field more particularly to a kind of realization sides for optimizing DNS name resolution
Method.
Background technique
Domain name is a string by a name for segmentation, represents the title of a certain or a certain group computer on internet, shape
Such as: www.google.com.The effect of domain name mapping is exactly to carry out domain name and the address (Internet Protocol) IP mutually
Mapping, make one not spend remember obscure IP address (shaped like: 64.233.189.101), the access internet of more convenient and quicker takes
Business.
With the development of internet technology, a large amount of such as picture, music, video, file download content service emerge in large numbers, and are
High reliability and high performance service are provided the user with, CDN (Content Delivery Network) technology is come into being.It is interior
Hold service provider (popular title website) when using CDN service, needs to carry out the domain name of this website in its domain name trustship quotient primary
Domain name request after CNAME (such as www.baidu.com CNAME to www.baidu.com.51cache.com), such CNAME
Just the dns server being directed toward in CDN network.The dns server is responsible for original domain name mapping IP address, wherein IP address
It is the address of the fringe node of CDN network, these fringe nodes have cached the content of content service provider, so that user can enjoy
The service of high quality.
For user when accessing internet, local ISP can distribute a LDNS automatically.LDNS is responsible for user's recursion resolution domain
Name, therefore the dns server in CDN network is using the geographical location where LDNS, by the user of content service provider be dispatched to
CDN fringe node similar in the geographical location LDNS.
Standard LDNS obtains IP address corresponding to domain name first from caching, then can be by if caching is not hit
Grade initiates recursive query, finally returns that domain name mapping result.However some lesser operators may only provide domain name caching clothes
The inquiry request, when the domain name of access is not hit in the buffer, is transmitted to the server for having recursive facility by business, however
The outlet IP address of the recursion server and operator where netizen may be inconsistent, and resulting in authoritative DNS in this way is user
It is judged by accident in edges matched node server.Such erroneous judgement is especially apparent in the defects of CDN network, for example, will cause
There is service congestion in part edge node server in the edge node server of different geographical and other fringe nodes take
There is the case where underload work in business device, to cause the limitation of Internet resources, and will cause the decline of user experience.
In view of this, it is necessary to the implementation method of DNS name resolution in the prior art is improved, it is above-mentioned to solve
Problem.
Summary of the invention
It is an object of the invention to disclose a kind of implementation method for optimizing DNS name resolution, to solve the outlet of user
Not at same geographical location, CDN server can not be matched to most reasonable fringe node clothes for client by IP address and LDNS
The problem of business device, improves user to improve the efficiency and scheduling accuracy to edge node server scheduling of CDN server
Experience solves the problems, such as that network congestion balanced can not be used with Internet resources.
To achieve the above object, the present invention provides a kind of implementation methods for optimizing DNS name resolution, including following step
It is rapid:
S1, user initiate from browser to the access request of the website of specified URL, and browser initiates to seal to WEB server
WEB request equipped with UUID;
S2, LDNS initiate recursive query request to authoritative DNS, and parsing is packaged with the URL of UUID;
S3, WEB server are by client ip address corresponding to HTTP request and UUID in the form of the first journal file
It saves to persistent storage medium;
S4, authority DNS, which save the IP address of LDNS and UUID in the form of the second journal file to persistent storage, to be situated between
Matter;
S5, netizen included in the first journal file and the second journal file is exported respectively using data analysis tool
IP address is analyzed with LDNS Regional Distribution, is formatted respectively with the first data frame of formation and the second data frame, and with
UUID merges operation to first data frame and the second data frame as publicly-owned key to form third data frame, and passes through
Third data frame is formed by client ip address during initiating WEB request from browser in response user to LDNS
Standard deviation data, to export the LDNS scheduling strategy after optimization and be sent to authoritative DNS, after the authority DNS is according to optimization
LDNS scheduling strategy is that user matches with the affiliated region of user apart from nearest edge node server.
As a further improvement of the present invention, the data analysis tool includes: pandas, MapReduce or spark
Big data analysis platform.
As a further improvement of the present invention, the LDNS scheduling strategy is saved in the form of database to authoritative DNS.
As a further improvement of the present invention, the database includes MYSQL database or ORACLE database.
As a further improvement of the present invention, first journal file and the second journal file be configured as txt file,
Log file or interactive list.
As a further improvement of the present invention, the persistent storage medium includes that mechanical disk, solid state hard disk, Ceph are deposited
Storage device, NAS storage device, SAN storage device, NVDIMM system or RAID.
As a further improvement of the present invention, the threshold value of the standard deviation data is set as 0.3.
Compared with prior art, the beneficial effects of the present invention are: in the present invention, when the outlet IP address and LDNS of user
It not at same geographical location, can be evaluated by the history to LDNS using data, to be CDN server be client
Be matched to most reasonable edge node server carry out rationalize scheduling provide reliable reference, to improve CDN service
The efficiency and scheduling accuracy to edge node server scheduling of device, improve user experience, solve network congestion and net
Network resource can not balanced the problem of using.
Detailed description of the invention
Fig. 1 is a kind of timing diagram of implementation method for optimizing DNS name resolution of the present invention in step sl;
Fig. 2 is a kind of flow chart for the implementation method for optimizing DNS name resolution of the present invention;
Fig. 3 is to convert obtained first data frame through authoritative DNS;
Fig. 4 is to convert obtained second data frame through WEB server;
Fig. 5 is that union operation is formed by third data frame;
Fig. 6 is that third data frame is distributed opposite collection during responding user and initiating WEB request from browser to LDNS
In example;
Fig. 7 is that third data frame is distributed opposite point during responding user and initiating WEB request from browser to LDNS
Scattered example.
Specific embodiment
The present invention is described in detail for each embodiment shown in reference to the accompanying drawing, but it should be stated that, these
Embodiment is not limitation of the present invention, those of ordinary skill in the art according to these embodiments made by function, method,
Or equivalent transformation or substitution in structure, all belong to the scope of protection of the present invention within.
It please join Fig. 1 to a kind of a kind of specific implementation for the implementation method for optimizing DNS name resolution of the present invention illustrated in fig. 7
Mode.
In the present embodiment, the implementation method of the optimization DNS name resolution, comprising the following steps:
Firstly, execute step S1, user initiates from browser to the access request of the website of specified URL, browser is to WEB
Server initiates the WEB request for being packaged with UUID.
At this point, browser can after loading page one unique identification of dynamic generation, i.e. UUID.At this point, passing through browser
The WEB request for being packaged with UUID is initiated to WEB server.Specifically, being packaged with the domain name of the WEB request of UUID are as follows:
Www.4651273791321.51cache.com, wherein this 4651273791321 is UUID.
Specifically, as shown in connection with fig. 1, user 10 inputs the URL of the website wanted access in browser 20, for example,
www.51cache.com.Browser 20 initiates WEB request to WEB server 30.Then, WEB server 30 is returned to browser 20
Return the html page comprising javascript script.Javascript script generates UUID, and initiates again to WEB server 30
It is packaged with the WEB request of UUID.Next, returning to the LDNS and outlet that the user uses from WEB server 30 to browser 20
IP address, and shown eventually by browser 20 to user 10, and be specially that WEB page is showed into user.
Recursive query request is initiated to authoritative DNS next, executing step S2, LDNS, parsing is packaged with the URL of UUID.
Recursive query is the query pattern of DNS a kind of, and is suitable for LDNS or authority DNS.The DNS service under the mode of recursive query
After device receives the domain name request of the initiation of user 10, it is necessary to reply user 10 using an accurate query result.If DNS exists
Local no storage DNS information to be checked, then the server can inquire other servers, and the query result of return is submitted
To user 10.
Next, executing step S3, WEB server 30 for client ip address corresponding to HTTP request and UUID with the
The form of one journal file is saved to persistent storage medium.The persistent storage medium includes that mechanical disk, solid-state are hard
Disk, Ceph storage device, NAS storage device, SAN storage device, NVDIMM system or RAID, and preferably NAS storage dress
It sets.First journal file is configured as txt file, log file or interactive list, and most preferably txt file.txt
There is file memory space to occupy smaller, the stronger advantage of data exchange capability, be conducive to save Internet resources.
Next, executing step S4, authority DNS saves the IP address of LDNS and UUID in the form of the second journal file
To persistent storage medium.Likewise, txt file, log file or interaction should can also be configured to the second journal file
Formula list, and preferably again txt file.
In conjunction with shown in Fig. 4 to Fig. 7, finally, execute S5, using data analysis tool respectively to the first journal file and second
Netizen included in journal file exports IP address and analyzes with LDNS Regional Distribution, is formatted respectively to form first
Data frame (ginseng Fig. 3 shown in) and the second data frame (shown in ginseng Fig. 4), and using UUID as publicly-owned key to first data frame with
Second data frame merges operation to form third data frame (shown in ginseng Fig. 5), and passes through third data frame to LDNS in sound
The standard deviation data of client ip address is formed by during from browser initiation WEB request using family, it is excellent to export
LDNS scheduling strategy after change is simultaneously sent to authoritative DNS, and the authority DNS is user according to the LDNS scheduling strategy after optimization
It allots with the affiliated region of user apart from nearest edge node server.Wherein, publicly-owned key is publicly-owned column name.
In the present embodiment, which includes: pandas, MapReduce or spark big data analysis
Platform.The LDNS scheduling strategy is saved in the form of database to authoritative DNS.Further, which includes MYSQL data
Library or ORACLE database, and preferably MYSQL database.
When accessing the website by user 10, WEB server 30 and authority DNS's is formed by the first journal file and the
Two journal files (ring the outlet IP address of user 10 and the region of LDNS using the Data analysis library pandas of Python
Geographical location where the LDNS for the http response server provided to particular station initiated using family 10) it analyzes;When
So, in the present embodiment, it is also possible to which the MapReduce frame of hadoop is distinguished using spark big data analysis platform
IP address is exported with netizen included in the second journal file to the first journal file to analyze with LDNS Regional Distribution.?
In this specification, term " netizen " and term " user " have equivalents.Pandas, which is provided, quickly and easily to be handled
The data structure and function of structural data, such as data frame (Dataframe).In the present embodiment, so-called first data frame,
Second data frame and third data frame are all a kind of data structure of Form, and be configured with computing function platform,
Device or terminal read, store and calculate.
Third data frame makees grouping operation with the value that the IP address of LDNS is publicly-owned key, to calculate the standard of each LDNS
Difference.Standard deviation can accurately reflect the source discrete case of LDNS.When discrete value is higher, if the geographical location of LDNS with
Source compare concentration geographical location it is inconsistent when, then illustrate the edge that CDN server is matched to by the client of user 10
Node server not the same geographical location or mutual geographical location farther out, will lead to LDNS in this way to user's 10
Response occurs postponing and network congestion, thus be CDN server be client be matched to most reasonable edge node server into
Row rationalizes scheduling and provides reliable reference, improves to the LDNS accuracy being scheduled and reasonability.Specifically, described
The threshold value of standard deviation data is set as 0.3.
In the present embodiment, by calculating standard deviation corresponding to each LDNS, those sources is excavated and compare concentration
And with those of the inconsistent LDNS in the affiliated region LDNS.The DNS scheduling strategy for producing optimization is used for authoritative DNS, tactful
Data organization form is file, such as { LDNS:TEL-Shanghai-Shanghai;TO:CNC-Hangzhou-Zhejiang }, it should
Strategy is indicated the node under the netizen's access scheduling to Hangzhou connection for having used Shanghai Telecom.Wherein, " TEL " representative " electricity
Letter ", " CNC " representative " connection ".
Join shown in Fig. 6, solving standard deviation to number of samples accounting in the third data frame, (standard deviation is able to reflect sample
Several dispersion).As shown in fig. 6, the sample difference of Beijing connection is 0.49, the sample Relatively centralized is indicated, and accounting is most
More samples and LDNS belong to a region and carrier network, illustrate that this LDNS is more excellent to the response condition of user 10, because
It is that user 10 readjusts LDNS that this, which does not need authoritative DNS,.
Join shown in Fig. 7, equally, standard deviation, the sample of Shanghai Telecom is solved to number of samples accounting in the third data frame
Standard deviation is 0.36, indicates the sample Relatively centralized;And the most sample of accounting and LDNS do not belong to a region and operation
Quotient's network, the service scenario for illustrating that the LDNS in this region makes a response user 10 are poor.Thus, we can will come from
Node of the flow scheduling caused by access request of the user of Shanghai Telecom to the website of specified URL to Hangzhou connection.
In implementation process, different regions can set the threshold value of different standard deviations.When to the first journal file and second
When journal file is analyzed in real time, when calculated standard deviation is more than the threshold value, triggering scheduling system generates scheduling strategy for authority
DNS is used, to improve the efficiency and scheduling accuracy to edge node server scheduling of CDN server, improves use
Family experience solves the problems, such as that network congestion balanced can not be used with Internet resources.
The series of detailed descriptions listed above only for feasible embodiment of the invention specifically
Protection scope bright, that they are not intended to limit the invention, it is all without departing from equivalent implementations made by technical spirit of the present invention
Or change should all be included in the protection scope of the present invention.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie
In the case where without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter
From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power
Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims
Variation is included within the present invention.Any reference signs in the claims should not be construed as limiting the involved claims.
In addition, it should be understood that although this specification is described in terms of embodiments, but not each embodiment is only wrapped
Containing an independent technical solution, this description of the specification is merely for the sake of clarity, and those skilled in the art should
It considers the specification as a whole, the technical solutions in the various embodiments may also be suitably combined, forms those skilled in the art
The other embodiments being understood that.
Claims (7)
1. a kind of implementation method for optimizing DNS name resolution, which comprises the following steps:
S1, user initiate from browser to the access request of the website of specified URL, and browser is packaged with to WEB server initiation
The WEB of UUID is requested;
S2, LDNS initiate recursive query request to authoritative DNS, and parsing is packaged with the URL of UUID;
S3, WEB server save client ip address corresponding to HTTP request and UUID in the form of the first journal file
To persistent storage medium;
S4, authority DNS save the IP address of LDNS and UUID in the form of the second journal file to persistent storage medium;
S5, using data analysis tool respectively to subscriber's outlet IP included in the first journal file and the second journal file
Location is analyzed with LDNS Regional Distribution, is formatted respectively to form the first data frame and the second data frame, and made with UUID
Operation is merged to first data frame and the second data frame for publicly-owned key to form third data frame, third data frame with
The IP address of LDNS is that the value of publicly-owned key makees grouping operation, to calculate the standard deviation of each LDNS, obtains LDNS and uses in response
Family is in the standard deviation data for initiating to be formed by client ip address during WEB request from browser, after output optimization
LDNS scheduling strategy and be sent to authoritative DNS, the authority DNS is matched according to the LDNS scheduling strategy after optimization for user
With the affiliated region of user apart from nearest edge node server.
2. implementation method according to claim 1, which is characterized in that the data analysis tool are as follows: pandas,
MapReduce spark big data analysis platform.
3. implementation method according to claim 1, which is characterized in that the LDNS scheduling strategy is protected in the form of database
It deposits to authoritative DNS.
4. implementation method according to claim 3, which is characterized in that the database be MYSQL database or
ORACLE database.
5. implementation method according to claim 1, which is characterized in that first journal file and the second journal file quilt
It is configured to txt file, log file or interactive list.
6. according to claim 1 or implementation method described in 5, which is characterized in that the persistent storage medium is mechanical magnetic
Disk, solid state hard disk, Ceph storage device, NAS storage device, SAN storage device, NVDIMM system or RAID.
7. implementation method according to claim 1, which is characterized in that the threshold value of the standard deviation data is set as 0.3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710385407.4A CN107071091B (en) | 2017-05-26 | 2017-05-26 | A kind of implementation method optimizing DNS name resolution |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710385407.4A CN107071091B (en) | 2017-05-26 | 2017-05-26 | A kind of implementation method optimizing DNS name resolution |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107071091A CN107071091A (en) | 2017-08-18 |
CN107071091B true CN107071091B (en) | 2019-03-12 |
Family
ID=59610861
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710385407.4A Active CN107071091B (en) | 2017-05-26 | 2017-05-26 | A kind of implementation method optimizing DNS name resolution |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107071091B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110535930A (en) | 2019-08-22 | 2019-12-03 | 网宿科技股份有限公司 | A kind of dispatching method and system of edge C DN node |
CN112866424A (en) * | 2019-11-28 | 2021-05-28 | 华为技术有限公司 | Domain name query method and related equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1581114A (en) * | 2003-08-14 | 2005-02-16 | 华为技术有限公司 | Analysis method for user's request |
CN101005369A (en) * | 2006-01-19 | 2007-07-25 | 深圳市瑞福特信息技术有限公司 | Distritive content sending net and distributive content sending and up transfering method |
WO2012083800A1 (en) * | 2010-12-22 | 2012-06-28 | 华为技术有限公司 | Routing method based on content delivery network and device and system thereof |
CN105959433A (en) * | 2016-07-22 | 2016-09-21 | 无锡华云数据技术服务有限公司 | Domain name resolution method and domain name resolution system |
-
2017
- 2017-05-26 CN CN201710385407.4A patent/CN107071091B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1581114A (en) * | 2003-08-14 | 2005-02-16 | 华为技术有限公司 | Analysis method for user's request |
CN101005369A (en) * | 2006-01-19 | 2007-07-25 | 深圳市瑞福特信息技术有限公司 | Distritive content sending net and distributive content sending and up transfering method |
WO2012083800A1 (en) * | 2010-12-22 | 2012-06-28 | 华为技术有限公司 | Routing method based on content delivery network and device and system thereof |
CN105959433A (en) * | 2016-07-22 | 2016-09-21 | 无锡华云数据技术服务有限公司 | Domain name resolution method and domain name resolution system |
Also Published As
Publication number | Publication date |
---|---|
CN107071091A (en) | 2017-08-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11632353B2 (en) | Delegating DNS records to additional providers | |
CN105959433B (en) | A kind of domain name analytic method and its domain name analysis system | |
CN103281409B (en) | Based on mobile Internet domain name analytic method and the dns server of Transmission Control Protocol | |
Chen et al. | End-user mapping: Next generation request routing for content delivery | |
CN106302842B (en) | Domain name resolution method, device and system | |
TWI657682B (en) | Method and system for realizing precise dispatch request on content distribution network (CDN) | |
CN107395683B (en) | Method for selecting return path and server | |
US8321503B2 (en) | Context-specific network resource addressing model for distributed services | |
JP5788497B2 (en) | Operating method, system, and computer program | |
US20170244616A1 (en) | Unobtrusive Methods and Systems for Collecting Information Transmitted over a Network | |
CN107135236A (en) | A kind of detection method and system of target Domain Hijacking | |
CN108848205B (en) | CNAME domain name resolution method for distinguishing IPv4 and IPv6 | |
CN102546854A (en) | Domain name analysis method for building hyper text transport protocol (HTTP) connection for domain name and server | |
CN112333299B (en) | Domain name resolution method, configuration method and equipment | |
CN109327559B (en) | Domain name resolution method and device based on hybrid cloud platform | |
US20140149578A1 (en) | Method For Testing Methods of Accelerating Content Delivery | |
CN103873604A (en) | Network access method based on analysis of CDN data | |
CN107071091B (en) | A kind of implementation method optimizing DNS name resolution | |
CN109756584A (en) | Domain name analytic method, domain name mapping device and computer readable storage medium | |
US20090259666A1 (en) | Unobtrusive methods and systems for collecting information transmitted over a network | |
WO2017166524A1 (en) | Domain name parsing method and apparatus | |
Li et al. | CDN-hosted domain detection with supervised machine learning through DNS records | |
CN113055420B (en) | HTTPS service identification method and device and computing equipment | |
WO2021196446A1 (en) | Method and device for analyzing content delivery network scheduling process, and electronic apparatus | |
US11297131B2 (en) | Method and apparatus for multi-vendor GTM fabric |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: 214125 Wuxi science and Technology Park, Jiangsu Binhu District No. 6 Patentee after: Huayun data holding group Co., Ltd Address before: 214125 Wuxi science and Technology Park, Jiangsu Binhu District No. 6 Patentee before: WUXI CHINAC DATA TECHNICAL SERVICE Co.,Ltd. |
|
CP01 | Change in the name or title of a patent holder |