Consensus and Collision Detectors in Wireless Ad Hoc Networks PowerPoint PPT Presentation

presentation player overlay
1 / 59
About This Presentation
Transcript and Presenter's Notes

Title: Consensus and Collision Detectors in Wireless Ad Hoc Networks


1
Consensus and Collision Detectors in Wireless
Ad Hoc Networks
2
Consensus and Collision Detectors in Wireless
Ad Hoc Networks
3
Consensus and Collision Detectors in Wireless
Ad Hoc Networks
4
Wireless Ad Hoc Networks
5
Wireless Ad Hoc Networks
  • Challenges
  • Unknown number
  • No unique ids
  • Fault-prone
  • Collision-prone communication

6
Wireless Ad Hoc Networks
  • Challenges
  • Unknown number
  • No unique ids
  • Fault-prone
  • Collision-prone communication

7
  • How to solve problems
  • in wireless ad hoc networks with
  • unreliable communication?

8
  • How to solve consensus
  • in wireless ad hoc networks with
  • unreliable communication?
  • Consensus
  • Fundamental agreement problem
  • in fault-tolerant computation

9
Outline
  • Introduction
  • Collision-prone Networks
  • Collision Detectors
  • Algorithms and Lower Bounds
  • Conclusions

10
(No Transcript)
11
  • Single-hop network
  • Synchronous rounds
  • Unknown number of nodes
  • No unique identifiers

12
Single Broadcast
13
Single Broadcast
14
(No Transcript)
15
Ethernet Collisions
16
Ethernet Collisions
?
?
?
?
?
?
?
?
?
?
17
More Realistic Collisions
18
More Realistic Collisions
?
?
19
Unfortunately
  • Consensus is impossible with
  • non-uniform collisions.

20
Collision Detection
21
Collision Detection
!
!
!
!
!
22
Collision Detection
!
!
!
!
!
  • Receiver-centric
  • How many messages lost?
  • Who sent lost message?

23
Agreement with Collision Detectors
  • Collision detectors provide hints about possibly
    incomplete information
  • Know when it is not safe to decide
  • When is it safe to decide?
  • Acks Hear the same value from everybody
  • Nacks Veto the decision if might lead to safety
    violation
  • Question Acks or Nacks?

24
Acks vs. Nacks
  • Acks
  • Everyone communicates
  • Too much contention
  • Nacks
  • Only communicate if problem detected
  • Less contention
  • Nacks allow for adaptive algorithms

25
Collision Detector Classes
If ?½ messages are lost, then report collision.
If all messages are lost, then report a collision.
Consensus is impossible with ?C
26
Consensus with CD
V is the value domain
27
Consensus with CD
(Always) Accurate
V is the value domain
28
Consensus with CD
Eventually Accurate
V is the value domain
29
Eventual Collision Freedom
  • Eventually, if only 1 node broadcasts

30
Eventual Collision Freedom
  • Eventually, if only 1 node broadcasts, then no
    collision occurs.
  • Use a contention manager.
  • Outputs active/passive at each node.
  • Implementation randomized backoff, e.g.

31
Eventual Collision Freedom
  • Eventually, if only 1 node broadcasts, then no
    collision occurs.
  • Use a contention manager.
  • Outputs active/passive at each node.
  • Implementation exponential backoff, e.g.
  • If b nodes broadcast, then no collisions.
  • b is an unknown MAC layer constant
  • b could be as low as 1

32
Consensus with CD
V is the value domain
33
Consensus with CD
V is the value domain
34
Consensus with CD
V is the value domain
35
Consensus with ?AC
  • Algorithm executes in super-rounds
  • Round 1
  • Active nodes vote on a value.
  • Round 2
  • Veto round.
  • Anybody can veto.

36
Consensus with ?AC
v2
v1
v2
Round 1
37
Consensus with ?AC
v2
v1
v2
Round 1
38
Consensus with ?AC
v2
v1
v1
v2
Round 1
39
Consensus with ?AC
v1
v1
v2
Round 1
40
Consensus with ?AC
v1
v1
v2
v2
Round 1
41
Consensus with ?AC
v1
v1
v2
Round 1
42
Consensus with ?AC
v1
v1
v2
v2, ?
Round 1
43
Consensus with ?AC
v1
v1
v1
v1
v2
v2
Round 1
Round 2
44
Consensus with ?AC
v1
v1
veto
v1
v1
veto
v2
v2
  • Continue

Round 1
Round 2
45
Consensus with ?AC
v1
v1
v2
Round 1
46
Consensus with ?AC
v1
v1
v2
Round 1
47
Consensus with ?AC
v1
v1
v1
v2
Round 1
48
Consensus with ?AC
v1
v1
v2
Round 1
49
Consensus with ?AC
v1
v1
v2
v1, ?
(false positive)
Round 1
50
Consensus with ?AC
v1
v1
v1
v1
v2
v2
Round 1
Round 2
51
Consensus with ?AC
v1
v1
veto
v1
v1
veto
v2
v2
  • Continue

Round 1
Round 2
52
Consensus with ?AC
v1
v1
v2
Round 1
53
Consensus with ?AC
v1
v1
v2
Round 1
54
Consensus with ?AC
v1
v1
v1
v2
Round 1
55
Consensus with ?AC
v1
v1
v2
Round 1
56
Consensus with ?AC
v1
v1
v2
v1
Round 1
57
Consensus with ?AC
v1
v1
v1
Round 1
58
Consensus with ?AC
v1
v1
v1
v1
v1
v1
Round 1
Round 2
59
Consensus with ?AC
v1
v1
Decides at most 3 rounds after stabilization S
tabilization accuracy and collision-freedom
v1
v1
v1
v1
Decide v1
Round 1
Round 2
60
Consensus with CD
V is the value domain
61
Consensus with CD
V is the value domain
62
Consensus with ½-AC
If gt½ messages are lost, then report collision
  • ½-complete, accurate collision detector

2r broadcast schedules for the first r rounds V
possible values For k lt log(V), at most V/2
broadcast schedules to follow ? Exists two values
resulting in the same broadcast schedule of
length k
v1
v2
63
Maj-?AC Consensus Simulations
64
Global Agreement
  • Local consensus as a building block

65
Global Agreement
  • Local consensus as a building block
  • Solve locally

66
Global Agreement
  • Local consensus as a building block
  • Solve locally

67
Global Agreement
  • Local consensus as a building block
  • Solve locally
  • Propagate outcome

68
Global Agreement
  • Local consensus as a building block
  • Solve locally
  • Propagate outcome
  • Decide when heard from all cells

69
Simulations of Global Agreement
Fixed Diameter 5 hops
70
Simulations of Global Agreement
4 hops
10 hops
Fixed Density 0.02667 nodes/m2
71
Conclusions
  • Realistic framework for wireless networks
  • Non-uniform collision patterns
  • Eventual collision freedom
  • Contention manager
  • Collision detection

72
Conclusions
(Always) Accurate is hard to implement
??
0-complete is easy to implement
V is the value domain
73
Questions?
V is the value domain
Write a Comment
User Comments (0)
About PowerShow.com