26
A study of caching behavior with respect to root server TTLs Matthew Thomas, Duane Wessels October 3 rd , 2015

A study of caching behavior with respect to root server TTLs Matthew Thomas, Duane Wessels October 3 rd, 2015

Embed Size (px)

Citation preview

Verisign Template 2014

A study of caching behavior with respect to root server TTLsMatthew Thomas, Duane WesselsOctober 3rd, 2015Verisign PublicRSSAC003 RSSAC Advisory on Root zone TTLsConsider the extent to which:(1) the current root zone TTLs are appropriate for todays environment(2) lowering the NS RRset TTL makes sense(3) the impacts that TTL changes would have on the wider DNS

Work party volunteers: Duane Wessels, Warren Kumari, Jaap Akkerhuis, Shumon Huque, Brian Dickson, John Bond, Joe Abley, and Matthew Thomas

Full report published September 16th, 2015https://www.icann.org/en/system/files/files/rssac-003-root-zone-ttls-21aug15-en.pdf2Verisign PublicRSSAC003 RSSAC Advisory on Root zone TTLs1. Document the history of TTLs in the root zone2. Obtain a measure for TLD managers technical preferences for NS and DS TTLs by surveying what those managers have published in TLD zones.3. Survey "max-cache-ttl" parameters of various recursive implementations4. Analyze DITL data for the extent that recursive resolvers honor TTLs5. Study interactions between the SOA refresh timer and serving stale data3Verisign PublicWaiting for a TTL to expire in theory4

http://dnsreactions.tumblr.com/post/127469871134/waiting-for-a-2-day-ttl-to-expireVerisign PublicWaiting for a TTL to expire in the real world5

dig @a.root-servers.net . ns. 518400 IN NSa.root-servers.net.. 518400 IN NSb.root-servers.net.. 518400 IN NSc.root-servers.net..

Verisign PublicDITL Data6Data CaveatsI-Root & B-Root data removed due to anonymization.Obvious spoofed IP ranges removed.

Data stored in PCAP files partitioned by root operator.In order to obtain measurements, we need to massage the raw DITL data into a more optimal format

YearABCDEFGHIJKLM2014XXXXXX*XXX2015XX*XXXX*XXXXVerisign PublicGrouping, Sorting, and Measuring DITL7TimeIP1IP2TLD1TLD2TLD1T1T2T3Group by IP address and TLDSort by TimeMeasure elapsed time between queries for groupUse median of distribution of inter-query time deltasVerisign PublicSome basic inter-query DITL measurement stats820142015Roots Analyzed88Delegated TLDs at DITL Collection534*905*IP-TLD Observations106MM165MMInter-query Time Measurements8.75B18.27BObserved IPs9.78MM11.03MMAs one might expect, the data follows exhibits a long tail distribution* Includes . and root-servers.net.Verisign PublicQueries and Measurements by IPs9

~65% of IPs have 10 or fewer MeasurementsVerisign PublicDelegated TLDs Requested by IP10

Verisign PublicTotal Requests by TLD11

Verisign PublicTotal Requests by TLD vs. NS TTL (2014 DITL)12

Verisign PublicGeneral Inter-Query Delay at the Roots13

Verisign PublicInter-Query Delay at the Roots by TLD Type (2015)14

Verisign PublicPotential Impacts by Altering Root TTLs15

Verisign PublicSurveying max-cache-ttl behavior of large Open Recursive Name Servers16Verisign Publicmax-cache-ttlPopular caching name servers have a Max TTL settingNot specific to Root or any other zone.Learning what we can about popular recursive services might inform authoritative TTL choices.17Verisign PublicSurvey TechniqueWrite custom name server (thanks ldns!)Send TXT queries under zone epoch.verisignlabs.com to open recursivesReturn TXT response with time-of-query in rdata and a 10-day TTL:

18[dwessels@nfarnsworth ~]$ dig a4x90f8.epoch.verisignlabs.com TXT

;; ANSWER SECTION:a4x90f8.epoch.verisignlabs.com. 604800 IN TXT "At the tone, the time will be 1442263295. Beep!"Repeat same query laterMeasure time-in-cache for a particular responsePlot time-of-measurement vs returned-TTLVerisign PublicUltraDNS19

8 Unique cached recordsVerisign PublicDyn20

13 Unique cached recordsVerisign PublicOpenDNS21

104 Unique cached recordsVerisign PublicGoogle22

250 Unique cached recordsVerisign PublicGoogle - Hourly23

Verisign PublicAn Extreme CaseThu May 21 05:56:32 EDT 2015 = 14322021921432202192 - 1432182858 = 19334TTL should be 21600 - 19334 = 2266TTL is 5+ hours larger than expected24; DiG 9.9.5-3ubuntu0.2-Ubuntu @8.8.8.8 rssac.epoch.verisignlabs.com txt; (1 server found);; global options: +cmd;; Got answer:;; ->>HEADER