• Tidak ada hasil yang ditemukan

Schedule of Class Meeng

N/A
N/A
Protected

Academic year: 2018

Membagikan "Schedule of Class Meeng"

Copied!
31
0
0

Teks penuh

(1)

Mul$media  Networking  

#9  CDN  Solu$ons  

Semester  Ganjil  2012  

(2)
(3)

Today’s  Outline  

Ways  to  distribute  video  online  

Client-­‐server  

IP  Mul$cast  

P2P  Media  Streaming  

(4)
(5)

Content  Distribu$on  Network  

challenge:  

how  to  stream  content  (selected  

from  millions  of  videos)  to  hundreds  of  

thousands  of  simultaneous  users?  

op,on  1:  

single,  large  “mega-­‐server”  

single  point  of  failure  

point  of  network  conges$on   –long  path  to  distant  clients  

mul$ple  copies  of  video  sent  over  outgoing  link  

(6)

Content  Distribu$on  Network  

challenge:  how  to  stream  content  (selected  from  

millions  of  videos)  to  hundreds  of  thousands  of   simultaneous  users?  

op,on  2:  store/serve  mul$ple  copies  of  videos  at  

mul$ple  geographically  distributed  sites  (CDN)  

enter  deep:  push  CDN  servers  deep  into  many  access   networks    

close  to  users  

used  by  Akamai,  1700  loca$ons  

bring  home:  smaller  number  (10’s)  of  larger  clusters  in   POPs  near  (but  not  within)  access  networks  

(7)

Content  Distribu$on  Network  

throughout  the  Internet  

Upda$ng  the  replicas  

Updates  pushed  to  replicas   when  the  content  changes  

origin server in North America

CDN distribution node

CDN server

in S. America CDN server in Europe

(8)

Server  Selec$on  Policy  

challenge:  

how  does  CDN  DNS  select  “good”  

CDN  node  to  stream  to  client  

pick  CDN  node  geographically  closest  to  client  

pick  CDN  node  with  shortest  delay  (or  min  #  hops)   to  client  (CDN  nodes  periodically  ping  access  ISPs,   repor$ng  results  to  CDN  DNS)  

IP  anycast  

alterna,ve:  

let  

client

 decide  -­‐  give  client  a  list  

of  several  CDN  servers  

client  pings  servers,  picks  “best”  

(9)

Server  Selec$on  Policy  

Live  server  

For  availability  

Lowest  load  

To  balance  load  across  the  servers  

Closest  

Nearest  geographically,  or  in  round-­‐trip  $me  

Best  performance  

Throughput,  latency,  …  

Cheapest  bandwidth,  electricity,  …  

(10)

Server  Selec$on  Mechanism  

Applica$on  

HTTP  redirec$on  

Advantages  

Fine-­‐grain  control   –Selec$on  based  on  

client  IP  address  

Disadvantages  

Extra  round-­‐trips  for   TCP  connec$on  to   server  

Overhead  on  the  server  

10

GET

Redirect

GET

(11)

Server  Selec$on  Mechanism  

Rou$ng  

Anycast  rou$ng  

Advantages  

No  extra  round  trips   –Route  to  nearby  server  

Disadvantages  

Does  not  consider  

network  or  server  load   –Different  packets  may  

go  to  different  servers   –Used  only  for  simple  

request-­‐response  apps  

11

1.2.3.0/24

(12)

Server  Selec$on  Mechanism  

(13)
(14)

Akamai  Sta$s$cs  

Distributed  servers  

Servers:  ~61,000  

Networks:  ~1,000  

Countries:  ~70  

Many  customers  

Apple,  BBC,  FOX,  GM  

IBM,  MTV,  NASA,  

NBC,  …  

Client  requests  

Hundreds  of  

billions  per  day  

Half  in  the  top    

45  networks  

(15)

HTTP

How  Akamai  Uses  DNS  

cnn.com (content provider) DNS root server

1 2

(16)

HTTP

How  Akamai  Uses  DNS  

cnn.com (content provider) DNS root server

1 2

(17)

HTTP

How  Akamai  Uses  DNS  

cnn.com (content provider) DNS root server

1 2

(18)

HTTP

How  Akamai  Uses  DNS  

cnn.com (content provider) DNS root server

1 2

(19)

HTTP

How  Akamai  Uses  DNS  

cnn.com (content provider) DNS root server

1 2

(20)

HTTP

How  Akamai  Uses  DNS  

cnn.com (content provider) DNS root server

1 2

(21)

HTTP

How  Akamai  Uses  DNS  

cnn.com (content provider) DNS root server

1 2

(22)

How  Akamai  Works:  Cache  Hit  

cnn.com (content provider) DNS root server Akamai server

1 2

Akamai high-level DNS server

(23)

Mapping  System  

Equivalence  classes  of  IP  addresses  

IP  addresses  experiencing  similar  performance   –Quan$fy  how  well  they  connect  to  each  other  

Collect  and  combine  measurements  

Ping,  traceroute,  BGP  routes,  server  logs  

E.g.,  over  100  TB  of  logs  per  days  

Network  latency,  loss,  and  connec$vity  

(24)

Mapping  System  

Map  each  IP  class  to  a  preferred  server  cluster  

Based  on  performance,  cluster  health,  etc.   –Updated  roughly  every  minute      

Map  client  request  to  a  server  in  the  cluster  

(25)

Adap$ng  to  Failures  

Failing  hard  drive  on  a  server  

Suspends  aqer  finishing  “in  progress”  requests  

Failed  server  

Another  server  takes  over  for  the  IP  address   –Low-­‐level  map  updated  quickly  

Failed  cluster  

High-­‐level  map  updated  quickly  

Failed  path  to  customer

s  origin  server  

(26)

Akamai  Transport  Op$miza$ons  

Bad  Internet  routes  

Overlay  rou$ng  through  an  intermediate  server  

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  

(27)

Akamai  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  servers  

E.g.,  content  aggrega$on  and  transforma$on   –E.g.,  sta$c  databases  (e.g.,  product  catalogs)  

(28)

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  

(29)

CDN:  “simple”  content  access  scenario  

Bob  (client)  requests  video  hrp://netcinema.com/6Y7B23V  

  video  stored  in  CDN  at  hrp://KingCDN.com/NetC6y&B23V   from netcinema.com

web page 2

2. resolve http://netcinema.com/6Y7B23V via Bob’s local DNS

netcinema’s authorative DNS

3

3. netcinema’s DNS returns URL

http://KingCDN.com/NetC6y&B23V 4

4&5. Resolve

http://KingCDN.com/NetC6y&B23

via KingCDN’s authoritative DNS, which returns IP address of KingCDN server with video

5

6. request video from KINGCDN server, streamed via HTTP

(30)

Case  study:  Nedlix  

30%  downstream  US  traffic  in  2011  

owns  very  lirle  infrastructure,  uses  3

rd

 party  

services:  

own  registra$on,  payment  servers  

Amazon  (3rd  party)  cloud  services:  

Nedlix  uploads  studio  master  to  Amazon  cloud  

create  mul$ple  version  of  movie  (different  endodings)  in  

cloud  

upload  versions  from  cloud  to  CDNs  

Cloud  hosts  Nedlix  web  pages  for  user  browsing  

three  3rd  party  CDNs  host/stream  Nedlix  content:  

(31)

Case  study:  Nedlix  

Limelight CDN

Level-3 CDN

2

2. Bob browses Netflix video

3

3. Manifest file returned for requested video

4. DASH streaming

Referensi

Dokumen terkait

Tujuan dari penelitian ini adalah untuk mengetahui pengaruh pemberian sambiloto terhadap perlemakan hati tikus Sprague Dawley yang diberikan perlakuan

Tujuan umum adalah menganalisis penyebab rendahnya Cost Recovery Rate (CRR) di Rumah Sakit Anak Dan Bersalin Sitti ‘Aisyah Surabaya. Tujuan Khusus adalah : 1)

Peraturan Pemerintah Nomor 60 Tahun 2014 tentang Dana Desa Yang Bersumber Dari Anggaran Pendapatan dan Belanja Negara (Lembaran Negara Republik Indonesia Tahun 2014

.lafi mengafialisis pengaruh penanfaatan sistem informasi petpustakaa , brainlrare dan corlputq self eficacy terhadap end user computing satisfaction se d

[r]

4) Jaringan (504). Jumlah tersebut terdiri dari saldo awal sebesar Rp.. CaL-BMN | Kementerian Pekerjaan Umum dan Perumahan Rakyat 2017 Audited Enam Milyar Enam Ratus Empat

Pada pertengahan 1990an, Samsung merevolusi usahanya melalui dedikasi untuk membuat produk berkelas dunia, dengan memberikan kepuasan pelanggan sepenuhnya, dan menjadi

pre test dan post test dapat membandingkan ada perbedaan atau tidak setelah dilakukan treatment. Pada penelitian ini siswa yang mendapat nilai KKM rendah pada