DOC PREVIEW
CMU CS 15744 - 17-DNS

This preview shows page 1-2-3-25-26-27-28-50-51-52 out of 52 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 52 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 52 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 52 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 52 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 52 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 52 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 52 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 52 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 52 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 52 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 52 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

15-744: Computer NetworkingDNS and the WebNamingOverviewObvious Solutions (1)Obvious Solutions (2)Domain Name System GoalsDNS RecordsDNS Design: Hierarchy DefinitionsDNS Design: Zone DefinitionsDNS Design: Cont.Servers/ResolversDNS: Root Name ServersTypical ResolutionLookup MethodsWorkload and CachingSlide 20Subsequent Lookup ExampleReliabilityReverse Name LookupPrefetchingRoot ZoneNew gTLDsNew RegistrarsDo you trust the TLD operators?Protecting the Root NameserversDNS Hack #1: Load BalanceDNS Hack #3: Blackhole ListsDNS ExperienceSlide 34Some Interesting AlternativesSlide 36CDNServer SelectionRouting BasedRouting BasedApplication BasedNaming BasedHow Akamai WorksSlide 44Slide 45Slide 46Akamai – Subsequent RequestsCoral: An Open CDNUsing CoralCDNCoralCDN componentsFunctionality neededUse a DHT?Coral distributed indexKey-based XOR routingPrevent insertion hotspotsCoral Contributions15-744: Computer NetworkingL-17 DNS and the Web2DNS and the Web•DNS•CDNs•Readings•DNS Performance and the Effectiveness of Caching•Development of the Domain Name System3Naming•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?4Overview•DNS•Server Selection and CDNs5Obvious Solutions (1)Why not centralize DNS?•Single point of failure•Traffic volume•Distant centralized database•Single point of update•Doesn’t scale!6Obvious 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 updates7Domain 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 consistency8DNS RecordsRR format: (class, name, value, type, ttl)•DB contains tuples called resource records (RRs)•Classes = Internet (IN), Chaosnet (CH), etc.•Each class defines value associated with typeFOR IN class:•Type=A•name is hostname•value is IP address•Type=NS•name is domain (e.g. foo.com)•value is name of authoritative name server 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 mailserver associated with name9DNS Design: Hierarchy Definitionsrootedunetorgukcomgwu ucb cmu bumitcsececmcl•Each node in hierarchy stores a list of names that end with same suffix•Suffix = path up tree•E.g., given this tree, where would following be stored:•Fred.com•Fred.edu•Fred.cmu.edu•Fred.cmcl.cs.cmu.edu•Fred.cs.mit.edu10DNS Design: Zone Definitionsrootedunetorgukcomcagwu ucb cmu bumitcsececmclSingle nodeSubtreeComplete Tree•Zone = contiguous section of name space•E.g., Complete tree, single node or subtree•A zone has an associated set of name servers11DNS Design: Cont.•Zones are created by convincing owner node to create/delegate a subzone•Records within zone stored multiple redundant name servers•Primary/master name server updated manually•Secondary/redundant servers updated by zone transfer of name space•Zone transfer is a bulk transfer of the “configuration” of a DNS server – uses TCP to ensure reliability•Example:•CS.CMU.EDU created by CMU.EDU administrators12Servers/Resolvers •Each host has a resolver•Typically a library that applications can link to•Local name servers hand-configured (e.g. /etc/resolv.conf)•Name servers•Either responsible for some zone or…•Local servers•Do lookup of distant host names for local hosts•Typically answer queries about local zone13DNS: Root Name Servers•Responsible for “root” zone•Approx. dozen root name servers worldwide•Currently {a-m}.root-servers.net•Local name servers contact root servers when they cannot resolve a name•Configured with well-known root servers16Typical ResolutionClientLocal DNS serverroot & edu DNS serverns1.cmu.edu DNS serverwww.cs.cmu.eduNS ns1.cmu.eduwww.cs.cmu.eduNS ns1.cs.cmu.eduA www=IPaddrns1.cs.cmu.eduDNSserver18Lookup MethodsRecursive query:•Server goes out and searches for more info (recursive)•Only returns final answer or “not found”Iterative query:•Server responds with as much as it knows (iterative)•“I don’t know this name, but ask this server”Workload impact on choice?•Local server typically does recursive•Root/distant server does iterativerequesting hostsurf.eurecom.frgaia.cs.umass.eduroot name serverlocal name serverdns.eurecom.fr123456authoritative name serverdns.cs.umass.eduintermediate name serverdns.umass.edu78iterated query19Workload and Caching•What workload do you expect for different servers/names?•Why might this be a problem? How can we solve this problem?•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 record20Typical ResolutionClientLocal DNS serverroot & edu DNS serverns1.cmu.edu DNS serverwww.cs.cmu.eduNS ns1.cmu.eduwww.cs.cmu.eduNS ns1.cs.cmu.eduA www=IPaddrns1.cs.cmu.eduDNSserver21Subsequent Lookup ExampleClientLocal DNS serverroot & edu DNS servercmu.edu DNS servercs.cmu.eduDNSserverftp.cs.cmu.eduftp=IPaddrftp.cs.cmu.edu22Reliability•DNS servers are replicated•Name service available if ≥ one replica is up•Queries can be load balanced between replicas•UDP used for queries•Need reliability  must implement this on top of UDP!•Why not just use TCP?•Try alternate servers on timeout•Exponential backoff when retrying same server•Same identifier for all queries•Don’t care which server responds23Reverse Name Lookup•128.2.206.138?•Lookup 138.206.2.128.in-addr.arpa•Why is the address reversed?•Happens to be www.intel-iris.net and mammoth.cmcl.cs.cmu.edu  what will reverse lookup return? Both?•Should only return name that reflects address allocation mechanism24Prefetching•Name servers can add additional data to any response•Typically used for prefetching•CNAME/MX/NS


View Full Document

CMU CS 15744 - 17-DNS

Documents in this Course
Lecture

Lecture

25 pages

Lecture

Lecture

10 pages

Lecture

Lecture

10 pages

Lecture

Lecture

45 pages

Lecture

Lecture

48 pages

Lecture

Lecture

19 pages

Lecture

Lecture

97 pages

Lecture

Lecture

39 pages

Lecture

Lecture

49 pages

Lecture

Lecture

33 pages

Lecture

Lecture

21 pages

Lecture

Lecture

52 pages

Problem

Problem

9 pages

Lecture

Lecture

6 pages

03-BGP

03-BGP

13 pages

Lecture

Lecture

42 pages

lecture

lecture

54 pages

lecture

lecture

21 pages

Lecture

Lecture

18 pages

Lecture

Lecture

18 pages

Lecture

Lecture

58 pages

lecture

lecture

17 pages

lecture

lecture

46 pages

Lecture

Lecture

72 pages

Lecture

Lecture

44 pages

Lecture

Lecture

13 pages

Lecture

Lecture

22 pages

Lecture

Lecture

48 pages

lecture

lecture

73 pages

Lecture

Lecture

10 pages

lecture

lecture

53 pages

lecture

lecture

51 pages

Wireless

Wireless

27 pages

lecture

lecture

14 pages

lecture

lecture

18 pages

Lecture

Lecture

16 pages

Lecture

Lecture

14 pages

lecture

lecture

16 pages

Lecture

Lecture

16 pages

Lecture

Lecture

37 pages

Lecture

Lecture

44 pages

Lecture

Lecture

11 pages

Lecture

Lecture

61 pages

Multicast

Multicast

61 pages

Lecture

Lecture

19 pages

Lecture

Lecture

8 pages

Lecture

Lecture

81 pages

Lecture

Lecture

9 pages

Lecture

Lecture

6 pages

Lecture

Lecture

63 pages

Lecture

Lecture

13 pages

Lecture

Lecture

63 pages

Lecture

Lecture

50 pages

lecture

lecture

35 pages

Lecture

Lecture

47 pages

Lecture

Lecture

29 pages

Lecture

Lecture

92 pages

Load more
Download 17-DNS
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view 17-DNS and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view 17-DNS 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?