lightflood: an efficient flooding scheme for file search in unstructured p2p systems song jiang, lei...

43
LightFlood: LightFlood: An Efficient Flooding Scheme An Efficient Flooding Scheme for File Search in for File Search in Unstructured P2P Unstructured P2P Systems Systems Song Jiang, Lei Guo, and Xiaodong Song Jiang, Lei Guo, and Xiaodong Zhang Zhang College of William and Mary College of William and Mary

Upload: clifton-waters

Post on 17-Jan-2016

216 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary

LightFlood:LightFlood: An Efficient Flooding Scheme for File An Efficient Flooding Scheme for File Search in Unstructured P2PSearch in Unstructured P2P SystemsSystems

Song Jiang, Lei Guo, and Xiaodong ZhangSong Jiang, Lei Guo, and Xiaodong Zhang College of William and MaryCollege of William and Mary

Page 2: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary

Unstructured P2P OverlayUnstructured P2P Overlay

• P2P overlay– Application level network over physical network– Self-organized by peers voluntarily

• Characteristics– Power-law distribution: a small number of peers have

high connectivity– Dynamic population: peers come and go frequently– Resilient to random node failures

Page 3: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary

Search in P2P OverlaySearch in P2P Overlay

• Flooding

• Expanding ring (ICS’02)

• Random walk (ICS’02, SIGCOM’03)

• Iterative deepening (ICDCS’02)

• Directed BFS (ICDCS’02)

• Super peer (ICDE’03)

• Interested-based Locality (INFOCOM’03)

Page 4: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary

FloodingFlooding

• Simple and robust– No state maintenance needed– High tolerance to node failures

• Effective and of low latency– Always find the shortest / fastest routing paths

• Fundamental operation for – Broadcasting in distributed systems – P2P communications

Page 5: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary

Problems of Flooding Problems of Flooding

• Loops in Gnutella networks– Caused by redundant links– Result in endless message routing

• Current solutions by Gnutella– Detect and discard redundant messages– Limit TTL (time-to-live) of messages

• Unnecessary traffic is still too much– The redundant links are still there

Page 6: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary

Traffic Minimization: Traffic Minimization: Spanning TreeSpanning Tree

• Reduce traffic without changing P2P overlay• How much bandwidth can we save?

– Average degree of Gnutella nodes: about 3 ~ 5– N-node spanning tree

• N-1 links • N-1 messages for a broadcast

– Estimated traffic reduction: about 67% ~ 80%

• Bandwidth efficiency is not the only objective

Page 7: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary

Problems of Spanning TreeProblems of Spanning Tree

• Long latency for flooding– More than 30 hops to cover 95% of nodes– Only 7 hops to cover 95% of nodes by

Gnutella flooding

• Weak reliability due to node failures– A node failure can disconnect a large portion

of network

Page 8: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary

P2P Overlay

Page 9: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary

Flooding in Spanning Tree

HOPS = 7HOPS = 8HOPS = 9HOPS = 10HOPS = 11HOPS = 0HOPS = 1HOPS = 2HOPS = 3HOPS = 4HOPS = 5HOPS = 6

Spanning Tree

Page 10: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary

HOPS = 0HOPS = 1HOPS = 2HOPS = 3HOPS = 4HOPS = 5HOPS = 6

Flooding in P2P Overlay

Page 11: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary

Node Failure

Page 12: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary

Trade-offs Trade-offs

• Traffic efficiency and routing latency

• Redundancy and robustness

• Let us take a look at pure flooding in Gnutella …

• NEED to update

Page 13: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary

Observations of Pure FloodingObservations of Pure Flooding

Coverage Growth Rate

0

5

10

15

20

25

Hop 2 Hop 3 Hop 4 Hop 5 Hop 6 Hop 7

Hop in 7-hop Flooding

Co

vera

ge

Incr

ease

(t

imes

)

Page 14: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary

Observations of Pure FloodingObservations of Pure Flooding

Redundant Messages Distribution

010203040506070

Hop 2 Hop 3 Hop 4 Hop 5 Hop 6 Hop 7

Hop in 7-hop Flooding

Per

cen

tag

e o

f R

edu

nd

ant

Mes

sag

es

Page 15: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary

MotivationsMotivations

• Pure flooding is efficient in the initial hops– Node coverage grows quickly, while– Only account for a small portion of redundant msgs

• Most redundant messages are generated in high hops

Page 16: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary

Our SolutionOur Solution

• Combining both merits of pure flooding and spanning tree

• Constructing FloodNet: a tree-like structure over P2P network

• Flooding over P2P network in initial hops

• Flooding over FloodNet in rest hops

Page 17: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary

FloodNet: a Tree-like Sub-overlayFloodNet: a Tree-like Sub-overlay

• States maintained in each node– Number of neighbors– The node degree of each neighbor

• Topology construction– Father node: the neighbor with the highest

degree– Tie breaking– Dynamic updating: very low overhead

• A tree-like structure over Gnutella overlay

Page 18: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary

Constructing FloodNet

Page 19: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary

Constructing FloodNet

Page 20: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary

Constructing FloodNet

Page 21: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary

Constructing FloodNet

Page 22: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary

FloodNet: Loops?FloodNet: Loops?

• At most one loop in the structure

• Nodes in a loop have the same degree– Root candidates

Page 23: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary

LOOP

Page 24: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary

FloodNet: Loops?FloodNet: Loops?

• At most one loop in the structure

• Nodes in a loop have the same degree– Root candidates

• Endless routing– Easy to detect and avoid: same as Gnutella

• Redundant messages– At most one redundant message per flooding

Page 25: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary

FloodNet: Multiple Trees?FloodNet: Multiple Trees?

• Possible but the number is very small

Page 26: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary
Page 27: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary

FloodNet: Multiple Trees?FloodNet: Multiple Trees?

• Possible but the number is very small– Only high degree nodes can be tree roots– Only a few nodes have high connectivity

(recall the power law distribution)– These high degree nodes may connect each

other

• Normally less than 10 trees in Gnutella overlay according to our simulation

Page 28: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary

Broadcast in FloodNetBroadcast in FloodNet

• Aims– Reach all FloodNet trees– Cover most nodes in a few hops

• Problems– How can a node initiating a broadcast know

other FloodNet trees?– Flooding from a leaf node needs long hops to

cover most portion of the tree

Page 29: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary

LightFloodLightFlood

• Basic idea– Broadcasting messages in parallel from

multiple nodes of different trees

• 2-stage broadcasting– Low hops: the initial M flooding hops– High hops: the rest N flooding hops

Denoted as (M, N) policy

(7, 0) is same as Gnutella flooding

Page 30: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary

LightFloodLightFlood

• Low hops: utilizing redundant links– Flooding in P2P overlay– Reach many nodes of different trees with

small overheads

• High hops: keep away from redundant links– Flooding in FloodNet– Flooding from multiple nodes in parallel

Page 31: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary
Page 32: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary
Page 33: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary
Page 34: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary

High hops

Page 35: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary
Page 36: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary
Page 37: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary
Page 38: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary

Performance EvaluationPerformance Evaluation

Page 39: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary

Coverage vs. LatencyCoverage vs. Latency

(4,*) takes only additional 3 hops to reach same coverage as (7,0)

(7, 0)

(4, *)

3 hops

Page 40: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary

Traffic EfficiencyTraffic Efficiency

(7, 0): 28.1%

(4, *): 90.8%

Page 41: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary

Degradation Due to Node FailuresDegradation Due to Node Failures

Nearly same coverage

Page 42: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary

Expanding Ring: TrafficExpanding Ring: Traffic

LightFlood

Pure Flood

Page 43: LightFlood: An Efficient Flooding Scheme for File Search in Unstructured P2P Systems Song Jiang, Lei Guo, and Xiaodong Zhang College of William and Mary

ConclusionConclusion

• FloodNet is easy to construct and maintain– Using local and neighboring information– Dynamically updated with little overhead

• LightFlood is both broadcast effective and bandwidth efficient– Large coverage– Small routing hops– Small amount of redundant messages

• An efficient and effective flooding scheme