Content Distribu-on Networks (CDNs)

Similar documents
Server Selection Mechanism. Server Selection Policy. Content Distribution Network. Content Distribution Networks. Proactive content replication

CONTENT-DISTRIBUTION NETWORKS

CSE 124: CONTENT-DISTRIBUTION NETWORKS. George Porter December 4, 2017

Mul$media Networking. #9 CDN Solu$ons Semester Ganjil 2012 PTIIK Universitas Brawijaya

11/13/2018 CACHING, CONTENT-DISTRIBUTION NETWORKS, AND OVERLAY NETWORKS ATTRIBUTION

Web, HTTP, Caching, CDNs

416 Distributed Systems. March 23, 2018 CDNs

HTTP and Web Content Delivery

Distributed Systems. 21. Content Delivery Networks (CDN) Paul Krzyzanowski. Rutgers University. Fall 2018

CS November 2018

CS November 2017

CSE 486/586 Distributed Systems

Outline Computer Networking. HTTP Basics (Review) How to Mark End of Message? (Review)

Content Delivery on the Web: HTTP and CDNs

Overview Content Delivery Computer Networking Lecture 15: The Web Peter Steenkiste. Fall 2016

Web Caching and Content Delivery

Overview Computer Networking Lecture 16: Delivering Content: Peer to Peer and CDNs Peter Steenkiste

The Design and Implementation of a Next Generation Name Service for the Internet (CoDoNS) Presented By: Kamalakar Kambhatla

Content Distribution. Today. l Challenges of content delivery l Content distribution networks l CDN through an example

CS 43: Computer Networks. 14: DHTs and CDNs October 3, 2018

How Akamai delivers your packets - the insight. Christian Kaufmann SwiNOG #21 11th Nov 2010

Venugopal Ramasubramanian Emin Gün Sirer SIGCOMM 04

Application Protocols and HTTP

Mul$cast and Anycast. Outline today TODAY 3/11/14. Mike Freedman COS 461: Computer Networks. IP Anycast

Supporting Mobility in MobilityFirst

EECS 122: Introduction to Computer Networks DNS and WWW. Internet Names & Addresses

CSE 123b Communications Software

Files/News/Software Distribution on Demand. Replicated Internet Sites. Means of Content Distribution. Computer Networks 11/9/2009

Computer Networks. Wenzhong Li. Nanjing University

What is Network Acceleration?

Multimedia Streaming. Mike Zink

Today: World Wide Web! Traditional Web-Based Systems!

Deployment Scenarios for Standalone Content Engines

Today s class. CSE 123b Communications Software. Telnet. Network File System (NFS) Quick descriptions of some other sample applications

Democratizing Content Publication with Coral

Enterprise Overview. Benefits and features of Cloudflare s Enterprise plan FLARE

Scaling Internet TV Content Delivery ALEX GUTARIN DIRECTOR OF ENGINEERING, NETFLIX

Scalability of web applications

ThousandEyes for. Application Delivery White Paper

Distributed Systems. Distributed Systems Within the Internet Nov. 9, 2011

Democratizing Content Publication with Coral

Performance Analysis for Crawling

SaaS Providers. ThousandEyes for. Summary

Large-Scale Web Applications

CS 43: Computer Networks BitTorrent & Content Distribution. Kevin Webb Swarthmore College September 28, 2017

CCDP-ARCH. Section 11. Content Networking

internet technologies and standards

Computer Science 461 Final Exam May 22, :30-3:30pm

Introduction to Computer Networks

Wide-area Dissemina-on under Strict Timeliness, Reliability, and Cost Constraints

Fundamental Questions to Answer About Computer Networking, Jan 2009 Prof. Ying-Dar Lin,

Internet Technology. 06. Exam 1 Review Paul Krzyzanowski. Rutgers University. Spring 2016

Content Delivery Networks

Internet Content Distribution

0 0& Basic Background. Now let s get into how things really work!

Distributed Systems Principles and Paradigms. Chapter 12: Distributed Web-Based Systems

A Tale of Three CDNs

Application Layer -1- Network Tools

Drafting Behind Akamai (Travelocity-Based Detouring)

Cloudflare CDN. A global content delivery network with unique performance optimization capabilities

Advanced Computer Networks Exercise Session 7. Qin Yin Spring Semester 2013

Seminar on. By Sai Rahul Reddy P. 2/2/2005 Web Caching 1

Parts of a Network. app. router. link. host. Computer Networks 2

Component Function Example

Computer Networks - Midterm

More on Testing and Large Scale Web Apps

Internet Anycast: Performance, Problems and Potential

Last Class: Consistency Models. Today: Implementation Issues

A10 Thunder ADC with Oracle E-Business Suite 12.2 DEPLOYMENT GUIDE

Internet Technology 3/2/2016

CSE 124: TAIL LATENCY AND PERFORMANCE AT SCALE. George Porter November 27, 2017

ANYCAST and MULTICAST READING: SECTION 4.4

Web caches (proxy server) Applications (part 3) Applications (part 3) Caching example (1) More about Web caching

What is the relationship between a domain name (e.g., youtube.com) and an IP address?

Citrix SD-WAN for Optimal Office 365 Connectivity and Performance

TECHNISCHE UNIVERSITEIT EINDHOVEN Faculteit Wiskunde en Informatica

CDN TUNING FOR OTT - WHY DOESN T IT ALREADY DO THAT? CDN Tuning for OTT - Why Doesn t It Already Do That?

Wireless Challenges : Computer Networking. Overview. Routing to Mobile Nodes. Lecture 25: Wireless Networking

Chapter 6: Distributed Systems: The Web. Fall 2012 Sini Ruohomaa Slides joint work with Jussi Kangasharju et al.

Deployment Guide AX Series with Oracle E-Business Suite 12

STM. Computing. Specifica on Topics. High Level Skills you should think about to take your work to the next level:

Configuring Answers and Answer Groups

Configuring Answers and Answer Groups

Yet another redirection mechanism for the World-Wide Web?

Exam - Final. CSCI 1680 Computer Networks Fonseca. Closed Book. Maximum points: 100 NAME: 1. TCP Congestion Control [15 pts]

Today: World Wide Web

Architekturen für die Cloud

TAIL LATENCY AND PERFORMANCE AT SCALE

Basic NAT Example Security Recitation. Network Address Translation. NAT with Port Translation. Basic NAT. NAT with Port Translation

Overlay Networks. Behnam Momeni Computer Engineering Department Sharif University of Technology

Today: World Wide Web. Traditional Web-Based Systems

Application Layer. Applications and application-layer protocols. Goals:

Networking for Wide Format Printers

KillTest ᦝ䬺 䬽䭶䭱䮱䮍䭪䎃䎃䎃ᦝ䬺 䬽䭼䯃䮚䮀 㗴 㓸 NZZV ]]] QORRZKYZ PV ٶ瀂䐘މ悹伥濴瀦濮瀃瀆ݕ 濴瀦

Radware's Application Front End solution for Microsoft Exchnage 2003 Outlook Web Access (OWA)

jetnexus Virtual Load Balancer

DEPLOYMENT GUIDE Version 1.2. Deploying the BIG-IP System v10 with Microsoft IIS 7.0 and 7.5

1. What is a Computer Network? interconnected collection of autonomous computers connected by a communication technology

List of measurements in rural area

Odin: Microsoft s Scalable Fault-

Transcription:

Second Half of the Course Content Distribu-on Networks (CDNs) Mike Freedman COS 461: Computer Networks h@p://www.cs.princeton.edu/courses/archive/spr14/cos461/ Applica-on case studies Content distribu-on, peer- to- peer systems and distributed hash tables (DHTs), and overlay networks Network case studies Enterprise, wireless, cellular, datacenter, and backbone networks; sooware- defined networking Network security Securing communica-on protocols Interdomain rou-ng security 2 Single Server, Poor Performance Skewed Popularity of Web Traffic Zipf or power- law distribu-on Single Popular content Single point of failure Popular site Easily overloaded Flash crowd (aka Far from most clients Slashdot effect ) Denial of Service a@ack Characteris*cs of WWW Client- based Traces Carlos R. Cunha, Azer Bestavros, Mark E. Crovella, BU- CS- - 01 4 1

Caches 6 Web Caching client request response request response request response origin client 6 Forward Cache close to the client Under administra-ve control of client- side AS Explicit proxy Requires configuring browser client request response request response client Implicit proxy Service provider deploys an on path proxy that intercepts and handles Web requests Reverse Cache close to Either by proxy run by or in third- party content distribu-on network (CDN) Direc-ng clients to the proxy Map the site name to the IP address of the proxy request response request response origin origin 2

Servers... Router Requests Google Design Reverse Client Data Centers Private Backbone Internet Client Reverse Client Router Servers Caches (A) Forward (B) Reverse (C) Both (D) Neither Reac-vely replicates popular content Reduces origin costs Reduces client ISP costs Intelligent load balancing between origin s Offload form submissions (POSTs) and user auth Content reassembly or transcoding on behalf of origin Smaller round- trip -mes to clients Maintain persistent connec-ons to avoid TCP setup delay (handshake, slow start) 10 Caches (A) Forward (B) Reverse (C) Both (D) Neither Reac-vely replicates popular content (C) Reduces origin costs (C) Reduces client ISP costs (A) Intelligent load balancing between origin s (B) Offload form submissions (POSTs) and user auth (D) Content reassembly, transcoding on behalf of origin (C) Smaller round- trip -mes to clients (C) Maintain persistent connec-ons to avoid TCP setup delay (handshake, slow start) (C) 11 Limita-ons of Web Caching Much content is not cacheable Dynamic data: stock prices, scores, web cams CGI scripts: results depend on parameters Cookies: results may depend on passed data SSL: encrypted data is not cacheable Analy-cs: owner wants to measure hits Stale data Or, overhead of refreshing the cached data 12

Modern Video- on- Demand Download content manifest from origin List of video segments belonging to video Each segment 1-2 seconds in length Client can know -me offset associated with each Standard naming for different video resolu-ons and formats: e.g., 20dpi, 20dpi, 1040dpi, Client downloads video segment (at certain resolu-on) using standard request. request can be sa-sfied by cache: it s a sta-c object Client observes download -me vs. segment dura-on, increases/decreases resolu-on if appropriate 1 Content Distribu-on Networks 14 Content Distribu-on Network Proac-ve content replica-on Content provider (e.g., CNN) contracts with a CDN CDN replicates the content On many s spread throughout the Internet Upda-ng the replicas Updates pushed to replicas when the content changes origin in North America CDN distribution node CDN CDN in S. America CDN in Asia in Europe Live For availability Server Selec-on Policy Requires con*nuous monitoring of liveness, load, and performance Lowest load To balance load across the s Closest Nearest geographically, or in round- trip -me Best performance Throughput, latency, Cheapest bandwidth, electricity, 1 16 4

Server Selec-on Mechanism Server Selec-on Mechanism Applica-on redirec-on GET Redirect GET OK Advantages Fine- grain control Selec-on based on client IP address Disadvantages Extra round- trips for TCP connec-on to Overhead on the Rou-ng Anycast rou-ng 1.2..0/24 1.2..0/24 Advantages No extra round trips Route to nearby Disadvantages Does not consider network or load Different packets may go to different s Used only for simple request- response apps 1 1 Server Selec-on Mechanism Naming DNS- based selec-on 1.2..4 Advantages Avoid TCP set- up delay DNS caching reduces overhead Rela-vely fine control How Works DNS query local 1.2.. Disadvantage Based on IP address of local Hidden load effect DNS TTL limits adapta-on 1 20

Sta-s-cs How Uses DNS 22 Distributed s Servers: ~100,000 Networks: ~1,000 Countries: ~0 Many customers Apple, BBC, FOX, GM IBM, MTV, NASA, NBC, NFL, NPR, Puma, Red Bull, Rutgers, SAP, Client requests 20+M per second Half in the top 4 networks 20% of all Web traffic worldwide 21 GET index. html http://cache.cnn.com/ foo.jpg DNS root global regional How Uses DNS 2 How Uses DNS 24 DNS lookup cache.cnn.com 4 ALIAS: g.akamai.net global regional ALIAS a.g.akamai.net DNS lookup g.akamai.net global regional 6

How Uses DNS 2 How Uses DNS 26 DNS a.g.akamai.net Address 1.2..4 global regional GET /foo.jpg Host: cache.cnn.com global regional How Uses DNS 2 How Uses DNS 2 GET foo.jpg 11 12 global regional 11 12 global regional GET /foo.jpg Host: cache.cnn.com 10

How Works: Cache Hit 2 Mapping System Equivalence classes of IP addresses IP addresses experiencing similar performance Quan-fy how well they connect to each other 4 global regional Collect and combine measurements Ping, traceroute, BGP routes, logs E.g., over 100 TB of logs per days Network latency, loss, and connec-vity 6 0 Mapping System Map each IP class to a preferred Based on performance, health, etc. Updated roughly every minute Map client request to a in the Load balancer selects a specific E.g., to maximize the cache hit rate Adap-ng to Failures Failing hard drive on a Suspends aoer finishing in progress requests Failed Another takes over for the IP address Low- level map updated quickly Failed High- level map updated quickly Failed path to customer s origin Route packets through an intermediate node 1 2

Transport Op-miza-ons Bad Internet routes Overlay rou-ng through an intermediate Packet loss Sending redundant data over mul-ple paths TCP connec-on set- up/teardown Pools of persistent connec-ons TCP conges-on window and round- trip -me Es-mates based on network latency measurements Applica-on Op-miza-ons Slow download of embedded objects Prefetch when HTML page is requested Large objects Content compression Slow applica-ons Moving applica-ons to edge s E.g., content aggrega-on and transforma-on E.g., sta-c databases (e.g., product catalogs) 4 Conclusion Content distribu-on is hard Many, diverse, changing objects Clients distributed all over the world Reducing latency is king Contribu-on distribu-on solu-ons Reac-ve caching Proac-ve content distribu-on networks