38
Grid: Scalable Ad-Hoc Wireless Networking Douglas De Couto http://pdos.lcs.mit.edu/ grid

Grid: Scalable Ad-Hoc Wireless Networking

Embed Size (px)

DESCRIPTION

Grid: Scalable Ad-Hoc Wireless Networking. Douglas De Couto http://pdos.lcs.mit.edu/grid. A. F. D. B. E. C. G. J. I. H. Goal: Networks out of Chaos. Ad hoc Applications. Temporary, fast setup Emergencies & events Rooftop networks No wires, trenches, etc. Developing communities - PowerPoint PPT Presentation

Citation preview

Page 1: Grid: Scalable Ad-Hoc Wireless Networking

Grid: Scalable Ad-Hoc Wireless Networking

Douglas De Couto

http://pdos.lcs.mit.edu/grid

Page 2: Grid: Scalable Ad-Hoc Wireless Networking

Goal: Networks out of Chaos

A

F

D

B

E

C

GJ

I

H

Page 3: Grid: Scalable Ad-Hoc Wireless Networking

Ad hoc Applications• Temporary, fast setup

• Emergencies & events

• Rooftop networks• No wires, trenches, etc.

• Developing communities• Cheap, incremental, automatic

Page 4: Grid: Scalable Ad-Hoc Wireless Networking

Direct Contact Scales Badly

A

F

D

B

E

C

GJ

I

H

“Hello J!”

Page 5: Grid: Scalable Ad-Hoc Wireless Networking

Solution: Multi-hop Forwarding

A

F

D

B

E

C

GJ

I

H

“A to J: Hello!”

Page 6: Grid: Scalable Ad-Hoc Wireless Networking

Design Challenges

• Finding routes

• Cope with mobile nodes

• Conserving battery power

• Coping with malicious/faulty nodes

• Scaling to large networks

Page 7: Grid: Scalable Ad-Hoc Wireless Networking

Completed Research

• Scalable routing:• Geographic forwarding• Distributed P2P location database

• Low-power forwarding

• Understanding capacity limits

• Avoiding malicious nodes

• Current research: link selection

Page 8: Grid: Scalable Ad-Hoc Wireless Networking

System Status

• Software distributions for• Linux, BSD• PC, iPaq

• Works with unmodified Internet software

• Two Grid nets deployed• In-building network• Rooftop network

Page 9: Grid: Scalable Ad-Hoc Wireless Networking

LCS Grid Net

5

5

55

55 5

5 5 55

6

66 6 6

6

• 17 static nodes on 5th/6th floors• A dozen iPaq hand-helds

wiredgateway

Page 10: Grid: Scalable Ad-Hoc Wireless Networking

Roof-Top Grid Net

LCS

5

43

12

6

Page 11: Grid: Scalable Ad-Hoc Wireless Networking

Geographic forwarding (GF)

• Packets addressed to idG,locationG

• Next hop is chosen from neighbors to move packet geographically closer to destination location

• Per-node routing overhead constant as network size (nodes, area) grows

• Requires location service, which adds overhead

A

B

CD F

C’s radio range

E

G

Page 12: Grid: Scalable Ad-Hoc Wireless Networking

A

EH

G

B

D

FC

J

I K

L

Each node has a few servers that know its location.1. Node D sends location updates to its servers (B, H, K).2. Node J sends a query for D to one of D’s close servers.

“D?”

Grid Location Service (GLS) overview

Page 13: Grid: Scalable Ad-Hoc Wireless Networking

level-0

level-1

level-2

level-3

All nodes agree on the global origin of the grid hierarchy

GLS’s Spatial Hierarchy

Page 14: Grid: Scalable Ad-Hoc Wireless Networking

3 servers per node per leveln

s

s

s

s

s

s

s

s s

• s is n’s successor in that square. (Successor is the node with “least ID greater than” n )

sibling level-0squares

sibling level-1squares

sibling level-2squares

Page 15: Grid: Scalable Ad-Hoc Wireless Networking

Queries search for destination’s successors

Each query step: visit n’s successor at increasing levels, untillocation server found

n

s

s

s

s

s

s

s

s s3

xs2

s1

location query path

Page 16: Grid: Scalable Ad-Hoc Wireless Networking

• Geographic forwarding is less fragile than source routing.• DSR queries use too much b/w with > 300 nodes.

Fra

cti o

n of

da t

a pa

c ket

s de

l iver

ed s

ucce

ssfu

l ly

Number of nodes

DSR

Grid

GF + GLS performs well

Biggest network simulated:600 nodes, 2900x2900m(4-level grid hierarchy)

Page 17: Grid: Scalable Ad-Hoc Wireless Networking

GLS properties

• Spreads load evenly over all nodes• Degrades gracefully as nodes fail• Queries for nearby nodes stay local

• Per-node storage and communication costs grow slowly as the network size grows: O(log n), n nodes

• More details: Li et al, Mobicom 2000

Page 18: Grid: Scalable Ad-Hoc Wireless Networking

Does Grid Find Useful Paths?

A

F

D

B

E

C

GJ

I

H

Page 19: Grid: Scalable Ad-Hoc Wireless Networking

Mistake: Shortest-Path Routes

A

F

D

B

E

C

GJ

I

HA’s maxrange

Page 20: Grid: Scalable Ad-Hoc Wireless Networking

Link Quality Isn’t Bi-modal

Page 21: Grid: Scalable Ad-Hoc Wireless Networking

Route metrics

• How to select good routes?• Compare metrics

• Good metric: expected total packet transmissions• Want to mimimize

• Route metric = sum of link metrics

• Fight strong bias towards shortest paths• While penalizing longer paths

Page 22: Grid: Scalable Ad-Hoc Wireless Networking

Obstacles to Better Routing

• Want to detect and avoid lossy links, but…

• Loss rate masked by 802.11 re-sends

• Changes quickly with time, motion

Page 23: Grid: Scalable Ad-Hoc Wireless Networking

How to find loss rate?

• Signal strength?

Page 24: Grid: Scalable Ad-Hoc Wireless Networking

Current Work

• Trying to directly measure loss rates

• Route broadcast packets• Long time constants

• 802.11 protocol beacons?• Requires driver integration

Page 25: Grid: Scalable Ad-Hoc Wireless Networking

Grid Summary

• Grid routing protocols are• Self-configuring• Easy to deploy• Scalable

http://www.pdos.lcs.mit.edu/grid

Page 26: Grid: Scalable Ad-Hoc Wireless Networking

End Of Talk

Demo

Page 27: Grid: Scalable Ad-Hoc Wireless Networking

Application: Smart Devices

Internet

AccessPoint

Print

E-Mail

Share

RemoteControl

Page 28: Grid: Scalable Ad-Hoc Wireless Networking

Application: Rooftop Nets

Game server School/HomeworkServer

InternetAccess

Page 30: Grid: Scalable Ad-Hoc Wireless Networking

Topology Distribution Scales Badly

1. “C can reach A and B.”

AB

C

D

F

3. Data from F to B.

2. “D can reach A, B, and C.”

G

Page 31: Grid: Scalable Ad-Hoc Wireless Networking

Geographic Forwarding Scales Well

Longitude

Latit

ude

A

F

D

B

E

C

G

“Send towards latG / lonG.”

Page 32: Grid: Scalable Ad-Hoc Wireless Networking

Location Database

Longitude

Latit

ude

A

F

D

B

E

C

G

DB

1. “G is at latG / lonG”

2. “Where is G?”

Page 33: Grid: Scalable Ad-Hoc Wireless Networking

Distributed Location Database

• Each node is DB for a few other nodes

• How to find a node’s location server(s)?

• Every node has an unchanging ID

• hash(ID) maps ID to position in unit square

Page 34: Grid: Scalable Ad-Hoc Wireless Networking

G’s Location Server is a Point

G

hash(G) = 0.1,0.9

x

(0,0)

H I

Page 35: Grid: Scalable Ad-Hoc Wireless Networking

Spatial Grid Hierarchy

All nodes agree on the global origin of the Grid hierarchy

Page 36: Grid: Scalable Ad-Hoc Wireless Networking

Multiple Servers per Node

G

c

b a

Page 37: Grid: Scalable Ad-Hoc Wireless Networking

Lookups Expand in Scope

G

c

b a

A

?

Page 38: Grid: Scalable Ad-Hoc Wireless Networking

Grid Protocol Overhead Grows Slowly

• Protocol packets include: Grid update, Grid query/reply.

Number of nodes

Pro

toco

l Ov e

rhea

d (p

acke

ts p

er s

econ

d)