DOC PREVIEW
CORNELL CS 414 - DNS and CDNs

This preview shows page 1-2-3-18-19-37-38-39 out of 39 pages.

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

Unformatted text preview:

DNS and CDNs (Content Distribution Networks)What do all of these have in common?They all have a DNS name somewhereWhy is DNS so important?DNS is the “core” of the InternetPicture of DNS query/replyWhy all these dots?It wasn’t always that wayThe “host table” and DNSThe host table (historic)Distributed DirectoryDNS is simple but powerfulDNS is the core of the InternetImportant DNS RR typesDNS tree structurePrimary and secondary serversResolver structure and configurationSlide 18DNS cache managementCaching is the key to performanceChanging a DNS nameDNS IssuesNext, Content Distribution NetworksContent Routing Principle (a.k.a. Content Distribution Network)Slide 25Slide 26Two basic types of CDN: cached and pushedCached CDNSlide 29Slide 30Slide 31Pushed CDNSlide 33CDN benefitsCDN costs and limitationsWhat if lots of clients try to access the same CS?How can the CDN spread this load around?Guess what: DNS!How well do CDNs work?DNS and CDNs (Content Distribution Networks)Paul FrancisCornell Computer ScienceWhat do all of these have in common?http://www.cnn.com/news/story.htmlHTTP (web)mailto://[email protected]Emailsip://[email protected]SIP (Session Initiation Protocol)They all have a DNS name somewherehttp://www.cnn.com/news/story.htmlHTTP (web)[email protected]Emailsip://[email protected]SIP (Session Initiation Protocol)Why is DNS so important?Names are easier to remember than IP addresses[email protected] ???And in any event, IP addresses are not “dependable”They change often (dialup)They are not all uniqueDNS is the “core” of the InternetSo “we” (humans, and applications) like to deal with dependable, stable, friendly DNS namesThe names get “mapped” into IP addresses by lower layersBy the Domain Name System (DNS)Then the learned IP address is put into packets, and IP routing gets the packets across the InternetPicture of DNS query/replyWhy all these dots?Why falcon.cs.cornell.edu?Why not “cornell-falcon” or something?It wasn’t always that wayTwenty years ago, this was a valid email address:george@isiHow did my computer learn the IP address of “isi”?The “host table” and DNSBefore DNS, there was the host tableThis was a complete list of all the hosts in the Internet!It was copied every night to every machine on the Internet!At some point, this was perceived as a potential scaling bottleneck…So a distributed directory called the “Domain Name System” was invented (DNS)The host table (historic)Host Name IP Addressmit-dlab 133.65.14.77isi-mail 24.72.188.13mit-lcs 133.65.29.1… …Distributed DirectoryA primary goal of DNS was to have a distributed “host table”, so that each site could manage its own name-to-address mappingBut also, it should scale well!DNS is simple but powerfulOnly one type of queryQuery(domain name, RR type)•Resource Record (RR) type is like an attribute typeAnswer(values, additional RRs) Limited number of RR typesHard to make new RR typesNot for technical reasons…Rather because each requires global agreementDNS is the core of the InternetGlobal name spaceCan be the core of a naming or identifying schemeGlobal directory serviceCan resolve a name to nearly every computer on the planetImportant DNS RR typesNS: Points to next Name Server down the treeA: Contains the IP addressAAAA for IPv6MX: Contains the name of the mail serverService-oriented RR typesSRV: Contains addresses and ports of services on servers•One way to learn what port number to useNAPTR: Essentially a generalized mapping from one name space (i.e. phone numbers) to another (i.e. SIP URL)DNS tree structure.edu.cornell.edu.cs.cornell.edu.com. jp. us.cmu.edu. mit.edu.eng.cornell.edu.foo.cs.cornell.edu A 10.1.1.1bar.cs.cornell.edu A 10.1.1.1NS RR “pointers”Primary and secondary serverscornell.edu.cs.cornell.edu.NS RRs point to both primary and secondary serversRRs are initially configured into primary serverPrimary server replicates RRs onto secondary servers periodically(updates are incremental)Resolver structure and configuration.edu.cornell.edu.cs.cornell.edu.com. jp.cmu.edu.eng.cornell.edu.Static configurationof root serversStub resolver resides on client host, points to configured recursive serverResolver manages DNS queries on behalf of stub resolversResolver structure and configuration.edu.cornell.edu.cs.cornell.edu.com. jp.cmu.edu.eng.cornell.edu.1. Stub resolver sends recursive query2,3,4… Resolver makes iterative queries to serversN. Resolver returns final answer to stub resolver (which also caches result)Resolver caches results for efficiencyDNS cache managementAll RRs have Time-to-live (TTL) valuesWhen TTL expires, cache entries are removedNS RRs tend to have long TTLsCached for a long timeReduces load on higher level serversA RRs may have very short TTLsOrder one minute for some web servicesOrder one day for typical hostsCaching is the key to performanceWithout caching, the small number of machines at the top of the hierarchy would be overwhelmedBut what if you want to change the IP address of a host? How do you change all those cached entries around the world?You can’t…you wait until they timeout on their own, then make your changeChanging a DNS nameSay your TTL was set to one dayThis means that even if you change DNS now, some hosts will continue to use the old address for a daySo, give the host two IP addresses for a while (the old one and the new one)But DNS only answers with the new oneAfter a day, the old one is cleaned out of caches, and you can remove it from the hostDNS IssuesDoS attacks on (13) root serversDoS = Denial of ServiceMis-configuration issuesBut on the whole DNS is an incredible system, and is in many important respects is the “core” of the Internethttp://www.cnn.com/news[email protected], Content Distribution NetworksIdea here is to replicate a “web server” in many places over the InternetLatency to a single centralized web server farm may be too highA centralized web server farm may failContent Routing Principle(a.k.a. Content Distribution Network)SISPBackboneISPIX IXS SSiteSISPS S SISPS SBackboneISPBackboneISPHostingCenterHostingCenterSitesContent Routing Principle(a.k.a. Content Distribution Network)SISPBackboneISPIX IXS


View Full Document

CORNELL CS 414 - DNS and CDNs

Documents in this Course
Security

Security

49 pages

Processes

Processes

24 pages

Deadlocks

Deadlocks

57 pages

Threads

Threads

5 pages

Threads

Threads

29 pages

Deadlocks

Deadlocks

36 pages

Load more
Download DNS and CDNs
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 DNS and CDNs 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 DNS and CDNs 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?