DOC PREVIEW
Berkeley COMPSCI 268 - Lecture Notes

This preview shows page 1-2-3-23-24-25-26-46-47-48 out of 48 pages.

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

Unformatted text preview:

CS 268: 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 ExampleReliabilityPrefetchingRoot ZoneNew gTLDsNew RegistrarsDNS ExperienceSlide 28Some Interesting AlternativesSlide 30CDNServer SelectionRouting BasedRouting BasedApplication BasedNaming BasedHow Akamai WorksSlide 38Slide 39HashingRobust hashingConsistent HashConsistent Hash – ExampleSlide 44Akamai – Subsequent RequestsCoral: An Open CDNUsing CoralCDNCoralCDN componentsFunctionality neededUse a DHT?Coral ContributionsCS 268: 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 cmu berkeleybumitcseecs•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.berkeley.edu•Fred.cs.berkeley.edu•Fred.cs.mit.edu10DNS Design: Zone Definitionsrootedunetorgukcomcagwu cmu ucb bumitcseecsradlabSingle 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.Berkeley.EDU created by Berkeley.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.berkeley.edu DNS serverwww.cs.berkeley.eduNS ns1.berkeley.eduwww.cs.berkeley.eduNS ns1.cs.berkeley.eduA www=IPaddrns1.cs.berkeley.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.berkeley.edu DNS serverwww.cs.berkeley.eduNS ns1.berkeley.eduwww.cs.berkeley.eduNS ns1.cs.berkeley.eduA www=IPaddrns1.cs.berkeley.eduDNSserver21Subsequent Lookup ExampleClientLocal DNS serverroot & edu DNS serverberkeley.edu DNS servercs.berkeley.eduDNSserverftp.cs.berkeley.eduftp=IPaddrftp.cs.berkeley.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 responds23Prefetching•Name servers can add additional data to 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”24Root Zone•Generic Top Level Domains (gTLD) = .com, .net, .org, etc. …•Country Code Top Level Domain (ccTLD) = .us, .ca, .fi, .uk, etc. …•Root server ({a-m}.root-servers.net) also used to cover gTLD


View Full Document

Berkeley COMPSCI 268 - Lecture Notes

Documents in this Course
Lecture 8

Lecture 8

33 pages

L-17 P2P

L-17 P2P

50 pages

Multicast

Multicast

54 pages

Load more
Download Lecture Notes
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 Notes 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 Notes 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?