Naming Computer Networking. Overview. DNS: Domain Name System. Obvious Solutions (1) Obvious Solutions (2)

Similar documents
Communications Software. CSE 123b. CSE 123b. Spring Lecture 11: Domain Name System (DNS) Stefan Savage. Some pictures courtesy David Wetherall

CSE 123b Communications Software. Overview for today. Names and Addresses. Goals for a naming system. Internet Hostnames

CE693: Adv. Computer Networking

Midterm Results Computer Networking. Outline. Midterm Distribution. Average Std.Dev. 13.9!!! Max 97 Min 40.

Outline Computer Networking. Naming. Obvious Solutions (1) DNS Design. Lecture 13 DNS DNS Today

Chapter 2 Application Layer. Lecture 5 DNS. Computer Networking: A Top Down Approach. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

Lecture 05: Application Layer (Part 02) Domain Name System. Dr. Anis Koubaa

Application Layer. Applications and application-layer protocols. Goals:

Domain Name Service. DNS Overview. October 2009 Computer Networking 1

Application Layer Protocols

ECE 650 Systems Programming & Engineering. Spring 2018

Lecture 6 Application Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

The Application Layer: Sockets, DNS

CS4/MSc Computer Networking. Lecture 3: The Application Layer

IP ADDRESSES, NAMING, AND DNS

Lecture 7: Application Layer Domain Name System

Domain Name System (DNS) 김현철 ( 화 ) 정보통신융합서울대학교컴퓨터공학부

CSE 123b Communications Software

Today s class. CSE 123b Communications Software. Telnet. Network File System (NFS) Quick descriptions of some other sample applications

Domain Name System.

Protocol Classification

CSEN 503 Introduction to Communication Networks

Networking Applications

Distributed Systems /640

CSEN 404 Introduction to Networks. Mervat AbuElkheir Mohamed Abdelrazik. ** Slides are attributed to J. F. Kurose

CSCE 463/612 Networks and Distributed Processing Spring 2018

EECS 122: Introduction to Computer Networks DNS and WWW. Internet Names & Addresses

CS 3516: Advanced Computer Networks

Computer Networking Introduction

Chapter 2: Application layer

DNS Basics BUPT/QMUL

Distributed Systems. Distributed Systems Within the Internet Nov. 9, 2011

CS519: Computer Networks. Lecture 6: Apr 5, 2004 Naming and DNS

Application Layer. Goals: Service models. Conceptual aspects of network application protocols Client server paradigm

CS 43: Computer Networks. 10: Naming and DNS September 24, 2018

DNS and Modern Network Services. Amin Vahdat CSE 123b April 27, 2006

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

Chapter 2 part B: outline

DNS & Iodine. Christian Grothoff.

DISTRIBUTED SYSTEMS [COMP9243] Lecture 9a: Naming WHAT IS NAMING? Name: Entity: Slide 3. Slide 1. Address: Identifier:

A DNS Tutorial

Lecture 7 Application Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

Advanced Networking. Domain Name System

Advanced Networking. Domain Name System. Purpose of DNS servers. Purpose of DNS servers. Purpose of DNS servers

Application Layer: , DNS

0 0& Basic Background. Now let s get into how things really work!

CSc 450/550 Computer Networks Domain Name System

Distributed Naming. EECS 591 Farnam Jahanian University of Michigan. Reading List

ECE 435 Network Engineering Lecture 7

Application Layer. Goals:

Application Layer. Applications and application-layer protocols. Goals:

Objectives. Upon completion you will be able to:

Computer Science 425 Distributed Systems CS 425 / ECE 428. Fall 2013

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

FTP. Mail. File Transfer Protocol (FTP) FTP commands, responses. Electronic Mail. TDTS06: Computer Networks

DNS and CDNs : Fundamentals of Computer Networks Bill Nace

S Computer Networks - Spring What and why? Structure of DNS Management of Domain Names Name Service in Practice

Domain Name System (DNS)

Chapter 19. Domain Name System (DNS)

CSE561 Naming and DNS. David Wetherall

Naming. To do. q What s in a name q Flat naming q Structured naming q Attribute-based naming q Next: Content distribution networks

Operating Systems CS 571

Computer Network 1 1

Computer Networks. Domain Name System. Jianping Pan Spring /25/17 CSC361 1

Page 1. CS162 Operating Systems and Systems Programming Lecture 22. Networking III. Automatic Repeat Request

Potential Name Syntax. Properties of Naming. Naming and system components. Naming and layering. Replicated storage, consistency

CSE 265: System & Network Administration

Internet Technology. 06. Exam 1 Review Paul Krzyzanowski. Rutgers University. Spring 2016

Chapter 2 outline. 2.1 Principles of app layer protocols

Domain Name System (DNS) Session-1: Fundamentals. Joe Abley AfNOG Workshop, AIS 2017, Nairobi

DNS. Introduction To. everything you never wanted to know about IP directory services

Applications & Application-Layer Protocols: (SMTP) and DNS

Overview. Last Lecture. This Lecture. Next Lecture. Scheduled tasks and log management. DNS and BIND Reference: DNS and BIND, 4 th Edition, O Reilly

416 Distributed Systems. March 23, 2018 CDNs

The Domain Name System

Chapter 2 Application Layer

The Domain Name System

Internet Technology 3/2/2016

DNS and HTTP. A High-Level Overview of how the Internet works

Naming in Distributed Systems

CSE 124 January 27, Winter 2017, UCSD Prof. George Porter

Manual Configuration Stateful Address Configuration (i.e. from servers) Stateless Autoconfiguration : IPv6

Domain Name System (DNS) DNS Fundamentals. Computers use IP addresses. Why do we need names? hosts.txt does not scale. The old solution: HOSTS.

Lecture 4: Basic Internet Operations

APNIC elearning: DNS Concepts

Naming. Chapter 4. Naming (1) Name resolution allows a process to access a named entity. A naming system is necessary.

Overview General network terminology. Chapter 9.1: DNS

Chapter II: Application Layer

Lesson 9: Configuring DNS Records. MOAC : Administering Windows Server 2012

Linux Network Administration

The Domain Name System

DNS Review Quiz. Match the term to the description: A. Transfer of authority for/to a subdomain. Domain name DNS zone Delegation C B A

Information Network I: The Application Layer. Doudou Fall Internet Engineering Laboratory Nara Institute of Science and Technique

DNS. A Massively Distributed Database. Justin Scott December 12, 2018

Information Network Systems The application layer. Stephan Sigg

Computer Networking: Applications George Blankenship. Applications George Blankenship 1

Higher layer protocols

Introduction to Network. Topics

Outline Applications. Central Server Hierarchical Peer-to-peer. 31-Jan-02 Ubiquitous Computing 1

CSE 124 January 18, Winter 2017, UCSD Prof. George Porter

Transcription:

Naming 15-441 Computer Networking DNS How do we efficiently locate resources? DNS: name IP address Service location: description host Other issues How do we scale these to the wide area? How to choose among similar services? Lecture 13: 10-9-01 2 Overview DNS Server selection DNS experience/trends Service location DNS: Domain Name System People: many identifiers: SSN, name, Passport # Internet hosts, routers: IP address (32 bit) - used for addressing datagrams name, e.g., gaia.cs.umass.edu- used by humans Q: Map between IP addresses and name? Domain Name System: Distributed database implemented in hierarchy of many name s Application-layer protocol host, routers, name s to communicate to resolve names (address/name translation) Note: core Internet function implemented as applicationlayer protocol Complexity at network s edge Lecture 13: 10-9-01 3 Lecture 13: 10-9-01 4 Obvious Solutions (1) Why not centralize DNS? Single point of failure Traffic volume Distant centralized database Doesn t scale! Obvious Solutions (2) Why not use /etc/hosts? Original Name to Address Mapping Flat namespace /etc/hosts SRI kept main copy Downloaded regularly Count of hosts was increasing: machine per domain machine per user Many more downloads Many more updates Lecture 13: 10-9-01 5 Lecture 13: 10-9-01 6 1

Domain Name System Goals Basically building a wide area distributed database Scalability Decentralized maintenance Robustness Global scope Names mean the same thing everywhere Don t need Atomicity Strong consistency DNS Design DB contains tuples called resource records (RRs) RR contains name, type, class and application data Classes = Internet (IN), Chaosnet (CH), etc. Each class defines data associated with type, e.g. for IN: A = IP address, NS = name, CNAME = canonical name (for aliasing), HINFO = CPU/OS info, MX = mail exchange, PTR = domain name = pointer for reverse mapping of address to name Lecture 13: 10-9-01 7 Lecture 13: 10-9-01 8 DNS Design Administrative hierarchy. as separator Zone = contiguous section of name space E.g., Complete tree, single node or subtree Hierarchical Name Space org net root edu com uk ca gwu ucb cmu bu mit cs ece cmcl Lecture 13: 10-9-01 9 Lecture 13: 10-9-01 10 DNS Design Zones are created by convincing owner node to create/delegate a subzone Records within zone stored multiple redundant s Primary/master name updated manually Secondary/redundant s updated by zone transfer of name space Zone transfer is a bulk transfer of the configuration of a DNS uses TCP to ensure reliability Example: CS.CMU.EDU created by CMU.EDU administrators DNS 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 IP address of authoritative name for this domain Type=CNAME name is an alias name for some canonical (the real) name value is canonical name Type=MX value is hostname of mail associated with name Lecture 13: 10-9-01 11 Lecture 13: 10-9-01 12 2

DNS Design Host name to address section Top-level domains edu, gov, ca, us, etc. Sub-domains = subtrees Human readable name = leaf root path Hierarchical Name Space barracuda.cmcl.cs.cmu.edu root org net edu com gwu ucb cmu bu mit uk ca cs ece cmcl barracuda Lecture 13: 10-9-01 13 Lecture 13: 10-9-01 14 Servers/Resolvers Each host has a resolver Typically a library that applications can link to Local name s hand-configured (e.g. /etc/resolv.conf) Name s Typically responsible for some zone Local s Do lookup of distant host names for local hosts Typically answer queries about local zone DNS: Root Name Servers Responsible for root zone Approx. dozen root name s worldwide Currently {a-m}.roots.net Local name s contact root s when they cannot resolve a name Configured with wellknown root s Lecture 13: 10-9-01 15 Lecture 13: 10-9-01 16 DNS Message Format DNS Header Fields 12 bytes Name, type fields for a query RRs in response to query Records for authoritative s Additional helpful info that may be used Identification Flags No. of Questions No. of Answer RRs No. of Authority RRs No. of Additional RRs Questions (variable number of answers) Answers (variable number of resource records) Authority (variable number of resource records) Additional Info (variable number of resource records Lecture 13: 10-9-01 17 Identification Used to match up request/response Flags 1-bit to mark query or response 1-bit to mark authoritative or not 1-bit to request recursive resolution 1-bit to indicate support for recursive resolution Lecture 13: 10-9-01 18 3

Caching DNS responses are cached Quick response for repeated translations Other queries may reuse some parts of lookup NS records for domains DNS negative queries are cached Don t have to repeat past mistakes E.g. misspellings, search strings in resolv.conf Cached data periodically times out Lifetime (TTL) of data controlled by owner of data TTL passed with every record Lookup Methods Iterative Server responds with as much as it knows (iterative) Recursive Server goes out and searches for more info (recursive) Only returns final answer or not found Impact on caching? workload? Local typically does recursive Root/distant does iterative Lecture 13: 10-9-01 19 Lecture 13: 10-9-01 20 DNS: Iterated Queries Recursive query: Puts burden of name resolution on contacted name Heavy load? Iterative query: Contacted replies with name of to contact I don t know this name, but ask this local name dns.eurecom.fr 1 8 requesting host surf.eurecom.fr 3 root name 2 4 7 iterated query intermediate name dns.umass. edu 5 6 authoritative name dns.cs.umass.edu gaia.cs.umass.edu Lecture 13: 10-9-01 21 Typical Resolution Steps for resolving www.cmu.edu Application calls gethostbyname() Resolver contacts local name (S 1 ) S 1 queries root (S 2 ) for (www.cmu.edu) S 2 returns NS record for cmu.edu (S 3 ) What about A record for S 3? This is what the additional information section is for S 1 queries S 3 for www.cmu.edu S 3 returns A record for www.cmu.edu Can return multiple A records what does this mean? Lecture 13: 10-9-01 22 DNS Lookup Example Subsequent Lookup Example Client www.cs.cmu.edu Local www.cs.cmu.edu NS cmu.edu NS cs.cmu.edu www= IPaddr root & edu cmu.edu cs.cmu.edu DNS Client ftp. cs.cmu.edu Local ftp. cs.cmu.edu ftp= IPaddr root & edu cmu.edu cs.cmu.edu DNS Lecture 13: 10-9-01 23 Lecture 13: 10-9-01 24 4

Reliability s are replicated Name service available if m one replica is up Queries can be load balanced between replicas UDP used for queries Need reliability Why not TCP? Try alternate s on timeout Exponential backoff when retrying same Same identifier for all queries Don t care which responds Reverse Name Lookup 128.2.206.138? Lookup 138.206.2.128.in-addr.arpa Why is the address reversed? Happens to be www.seshan.org and mammoth.cmcl.cs.cmu.edu what will reverse lookup return? Both? Should only return primary name Lecture 13: 10-9-01 25 Lecture 13: 10-9-01 26 Prefetching Name s can add addition data on any response Typically used for prefetching CNAME/MX/NS typically point to another host name Responses include address of host referred to in additional section Mail Addresses MX records point to mail exchanger for a name E.g. mail.acm.org is MX for acm.org Addition of MX record type proved to be a challenge How to get mail programs to lookup MX record for mail delivery? Needed critical mass of such mailers Lecture 13: 10-9-01 27 Lecture 13: 10-9-01 28 Overview DNS Server selection DNS experience/trends Service location Server Selection Service is replicated in many places in network Which? Lowest load to balance load on s Best performance to improve client performance Based on Geography? RTT? Throughput? Load? Any alive node to provide fault tolerance How do direct clients to a particular? As part of routing anycast, cluster load balancing As part of application HTTP redirect As part of naming DNS Lecture 13: 10-9-01 29 Lecture 13: 10-9-01 30 5

Routing Based Anycast Give service a single IP address Each node implementing service advertises route to address Packets get routed routed from client to closest service node Closest is defined by routing metrics May not mirror performance/application needs What about the stability of routes? Routing Based Cluster load balancing Router in front of cluster of nodes directs packets to Must be done on connection by connection basis why? Forces router to keep per connection state How to choose Easiest to decide based on arrival of first packet in exchange Primarily based on local load Can be based on later packets (e.g. HTTP Get request) but makes system more complex Lecture 13: 10-9-01 31 Lecture 13: 10-9-01 32 Application Based Naming Based HTTP support simple way to indicate that Web page has moved Server gets Get request from client Decides which is best suited for particular client and object Returns HTTP redirect to that Can make informed application specific decision May introduce additional overhead multiple connection setup, name lookups, etc. While good solution in general HTTP Redirect has some design flaws especially with current browsers Lecture 13: 10-9-01 33 Client does name lookup for service Name chooses appropriate address A-record returned is best one for the client What information can name base decision on? Server load/location must be collected Information in the name lookup request Name service client typically the local name for client Lecture 13: 10-9-01 34 Naming Based Round-robin Randomly choose replica Avoid hot-spots [Semi-]static metrics Geography Route metrics How well would these work? Naming Based Predicted application performance How to predict? Only have limited info at name resolution Multiple techniques Static metrics to get coarse grain answer Current performance among smaller group Lecture 13: 10-9-01 35 Lecture 13: 10-9-01 36 6

Overview DNS Server selection DNS experience/trends Service location DNS Experience One of the greatest challenges seemed to be getting good name implementations Developers were typically happy with good enough implementation Challenging, large scale, wide area distributed system Like routing, but easier to have broken implementations that work Lecture 13: 10-9-01 37 Lecture 13: 10-9-01 38 DNS Experience Common bugs Looped NS/CNAME record handling Poor static configuration (root list) Lack of exponential backoff No centralized caching per site Each machine runs own caching local Why is this a problem? How many hosts do we need to share cache? recent studies suggest 10-20 hosts Solution Monitor for misbehaving name s? Trends DNS is used for selection more and more Blame Bruce Maggs for this What are reasonable DNS TTLs for this type of use Typically want to adapt to load changes Low TTL for A-records what about NS records? How does this affect caching? What does the first and subsequent lookup do? Lecture 13: 10-9-01 39 Lecture 13: 10-9-01 40 Recent Measurements Hit rate for DNS = 80% Is this good or bad? Most Internet traffic is Web What does a typical page look like? average of 4-5 imbedded objects needs 4-5 transfers This alone accounts for 80% hit rate! Lower TTLs for A records does not affect performance DNS performance really relies more on NS-record caching Root Zone Generic Top Level Domains (gtld) =.com,.net,.org, etc Country Code Top Level Domain (cctld) =.us,.ca,.fi,.uk, etc Root ({a-m}.root-s.net) also used to cover gtld domains Load on root s was growing quickly! Moving.com,.net,.org off root s was clearly necessary to reduce load done Aug 2000 Lecture 13: 10-9-01 41 Lecture 13: 10-9-01 42 7

New gtlds.info general info.biz businesses.aero air-transport industry.coop business cooperatives.name individuals.pro accountants, lawyers, and physicians.museum museums Only new one actives so far =.info,.biz New Registrars Network Solutions (NSI) used to handle all registrations, root s, etc Clearly not the democratic way Large number of registrars that can create new domains However NSI still handle root s Lecture 13: 10-9-01 43 Lecture 13: 10-9-01 44 Overview DNS Server selection DNS experience/trends Service location Service Location What if you want to lookup services with more expressive descriptions than DNS names E.g. please find me printers in cs.cmu.edu instead of laserjet1.cs.cmu.edu What do descriptions look like? How is the searching done? How will it be used? Search for particular service? Browse available services? Composing multiple services into new service? Lecture 13: 10-9-01 45 Lecture 13: 10-9-01 46 Service Descriptions Typically done as hierarchical valueattribute pairs Type = printer memory = 32MB, lang = PCL Location = CMU building = WeH Hierarchy based on attributes or attributes - values? E.g. Country state or country=usa state=pa and country=canada province=bc? Can be done in something like XML Service Discovery (Multicast) Services listen on well known discovery group address Client multicasts query to discovery group Services unicast replies to client Tradeoffs Not very scalable effectively broadcast search Requires no dedicated infrastructure or bootstrap Easily adapts to availability/changes Can scope request by multicast scoping and by information in request Lecture 13: 10-9-01 47 Lecture 13: 10-9-01 48 8

Service Discovery (Directory Based) Services register with central directory agent Soft state registrations must be refreshed or the expire Clients send query to central directory replies with list of matches Tradeoffs How do you find the central directory service? Typically using multicast based discovery! SLP also allows directory to do periodic advertisements Need dedicated infrastructure Other Issues Dynamic attributes Many queries may be based on attributes such as load, queue length E.g., print to the printer with shortest queue Security Don t want others to serve/change queries Also, don t want others to know about existence of services Srini s home SLP is advertising the $50,000 MP3 stereo system (come steal me!) Lecture 13: 10-9-01 49 Lecture 13: 10-9-01 50 9