CN105262857A - DNS relay function acceleration method and device - Google Patents

DNS relay function acceleration method and device Download PDF

Info

Publication number
CN105262857A
CN105262857A CN201510737267.3A CN201510737267A CN105262857A CN 105262857 A CN105262857 A CN 105262857A CN 201510737267 A CN201510737267 A CN 201510737267A CN 105262857 A CN105262857 A CN 105262857A
Authority
CN
China
Prior art keywords
dns
tandem gateway
list
response time
length
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.)
Pending
Application number
CN201510737267.3A
Other languages
Chinese (zh)
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.)
BEIJING OPZOON TECHNOLOGY Co Ltd
Opzoon Technology Co Ltd
Original Assignee
BEIJING OPZOON TECHNOLOGY 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 BEIJING OPZOON TECHNOLOGY Co Ltd filed Critical BEIJING OPZOON TECHNOLOGY Co Ltd
Priority to CN201510737267.3A priority Critical patent/CN105262857A/en
Publication of CN105262857A publication Critical patent/CN105262857A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • H04L43/0864Round trip delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a DNS relay function acceleration method. The method is characterized in that the method comprises steps of S1: accounting the response time m from when a DNS relay gateway sends reports to a DNS server to when the DNS relay gateway receives response reports of the DNS server; and S2: adjusting DNS lists on the DNS relay gateway according to the response time m. In this way, domain name query time is effectively reduced and whole DNS searching efficiency is increased.

Description

A kind of DNS relay function accelerated method and device
Technical field
The present invention relates to network communication technology field, particularly relate to a kind of DNS relay function accelerated method and device.
Background technology
DNS relay function is more common at the current gateway network equipment, principle is, when Intranet pc needs an access network address, the dns server IP address of outer net is used to carry out domain name mapping, if now there is a DNS Tandem Gateway, so this time, Intranet pc directly used from oneself nearest DNS Tandem Gateway as domain name resolution server IP, namely greatly reduce the time of access to netwoks, in this process, when DNS relay services gateway receives the domain name mapping of pc request, first can search the DNS list of DNS relay services gateway this locality, when there is no the data item of this domain name corresponding in the DNS list of this locality, send a DNS request message again and carry out DNS request to upper level dns server gateway or dns server, when request to domain name mapping data are kept at this locality, and return to PC dns resolution result, if when now having PC to carry out asking this domain name again, DNS domain name data will be got on local gateway device, just greatly reduce the time that pc asks DNS data, the principle of Here it is DNS relaying, the present invention uses a kind of network detection method, carry out data transmission period detection between DNS gateway and dns server, according to the duration of Internet Transmission, contrast with the matching speed of searching of local list, the size of real-time change local dns list, the performance of overall DNS relaying is improved with this.
Summary of the invention
In order to improve the speed of overall dns lookup, the present invention proposes a kind of DNS relay function accelerated method and device, concrete scheme is as follows:
A kind of DNS relay function accelerated method, it is characterized in that, described method comprises:
S1, add up and send message from DNS Tandem Gateway to dns server, receive the response time m of the back message of described dns server to described DNS Tandem Gateway;
S2, according to described response time m, the DNS list on described DNS Tandem Gateway to be adjusted.
Preferably, statistics sends message from DNS Tandem Gateway to dns server, the response time m of the back message of described dns server is received to described DNS Tandem Gateway, be specially: DNS Tandem Gateway utilizes ping to send probe messages to dns server, when DNS Tandem Gateway receives the response message of dns server response, the response time m during statistics.
Preferably, according to described response time m, the DNS list on described DNS Tandem Gateway is adjusted, be specially: judge whether the length A of current DNS list of DNS Tandem Gateway and the product of deviation factor q are less than response time m, if so, then increase the length of described DNS list; If not, then the length of described DNS list is reduced.
Preferably, described deviation factor q is 0.001.
Preferably, also comprise upon step s 2: S3, n perform step S1 after second.
A kind of DNS relay function accelerator, it is characterized in that, described device comprises:
Statistic unit, sends message from DNS Tandem Gateway to dns server for statistics, receives the response time m of the back message of described dns server to described DNS Tandem Gateway;
Adjustment unit, for the result according to statistic unit, adjusts the DNS list on described DNS Tandem Gateway.
Preferably, described adjustment unit also comprises:
Judgment sub-unit, judges whether the length A of current DNS list of DNS Tandem Gateway and the product of deviation factor q are less than response time m
Perform subelement: when the length A of current DNS list and the product of deviation factor q that judge DNS Tandem Gateway are less than response time m, then increase the length of described DNS list; When the length A of current DNS list and the product of deviation factor q that judge DNS Tandem Gateway are not less than response time m, then reduce the length of described DNS list.
The present invention, by the length of DNS list on dynamic conditioning DNS Tandem Gateway, reduces the inquiry of the domain name time, improves overall dns lookup efficiency.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of a kind of DNS relay function accelerated method provided by the invention.
Fig. 2 is the schematic diagram of a kind of DNS relay function accelerator provided by the invention.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, clear, complete description is carried out to the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on embodiments of the invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 shows the schematic diagram of a kind of DNS relay function accelerated method provided by the invention, and concrete grammar is as described below:
S1, add up and send message from DNS Tandem Gateway to dns server, receive the response time m of the back message of described dns server to described DNS Tandem Gateway.
Usually the connection configuration possessing the network of DNS Tandem Gateway is the DNS name resolution address sensing DNS Tandem Gateway of the network terminal substantially, and dns server is pointed in the DNS name resolution address of DNS Tandem Gateway.What add up in this step is send message from DNS Tandem Gateway to dns server, receives the response time of the back message of described dns server to described DNS Tandem Gateway.
Concrete, add up and send message from DNS Tandem Gateway to dns server, receive the response time m of the back message of described dns server to described DNS Tandem Gateway; Its method can adopt and utilize ping to send probe messages to dns server by DNS Tandem Gateway, when DNS Tandem Gateway receives the response message of dns server response, and the response time during statistics; Also can adopt the transmission domain name inquiry request message from DNS Tandem Gateway to dns server that statistics is the last, receive the response time of the Query Result message that dns server is responded to DNS Tandem Gateway.
S2, according to described response time m, the DNS list on described DNS Tandem Gateway to be adjusted.
Under normal circumstances, along with the continuous increase of the DNS list length on DNS Tandem Gateway, its speed of searching DNS can be slower, if when the speed of dns lookup is less than the time of message transmissions, so just illustrate that this locality of now DNS Tandem Gateway stores excessive, efficiency far below the time that forwarding request message to dns server is searched, therefore this step shortest time of making the network terminal used when inquiring about DNS by the DNS list length on adjustment DNS Tandem Gateway.
Concrete, judge whether the length A of current DNS list of DNS Tandem Gateway and the product of deviation factor q are less than response time m, if so, then increase the length of described DNS list; If not, then the length of described DNS list is reduced.
Namely, as A × q >=m, the length of the DNS list of DNS Tandem Gateway increases Z, as A × q<m, the length of the DNS list of DNS Tandem Gateway reduces Z, and wherein A is the length of the current DNS list of DNS Tandem Gateway, and q is deviation factor, m is the response time, and Z is the length varying value of DNS list.
Z can free setting, also the value of Z can be set as the number of terminals registered on DNS Tandem Gateway.
The preferred value of deviation factor q is q=0.001, and certainly choose and also can change along with the equipment performance height difference of DNS Tandem Gateway, equipment performance is higher, is worth less, and performance is lower, is worth larger.
S3, n perform step S1 after second.Wherein n can freely configure.
Illustrate, for existing DNS Tandem Gateway network, DNS Tandem Gateway performs a ping message, and add up this message from being sent to the message that receives response response time m used, m=0.165 second, 5000 domain-name informations can be stored in the DNS list of current DNS Tandem Gateway, therefore the length A=5000 of DNS list, here choose at deviation factor q and adopt preferred version q=0.001, now A × q>m, so adjustment DNS list length, due to the number of terminals Z=566 now registered on DNS Tandem Gateway, so the DNS list length after adjustment is 5566.
Fig. 2 shows the schematic diagram of a kind of DNS relay function accelerator provided by the invention, described in specific as follows:
Statistic unit, sends message from DNS Tandem Gateway to dns server for statistics, receives the response time m of the back message of described dns server to described DNS Tandem Gateway.
Adjustment unit, for the result according to statistic unit, adjusts the DNS list on described DNS Tandem Gateway.
Judgment sub-unit, judges whether the length A of current DNS list of DNS Tandem Gateway and the product of deviation factor q are less than response time m
Perform subelement: when the length A of current DNS list and the product of deviation factor q that judge DNS Tandem Gateway are less than response time m, then make described DNS list length increase Z; When the length A of current DNS list and the product of deviation factor q that judge DNS Tandem Gateway are not less than response time m, then described DNS list length is made to reduce Z.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of the claims in the present invention.

Claims (7)

1. a DNS relay function accelerated method, is characterized in that, described method comprises:
S1, add up and send message from DNS Tandem Gateway to dns server, receive the response time m of the back message of described dns server to described DNS Tandem Gateway;
S2, according to described response time m, the DNS list on described DNS Tandem Gateway to be adjusted.
2. a kind of DNS relay function accelerated method according to claim 1, it is characterized in that, statistics sends message from DNS Tandem Gateway to dns server, the response time m of the back message of described dns server is received to described DNS Tandem Gateway, be specially: DNS Tandem Gateway utilizes ping to send probe messages to dns server, when DNS Tandem Gateway receives the response message of dns server response, the response time m during statistics.
3. a kind of DNS relay function accelerated method according to claim 1, it is characterized in that, according to described response time m, the DNS list on described DNS Tandem Gateway is adjusted, be specially: judge whether the length A of current DNS list of DNS Tandem Gateway and the product of deviation factor q are less than response time m, if so, the length of described DNS list is then increased; If not, then the length of described DNS list is reduced.
4. a kind of DNS relay function accelerated method according to claim 3, it is characterized in that, described deviation factor q is 0.001.
5. a kind of DNS relay function accelerated method according to claim 1, is characterized in that, also comprise upon step s 2: S3, n perform step S1 after second.
6. a DNS relay function accelerator, is characterized in that, described device comprises:
Statistic unit, sends message from DNS Tandem Gateway to dns server for statistics, receives the response time m of the back message of described dns server to described DNS Tandem Gateway;
Adjustment unit, for the result according to statistic unit, adjusts the DNS list on described DNS Tandem Gateway.
7. a kind of DNS relay function accelerator according to claim 6, it is characterized in that, described adjustment unit also comprises:
Judgment sub-unit, judges whether the length A of current DNS list of DNS Tandem Gateway and the product of deviation factor q are less than response time m
Perform subelement: when the length A of current DNS list and the product of deviation factor q that judge DNS Tandem Gateway are less than response time m, then increase the length of described DNS list; When the length A of current DNS list and the product of deviation factor q that judge DNS Tandem Gateway are not less than response time m, then reduce the length of described DNS list.
CN201510737267.3A 2015-11-04 2015-11-04 DNS relay function acceleration method and device Pending CN105262857A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510737267.3A CN105262857A (en) 2015-11-04 2015-11-04 DNS relay function acceleration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510737267.3A CN105262857A (en) 2015-11-04 2015-11-04 DNS relay function acceleration method and device

Publications (1)

Publication Number Publication Date
CN105262857A true CN105262857A (en) 2016-01-20

Family

ID=55102361

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510737267.3A Pending CN105262857A (en) 2015-11-04 2015-11-04 DNS relay function acceleration method and device

Country Status (1)

Country Link
CN (1) CN105262857A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108848002A (en) * 2018-06-05 2018-11-20 南瑞集团有限公司 A kind of dynamic GSLB processing method based on business delay
CN109398427A (en) * 2018-09-26 2019-03-01 南京铁道职业技术学院 Railway transportation platform and its method for marshalling

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110153807A1 (en) * 2009-12-21 2011-06-23 Lorenzo Vicisano Systems and Methods for Preemptive DNS Resolution
CN103532817A (en) * 2013-10-12 2014-01-22 无锡云捷科技有限公司 CDN (content delivery network) dynamic acceleration system and method
CN103973834A (en) * 2014-05-12 2014-08-06 重庆邮电大学 Domain name resolution (DNS) acceleration method and device based on home gateway

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110153807A1 (en) * 2009-12-21 2011-06-23 Lorenzo Vicisano Systems and Methods for Preemptive DNS Resolution
CN103532817A (en) * 2013-10-12 2014-01-22 无锡云捷科技有限公司 CDN (content delivery network) dynamic acceleration system and method
CN103973834A (en) * 2014-05-12 2014-08-06 重庆邮电大学 Domain name resolution (DNS) acceleration method and device based on home gateway

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108848002A (en) * 2018-06-05 2018-11-20 南瑞集团有限公司 A kind of dynamic GSLB processing method based on business delay
CN108848002B (en) * 2018-06-05 2021-07-16 南瑞集团有限公司 Dynamic GSLB processing method based on service delay
CN109398427A (en) * 2018-09-26 2019-03-01 南京铁道职业技术学院 Railway transportation platform and its method for marshalling

Similar Documents

Publication Publication Date Title
CN103051740B (en) Domain name analytic method, dns server and domain name analysis system
CN101917707B (en) IP addressing method and system for wireless sensor network
RU2010136044A (en) WIRELESS RADIO CONTROL UNITS USING IDENTIFIERS
CN104468866A (en) Fast roaming method for multi-gateway terminal in wireless local area network
CN102843391A (en) Information transmitting method and gateway
CN101262505A (en) A method, system and device for establishing ARP table items
CN112543212B (en) System for providing request response exact communication delay guarantee for distributed service
CN103731902A (en) Method and device for inquiring direct connection communication target terminal information
CN103796188A (en) Method and device for transmitting downlink data
CN102480721A (en) Service provider route number acquiring method and server
US9913074B2 (en) Identifying resources from a device in a communications network
CN107872423B (en) Method, device and system for realizing CDN scheduling
CN105142116B (en) A kind of the communication network switching method and switching system of smart machine
CN104247339A (en) Home network packet delivery
CN102594839B (en) Method for distinguishing pseudo dynamic host configuration protocol (DHCP) servers and switchboards
CN103987098B (en) IPV4 networks and the internetwork switching methods of IPV6 and system
CN102547553A (en) Method, system and device for accessing service based on wireless application protocol (WAP)
CN105262857A (en) DNS relay function acceleration method and device
CN108337280B (en) Resource updating method and device
CN103916489B (en) The many IP of a kind of single domain name domain name analytic method and system
CN104717640A (en) Realization method for wireless network communication based on positioning
CN112333296B (en) Equipment discovery method and system
CN103546588A (en) DNS (domain name server) inquiring method and MME (mobility management entity)
US20090210425A1 (en) Method for sending dynamic content and dynamic content delivery server
CN102177757B (en) Method, device and system for implementing registration

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160120

WD01 Invention patent application deemed withdrawn after publication