• Tidak ada hasil yang ditemukan

Schedule of Class Meeng

N/A
N/A
Protected

Academic year: 2018

Membagikan "Schedule of Class Meeng"

Copied!
42
0
0

Teks penuh

(1)

Mul$media  Networking  

#8  P2P  Streaming  

Semester  Ganjil  2012  

(2)
(3)

Today’s  Outline  

Ways  to  distribute  video  online  

Client-­‐server  

IP  Mul$cast  

P2P  Media  Streaming  

(4)
(5)

Client-­‐Server  

Applica$on-­‐layer  solu$on    

Single  media  server  unicasts  to  all  clients    

Needs  very  high  capacity  to  serve  large  

number  of  clients    

CPU    

Memory    

(6)

Client-­‐Server  

10  flows    

of  the  same  packet  

Unicast  

(7)

Mul$cast  

Basic  idea:  the  same  data  needs  to  reach  mul$ple  

receivers      

 avoid  transmicng  it  once  for  each  receiver    

par$cularly  useful  if  access  link  has  bandwidth   limita$ons    

can  be  implemented  at  link,  network  and  applica$on   layer    

e.g.,  mailing  list  as  example    

(8)

IP  Mul$cast  

Network-­‐layer  solu$on    

Routers  responsible  for  mul$cas$ng    

Efficient  bandwidth  usage    

Requires  per-­‐group  state  in  routers    

Scalability  concern    

Violates  end-­‐to-­‐end  design  principle    

Slow  deployment    

IP  mul$cast  is  ofen  disabled  in  routers    

(9)
(10)
(11)

Why  P2P?  

Every  node  is  both  a  server  and  client  

Easier  to  deploy  applica$ons  at  endpoints  

No  need  to  build  and  maintain  expensive   infrastructure  

Poten$al  for  both  performance  improvement  and   addi$onal  robustness  

Addi$onal  clients  create  addi$onal  servers  for  

(12)

P2P  Overview  

Applica$on-­‐layer  approach  

Clients  send  contents  to  each  other  

(13)

Overlay  Network  

Consists  of  applica$on-­‐layer  links    

Applica$on-­‐layer  link  is  logical  link  consis$ng  

of  one  or  more  links  in  underlying  network    

(14)
(15)

Overlay  Networks  

(16)
(17)

IP  Tunneling  

IP  tunnel  is  a  virtual  point-­‐to-­‐point  link  

Illusion  of  a  direct  link  between  two  separated  nodes  

 

Encapsula$on  of  the  packet  inside  an  IP  datagram  

A B tunnel E F

Logical view:

(18)

Server  Distribu$ng  a  Large  File  

d1

F bits

d2

d3 d4

upload rate us

(19)

Server  Distribu$ng  a  Large  File  

Sending  an  

F

-­‐bit  file  to  

N

 receivers  

Transmicng  NF  bits  at  rate  us  

…  takes  at  least  NF/us  $me  

Receiving  the  data  at  the  slowest  receiver  

Slowest  receiver  has  download  rate  dmin=  mini{di}  

…  takes  at  least  F/dmin  $me  

(20)

Speeding  Up  the  File  Distribu$on  

Increase  the  server  upload  rate  

Higher  link  bandwidth  at  the  server  

Mul$ple  servers,  each  with  their  own  link  

Alterna$ve:  have  the  receivers  help  

Receivers  get  a  copy  of  the  data  

…  and  redistribute  to  other  receivers  

(21)

Peers  Help  Distribu$ng  a  Large  File  

d1

F bits

d

d3 d4

upload rate us

Internet

u1 u2 u3

(22)

Peers  Help  Distribu$ng  a  Large  File  

Components  of  distribu$on  latency  

Server  must  send  each  bit:  min  $me  F/us  

Slowest  peer  must  receive  each  bit:  min  $me  F/

dmin  

Upload  $me  using  all  upload  resources  

Total  number  of  bits:  NF  

Total  upload  bandwidth  us  +  sumi(ui)  

(23)

Peer-­‐to-­‐Peer  is  Self-­‐Scaling  

Download  $me  grows  slowly  with  N  

Client-­‐server:  max{NF/u  s,  F/dmin}  

Peer-­‐to-­‐peer:  max{F/us  ,  F/dmin  ,  NF/(us+sumi(ui))}  

But…  

Peers  may  come  and  go  

Peers  need  to  find  each  other  

(24)

Loca$ng  the  Relevant  Peers  

Three  main  approaches  

Central  directory  (Napster)  

Query  flooding  (Gnutella)  

Hierarchical  overlay  (Kazaa,  modern  Gnutella)  

Design  goals  

Scalability  

Simplicity  

Robustness  

(25)

Peer-­‐to-­‐Peer  Networks:  BitTorrent  

BitTorrent  history  

2002:  B.  Cohen  debuted  BitTorrent  

Emphasis  on  efficient  fetching,  not  searching  

Distribute  same  file  to  many  peers  

Single  publisher,  many  downloaders  

Preven$ng  free-­‐loading  

(26)

BitTorrent:  Simultaneous  Downloads  

Divide  file  into  many  chunks  (e.g.,  256  KB)  

Replicate  different  chunks  on  different  peers  

Peers  can  trade  chunks  with  other  peers  

Peer  can  (hopefully)  assemble  the  en$re  file  

Allows  simultaneous  downloading  

Retrieving  different  chunks  from  different  peers  

And  uploading  chunks  to  peers  

(27)

BitTorrent:  Tracker  

Infrastructure  node  

Keeps  track  of  peers  par$cipa$ng  in  the  torrent  

Peers  registers  with  the  tracker  when  it  arrives  

Tracker  selects  peers  for  downloading  

Returns  a  random  set  of  peer  IP  addresses  

So  the  new  peer  knows  who  to  contact  for  data  

(28)

Defini$on:  Peer  

Leecher  

A  peer  that  is  client  and  server  

In  the  context  of  content  delivery  

Has  a  par$al  copy  of  the  content  

Seed  

A  peer  that  is  only  server  

In  the  context  of  content  delivery  

(29)
(30)
(31)
(32)
(33)
(34)
(35)
(36)
(37)

P2P Streaming

Tree-based

Parent-child relationships

Push-based

Uplink bandwidth not utilized at leaves

Data can be divided and disseminated along multiple trees (e.g., SplitStream)

Must be repaired and maintained to avoid

interruptions

(38)

P2P Multicast

Mesh-based

Data-driven –Pull-based

Periodically exchange data availability with random partners and retrieve new data

Unlike BitTorrent, must consider real-time constraints

(39)

Overlay Performance

Even a well-designed overlay cannot be as efficient as IP Mulitcast • But performance penalty can be kept low

Trade-off some performance for other benefits

Increased

Dumb Network

Gatech

Duplicate Packets: Bandwidth Wastage

(40)

Case Study: PPLive

Very popular P2P IPTV application

Free for viewers

Over 100,000 simultaneous viewers and 400,00 viewers daily

Over 200+ channels

(41)

Case Study: PPLive

Gossip-based protocols

Peer management –Channel discovery

Data-driven p2p streaming

Recommend papers are measurement

(42)

Case Study: PPLive

1. Contact channel

server for available channels

share video chunks Source: “Insights into PPLive: A Measurement

Referensi

Dokumen terkait

[r]

Dengan inI kami mengundang Saudara untuk mengikuti Pembuktian Kualifikasi Jasa Konsultansi dengan Sistem Seleksi Umum untuk :3. Perencanaan Teknis Pembangunan Sumur Bor dan HU (DAK

Over the last 10 years, there was a dramatic increase in the number of women over age 35 requesting medical intervention for infertility.. there are lot of women who are delaying

Sikap-sikap positif yang sesuai dengan nilai-nilai ketuhanan Yang Maha Esa adalah sebagai berikut ini , kecuali ……….a. beriman kepada Tuhan Yang Maha Esa

Tahun 2014 Tentang Dana Desa Yang Bersumber Dari.. Anggaran Pendapatan Dan Belanja Negara

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

Format Rancangan Peraturan Desa tentang APBDesa, Buku Pembantu Kas Kegiatan, Rencana Anggaran Biaya dan Surat Permintaan Pembayaran serta Pernyataan