DOC PREVIEW
CORNELL CS 514 - Reliable Distributed Systems

This preview shows page 1-2-3-4-25-26-27-51-52-53-54 out of 54 pages.

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

Unformatted text preview:

Reliable Distributed SystemsRecall that Web Services won’t…How we do it nowWhy this isn’t good enoughContent Routing Principle (a.k.a. Content Distribution Network)Slide 6Slide 7Two basic types of CDN: cached and pushedCached CDNSlide 10Slide 11Slide 12Pushed CDNSlide 14CDN benefitsCDN costs and limitationsCDN example: AkamaiAkamai caching services ARL: Akamai Resource LocatorARL: Akamai Resource LocatorSlide 20Slide 21ARL Control PartARL Host PartSlide 24Akamai EdgesuiteSharper Image and EdgesuiteSlide 27What may be happening…Other content routing mechanismsSlide 30Slide 31How well do CDNs work?Slide 33Reduced latency can improve TCP performanceLets look at a studyMethodologyResponse Time Results (II) Including DNS Lookup TimeSlide 38CDNs out-performed non-CDNsEffectiveness of DNS load balancingSlide 41DNS load balancing not very effectiveOther findings of studyUltimately a frustrating studyAnother studyHistorical trend: Clear improvementPerformance breakdownEffect of CDN: Positive (but again, we don’t know why)Most web sites not using CDN (4-1)To wrap things upLayered NamingResearch challengesHomework (not to hand in)WS & RPC Connectivity Issues: Network Address TranslationReliable Distributed SystemsA glimpse into the world of Content Distribution NetworksBased on a slide set developed by Prof. Paul FrancisRecall that Web Services won’t…Allow the data center to control decisions the client makesAssist us in implementing naming and discovery in scalable cluster-style servicesHow to load balance? How to replicate data? What precisely happens if a node crashes or one is launched while the service is up?Help with dynamics. For example, best server for a given client can be a function of load but also affinity, recent tasks, etcHow we do it nowClient queries directory to find the serviceServer has several options:Web pages with dynamically created URLsServer can point to different places, by changing host namesContent hosting companies remap URLs on the fly. E.g. http://www.akamai.com/www.cs.cornell.edu (reroutes requests for www.cs.cornell.edu to Akamai)Server can control mapping from host to IP addr.Must use short-lived DNS records; overheads are very high!Can also intercept incoming requests and redirect on the flyWhy this isn’t good enoughThe mechanisms aren’t standard and are hard to implementAkamai, for example, does content hosting using all sorts of proprietary tricksAnd they are costlyThe DNS control mechanisms force DNS cache misses and hence many requests do RPC to the data centerWe lack a standard, well supported, solution!Content Routing Principle(a.k.a. Content Distribution Network)SISPBackboneISPIX IXS SSiteSISPS S SISPS SBackboneISPBackboneISPHostingCenterHostingCenterSitesContent Routing Principle(a.k.a. Content Distribution Network)SISPBackboneISPIX IXS SSiteSISPS S SISPS SBackboneISPBackboneISPHostingCenterHostingCenterSitesCSCS CSCSCSContent Origin hereat Origin ServerContent Servers distributed throughout the InternetOSContent Routing Principle(a.k.a. Content Distribution Network)SISPBackboneISPIX IXS SSiteSISPS S SISPS SBackboneISPBackboneISPHostingCenterHostingCenterSitesCSCS CSCSCSContent is served from content servers nearer to the clientCCOSTwo basic types of CDN: cached and pushedSISPBackboneISPIX IXS SSiteSISPS S SISPS SBackboneISPBackboneISPHostingCenterHostingCenterSitesCSCS CSCSCSC COSCached CDNSISPBackboneISPIX IXS SSiteSISPS S SISPS SBackboneISPBackboneISPHostingCenterHostingCenterSitesCSCS CSCSCS1. Client requests content.C COSCached CDNSISPBackboneISPIX IXS SSiteSISPS S SISPS SBackboneISPBackboneISPHostingCenterHostingCenterSitesCSCS CSCSCS1. Client requests content.2. CS checks cache, if miss gets content from origin server.C COSCached CDNSISPBackboneISPIX IXS SSiteSISPS S SISPS SBackboneISPBackboneISPHostingCenterHostingCenterSitesCSCS CSCSCS1. Client requests content.2. CS checks cache, if miss gets content from origin server.3. CS caches content, delivers to client.C COSCached CDNSISPBackboneISPIX IXS SSiteSISPS S SISPS SBackboneISPBackboneISPHostingCenterHostingCenterSitesCSCS CSCSCS1. Client requests content.2. CS checks cache, if miss gets content from origin server.3. CS caches content, delivers to client.4. Delivers content out of cache on subsequent requests.C COSPushed CDNSISPBackboneISPIX IXS SSiteSISPS S SISPS SBackboneISPBackboneISPHostingCenterHostingCenterSitesCSCS CSCSCS1. Origin Server pushes content out to all CSs.COSCPushed CDNSISPBackboneISPIX IXS SSiteSISPS S SISPS SBackboneISPBackboneISPHostingCenterHostingCenterSitesCSCS CSCSCS1. Origin Server pushes content out to all CSs.2. Request served from CSs.CCOSCDN benefitsContent served closer to clientLess latency, better performanceLoad spread over multiple distributed CSsMore robust (to ISP failure as well as other failures)Handle flashes better (load spread over ISPs)But well-connected, replicated Hosting Centers can do this tooCDN costs and limitationsCached CDNs can’t deal with dynamic/personalized contentMore and more content is dynamic“Classic” CDNs limited to imagesManaging content distribution is non-trivialTension between content lifetimes and cache performanceDynamic cache invalidationKeeping pushed content synchronized and currentCDN example: AkamaiWon huge market share of CDN business late 90’sCached approachNow offers full web hosting services in addition to caching servicesCalled edgesuiteAkamai caching servicesARL: Akamai Resource Locatorhttp://a620.g.akamai.net/7/620/16/259fdbf4ed29de/www.cnn.com/i/22.gif a620.g.akamai.net/Host Part Akamai Control Part Content URL/7/620/16/259fdbf4ed29de//www.cnn.com/i/22.gif Thanks to [email protected], “How Akamai Works”ARL: Akamai Resource Locatorhttp://a620.g.akamai.net/7/620/16/259fdbf4ed29de/www.cnn.com/i/22.gif a620.g.akamai.net//7/620/16/259fdbf4ed29de//www.cnn.com/i/22.gif Content Provider (CP) selects which content will be hosted by Akamai.Akamai provides a tool that transforms this CP URL into this ARLARL: Akamai Resource Locatorhttp://a620.g.akamai.net/7/620/16/259fdbf4ed29de/www.cnn.com/i/22.gif a620.g.akamai.net//7/620/16/259fdbf4ed29de//www.cnn.com/i/22.gif This in turn causes the client to access Akamai’s content server instead of the origin server.ARL: Akamai Resource Locatorhttp://a620.g.akamai.net/7/620/16/259fdbf4ed29de/www.cnn.com/i/22.gif


View Full Document

CORNELL CS 514 - Reliable Distributed Systems

Documents in this Course
LECTURE

LECTURE

29 pages

LECTURE

LECTURE

28 pages

Load more
Download Reliable Distributed Systems
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 Reliable Distributed Systems 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 Reliable Distributed Systems 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?