Top Banner
Performance in Decentralized Filesharing Networks Theodore Hong Freenet Project
19

Performance in Decentralized Filesharing Networks Theodore Hong Freenet Project.

Mar 27, 2015

Download

Documents

Sean Lamb
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: Performance in Decentralized Filesharing Networks Theodore Hong Freenet Project.

Performance in Decentralized Filesharing Networks

Theodore HongFreenet Project

Page 2: Performance in Decentralized Filesharing Networks Theodore Hong Freenet Project.

2

Styles of collaboration

Centralized model e.g. Napster global index held by central authority

(single point of failure) direct contact between requestors and

providers

Decentralized model e.g. Freenet, Gnutella no global index – local knowledge only

(approximate answers) contact mediated by chain of intermediaries

Page 3: Performance in Decentralized Filesharing Networks Theodore Hong Freenet Project.

3

Key questions

Does it work? can we find the data? query success rates

length of query paths

Does it scale? logarithmic / linear / polynomial

Is it robust? participants are unreliable different failure modes possible

Page 4: Performance in Decentralized Filesharing Networks Theodore Hong Freenet Project.

4

An abstract model

Can model the network as a graph:

Page 5: Performance in Decentralized Filesharing Networks Theodore Hong Freenet Project.

5

Querying the network

Answering a query means finding a path source = requestor destination = provider

A distributed search problem! approximate global solution using local

knowledge same problem as IP routing

Page 6: Performance in Decentralized Filesharing Networks Theodore Hong Freenet Project.

6

The Freenet algorithm

Graph structure actively evolves over time new links form between nodes files migrate through network adaptive routing

Page 7: Performance in Decentralized Filesharing Networks Theodore Hong Freenet Project.

7

Initial simulations

Ring topology, 1000 nodes:

Page 8: Performance in Decentralized Filesharing Networks Theodore Hong Freenet Project.

8

Initial simulations (cont’d)

Page 9: Performance in Decentralized Filesharing Networks Theodore Hong Freenet Project.

9

Why does it work?

The small-world model Milgram: six degrees of separation Watts: between order and randomness

short-distance clustering + long-distance shortcuts

Page 10: Performance in Decentralized Filesharing Networks Theodore Hong Freenet Project.

10

Links in the small world

P(n) ~ 1/n 1.5

“Scale-free” link distribution P(n) = 1 /n k

most nodes have only a few connections some have a lot of links

Page 11: Performance in Decentralized Filesharing Networks Theodore Hong Freenet Project.

11

Small-world links (cont’d)

Real-world examples movie actors (Kevin Bacon game) world-wide web nervous system of worm C. elegans

Page 12: Performance in Decentralized Filesharing Networks Theodore Hong Freenet Project.

12

The importance of routing

Existence of short paths is not enough – they must be found

Adaptivity helps Freenet find good paths

Compare: a random-routing network

Page 13: Performance in Decentralized Filesharing Networks Theodore Hong Freenet Project.

13

Scalability

Real-world networks are much larger nearly 400,000 downloads of Freenet 50 million Napster users

How well does Freenet scale?

Page 14: Performance in Decentralized Filesharing Networks Theodore Hong Freenet Project.

14

Fault-tolerance

Unreliability is normal in peer-to-peer

Two types of failure: random failure targeted attack

Page 15: Performance in Decentralized Filesharing Networks Theodore Hong Freenet Project.

15

Random failure

Page 16: Performance in Decentralized Filesharing Networks Theodore Hong Freenet Project.

16

Targeted attack

Page 17: Performance in Decentralized Filesharing Networks Theodore Hong Freenet Project.

17

To do

Variable disk/bandwidth capacity if you build it, will they come?

Participants leaving and re-entering

File lifetimes “lifetime” is relative relationship between ease of retrieval and

popularity, size impact of splitting and combining

Page 18: Performance in Decentralized Filesharing Networks Theodore Hong Freenet Project.

18

Conclusions

Local approximations can be good enough

Small-world model provides useful framework

Metrics to consider: query pathlength clustering coefficient link distribution

Issues to consider: scalability fault tolerance under various scenarios

Page 19: Performance in Decentralized Filesharing Networks Theodore Hong Freenet Project.

19

For more information

“Performance” chapter in Peer-to-Peer

I. Clarke, O. Sandberg, B. Wiley, T.W. Hong, “Freenet: a distributed anonymous information storage and retrieval system,” in Workshop on Design Issues in Anonymity and Unobservability, ed. by H. Federrath. Springer: New York (2001)