33
Time Synchronization in 802.11- based MANETs Ten H. Lai Ohio State University

Time Synchronization in 802.11-based MANETs Ten H. Lai Ohio State University

Embed Size (px)

Citation preview

Page 1: Time Synchronization in 802.11-based MANETs Ten H. Lai Ohio State University

Time Synchronization in 802.11-based MANETs

Ten H. Lai

Ohio State University

Page 2: Time Synchronization in 802.11-based MANETs Ten H. Lai Ohio State University

Out-of-sync problem in MANETs

More sever than in IBSS because of hidden terminals.

Recall: causes of out-of-sync

Unidirectional clocks Equal beacon opportunity Single beacon per interval Beacon contention (collision)

Page 3: Time Synchronization in 802.11-based MANETs Ten H. Lai Ohio State University

Basic Ideas Select a subset of nodes to generate beacons

more frequently than the rest.

What subset?

fastest node + (connected) dominating set

Page 4: Time Synchronization in 802.11-based MANETs Ten H. Lai Ohio State University

Dominating Sets

A set of nodes that covers the entire graph.

connected dominating set

Page 5: Time Synchronization in 802.11-based MANETs Ten H. Lai Ohio State University

Constructing CDS’s Many existing algorithms. Layer 3 algorithms – useful for routing,

useless for our purpose.

Page 6: Time Synchronization in 802.11-based MANETs Ten H. Lai Ohio State University

A New CDS Algorithm Embedded in TSF (time sync function) Node exchanging info via beacons Overhead: 3 bits per beacon (550 bits) Assumption: unique fastest clock

window

beacon interval

Page 7: Time Synchronization in 802.11-based MANETs Ten H. Lai Ohio State University

DS, Bridges, Covered, Uncovered Nodes

DS

Page 8: Time Synchronization in 802.11-based MANETs Ten H. Lai Ohio State University

Constructing a CDS: basic idea

Initially, DS contains a single node. The fastest node enters DS. Bridges keep entering DS until no more bridges.

DS

Page 9: Time Synchronization in 802.11-based MANETs Ten H. Lai Ohio State University

Design Issue #1 How to recognize the fastest node, bridges,

DS nodes, covered nodes, uncovered nodes thru beacons?

SA Timestamp

Beacon

Page 10: Time Synchronization in 802.11-based MANETs Ten H. Lai Ohio State University

Design Issue #2

How to minimize the number of bridges entering DS?

Page 11: Time Synchronization in 802.11-based MANETs Ten H. Lai Ohio State University

Design Issue #3

Cope with topology change and node mobility.

B

A

A

B

Page 12: Time Synchronization in 802.11-based MANETs Ten H. Lai Ohio State University

Design Issue #4

How to merge two subnets? Easy & hard.

?

Page 13: Time Synchronization in 802.11-based MANETs Ten H. Lai Ohio State University

Design Issue #5: MANET Formation

How to form a MANET from scratch?

?

Page 14: Time Synchronization in 802.11-based MANETs Ten H. Lai Ohio State University

Another way of MANET formation

?

Page 15: Time Synchronization in 802.11-based MANETs Ten H. Lai Ohio State University

Assumptions Formation: MANET initiated by a single node. Connectivity: MANET remains connected.

Page 16: Time Synchronization in 802.11-based MANETs Ten H. Lai Ohio State University

Summary of Design Issues1. How to recognize the fastest node and

bridges?

2. How to control the number of bridges entering DS?

3. How to cope with topology change and node mobility?

4. How to merge subnets?

Page 17: Time Synchronization in 802.11-based MANETs Ten H. Lai Ohio State University

Initialization

Rule 1: Let the starting node

enter the DS.

Page 18: Time Synchronization in 802.11-based MANETs Ten H. Lai Ohio State University

Rule 2: A node x recognizes

itself as the fastest if

T(beacons) < T(x)

for the last k received beacons.

The fastest enters DS

Am I the Fastest?

1:00

12:01

3:45

8.16

1.00

1.01

7:591.01

0:591:33

1:32

1:31 1:31

1:301.0010:011:35

Page 19: Time Synchronization in 802.11-based MANETs Ten H. Lai Ohio State University

Solution for Design Issue #1 How to recognize fastest node and bridges,

DS nodes, covered nodes, uncovered nodes thru beacons?

SA Timestamp

Beacon

Page 20: Time Synchronization in 802.11-based MANETs Ten H. Lai Ohio State University

Adding Bridges to DS

Rule 3: In each beacon interval, let bridge i enter DS

with probability P(i). Desired properties of P(i)?

DS

Page 21: Time Synchronization in 802.11-based MANETs Ten H. Lai Ohio State University

Does it construct a CDS?

R1. The starting node enters DS. R2. The fastest node enters DS.R3. Each bridge enters DS with a probability.

DS, yes.CDS, not necessarily.

Page 22: Time Synchronization in 802.11-based MANETs Ten H. Lai Ohio State University

How to make it connected? Gateway: a covered node receiving a beacon

from a with a far smaller timing.

Rule 4: Let gateways enter DS.

12:05 12:04 12:0312:32 12:30 12:20

Page 23: Time Synchronization in 802.11-based MANETs Ten H. Lai Ohio State University

How fast can gateways be recognized?

Depends on the drift rate difference between fastest node and A.

The higher the drift rate, the easier and faster to recognize gateways.

A

Page 24: Time Synchronization in 802.11-based MANETs Ten H. Lai Ohio State University

Is the resulting DS always connected?

Not necessarily

Not a problem as far as clock sync is concerned.

Page 25: Time Synchronization in 802.11-based MANETs Ten H. Lai Ohio State University

What if we do need a connected DS? Is it possible to always construct a CDS using

only beacons? Yes.

Page 26: Time Synchronization in 802.11-based MANETs Ten H. Lai Ohio State University

A problem: entrance only, no exit.

R1. The starting node enters DS.

R2. The fastest node enters DS.

R3. Each bridge enters DS with a probability.

R4. Each gateway enters DS.

Page 27: Time Synchronization in 802.11-based MANETs Ten H. Lai Ohio State University

Exit Rules

R1. The starting node enters DS.

R2. The fastest node enters DS.

R3. Each bridge enters DS with a probability.

R4. Each gateway enters DS.

R2’. If no longer the fastest, leaves the DS.

Page 28: Time Synchronization in 802.11-based MANETs Ten H. Lai Ohio State University

Exit Rules

R1. The starting node enters DS.

R2. The fastest node enters DS.

R3. Each bridge enters DS with a probability.

R4. Each gateway enters DS.

R3’ & R4’. Leaves DS after a random amount of time.

Page 29: Time Synchronization in 802.11-based MANETs Ten H. Lai Ohio State University

802.11 TSF max time drift

Page 30: Time Synchronization in 802.11-based MANETs Ten H. Lai Ohio State University

DS-Based TSF

Page 31: Time Synchronization in 802.11-based MANETs Ten H. Lai Ohio State University

Maximum Clock Drift – 802.11b vs. DS-based

802.11b

DS-based

Page 32: Time Synchronization in 802.11-based MANETs Ten H. Lai Ohio State University

Summary

Proposed: a DS-based clock sync protocol By-product: an algorithm for constructing DS. DS: mostly connected, occasionally not. What’s next?

Page 33: Time Synchronization in 802.11-based MANETs Ten H. Lai Ohio State University

Conclusion?