Documente Academic
Documente Profesional
Documente Cultură
ID2201
Ida
use resources in edge of net or! " computing " storage " communication
$omputing
seti&home
central ser'er " millions of clients " hundred of thousands acti'e super computer " hundreds of (era)*+,S " one of the largest computations performed continued in the -+I.$ pro/ect
)ile sharing
.apster
)irst large scale peer-to-peer file sharing system - 1222 3sed a central ser'er to store inde4 of all files5 $lients copied files peer-to-peer5
.apster
H E 5: I share #265763 A C B D 3: give me #265763 1: who has Madonna 2: try B, D, G...
.apster
$entral ser'er " !no s e'erything " needs to be ali'e " can easily be replicated )ile transfer " limited by client upload capacity ,roblems " copyright issues " hy share " is it the correct file
Distributed Systems ID2201
7
.e4t step
8a9aa
central server
super nodes
10
8a9aa
)ast(rac! :closed protocol; " super nodes< responsible for inde4ing " central ser'er< blac!list of super nodes " regular nodes< connects to local super node Integrity is chec!ed by hash function5 " not 'ery strong Money made on " ad'ertising " 555
Distributed Systems ID2201
11
12
-it(orrent
search for torrents 1 torrents and description of content
3 share file
1#
-it(orrent
torrent " trac!ers to use " name of content " si9e and number of segments " hash codes of segments trac!er " pro'ides list of peers " could be helpful in suggesting net or! close peers
1%
-it(orrent
=uery peers to find ho has hat5 (it-for-tat " per file< not on total " if you don>t get something< hy share ?arest first " rare segments are 'aluable Multiple peers " change if connection is slo " cho!e if you don>t get anything bac!
Distributed Systems ID2201
10
11
16
Spotify
peers %0B
Some pri'acy
12
20
21
22
+'erlay routing
name spaceF global uniCue identifier :G3ID; structured or unstructured " pay hen you add nodes and ob/ects " pay hen you search for ob/ects fault tolerance and consistency " replication
2#
structured o'erlay
62 44 71 59 34
27
12
2%
,astry routing
0#2
:e4ample
second row of 311 holds entries for each of the three other sub segments
21#
Distributed Systems ID2201
#02
20
21
(apestry routing
412 415 381 475 publish(413) 123 413 434 244 lookup(413) 237
26
unstructured o'erlay
62 44 71 59 34
27
12
27
3nstructured
.o net or! structure5 Kou !no some other nodes5 .o fi4ed location of ob/ects Lasy to /oin5 @ard to search5 .o guarantees
22
Searching
)lood the net or! " there should be a limitM L4panding ring " iterati'e flooding ?andom al! " se'eral independent searchers Gossip " hopefully they ill !no
#0
Summary
,eer2,eer systems should scale ith the number of clients by ma!ing the clients part of the ser'ice5 Structured o'erlay
" D@(< routing< ho to /oin and lea'e< replication
3nstructured o'erlay
" group of peers< searching for content
#1