Naming and the DNS. Focus. How do we name hosts etc.? Application Presentation Topics. Session Domain Name System (DNS) Email/URLs



Similar documents
Domain Name System DNS

DNS: Domain Name System

Domain Name System Richard T. B. Ma

Names vs. Addresses. Flat vs. Hierarchical Space. Domain Name System (DNS) Computer Networks. Lecture 5: Domain Name System

Domain Name System (or Service) (DNS) Computer Networks Term B10

Domain Name System (DNS) Reading: Section in Chapter 9

CMPE 80N: Introduction to Networking and the Internet

The Application Layer: DNS

CS 355. Computer Networking. Wei Lu, Ph.D., P.Eng.

CS 43: Computer Networks Naming and DNS. Kevin Webb Swarthmore College September 17, 2015

DNS. Spring 2016 CS 438 Staff 1

Chapter 2 Application Layer

How To Map Between Ip Address And Name On A Domain Name System (Dns)

DNS and P2P File Sharing

C 1. Last Time. CSE 486/586 Distributed Systems Domain Name System. Review: Causal Ordering. Review: Causally Ordered Multicast.

NET0183 Networks and Communications

DNS: Domain Name System

Domain Name System (DNS)

Domain Name System (DNS) RFC 1034 RFC

Domain Name System (DNS)

internet technologies and standards

Ch 6: Networking Services: NAT, DHCP, DNS, Multicasting

Ch 6: Networking Services: NAT, DHCP, DNS, Multicasting, NTP

Lecture 2 CS An example of a middleware service: DNS Domain Name System

CS 348: Computer Networks. - DNS; 22 nd Oct Instructor: Sridhar Iyer IIT Bombay

FTP: the file transfer protocol

DATA COMMUNICATOIN NETWORKING

CS640: Computer Networks. Naming /ETC/HOSTS

Network programming, DNS, and NAT. Copyright University of Illinois CS 241 Staff 1

DNS and electronic mail. DNS purposes

2.5 DNS The Internet s Directory Service

Chapter 23 The Domain Name System (DNS)

The Domain Name System

3. The Domain Name Service

Internet-Praktikum I Lab 3: DNS

CSE/ISE 311: Systems Administra5on Networking 2

Motivation. Domain Name System (DNS) Flat Namespace. Hierarchical Namespace

DNS Domain Name System

Network(Security(Protocols(

416 Distributed Systems. Feb 24, 2016 DNS and CDNs

Application Layer. Abusayeed Saifullah. CS 5600 Computer Networks. These slides are adapted from Kurose and Ross

FTP: the file transfer protocol

Resilient Networking. Overview of DNS Known attacks on DNS Denial-of-Service Cache Poisoning. Securing DNS Split-Split-DNS DNSSEC.

Distributed Systems. 09. Naming. Paul Krzyzanowski. Rutgers University. Fall 2015

Computer Networks: Domain Name System

CS3600 SYSTEMS AND NETWORKS

CS3250 Distributed Systems

DNS Domain Name System

Names & Addresses. Names & Addresses. Names vs. Addresses. Identity. Names vs. Addresses. CS 194: Distributed Systems: Naming

Introduction to the Domain Name System

The Domain Name System (DNS)

Introduction to Network Operating Systems

Application Protocols in the TCP/IP Reference Model

Understanding DNS (the Domain Name System)

Domain Name Servers. Domain Types WWW host names. Internet Names. COMP476 Networked Computer Systems. Domain Name Servers

Chapter 25 Domain Name System Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Applications & Application-Layer Protocols: The Domain Name System and Peerto-Peer

The Domain Name System

Domain Name System. DNS is an example of a large scale client-server application. Copyright 2014 Jim Martin

DNS: Domain Names. DNS: Domain Name System. DNS: Root name servers. DNS name servers

An Introduction to the Domain Name System

- Domain Name System -

IP addresses have hierarchy (network & subnet) Internet names (FQDNs) also have hierarchy. and of course there can be sub-sub-!!

Application Protocols in the TCP/IP Reference Model. Application Protocols in the TCP/IP Reference Model. DNS - Concept. DNS - Domain Name System

Domain Name System (DNS) Fundamentals

CS244A Review Session Routing and DNS

DNS Basics. DNS Basics

DNS : Domain Name System

Domain Name System Submitted in partial fulfillment of the requirement for the award of degree of Computer Science

Chapter 2: outline. 2.6 P2P applications 2.7 socket programming with UDP and TCP

ECE 4321 Computer Networks. Network Programming

INTERNET DOMAIN NAME SYSTEM

Domain Name System (DNS) Omer F. Rana. Networks and Data Communications 1

Internetworking with TCP/IP Unit 10. Domain Name System

Understand Names Resolution

Domain Name System (DNS) Session-1: Fundamentals. Ayitey Bulley

DNS records. RR format: (name, value, type, TTL) Type=NS

Communicating Applications

Introduction to DNS CHAPTER 5. In This Chapter

The Domain Name System

Configuring DNS. Finding Feature Information

Computer Networks & Security 2014/2015

Transcription:

Naming and the DNS Focus How do we name hosts etc.? Application Presentation Topics Session Domain Name System (DNS) Email/URLs Transport Network Data Link Physical Ldns.1

Names and Addresses 43 name address David Wetherall CSE Dept. University of Washington Names are identifiers for objects/services (high level) Addresses are locators for objects/services (low level) Resolution is the process of mapping name to address But, addresses are really lower-level names; many levels used Ldns.2

Naming in Systems Ubiquitous Files in filesystem, processes in OS, pages on the web, Decouple identifier for object/service from location Hostnames provide a level of indirection for IP addresses Naming greatly impacts system capabilities and performance Ethernet addresses are a flat 48 bits flat any address anywhere but large forwarding tables IP addresses are hierarchical 32/128 bits hierarchy smaller routing tables but constrained locations Ldns.3

Internet Hostnames Hostnames are human-readable identifiers for end-systems based on an administrative hierarchy galah.cs.washington.edu is my desktop machine 128.95.2.106 is galah s IP address Original name resolution: HOSTS.TXT Current name resolution: Domain Name System Future name resolution:? IP addresses are a fixed-length binary encoding for endsystems based on their position in the network Ldns.4

Original Hostname System When the Internet was really young Flat namespace Simple (host, address) pairs Centralized management Updates via a single master file called HOSTS.TXT Manually coordinated by the Network Information Center (NIC) Resolution process Look up hostname in the HOSTS.TXT file Ldns.5

Scaling Problems Coordination Between all users to avoid conflicts Inconsistencies Between update and distribution of new version Reliability Single point of failure Performance Competition for centralized resources Ldns.6

Domain Name System (DNS) Designed by Mockapetris and Dunlap in the mid 80s Namespace is hierarchical Allows much better scaling of data structures e.g., galah.cs.washington.edu Namespace is distributed Decentralized administration and access e.g., galah managed by CSE Resolution is by query/response With replicated servers for redundancy With heavy use of caching for performance Ldns.7

DNS Hierarchy edu com mil org au ai mit lcs dot is the root of the hierarchy Top levels now controlled by ICANN Was a monopoly until 2000 Usage governed by conventions FQDN = Fully Qualified Domain Name Ldns.8

DNS Distribution Data managed by zones that contain resource records Zone is a complete description of a portion of the namespace e.g., all hosts and addresses for machines in washington.edu with pointers to subdomains like cs.washington.edu One or more nameservers manage each zone Zone transfers performed between nameservers for consistency Multiple nameservers provide redundancy Client resolvers query nameservers for specified records Multiple messages may be exchanged per DNS lookup to navigate the name hierarchy (coming soon) Ldns.9

DNS Lookups / Resolution Host at cis.poly.edu wants IP address for gaia.cs.umass.edu local DNS server dns.poly.edu 2 3 4 5 root DNS server edu DNS server 1 8 7 6 requesting host cis.poly.edu authoritative DNS server dns.cs.umass.edu gaia.cs.umass.edu 10

Recursive vs. Iterative Queries Recursive query Ask server to get answer for you E.g., request 1 and response 8 Iterative query Ask server who to ask next E.g., all other requestresponse pairs local DNS server dns.poly.edu 1 2 8 requesting host cis.poly.edu 3 4 5 7 root DNS server TLD DNS server 6 authoritative DNS server dns.cs.umass.edu 11

DNS Resource Records DNS: distributed db storing resource records (RR) RR format: (name, value, type, ttl) Type=A name is hostname value is IP address Type=NS name is domain (e.g. foo.com) value is hostname of authoritative name server for this domain Type=CNAME name is alias name for some canonical (the real) name www.ibm.com is really servereast.backup2.ibm.com value is canonical name Type=MX value is name of mailserver associated with name 12

DNS Protocol DNS protocol : query and reply messages, both with same message format Message header Identification: 16 bit # for query, reply to query uses same # Flags: Query or reply Recursion desired Recursion available Reply is authoritative 13

Reliability DNS servers are replicated Name service available if at least one replica is up Queries can be load balanced between replicas UDP used for queries Need reliability: must implement this on top of UDP Try alternate servers on timeout Exponential backoff when retrying same server Same identifier for all queries Don t care which server responds 14

DNS Bootstrapping Need to know IP addresses of root servers before we can make any queries Addresses for 13 root servers ([a-m].root-servers.net) handled via initial configuration (named.ca file) E NASA Mt View, CA F Internet Software C. Palo Alto, CA (and 17 other locations) A Verisign, Dulles, VA C Cogent, Herndon, VA (also Los Angeles) D U Maryland College Park, MD G US DoD Vienna, VA H ARL Aberdeen, MD J Verisign, ( 11 locations) K RIPE London (also Amsterdam, Frankfurt) I Autonomica, Stockholm (plus 3 other locations) m WIDE Tokyo B USC-ISI Marina del Rey, CA L ICANN Los Angeles, CA Ldns.15

DNS Caching Performing all these queries take time And all this before the actual communication takes place E.g., 1-second latency before starting Web download Caching can substantially reduce overhead The top-level servers very rarely change Popular sites (e.g., www.cnn.com) visited often Local DNS server often has the information cached How DNS caching works DNS servers cache responses to queries Responses include a time to live (TTL) field Server deletes the cached entry after TTL expires 16

Negative Caching Remember things that don t work Misspellings like www.cnn.comm and www.cnnn.com These can take a long time to fail the first time Good to remember that they don t work so the failure takes less time the next time around 17

Building on the DNS Other naming designs leverage the DNS Email: e.g., djw@cs.washington.edu is djw in the domain cs.washington.edu Uniform Resource Locators (URLs) name for Web pages e.g., www.cs.washington.edu/homes/djw Use domain name to identify a Web server Use / separated string to name path to page (like files) Ldns.18

Future Evolution of the DNS Design constrains us in two major ways that are increasingly less appropriate Static host to IP mapping What about mobility (Mobile IP) and dynamic address assignment (DHCP) Location-insensitive queries What if I don t care what server a Web page comes from, as long as it s the right page? e.g., a yahoo page might be replicated Ldns.19

Akamai Use the DNS to effect selection of a nearby Web cache client 6 5 4 3 1 2 Server Nearby Cache DNS servers for akamai.com Leverage separation of static/dynamic content Beware DNS caching Ldns.20