Top Banner
1 © 2000, Cisco Systems, Inc. Terena 2000 Content Delivery Networks Content Delivery Networks Terena Terena 2000 2000 Silvano Gai Silvano Gai Cisco Systems, USA Cisco Systems, USA Politecnico di Torino, IT Politecnico di Torino, IT [email protected] ftp://ftpeng.cisco.com/sgai/t2000cdn.pdf
35

Content Delivery Networks

Feb 03, 2022

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Content Delivery Networks

1© 2000, Cisco Systems, Inc. Terena 2000

Content Delivery NetworksContent Delivery NetworksTerenaTerena 2000 2000

Silvano GaiSilvano GaiCisco Systems, USACisco Systems, USA

Politecnico di Torino, ITPolitecnico di Torino, [email protected]

ftp://ftpeng.cisco.com/sgai/t2000cdn.pdf

Page 2: Content Delivery Networks

2Terena2000CDN © 2000, Cisco Systems, Inc.

AgendaAgenda

• What are Content Delivery Networks?• DNS based routing• Server Load Balancing• Content Routers• Ethical questions• Conclusion

Page 3: Content Delivery Networks

3Terena2000CDN © 2000, Cisco Systems, Inc.

At the beginning were Web CachesAt the beginning were Web Caches

IP NetworkIP NetworkIP NetworkIP Network

S1S1

S2S2

S3S3 WebWebCacheCache

A Web Cache is a device that stores a local copy of moreA Web Cache is a device that stores a local copy of morerecently required HTTP objects and reacts as proxyrecently required HTTP objects and reacts as proxyserver to clients’ requestsserver to clients’ requests

Page 4: Content Delivery Networks

4Terena2000CDN © 2000, Cisco Systems, Inc.

Motivations for Content Delivery NetworksMotivations for Content Delivery Networks

• A set of caches “working”together

• Server farms are far fromusers.

• Internet congestion failsthe best serverarchitectures.

• Traffic peaks crash sites

Page 5: Content Delivery Networks

5Terena2000CDN © 2000, Cisco Systems, Inc.

Content Delivery Networks (Content Delivery Networks (CDNsCDNs))

• Distributed Web Hosting• Video-On-Demand

• MPEG on LAN• Low/Mid-rate streaming on WAN

• Scalable Live Streaming• Dynamic Content• Conditional-Access Content

• advertisements

Page 6: Content Delivery Networks

6Terena2000CDN © 2000, Cisco Systems, Inc.

Server

1K to 1M Client Requests

Live StreamsContent Updates

Example of CDNExample of CDN

Page 7: Content Delivery Networks

7Terena2000CDN © 2000, Cisco Systems, Inc.

SIG

HTP

AT

H

SIG

HTP

AT

H

SIG

HTP

AT

H

SIG

HTP

AT

H

SIG

HTP

AT

H

SIG

HTP

AT

H

SIG

HTP

AT

H

SIG

HTP

AT

H

SIG

HTP

AT

H

SIG

HTP

AT

H

SIG

HTP

AT

H

SIG

HTP

AT

H

SIG

HTP

AT

H

SIG

HTP

AT

H

SIG

HTP

AT

H

SIG

HTP

AT

H

SIG

HTP

AT

H

SIG

HTP

AT

H

SIG

HTP

AT

H

An Overlay Network over InternetAn Overlay Network over Internet

• A CDN is an overlaid network of Caches, a.k.a.Content Servers, a.k.a. Delivery Nodes, a.k.a.Replicas

Page 8: Content Delivery Networks

8Terena2000CDN © 2000, Cisco Systems, Inc.

AgendaAgenda

• What are Content Delivery Networks?• DNS based routing• Server Load Balancing• Content Routers• Ethical questions• Conclusion

Page 9: Content Delivery Networks

9Terena2000CDN © 2000, Cisco Systems, Inc.

The ideaThe idea

Routing based onDNS names

Standard DNS interface

DNS queries for www.terena2000.com

Page 10: Content Delivery Networks

10Terena2000CDN © 2000, Cisco Systems, Inc.

DNS-basedDNS-based CDNs CDNs

• Host Names are used to redirect the traffic to thebest replica

• the replica selections happens when the name istranslated to an IP address

• DNS servers become “Content Routers”• they monitor the dynamic performance of the Internet

and adapt the “DNS routing”, i.e. the name resolutionprocess

• DNS hierarchy is fundamental to scalability

Page 11: Content Delivery Networks

11Terena2000CDN © 2000, Cisco Systems, Inc.

XYZAccess Provider

Backbone Provider

Hosting Provider

Content Provider

Traditional BrowsingTraditional Browsing

UUNETAT&T MCI

EXDSABOV

MSPG

CNN

DNS

DNS

Page 12: Content Delivery Networks

12Terena2000CDN © 2000, Cisco Systems, Inc.

XYZ

DNS-based CDN BrowsingDNS-based CDN Browsing

UUNETAT&T MCI

EXDSGBLX

MSPG

CNN

DNS

DNSAccess Provider

Backbone Provider

Hosting Provider

Content Provider

Replica Replica

Replica

Page 13: Content Delivery Networks

13Terena2000CDN © 2000, Cisco Systems, Inc.

DNS-based DNS-based CDNs CDNs LimitationsLimitations

• There are limitations• The granularity of redirection is an host name, not a

URL• Content of large web sites cannot be split into multiple

caches• It is difficult to use the same host name for static and

dynamic content

• The Akamai approach:• Akamaized URLs:

http://a836.g.akamaitech.net/7/836/123/e358f5db0045e/www.terena2000.com/logo.gif

Page 14: Content Delivery Networks

14Terena2000CDN © 2000, Cisco Systems, Inc.

Extension to DNS-based Extension to DNS-based CDNsCDNs

• How to implement more granular DNS-basedCDNs (e.g. how to look for the complete URL)?

• HTTP/RTSP Redirect

• Redirection can be obtained in two ways• every server in the farm is capable to redirect• An SLB (Server Load Balancer) is capable to redirect

• Effective only in a Local Area

Page 15: Content Delivery Networks

15Terena2000CDN © 2000, Cisco Systems, Inc.

The Next Step: URL-based The Next Step: URL-based CDNsCDNs

• URLs are used to redirect the traffic to the bestContent Server

• URL routing requires TCP termination• TCP termination is complex and expensive• TCP termination introduces delay

• There will be only one TCP termination point• Close to the client?• Close to the server?

Page 16: Content Delivery Networks

16Terena2000CDN © 2000, Cisco Systems, Inc.

AgendaAgenda

• What are Content Delivery Networks?• DNS based routing• Server Load Balancing• Content Routers• Ethical questions• Conclusion

Page 17: Content Delivery Networks

17Terena2000CDN © 2000, Cisco Systems, Inc.

Server FarmsServer Farms

Server FarmServer Farm

ClientClient(Browser)(Browser)

WebWebServerServer

ApplicationApplicationServerServer

DataDataServerServer

IP NetworkIP NetworkRR

• A reality today• Clients see a unique Virtual Server (IP address)• Traffic destined to the Virtual Server is load balanced

among different Real Server

Page 18: Content Delivery Networks

18Terena2000CDN © 2000, Cisco Systems, Inc.

Server Load BalancingServer Load Balancing

ClientClient(Browser)(Browser)

IP NetworkIP Network

RealRealServerServer

S1S1

S2S2

S3S3

SLBSLBRealRealServerServer

RealRealServerServer

Virtual ServerVirtual Server

Page 19: Content Delivery Networks

19Terena2000CDN © 2000, Cisco Systems, Inc.

Server Load BalancingServer Load Balancing

• Content-unaware (layer 4switching)

• TCP connections are notterminated by the SLB

• Content-aware (layer 7switching)

• TCP connections with bothclients and servers areterminated

• To support SSL (https) theSLB requires the server keys

There is a strongThere is a strongrelationship between therelationship between theSLB (layer 4/7 switch)SLB (layer 4/7 switch)and and TCPTCP (Transmission (Transmission

Control Protocol)Control Protocol)

Page 20: Content Delivery Networks

20Terena2000CDN © 2000, Cisco Systems, Inc.

TCP ProxyTCP Proxy

SYN

SYN/ACK

ACK

GET URLSYN

SYN/ACK

ACK

GET URL

DataData

Client Layer 4/7 Switch Server

Page 21: Content Delivery Networks

21Terena2000CDN © 2000, Cisco Systems, Inc.

Limitations with SLBLimitations with SLB

• Some applications require that TCP connectionsfrom the same client are redirected to the sameserver (Sticky Connections):

• Shopping Cart• Searches• Forms• Economic Transactions

• Stickiness may be addressed/complicated by:• source IP address• cookies• SSL ID

Page 22: Content Delivery Networks

22Terena2000CDN © 2000, Cisco Systems, Inc.

AgendaAgenda

• What are Content Delivery Networks?• DNS based routing• Server Load Balancing• Content Routers• Ethical questions• Conclusion

Page 23: Content Delivery Networks

23Terena2000CDN © 2000, Cisco Systems, Inc.

URL routingURL routing

• Can we build a router that routes on URLs?• YES, but:

• statefull (we must terminate TCP)• complex packet parsing (we need the URL)• anycast router (a URL is associated to multiple

replicas)• Do we have URL routing tables?• Do we have URL routing protocols?• Do we have metrics? How do we compute them?

Page 24: Content Delivery Networks

24Terena2000CDN © 2000, Cisco Systems, Inc.

IP vs. Content RoutingIP vs. Content Routing

H1 R1 R2 R3 H2

IP routing

Content routing

or

H1 CR1

CR2

CR3

H2

Page 25: Content Delivery Networks

25Terena2000CDN © 2000, Cisco Systems, Inc.

H1 CR1

CR2

CR3

H2CR5

CR4

Or even more complexOr even more complex

H1 CR1 CR2 CR3 H2

Page 26: Content Delivery Networks

26Terena2000CDN © 2000, Cisco Systems, Inc.

Content Delivery Control ProtocolsContent Delivery Control Protocols

• Content Routers in series cannot all terminate theTCP session:

• we don’t want to reinvent X.25

• URL must be• extracted by the first Content Router• propagate by a Content Delivery Control Protocol

• Some protocols have been proposed:• HUP• Christmas Tree• ICAP

• Still in a very preliminary phase

Page 27: Content Delivery Networks

27Terena2000CDN © 2000, Cisco Systems, Inc.

AgendaAgenda

• What are Content Delivery Networks?• DNS based routing• Server Load Balancing• Content Routers• Ethical questions• Conclusion

Page 28: Content Delivery Networks

28Terena2000CDN © 2000, Cisco Systems, Inc.

The Ethical questionThe Ethical question

• Is it ethical to deploy Content Routers in theInternet?

• They hijack the packets• They spoof the addresses• They break the end-to-end model of IP

Page 29: Content Delivery Networks

29Terena2000CDN © 2000, Cisco Systems, Inc.

Where, is the questionWhere, is the question

Access Provider

Backbone Provider

Hosting Provider

Content Provider

NOT HERE !!!

Here YES

Here No, or may be

Page 30: Content Delivery Networks

30Terena2000CDN © 2000, Cisco Systems, Inc.

AgendaAgenda

• What are Content Delivery Networks?• DNS based routing• Server Load Balancing• Content Routers• Ethical questions• Conclusion

Page 31: Content Delivery Networks

31Terena2000CDN © 2000, Cisco Systems, Inc.

Sometime Sometime CDNsCDNs are very good! are very good!

Page 32: Content Delivery Networks

32Terena2000CDN © 2000, Cisco Systems, Inc.

Sometime are not so good!Sometime are not so good!

Page 33: Content Delivery Networks

33Terena2000CDN © 2000, Cisco Systems, Inc.

Content PeeringContent Peering

Control POP

Delivery POP

Routing POP

ContentProvider

CDN3

CDN1

CDN2

Page 34: Content Delivery Networks

34Terena2000CDN © 2000, Cisco Systems, Inc.

ConclusionsConclusions

• Content Delivery Networks (CDNs) DNS-basedwill be widely deployed

• CDNs are not only for web traffic, but also formultimedia streaming

• Replicas will have slightly different content (e.g. localadvertisement)

• Content Peering is still an unsolved problem

• Server Farms and Server Load Balancing will bewidely deployed

• Intrusive content router poses:• ethical questions• scalability concerns

Page 35: Content Delivery Networks

35Terena2000CDN © 2000, Cisco Systems, Inc.

The EndThe End

Thank YouThank You