DOC PREVIEW
CMU CS 15744 - Lecture

This preview shows page 1-2-3-21-22-23-42-43-44 out of 44 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 44 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 44 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 44 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 44 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 44 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 44 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 44 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 44 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 44 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 44 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

115-744: Computer NetworkingL-7 NamingL -7; 11-5-04© Srinivasan Seshan, 2004 2Next Lecture: DNS, P2P & P2P Apps • Readings• [JBSM01] DNS Performance and the Effectiveness of Caching• [BLR04] A Layered Naming Architecture for the Internet• [S+01] Chord: A Scalable Peer-to-peer Lookup Service for Internet Applications• [G+03] The Impact of DHT Routing Geometry on Resilience and ProximityL -7; 11-5-04© Srinivasan Seshan, 2004 3Naming• 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?L -7; 11-5-04© Srinivasan Seshan, 2004 4Overview• DNS• Server Selection and CDNs• P2P Lookup Overview• Centralized/Flooded Lookups• Routed Lookups – Chord• Comparison of DHTs• Layered Naming2L -7; 11-5-04© Srinivasan Seshan, 2004 5Obvious Solutions (1)Why not centralize DNS?• Single point of failure• Traffic volume• Distant centralized database• Single point of update• Doesn’t scale!L -7; 11-5-04© Srinivasan Seshan, 2004 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 updatesL -7; 11-5-04© Srinivasan Seshan, 2004 7Domain 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 consistencyL -7; 11-5-04© Srinivasan Seshan, 2004 8DNS 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 name3L -7; 11-5-04© Srinivasan Seshan, 2004 9DNS 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.eduL -7; 11-5-04© Srinivasan Seshan, 2004 10DNS 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 serversL -7; 11-5-04© Srinivasan Seshan, 2004 11DNS 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 administratorsL -7; 11-5-04© Srinivasan Seshan, 2004 12Servers/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 zone4L -7; 11-5-04© Srinivasan Seshan, 2004 13DNS: 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 serversL -7; 11-5-04© Srinivasan Seshan, 2004 14DNS Message FormatIdentificationNo. of QuestionsNo. of Authority RRsQuestions (variable number of answers)Answers (variable number of resource records)Authority (variable number of resource records)Additional Info (variable number of resource records)FlagsNo. of Answer RRsNo. of Additional RRsName, type fields for a queryRRs in response to queryRecords for authoritative serversAdditional “helpful info that may be used12 bytesL -7; 11-5-04© Srinivasan Seshan, 2004 15DNS Header Fields• 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 resolutionL -7; 11-5-04© Srinivasan Seshan, 2004 16Typical ResolutionClientLocal DNS serverroot & eduDNS serverns1.cmu.edu DNS serverwww.cs.cmu.eduNS ns1.cmu.eduwww.cs.cmu.eduNS ns1.cs.cmu.eduA www=IPaddrns1.cs.cmu.eduDNSserver5L -7; 11-5-04© Srinivasan Seshan, 2004 17Typical Resolution• Steps for resolving www.cmu.edu• Application calls gethostbyname() (RESOLVER)• Resolver contacts local name server (S1)•S1queries root server (S2) for (www.cmu.edu)•S2returns NS record for cmu.edu (S3)• What about A record for S3?• This is what the additional information section is for (PREFETCHING)•S1queries S3for www.cmu.edu•S3returns A record for www.cmu.edu• Can return multiple A records  what does this mean?L -7; 11-5-04© Srinivasan Seshan, 2004 18Lookup 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 queryL -7; 11-5-04© Srinivasan Seshan, 2004 19Workload 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 •


View Full Document

CMU CS 15744 - Lecture

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

13 pages

Lecture

Lecture

22 pages

Lecture

Lecture

48 pages

lecture

lecture

73 pages

17-DNS

17-DNS

52 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 Lecture
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 Lecture 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 Lecture 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?