Professional Documents
Culture Documents
Just A Test Document
Just A Test Document
Unstructured Peer-to-Peer
Networks
Pei Cao
Cisco Systems, Inc.
. . . . . . . . . . . .
100
duplicate msgs (%)
80
Random
60 PLRG
40 Gnutella
Grid
20
0
2 3 4 5 6 7 8 9
TTL
Relationship between TTL and
Search Successes
Flooding: Pr(success) vs TTL
120
100
Pr(success) %
Random
80
PLRG
60
Gnutella
40
Grid
20
0
2 3 4 5 6 7 8 9
TTL
Problems with Simple TTL-
Based Flooding
• Hard to choose TTL:
– For objects that are widely present in the
network, small TTLs suffice
– For objects that are rare in the network, large
TTLs are necessary
• Number of query messages grow
exponentially as TTL grows
Idea #1: Adaptively Adjust TTL
• “Expanding Ring”
– Multiple floods: start with TTL=1; increment
TTL by 2 each time until search succeeds
• Success varies by network topology
– For “Random”, 30- to 70- fold reduction in
message traffic
– For Power-law and Gnutella graphs, only
3- to 9- fold reduction
Limitations of Expanding Ring
Flooding: #nodes visited vs TTL
12000
10000
#nodes visited
Random
8000
PLRG
6000
Gnutella
4000
Grid
2000
0
2 3 4 5 6 7 8 9
TTL
Idea #2: Random Walk
• Simple random walk
– takes too long to find anything!
• Multiple-walker random walk
– N agents after each walking T steps visits as
many nodes as 1 agent walking N*T steps
– When to terminate the search: check back with
the query originator once every C steps
Search Traffic Comparison
avg. # msgs per node per query
3 2.85
2.5
2 1.863
1.5
0.961
1
0.5 0.053 0.027 0.031
0
Random Gnutella
10 9.12
8 7.3
6
4.03
4 3.4
2.51 2.39
2
0
Random Gnutella
1
1 10 100
replication ratio
(normalized)
0.1
0.01
real result
square root
0.001
object rank
Total Search Message
Comparison
Avg. # msgs per node (5000-9000sec)
60000
50000
40000 Owner Rep
30000 Path Rep
20000 Random Rep
10000
0
120
100
queries finished (%)
80
60 Owner Replication
40 Path Replication
Random Replication
20
0
1 2 4 8 16 32 64 128 256
#hops
Summary
• Multi-walker random walk scales much
better than flooding
– It won’t scale as perfectly as structured
network, but current unstructured network can
be improved significantly
• Square-root replication distribution is
desirable and can be achieved via path
replication