Gossip Gossip pping in pp pp pping in p g g Bolo Bolo ogna - - PowerPoint PPT Presentation

gossip gossip pping in pp pp pping in p g g bolo bolo
SMART_READER_LITE
LIVE PREVIEW

Gossip Gossip pping in pp pp pping in p g g Bolo Bolo ogna - - PowerPoint PPT Presentation

Gossip Gossip pping in pp pp pping in p g g Bolo Bolo ogna ogna Ozalp Ba Ozalp Ba abaoglu abaoglu ALMA MATER STUDIORUM U ALMA MATER STUDIORUM U UNIVERSITA DI BOLOGNA UNIVERSITA DI BOLOGNA Background Background


slide-1
SLIDE 1

Gossip Gossip Bolo p Bolo

Ozalp Ba Ozalp Ba

ALMA MATER STUDIORUM – U ALMA MATER STUDIORUM – U

pping in pping in pp g

  • gna

pp g

  • gna

abaoglu abaoglu

UNIVERSITA’ DI BOLOGNA UNIVERSITA’ DI BOLOGNA

slide-2
SLIDE 2
  • 2003: Márk Jelasity brings t

Bologna from Amsterdam

  • 2003-2006: We get good mi

context of Project BISON

  • 2005-present: Continue to g

Project DELIS

Babaoglu Leiden M

Background Background

he gossipping gospel to ilage from gossipping in the get milage in the context of

Meeting 2

slide-3
SLIDE 3
  • We have used gossipping to

decentralized solutions for

  • Aggregation
  • Overlay topology managemen
  • Heartbeat synchronization
  • Cooperation in selfish environ

Babaoglu Leiden M

What have we done? What have we done?

  • obtain fast, robust,

nt ments

Meeting 3

slide-4
SLIDE 4
  • Márk Jelasity
  • Alberto Montresor
  • Alberto Montresor
  • Gianpaolo Jesi

T i Bi i

  • Toni Binci
  • David Hales
  • Stefano Arteconi

Babaoglu Leiden M

Collaborators Collaborators

Meeting 4

slide-5
SLIDE 5

Proac Proac

// active thr // do forever wait(T ti q = Selec q = Selec push S to pull Sq f

q

S = Updat // i h // passive thr do forever (p,Sp) = pu (p,

p)

p push S to S = Update

Babaoglu Leiden M

ctive gossip framework ctive gossip framework

read ime units) ctPeer() ctPeer()

  • q

rom q te(S,Sq) d read ull * from * p e(S,Sp)

Meeting

slide-6
SLIDE 6

Proac Proac

  • To instantiate the framework

To instantiate the framework

  • Local state S
  • Method SelectPeer()

Method SelectPeer()

  • Style of interaction

▴ push-pull ▴ push ▴ pull

M th d U d t ()

  • Method Update()

Babaoglu Leiden M

ctive gossip framework ctive gossip framework

k need to define k, need to define

Meeting 6

slide-7
SLIDE 7

#

Aggreg Aggreg gg g gg g

ALMA MATER STUDIORUM – U ALMA MATER STUDIORUM – U

1

gation gation g

UNIVERSITA’ DI BOLOGNA UNIVERSITA’ DI BOLOGNA

slide-8
SLIDE 8

Gossip fr Gossip fr

  • Style of interaction: push-pu
  • Local state S: Current estim
  • Method SelectPeer(): Single
  • Method Update(): Numerica

Method Update(): Numerica desired global aggregate (ar max, etc.) , )

Babaoglu Leiden M

ramework instantiation ramework instantiation

ull mate of global aggregate e random neighbor al function defined according to al function defined according to ithmetic/geometric mean, min,

Meeting 8

slide-9
SLIDE 9

Exponential conv Exponential conv

Babaoglu Leiden M

vergence of averaging vergence of averaging

Meeting 9

slide-10
SLIDE 10

Properties of goss Properties of goss

  • In gossip-based averaging,

g p g g, globally random sample, the estimates decreases expone

  • Convergence factor:

ρ = E(σ i+1

2 )

E(σ 2) ≈ E(σ i )

Babaoglu Leiden M

sip-based aggregation sip-based aggregation

if the selected peer is a p en the variance of the set of entially

1 2 e ≈ 0.303 2 e

Meeting 10

slide-11
SLIDE 11

Robustness of ne Robustness of ne

1000 nodes crash at 1000 nodes crash at

Babaoglu Leiden M

etwork size estimation etwork size estimation

the beginning of each cycle the beginning of each cycle

Meeting 11

slide-12
SLIDE 12

Robustness of ne Robustness of ne

Babaoglu Leiden M

etwork size estimation etwork size estimation

20% of messages are lost 20% of messages are lost

Meeting 12

slide-13
SLIDE 13

#

Topology M Topology M gy gy

ALMA MATER STUDIORUM – U ALMA MATER STUDIORUM – U

2

Management Management g

UNIVERSITA’ DI BOLOGNA UNIVERSITA’ DI BOLOGNA

slide-14
SLIDE 14

Gossip fr Gossip fr

  • Style of interaction: push-pu
  • Local state S: Current neigh
  • Local state S: Current neigh
  • Method SelectPeer(): Single
  • Method Update(): Ranking f

desired topology (ring, mesh

Babaoglu Leiden M

ramework instantiation ramework instantiation

ull hbor set hbor set e random neighbor function defined according to h, torus, DHT, etc.)

Meeting 14

slide-15
SLIDE 15

Mes

Babaoglu Leiden M

Mesh Example Mesh Example

h.mov

Meeting 15

slide-16
SLIDE 16

Line.m

Babaoglu Leiden M

Sorting example Sorting example

mov

Meeting 16

slide-17
SLIDE 17

Exponent Exponent

Babaoglu Leiden M

tial convergence - time tial convergence - time

Meeting 17

slide-18
SLIDE 18

Exponential conve Exponential conve

Babaoglu Leiden M

ergence - network size ergence - network size

Meeting

slide-19
SLIDE 19

#

Heartbeat Syn Heartbeat Syn y

ALMA MATER STUDIORUM – U ALMA MATER STUDIORUM – U

3

nchronization nchronization

UNIVERSITA’ DI BOLOGNA UNIVERSITA’ DI BOLOGNA

slide-20
SLIDE 20
  • Nature displays astonishing

p y g independent actors

  • Heart pacemaker cells
  • Chirping crickets
  • Menstrual cycle of women livin
  • Flashing of fireflies
  • Actors may belong to the sa

parts of different organisms

Babaoglu Leiden M

Synchrony in nature Synchrony in nature

cases of synchrony among y y g

ng together

ame organism or they may be

Meeting 20

slide-21
SLIDE 21
  • The “Coupled oscillator” mo

phenomenon of “self-synchr

  • Each actor is an independen
  • Oscillators coupled through

p g

  • Mechanical vibrations
  • Air pressure

p

  • Visual clues
  • Olfactory signals
  • They influence each other, c

adjustments that result in gl

Babaoglu Leiden M

Coupled oscillators Coupled oscillators

  • del can be used to explain the

ronization” nt “oscillator”, like a pendulum their environment causing minor local

  • bal synchrony

Meeting 21

slide-22
SLIDE 22
  • Certain species of (male) fir

known to synchronize their f y

  • Small connectivity (each firefly

“neighbors”)

  • Communication not instantane
  • Independent local “clocks” wit

Babaoglu Leiden M

Fireflies Fireflies

reflies (e.g., luciola pupilla) are flashes despite: p

y has a small number of eous h random initial periods

Meeting 22

slide-23
SLIDE 23

Gossip fr Gossip fr

  • Style of interaction: push
  • Local state S: Current phase
  • Local state S: Current phase
  • Method SelectPeer(): (smal
  • Method Update(): Function

based on the phase of arrivin

Babaoglu Leiden M

ramework instantiation ramework instantiation

e of local oscillator e of local oscillator ll) set of random neighbors to reset the local oscillator ng flash

Meeting 23

slide-24
SLIDE 24

fireflie

Babaoglu Leiden M

Experimental results Experimental results

es.mov

Meeting 24

slide-25
SLIDE 25

Exp Exp

Babaoglu Leiden M

ponential convergence ponential convergence

Meeting 25

slide-26
SLIDE 26

#

Cooperatio Cooperatio p Environ p Environ

ALMA MATER STUDIORUM – U ALMA MATER STUDIORUM – U

4

n in Selfish n in Selfish nments nments

UNIVERSITA’ DI BOLOGNA UNIVERSITA’ DI BOLOGNA

slide-27
SLIDE 27

P2P networks are usually op

  • P2P networks are usually op
  • Possibility to free-ride

High levels of free riding can s

  • High levels of free-riding can s

performance

  • A gossip-based algorithm ca
  • A gossip-based algorithm ca

levels of cooperation despite

  • Based on simple “copy” and
  • Based on simple copy and

Babaoglu Leiden M

Outline Outline

pen systems pen systems

seriously degrade global seriously degrade global

an be used to sustain high an be used to sustain high e selfish nodes d “rewire” operations d rewire operations

Meeting 27

slide-28
SLIDE 28

Gossip fr Gossip fr

  • Style of interaction: pull
  • Local state S: Current utility

within an interaction network

  • Method SelectPeer(): Single

() g

  • Method Update(): Copy stra

peer is achieving better utility p g y

Babaoglu Leiden M

ramework instantiation ramework instantiation

y, strategy and neighborhood k e random sample p ategy and neighborhood if the y

Meeting 28

slide-29
SLIDE 29

SLAC Algorith SLAC Algorith

E D C A C A “Copy” strategy py gy B “Rewire”

Babaoglu Leiden M

m: “Copy and Rewire” m: “Copy and Rewire”

F G H J K

Meeting 29

slide-30
SLIDE 30

SLA SLA

E D C A A C “Mutate” strategy B Drop current links Link to random node

Babaoglu Leiden M

Link to random node

AC Algorithm: “Mutate” AC Algorithm: “Mutate”

F G H J K

Meeting 30

slide-31
SLIDE 31
  • Prisoner’s Dilemma in SLAC
  • Nodes play PD with neighbors

p y g network

  • Only pure strategies (always C
  • Strategy mutation: flip current
  • Utility: average payoff achieve

Babaoglu Leiden M

Prisoner’s Dilemma Prisoner’s Dilemma

C

s chosen randomly in the interaction y C or always D) strategy ed

Meeting 31

slide-32
SLIDE 32

Cycle 180: Sm Cycle 180: Sm

Babaoglu Leiden M

mall defective clusters mall defective clusters

Meeting 32

slide-33
SLIDE 33

Cycle 220: Cycle 220:

Babaoglu Leiden M

Cooperation emerges Cooperation emerges

Meeting 33

slide-34
SLIDE 34

Cooperating cluste Cooperating cluste Cooperating cluste Cooperating cluste

Babaoglu Leiden M

Cycle 230: er starts to break apart Cycle 230: er starts to break apart er starts to break apart er starts to break apart

Meeting 34

slide-35
SLIDE 35

Cycle 300: Defective coope Cycle 300: Defective coope coope coope

Babaoglu Leiden M

e nodes isolated, small erative clusters formed e nodes isolated, small erative clusters formed erative clusters formed erative clusters formed

Meeting 35

slide-36
SLIDE 36

Phase tra Phase tra

nodes ating n coopera % of c

Babaoglu Leiden M

ansition of cooperation ansition of cooperation

Meeting 36

slide-37
SLIDE 37

H t i t i

  • How to communicate a piec

node to all other nodes Whil

  • While:
  • Minimizing the number of mes

M i i i th t f

  • Maximizing the percentage of

(NR)

  • Minimizing the elapsed time (T
  • Minimizing the elapsed time (T

Babaoglu Leiden M

Broadcast Application Broadcast Application

f i f ti f i l ce of information from a single

ssages sent (MC) d th t i th nodes that receive the message TR) TR)

Meeting 37

slide-38
SLIDE 38
  • Given a network with N nod
  • A spanning tree has MC = N
  • A flood-fill algorithm has MC =
  • For fixed networks containin

to use an initial flood-fill to b node

  • Practical if broadcasting init
  • In P2P applications this is n

pp dynamicity and the fact that broadcast

Babaoglu Leiden M

Broadcast Application Broadcast Application

es and L links

= L

ng reliable nodes, it is possible g , p build a spanning tree from any iated by a few nodes only

  • t practical due to network

p all nodes may need to

Meeting 38

slide-39
SLIDE 39

N d i iti t b d t b

  • Node initiates a broadcast b

neighbor T diff d b h i

  • Two different node behavior

when they receive a messag

P F d th t

  • Pass: Forward the message to
  • Drop: Do nothing

Utiliti d t d f ll

  • Utilities are updated as follo
  • Nodes that receive the messa

N d th t th

  • Nodes that pass the message
  • Assume β > γ > 0, indicating n

messages but also an incentiv

Babaoglu Leiden M

messages but also an incentiv

The broadcast game The broadcast game

b di t h by sending a message to each d i h h rs determine what happens ge for the first time:

ll i hb

  • all neighbors
  • ws:

age gain a benefit β i t e incur a cost γ nodes have an incentive to receive ve to not forward them

Meeting 39

ve to not forward them

slide-40
SLIDE 40

1000-node s 1000-node s

Babaoglu Leiden M

static random network static random network

Meeting 40

slide-41
SLIDE 41

1000-nod 1000-nod

Babaoglu Leiden M

de high churn network de high churn network

Meeting 41

slide-42
SLIDE 42

Average over 500 broa

Babaoglu Leiden M

Fixed random network Fixed random network

adcasts x 10 runs

Meeting 42

slide-43
SLIDE 43

Average over 500 bro

Babaoglu Leiden M

High churn network High churn network

  • adcasts x 10 runs

Meeting 43

slide-44
SLIDE 44

S

  • What is it that makes a proto

C li ti t t ( h

  • Cyclic execution structure (wh
  • Bounded information exchang

Bounded number of peers per

  • Bounded number of peers per
  • Random selection of peer(s)

Babaoglu Leiden M

Some food for thought Some food for thought

  • col “gossip based”?

h th ti ti ) hether proactive or reactive) ge per peer, per cycle r cycle r cycle

Meeting 44

slide-45
SLIDE 45

S

  • Bounded information excha

implies

  • Information condensation — a
  • Is aggregation the mother o

Babaoglu Leiden M

Some food for thought Some food for thought

nge per peer, per round

aggregation

f all gossip protocols?

Meeting 45

slide-46
SLIDE 46

S

  • Is exponential convergence

all gossip protocols? all gossip protocols?

  • No, depends on the propert

Wh t th i i

  • What are the minimum prop

are necessary to guarantee

Babaoglu Leiden M

Some food for thought Some food for thought

a universal characterization of ies of the peer selection step ti f l ti th t perties for peer selection that exponential convergence?

Meeting 46

slide-47
SLIDE 47

Gossip versus ev Gossip versus ev

  • What is the relationship betw
  • What is the relationship betw

computing?

  • Is one more powerful than th
  • Is one more powerful than th

Babaoglu Leiden M

volutionary computing volutionary computing

ween gossip and evolutionary ween gossip and evolutionary he other? Are they equal? he other? Are they equal?

Meeting