dnsql
play

DNSql Processing Massive DNS Collections Stephen Herwig, Dave - PowerPoint PPT Presentation

DNSql Processing Massive DNS Collections Stephen Herwig, Dave Levin, Bobby Bhattacharjee, Neil Spring University of Maryland, College Park D-root Operated by UMD Anycast with 109 replicas Hourly sampled collection by replica global local


  1. DNSql Processing Massive DNS Collections Stephen Herwig, Dave Levin, Bobby Bhattacharjee, Neil Spring University of Maryland, College Park

  2. D-root Operated by UMD Anycast with 109 replicas Hourly sampled collection by replica global local

  3. Problem Lots of data ~140 GiB / day Serial processing is slow ~8h to read a month’s worth of collection for CPMD replica Diverse analyses Short-term, Long-Term Aggregation by source, replica, geography, topology

  4. Approach pcap.gz sqlite3 dnsqlite3c MapReduce CREATE TABLE queryresp ( id INTEGER PRIMARY KEY, sec INTEGER, usec INTEGER, src BLOB, sport INTEGER, opcode INTEGER, qclass INTEGER, qtype INTEGER, rcode INTEGER, qname TEXT ); CREATE INDEX qname_index ON queryresp(qname); CREATE INDEX src_index ON queryresp(src); CREATE TABLE qps (sec INTEGER, n INTEGER);

  5. Processing Speed CPMD March 2015 700 zcat | tcpdump dnsqlite3c aggregate.db 600 parallel dnsqlite3c 500 resp (K) / sec 400 300 200 100 0 single pcap.gz month of pcap.gzs

  6. Database Size CPMD March 2015 1750 month of pcaps month of SQLite3 shards aggregate.db 1500 1250 1000 GiB 750 500 250 0 normal gzip'd

  7. Query Speed CPMD March 2015 aggregate.db mapreduce 8 6 minutes 4 2 0 distinct source IP count distinct QPS source IPs frequency hashed qnames

  8. Additional Data Sources Percent of Queries to CPMD By Country (March 2015) 0 3 6 9 12 15 18 21 24 27 30 33 MaxMind GeoLite database 7m query time

  9. Per-Source Metrics 466,021 unique sources 1h 10m query time

  10. Discussion Additional queries? Optimizations? Extension to non-root servers?

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend