Escolar Documentos
Profissional Documentos
Cultura Documentos
CSCE 668
DISTRIBUTED ALGORITHMS
AND SYSTEMS
CSCE 668
Fall 2011
Prof. Jennifer Welch
Ring Networks
2
CSCE 668
CSCE 668
CSCE 668
CSCE 668
Anonymous Rings
6
CSCE 668
Uniform (Anonymous)
Algorithms
CSCE 668
Leader Election in
Anonymous Rings
Proof Sketch:
CSCE 668
Leader Election in
Anonymous Rings
uniform
asynchronous
Set 3: Leader Election in Rings
CSCE 668
CSCE 668
Specifying a Ring
11
id = 37
p4
p0
p1
id = 25
p3
p2
id = 19
id = 4
CSCE 668
12
Uniform (Non-anonymous)
Algorithms
CSCE 668
13
Overview of LE in Rings
with Ids
synchronous ring:
(n log n) messages
(n) messages under certain conditions
otherwise (n log n) messages
CSCE 668
14
O(n2) Messages LE
Algorithm
if j > id then
forward
if j = id then
elect
if j < id then
do
nothing
CSCE 668
Time: O(n)
Message complexity: Depends how the ids
are arranged.
CSCE 668
CSCE 668
17
CSCE 668
18
CSCE 668
19
probe
reply
probe
probe
reply
reply
probe probe
probe
reply
reply
reply
pi
probe
reply
probe probe
reply
reply
probe probe
reply
reply
probe probe
reply
CSCE 668
reply
20
CSCE 668
21
CSCE 668
22
a phase
k-1 winner
a phase
k-1 winner
CSCE 668
23
CSCE 668
24
phase 0 msgs
termination
msgs
4n + n + 42kn/(2k-1+1)
k=1
< 8n(log n + 2) + 5n
msgs for
phases 1 to
log(n1) +1
= O(n log n)
Set 3: Leader Election in Rings
CSCE 668
Can We Do Better?
25
CSCE 668