1
Ekta: An Efficient DHT Substrate for Distributed Applications in Mobile Ad Hoc Networks
Himabindu Pucha, Saumitra Das, Y. Charlie Hu Distributed Systems and Networking Lab, School of ECE, Purdue University
Ekta: An Efficient DHT Substrate for Distributed Applications in - - PowerPoint PPT Presentation
Ekta: An Efficient DHT Substrate for Distributed Applications in Mobile Ad Hoc Networks Himabindu Pucha, Saumitra Das, Y. Charlie Hu Distributed Systems and Networking Lab, School of ECE, Purdue University 1 Mobile ad hoc networks (MANETs)
1
Himabindu Pucha, Saumitra Das, Y. Charlie Hu Distributed Systems and Networking Lab, School of ECE, Purdue University
2
Wireless networks in which wireless hosts act as
No base station or routing infrastructure Network topology changes frequently and
Challenge lies in routing packets with changing
Specialized routing protocols: DSR, AODV
3
Operate in an overlay p2p network in which nodes
Rely on underlying Internet infrastructure to route
Implement a DHT in a scalable, robust manner Challenge lies in routing packets in a network with
Specialized protocols: Pastry, Tapestry, Chord, CAN
4
DHTs provide a useful platform for building scalable
DHTs can potentially provide an efficient way to
Applications such as file sharing, resource discovery could
benefit from the insert/lookup convergence
Main Challenge
Provide an efficient DHT abstraction in a MANET and
demonstrate its usability
5
How to support an efficient DHT abstraction
Can off-the-shelf protocols be used? If not, what is an efficient architecture to provide
How should the DHT abstraction be used in
Can a MANET application benefit from the DHT?
6
Layer Pastry (structured p2p protocol) on top
Pastry operates in the application layer
DSR used as underlying routing protocol
7
Nodes have unique Id, messages have keys
Typically 128 bits long
Primitive: Route(msg, key)
Delivers msg to the currently alive node whose Id is numerically
closest to key
Scalable, efficient
Per node routing table contains O(log(N)) entries Routes in O(log(N)) steps
Fault tolerant
Self-fixes routing tables when nodes are added, deleted or fail
8
x 1 x 2 x 3 x 4 x 5 x 7 x 8 x 9 x a x b x c x d x e x f x 6 x 6 1 x 6 2 x 6 3 x 6 4 x 6 6 x 6 7 x 6 8 x 6 9 x 6 a x 6 b x 6 c x 6 d x 6 e x 6 f x 6 5 x 6 5 1 x 6 5 2 x 6 5 3 x 6 5 4 x 6 5 5 x 6 5 6 x 6 5 7 x 6 5 8 x 6 5 9 x 6 5 b x 6 5 c x 6 5 d x 6 5 e x 6 5 f x 6 5 a x 6 5 a 2 x 6 5 a 3 x 6 5 a 4 x 6 5 a 5 x 6 5 a 6 x 6 5 a 7 x 6 5 a 8 x 6 5 a 9 x 6 5 a a x 6 5 a b x 6 5 a c x 6 5 a d x 6 5 a e x 6 5 a f x
Row 0 Row 1 Row 2 Row 3 log16 N rows
9
d46a1c Route(d46a1c) d462ba d4213f d13da3 65a1fc d467c4 d471f1 NodeId space d467c4 65a1f c d13da3 d4213f d462ba Proximity space
10
Reactive routing protocol based on source
Operation: route discovery and maintenance Route caching: path and link cache RREQ [S] [S,A] [S,A,B] [S,A,B,C] [S,A,B,C,D] B S A C D RREP
11
Direct layering is not practical Pastry uses ‘ping’ to measure delay for proximity
Proximity of Pastry routing tables uses hop count
instead of delay from ‘ping’
DSR exports API to answer proximity probes from
Pastry using its route cache
Expanding ring search for bootstrap node
12
Pastry implemented in ns-2 on top of DSR Parameters: 50 nodes, 1500mx300m, 2Mbps, 250m, 1-
19m/s
Traffic: 40 sources, 3 pkts/sec, random keys generated Metrics
Packet delivery ratio (PDR): ratio of successfully and
correctly delivered packets to packets sent
Overhead Delay
13
14
High overhead
Periodic maintenance, proximity probing
Choice of next logical hop independent of
Stale proximity information with Pastry Mismatch between routing state of Pastry
15
Integrates Pastry and DSR A unified DHT substrate at the network
Referred to as Ekta (unity)
16
3 2551441 3 1203345 3 3345544
2b - 1 128 / b
Source Route 0 2212102 3 1203203 10233 0 01 1023 2 121 1023 1 000 1023 0 322 102 2 2302 102 1 1302 102 0 0230 10 3 23302 10 1 32102 10 0 31203 1 1 301233 1 2 230203 1 3 021022 2 2301203 102331 2 0 10233 2 32 10233021 10233122 10233033 10233120
Routing Table(10233102) LeafSet
17
Join
Flood “JOIN REQUEST” Potential leafset members send “JOIN ACK” Node closest sends “JOIN COMPLETE”
Graceful leave
Flood “LEAVE” Leafset members send “LEAVE ACK” Exchange leafsets
Node failure
Reactive failure handling Node sends “proxy leave”
18
Prefix based route requests Routes updated using snooping and
19
20
21
22
Integrated approach is an efficient
Ekta is superior
No proximity probing and periodic maintenance Better coordination between routes available in
Prefix route requests Fresher proximity information from snooping and
23
24
Nodes in a MANET possess heterogeneous
Cooperative resource sharing is useful in MANETs
Requires resource discovery
Two schemes
Ekta-RD DSR-RD
25
Simulations in ns-2 of both protocols Number of unique resources = number of nodes Each resource replicated on average on 10% of nodes Traffic: Poisson arrival of resource requests at each node, each
request chooses random resource, varying λ
Metrics
Success ratio: resource requests successfully satisfied Overhead: control overhead for routing
26
Overhead (DSR-RD) = λ . N2 + λ . q. N2 . P
Overhead (Ekta-RD) = N ( λ . log 2b N . P + λ . P )
+ N2. Pb . λ (log 2b N +1)
b N )
27
28
29
1/λ = 5 seconds
30
1/λ = 5 seconds
31
Integrated approach is an efficient architecture for
MANET applications can benefit from DHTs as
Ekta can potentially be used as an efficient substrate
32