DOC PREVIEW
Berkeley ELENG 122 - Name Services I

This preview shows page 1-2-21-22 out of 22 pages.

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

Unformatted text preview:

CIS 505: Software SystemsDesign spaceDesign space 2What is in a name?Domain Name Service (DNS)DNS 101Domain Name HierarchyDNS Implementation 101DNS Name Server HierarchyDNS: The Big IssuesDNS CachingDNS ReplicationThe Server Selection ProblemDNS Round RobinGeneralized Cache/CDN (External View)Generalized Cache/CDN (Internal View)DNS-based Request RoutingUsing DNS for Third-party CDNsDomain Granularity and “Akamaizing”The Akamai et. al. DNS HookWide-Area Request RoutingDNS summary01/14/19 CIS 505CIS 505: Software SystemsLecture 13: Name Services ICDK 91.-9.201/14/19 CIS 505Design space What do you do when change your phone number?Email/call friend ASAP< 400 friends?White page updated once a yearChanges are infrequent01/14/19 CIS 505Design space 2Design considerationsSize of local directoryDelay and cost of update propagationChallengesScaleFrequency of change01/14/19 CIS 505What is in a name?Pure name Un interpreted bit patternsAlways have to be looked upMay refer to a service instead of a single objectAddress Identifies the location of an objectEfficient for accessing objectsBut inadequate as ID01/14/19 CIS 505Domain Name Service (DNS)A planetary name service that translates Internet domain namesmaps <node name> to <IP address>(mostly) independent of location, routing etc.Use of hierarchy for scalabilitydecentralized administration of the name spacehierarchical authority and trust01/14/19 CIS 505DNS 101Domain names are the basis for the Web’s global URL space.provides a symbolic veneer over the IP address spacenames for autonomous naming domains, e.g., cis.upenn.edunames for specific nodes, e.g., codex.cis.upenn.edunames for service aliases (e.g., www, mail servers)01/14/19 CIS 505Domain Name Hierarchy.edudrexelcsupenncis whartoneewww(C1K)centralcswashingtoncomgovorgnetfirmshopartswebustop-leveldomains(generic TLDs) frcountry-code TLDsDNS name space is hierarchical: - fully qualified names are “little endian” - scalability - decentralized administration - domains are naming contextsreplaces primordial flat hosts.txt namespaceHow is this different from hierarchical directories in distributed file systems? Do we already know how to implement this?01/14/19 CIS 505“lookup www.nhc.noaa.gov”DNS server fornhc.noaa.govlocalDNS server“www.nhc.noaa.gov is140.90.176.22”DNS Implementation 101WWW server fornhc.noaa.gov(IP 140.90.176.22) DNS protocol/implementation:UDP-based client/serverclient-side resolverstypically in a librarygethostbyname, gethostbyaddrcooperating serversquery-answer-referral modelforward queries among serverscommon implementation: BIND01/14/19 CIS 505DNS Name Server Hierarchy.edudrexelupennciswhartonee...comgovorgnetfirmshopartswebusfrRoot servers listservers for every TLD.DNS servers are organized into a hierarchy that mirrors the name space.Specific servers are designated as authoritative for portions of the name space.Subdomains correspond to organizational (admininstrative) boundaries, which are not necessarily geographical.Servers may delegate management of subdomains to child name servers.Parents refer subdomain queries to their children.Servers are bootstrapped with pointers to selected peer and parent servers.Resolvers are bootstrapped with pointers to one or more local servers; they issue recursive queries.01/14/19 CIS 505DNS: The Big Issues1. Naming contextsI want to use short, unqualified names like central instead of central.cis.upenn.edu when I’m in the cis.upennedu domain.2. What about trust? How can we know if a server is authoritative, or just an impostor?What happens if a server lies or behaves erratically? What denial-of-service attacks are possible? What about privacy?3. What if an “upstream” server fails?4. Is the hierarchical structure sufficient for scalability?more names vs. higher request rates01/14/19 CIS 505DNS CachingCaching of query responses allows subsequent queries to bypass the roots of the server hierarchy.Each response is stamped with a time-to-live (TTL) to limit damage from stale cache entries..eduupenncisTLD rootC1k.cis.upenn.eduLocal server caches .edu, upenn.edu, cis.upenn.edu, and c1k.cis.upenn.edu.responsequeryWhat about negative caching: is it worthwhile to cache negative responses?01/14/19 CIS 505DNS ReplicationEvery DNS domain has or should have at least one secondary name server replica.- configure peers to offload queries from primary- serve as authoritative backupSecondary replicas keep themselves up to date by periodically fetching/refreshing the entire naming database via zone transfer (TCP).The primary database is timestamped with a “serial number” to short-circuit if no updates have occurred since last zone transfer.How to load-balance the secondaries?.eduupennciseequeryzone transferprimarysecondaryquery (backup)domain adminupdates primary01/14/19 CIS 505The Server Selection ProblemWhich network site?Which server?“Contact the weather service.”server array Aserver farm B01/14/19 CIS 505DNS Round Robin“lookup www.nhc.noaa.gov”aDNS server fornhc.noaa.govb c dlocalDNS server“www.nhc.noaa.gov isIP address a”(or {b,c,d})Brisco (Rutgers), RFC 1794What about DNS caching?How to handle server failures?How effective is the load-balancing?01/14/19 CIS 505Generalized Cache/CDN (External View){request, reply}Origin ServersClients{push, request, reply}Content Distribution NetworksWeb Caches01/14/19 CIS 505Generalized Cache/CDN (Internal View)Leaf Caches(e.g., ISP proxies)Interior Cachesroot cachesreverse proxiesCDN cachesRequest Routing Function ƒbound client populationsƒ01/14/19 CIS 505DNS-based Request RoutingHow to apply the request routing function ƒ?Some intermediary intercepts the request, and directs it to a selected site.Smart proxies or switches? E.g., look at URL or server IP address.Or, interpose on the binding procedure, before the client sends the request itself. Smart clients, Active Names, RPC binding, or DNS lookupThird-party CDNs are based on DNS servers that select the cache/replica site on DNS lookup for the request.Akamai, Digital Island, Web hosting providers (e.g., Exodus), etc.Like DNS-RR....but smarter...01/14/19 CIS 505Using DNS for Third-party CDNsIntelligent DNS-based request routing has some tricky parts:Third-party CDNs contract with content


View Full Document

Berkeley ELENG 122 - Name Services I

Documents in this Course
Lecture 6

Lecture 6

22 pages

Wireless

Wireless

16 pages

Links

Links

21 pages

Ethernet

Ethernet

10 pages

routing

routing

11 pages

Links

Links

7 pages

Switches

Switches

30 pages

Multicast

Multicast

36 pages

Switches

Switches

18 pages

Security

Security

16 pages

Switches

Switches

18 pages

Lecture 1

Lecture 1

56 pages

OPNET

OPNET

5 pages

Lecture 4

Lecture 4

16 pages

Ethernet

Ethernet

65 pages

Models

Models

30 pages

TCP

TCP

16 pages

Wireless

Wireless

48 pages

Load more
Download Name Services I
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 Name Services I 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 Name Services I 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?