
On Modern DNS Behavior and Properties Tom Callahan†, Mark Allman‡, Michael Rabinovich† †Case Western Reserve University, ‡International Computer Science Institute {trc36,michael.rabinovich}@case.edu, [email protected] ABSTRACT of transport port numbers. A final—yet crucial—example is that The Internet crucially depends on the Domain Name System (DNS) DNS mappings foster agility within the network such that traffic to both allow users to interact with the system in human-friendly can be directed with fine granularity. There are alternate methods terms and also increasingly as a way to direct traffic to the best con- for directing traffic through the network—i.e., routing changes— tent replicas at the instant the content is requested. While previous but these are more cumbersome than using DNS to direct users. efforts have characterized DNS, the DNS ecosystem has evolved First, such changes would be constantly pushing updates through over time and this paper is therefore an initial study into the be- the routing system causing churn. Second, DNS responses are at havior and properties of the modern DNS system. We passively the immediate and sole control of the content provider, and can monitor DNS and related traffic within a residential network in an be crafted to match content providers’ needs at the instant a client effort to understand the impact of DNS server behavior—as viewed is interested in their content. The observation that DNS can deal with late binding of names to specific servers has lead to all man- through DNS responses—as well as client behavior surrounding 1 DNS lookups—as viewed through both DNS requests and traffic ner of innovation in terms of traffic engineering. For instance, that follows from DNS responses. Content Distribution Networks (CDNs) often make use of DNS to direct users to exactly the content replica the CDN believes will provide the best experience at the instant the user is interested in Categories and Subject Descriptors the content—and hence triggers the DNS request. The DNS archi- C.2.2 [Computer Communication Networks]: tecture inside the CDN itself may even contain multiple levels. For Network Protocols instance, to mitigate the cost of repeated DNS lookups for content, one CDN DNS server provides long-lived delegations to another General Terms layer of CDN DNS servers near client resolvers, which in turn is- sue short-lived answers to individual lookups to retain fine-grained Measurement control over the traffic flow [12]. At its core DNS is a simple protocol with requests and responses Keywords each generally contained in a single UDP packet. Further, resolving DNS, Measurement a hostname requires only a small number of transactions. For in- stance, finding the IP address corresponding to “www.google.com” first requires finding the authoritative servers for “.com”, and then 1. INTRODUCTION for “.google.com” and finally looking up the IP addresses of The Internet’s protocol stack includes the notion of addressing “www.google.com”. The results from each step can be cached so that traffic can be directed from one host to another. How- such that future lookups may require even fewer steps. The sim- ever, the stack contains no notion of naming, even though use of ple protocol and process, however, belies much complexity in the raw IP addresses is cumbersome at best. This was first dealt with modern DNS ecosystem. DNS transactions are now mere build- by sharing lists of hostname-to-IP address mappings that were in- ing blocks for complex systems involving load balancing, caching, stalled on each host such that users could deal with human-friendly traffic engineering and careful management of the user experience. host names that would be turned into the IP addresses required by A DNS request triggered by a user clicking a link in a web browser the protocol stack. Maintaining one master list of such mappings may now travel through multiple layers of DNS resolvers—from became burdensome and this method eventually gave way to the the home wi-fi router which often acts as a simple DNS forwarder Domain Name System (DNS), which is a distributed, hierarchical to several layers of resolvers [9] or a public DNS service provider naming system [15, 16]. The DNS calls for organizational name- (e.g., [17]). Therefore, while the DNS protocol is itself simple, servers to hold the authoritative binding between IP addresses and much of the resolution process and the actors involved are mysteri- hostnames only for their own hosts. Clients then query for this ous and largely hidden from view. mapping as needed. This provides human-friendly hostnames with- In this paper we describe an initial study of modern DNS be- out the logistical burdens of maintaining a single master list of all havior as observed from the vantage point of clients within a small hosts on the network. residential network over a recent 14 month span. While some of our Over the years, the DNS infrastructure has grown and morphed analysis is a reappraisal of previous work conducted by others [11, in a number of dimensions. For instance, DNS is commonly used 19], we are aware of no recent analysis that passively assesses DNS as a query mechanism for various blacklists of compromised or oth- erwise misbehaving actors on the Internet (e.g., [13]). Also, DNS 1Note, we use the term “traffic engineering” loosely in this paper supports named services as well as hostnames to support discovery to indicate content providers directing users to specific resources. ACM SIGCOMM Computer Communication Review 8 Volume 43, Number 3, July 2013 th th behavior even though the DNS ecosystem is constantly evolving— Req. Type 5 perc. Median 95 perc. e.g., due to increased use of open global DNS platforms, the pop- A 76.7% 87.5% 90.0% PTR 5.3% 8.7% 16.9% ularity of DNS pre-fetching, the increasingly complex structuring AAAA 2.4% 4.1% 9.7% of the recursive lookup process that involves pools and hierarchies OTHER 0.0% 0.0% 0.2% of servers. This paper proceeds in four steps: (i) in § 3 we study client behavior as reflected in DNS requests, (ii) in § 4 we turn to Table 1: Queries by type per month. the DNS server behavior that manifests in DNS responses, (iii) in § 5 we briefly discuss DNS transmission characteristics and finally (iv) in § 6 we turn to investigating the use of resolved hostnames tion logs contain 1.1 billion flows over the entire dataset. Of the by clients. connections we link with preceding DNS traffic we find 92.2% are HTTP—including ports 80 and 443. This is not surprising since the bulk of the connections we observe are either web connections or 2. DATASETS AND METHODOLOGY peer-to-peer connections [21], and peer-to-peer systems generally For this study we monitor DNS traffic within the “Case Con- use DNS sparingly. For instance, while a BitTorrent client may use nection Zone” [1], which is an experimental network that connects the DNS to access a tracker web site to obtain a description of a roughly 90 homes in a neighborhood adjacent to Case Western Re- torrent of interest to the user, the IP addresses of the peers in the serve University to the Internet via bi-directional 1 Gbps fiber links. given swarm are given by the tracker3 without relying on the DNS. The connections from each house come together in a switch. We have a packet-level monitor that receives all traffic via a mirroring 3. DNS REQUESTS port on the switch. The CCZ network is atypical in terms of the Communication across the Internet generally starts with a DNS capacity afforded to users. However, in a companion study [21] we query from a user-facing device. Some applications continue to find that the usage patterns are fairly consistent with those other heavily rely on DNS over the course of their operation (e.g., web residential network studies have shown. Further, we find the aver- browsers), while others only use DNS for bootstrapping (e.g., peer- age CCZ user exceeds 10 Mbps for 1.2 minutes per day. Therefore, to-peer applications, as discussed above). Fundamentally the re- we do not believe CCZ users’ behavior is to a first order driven by quest to resolve a hostname into an IP address is straightforward their ultra-broadband links. and the DNS protocol is likewise uncomplicated. In subsequent We have found our measurement apparatus to drop on the order sections we will show that the complexity of the system increases of 0.01% of packets in the worst case [21]. At this measurement- when we start to study how these simple requests are handled by based loss rate we do not believe the insights from our analysis are the DNS ecosystem and then in turn how the responses are dealt skewed by our apparatus. Additionally, we experience measure- with by the end hosts. The results in this section are basic context ment outages where no traffic is observed. These are caused by for the remainder of the paper. mundane logistical failures (e.g., temporarily unplugging the mon- Table 1 shows the most prevalent DNS query types in our dataset. itor from the network or disks filling) and from what we can tell not The table shows that type A queries for IPv4 addresses associ- by network phenomena that would suggest a biasing of the result- ated with some hostname are the most prevalent with over 87% ing data. Our vantage point lies between the users’ devices and the of the requests per month at the median. The PTR lookups appear recursive DNS server provided for the users and therefore we di- to be predominantly Bonjour discovery traffic.
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages8 Page
-
File Size-