170
Mobile P2P Databases Ouri Wolfson University of Illinois, Chicago

Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

Mobile P2P Databases

Ouri WolfsonUniversity of Illinois, Chicago

Page 2: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 2

Environment

A central server does not necessarily exist

Local database

Local query

“Floating database”Resources of interest

in a limited geographic areapossibly for short time duration

Applications coexist

resource-query C

resource-query Bresource 4resource 5

resource 8

resource-query Aresource 1resource 2resource 3

Pda’s, cell-phones, sensors, hotspots, vehicles, with short-rangewireless capabilities

Short-range wireless networkswi-fi (100-200 meters)bluetooth (2-10, popular)zigbee

Unlicensed spectrum (free)

High bandwidth

3 communication modeslisteningtransmitting (amount)receiving (amount)

Power/search tradeoff

Page 3: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 3

Mobile Local Search: applicationssocial networking (wearable website)

Personal profile of interest at a conventionSingles matchmakingGames Reminder

mobile electronic commerceSale on an item of interest at mallMusic-file exchange

transportationemergency response

Search for victims in a rubble military

Sighting of insurgent in downtown Mosul in last hourasset management and tracking

Sensors on containers exchange security information => remote checkpoints

mobile collaborative worktourist and location-based-services

Closest ATM

Page 4: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 4

Transportation

SafetyVehicle in front has a malfunctioning brake lightVehicle is about to run a red light Patch of ice at milepost 305 Vehicle 100 meters ahead has suddenly stopped

Page 5: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 5

Transportation (cont.)

Improve efficiency/convenience/mobility:What is the average speed a mile ahead of me?Are there any accidents ahead?What parking slots are available around me?Taxi cab: what customers around me need service?Customer: What Taxi cabs are available around me?Transfer protection: transfer bus requested to wait for passengers Cab/ride sharing opportunities

Page 6: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 6

Applications – Common features

Mobile/stationary peers

Resources of interest in a limited geographic areaShort time duration

Can be solved by fixed servers, butUnlikely solutionProposed mp2p paradigm can enhance fixed solution (reliability, performance, coverage)

Page 7: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 7

Mobile P2P Network

Not really sensor networksResource constraints +Reliability, mobility, data collection –

Not really P2P Incentives +Mobility matters a lot (DHT probably not applicable) –

Not really Mobile Ad Hoc Networks Dynamic topology +Network maybe sparsely connected (DTN) -Routing to known net-id’s –

Page 8: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 8

Mp2p vs. client-server

Mp2p advantagesZero cost

Unregulated communicationNo central database to maintain

Independent of infrastructureHigher reliabilityPrivacy preservation

Mp2p disadvantagesWeaker answer-completeness guaranteesDensity requirements

Page 9: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 9

How to enable Mobile P2P applications?

Develop a platform for building them

Page 10: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 10

Platform components

Communication system: Intra-vehicle, vehicle-to-vehicle, and vehicle-to-infrastructure

Prototypes: Cartalk, UC IrvineData Management: collect, organize, integrate, model, disseminate, query dataSoftware tools:

Data miningTravel-time predictionTrip planningRegional planningCompetitive resource discovery strategies……

Page 11: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 11

Problems in data management

Query processingDissemination analysisValue of information, comparison with Client/ServerParticipation incentivesRemote QueryingData Integration of sensor and higher level information (maps, trip plans, ride-sharing profiles)Related approaches

Page 12: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 12

Query Processing outline

Basics of MP2P searchData push and pullPower, memory, bandwidth managementRanking of informationExperimental/commercial projects, Performance metric, and comparisonBackchannel exploitation

Page 13: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 13

The playersMoving/stationary peers

Personal digital assistants (pda’s)Computers in vehiclesProcessors embedded in the infrastructureHotspots

Spatio-temporal resource types -- examplesGas stationsParking slotsCab-customersRide-share partnersMalfunctioning brake-lightAccidents

Tickets availability at eventsDisaster victimsMatching profile

Collect, Organize,Disseminate,information about resources

Page 14: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 14

Resource-reports: description of (mostly physical) resources

Each resource-report may include: create-timehome-location

100 to 50,000 bytes (image)

some resources alternate: available/unavailablereports have limited useful life

Page 15: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 15

Peers

Each peer may serve as: Producer of reports: sensor (rfid)Consumer of reports: has queriesBroker of reports: has local broker database

or combination of roles

Page 16: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 16

Queries

A query Q maps each report R to a match degree:

Examples: Top parking slots given my current locationProfile with expertise “children-periodontics”Similarity between two images

1),(0 ≤≤ QRmatch

Page 17: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 17

Query/report Disseminationtwo peers within transmission range exchange queries and reports

Least relevant reports that do not fit in local broker database are purgedExchange not necessarily synchronous (periodic broadcast)

Page 18: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 18

Avoid duplication

Send only reports unknown to peer:Saves transmission power/bandwidthSaves receiving power

Two types of duplicationKey Content (same patch of ice reported 2 vehicles)

Bloom filters?

Page 19: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 19

Synchronous vs. asynchronous

When to communicate?

when encounter neighborhood awareness, heartbeatswhat if no new encounters, i.e. peers static

When new reports receivedBroadcast new id’sNeighbors respond with id’s of interest (collisions?)

Blindly, PeriodicallyWhat if nobody around?

Page 20: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 20

Saving listening energy

Synchronization by rendezvous (same wakeup time)

wakeup periodtime

wakeup scheme(15 sec cycle)

sleep period

Page 21: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 21

Broadcast vs. unicast

Broadcast of reports saves bandwidth since all neighbors hear

Broadcast may waste receiving power

Unicast neighborhood awareness

Page 22: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 22

Query Processing outline

Basics of MP2P searchData push and pullPower, memory, bandwidth managementRanking of informationExperimental/commercial projects, Performance metric, and comparisonBackchannel exploitation

Page 23: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 23

Push/Pull taxonomy

Page 24: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 24

Report Pulling

peer queries reportsthe whole network is flooded with query reports of interest will be pulled from peers that have them

Widely used in resource discoveryroute discovery in mobile ad hoc networks

Page 25: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 25

Pull Example: Resource Discovery in MANET

A MANET routing protocol is augmented to enable addressing based on resource type or resource key rather than network ID

B

A

D

CIp address Next hop

1234

2345

3456

C

D

B

A’s routing table

Resource type Next hop

printer

music

restaurant

C

D

B

Page 26: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 26

Pull Example: Construction and Maintenance of Routing Table

Printer? Printer?

Printer?

Printer?Printer?

Printer?Printer?

Printer?

Here!

Here!AB

Resource type Next hop

printer B

Problems when applied to our context:• Does not work when consumer and resource are disconnected.• Resources are transient. Consumer has to constantly poll. • Constructed routing structure easily becomes obsolete.• May take awhile to construct in Bluetooth networks

Page 27: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 27

Report Pushing

Report pushingthe dual problem of report pulling reports are floodedconsumed by peers; query is answered by received reports

Different types of pushingbroadcast: to the complete networkgeocast: to a specific geographic areaunicast: to any one specific mobile node

Page 28: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 28

push/pull in distributed systems

Depends on ratio of queries/update

Continuous queries (subscriptions)

Extension to Mobile p2p ?

Page 29: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 29

Pushing: Stateless or Stateful?

Stateful methods: maintain global informationtopology-based approachescluster- or hierarchy-based approacheslocation-based approaches

Stateless methodsflooding-based approachesgossiping-based approachesnegotiation-based approachesstore-and-forward approaches

Page 30: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 30

Push, stateful, hierarchy: Publish/Subscribe tree (Huang, Garcia-Molina 2004)

Resource-reports are propagated along the arcs of a rooted tree

Problem: high mobility tree obsolete.

resource-query C

resource-query Bresource 4resource 5

resource 8

resource-query Aresource 1resource 2resource 3

Page 31: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 31

Push, stateful, Location-based: Greedy Forwarding

Page 32: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 32

Location Awareness

AssumptionsEach node knows

its locationthe location of its neighborsThe location of destination node(s)

AdvantagesNo route discovery necessaryNo maintenance of routes necessaryFacilitates geo-casting: delivery of packets to all nodes in a region

Page 33: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 33

Localization TechniquesGPS (Global Positioning System )

Self-localization within a few metersBut does not work

indoors, under foliage, next to high-rise buildings

Atomic MultilaterationLandmark: a node that knows its own locationCompute a node’s locationfrom 3 or more landmarksusing distance measurementsDistance by

Signal strengthultrasound

Page 34: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 34

Greedy Forwarding

Local strategyA node forwards a message to a neighbor node that is "closer" to the destination than itself

y is x’s closest neighbor to D

Repeat until the destination is reachedInstead of distance use positive progress or direction

Page 35: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 35

Greedy ForwardingLoop-free

If nodes have consistent location information

Require recovery strategyMessages can get stuck in local minimaGreedy forwarding can fail (get stuck at x)Recovery strategy: GPSR (Karp, Kung, 2000)

Page 36: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 36

Report push, stateless: flooding, or data to query

Each moving sensor broadcasts each report received exactly once. Problems:

S is disconnected; even S connects later -> miss RReceipt by nodes that don’t need Duplicate receipts; broadcast stormResource blindness

resource-query C

resource-query Bresource 4resource 5

resource 8

resource-query Aresource 1resource 2resource 3 S

Page 37: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 37

Disadvantage of Flooding

duplication

Page 38: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 38

Remedy 1: Negotiation-based Approach

SPIN (Sensor Protocols for Information via Negotiation)Kulik, Heinzelman, and Balakrishnan (2002)Communicating raw data is expensive, but meta-data is notmeta-data descriptors negotiating data transmissions using meta-data

Solve duplication problems in classic flooding

SPIN nodes can adapt their communication to Application-specific knowledge of the data Resources that are available to them, such as energy

SPIN messagesADV: a node A advertises dataREQ: an interested node B requests this dataDATA: the node A sends the actual data to B

Page 39: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 39

SPIN

Node A advertises data to node B (a)Node B responds by requesting data (b)Receiving the requested data (c)Node B then sends out advertisements to its neighbors (d), who in turn send requests back to B (e,f).

Page 40: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 40

Problems:

Handles one report at a time

Mobility: need to keep advertising old reports to new neighbors

Collision of requests

Page 41: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 41

Remedy 2: store and forward

Which reports in each transmission?

How manage limited memory, power and bandwidth?

How often to transmit?

What is the size of each transmission?

What is the range of each broadcast?

Page 42: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 42

Remedy 2: store and forward

Which reports in each transmit?

How manage limited memory, power and bandwidth?

How often to transmit?

What is the size of each transmission?

What is the range of each broadcast?

RANKING

OptimizingPower andBandwidthConsumption

Page 43: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 43

Query Processing outline

Basics of MP2P searchData push and pullPower, memory, bandwidth managementRanking of informationExperimental/commercial projects, Performance metric, and comparisonBackchannel exploitation

Page 44: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 44

802.11 Energy efficiency

Ener

gy e

ffici

ency

total transmission volume

Energy efficiency = (amount of data correctly received) / (unit of transmission energy)

Page 45: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 45

Tradeoff

Frequency of transmission <=> transmission size

How to quantify the tradeoff?

Page 46: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 46

802.11 Basics

3 modes: transmitting, receiving, listening (order of power consumption)When listening: if detecting a message destined to host receive-modeTime divided into slots, 20microsecs eachTransmission:

Listen for 1 time slotIf channel free start broadcast (observe collision possible)Broadcast may last for many time slots

Page 47: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 47

Energy Efficiency of a Broadcast

X

Throughput (Th) = (expected number of neighbors that successfully receive broadcast) × (broadcast size)

Power efficiency (PE) = EnTh

successfully receive the broadcast from x

Collisions occur at neighbor

Page 48: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 48

Computation of Throughput

X Y

1. No green node inside starts to broadcast at the same time slot with X

2. No transmission from any purple node overlaps with that from X

Conditions for successful reception at an arbitrary node Y

Page 49: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 49

Computation of Throughput (cont’d)g(δ): the probability that a neighbor at distance δ from X successfully receives the broadcast.

g(δ)=

where

∫ ∫⋅−−

−−

++−+−+

δ

δεε

εδδελεεεπλεδλ

r r

rdqrdqTS ep 0

222))(1ln())

2arccos(2))(1ln(2)12)(()'1(

τετελε

π

bhMTrSppq

rar

ar

ar

arraS

data8)(;0,)()'1()(

;0),)2

(12

)2

(arccos(2)( 222

⋅+=≤≤−⋅=

≤≤−−⋅−=

λ Density of mobilesr Transmission range in meters.b Data transmission speed in bits per secondM Size of the broadcast (assume unique)p The probability that a moving object attempts (by sensing the channel) to

start a broadcastp′ The probability that it succeeds in starting a broadcast (unique)

(broadcast frequency)τ Length of the medium access time slot h Size of the MAC header

Page 50: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 50

Optimal Broadcast Size

gfM

dgMPEE

r

+⋅

⋅⋅⋅= ∫0 )(2

)(δδπδλ

∫ ⋅⋅⋅=r

dgMThE0

)(2)( δδπδλ

E.g., when inter-broadcast interval is 1 second, the optimal broadcast size is 800 Kbytes

r=100 metersλ=0.000625 per m2

(inter-object distance=40m)

M = broadcast size

inter-broadcast interval (second)

broadcast size (kByte)

0 1 2 3 4 5 6 0 2

4 6

8 10

3

energy efficiency(MBytes/Joule)

energy efficiency(MBytes/Joule)

Page 51: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 51

Energy Constraints

“From now until 8 o’clock the MP2P system is allowed to use 10% of the remaining energy” (The rest is used for voice communication, internet access, etc.) allowance/time-unit

Energy consumed by a 802.11 network interface for transmitting a message of size M bytes

En=f⋅M+gFor 802.11 broadcast, g=266×10-6 Joule, f=5.27×10-6Joule/byte

consumption

Page 52: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 52

Number of reports transmittedAdaptively determined by

optimal transmission sizemaximum transmission size

Optimal transmission size determined based on the E(PE) formulagiven inter-broadcast interval (doesn’t mean all broadcasts same size)to optimize energy efficiency

Maximum transmission size: determined based on the energy accumulated since last broadcast

Actual transmission size =Min(optimal transmission size, maximum transmission size)

Page 53: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 53

Query Processing outline

Basics of MP2P searchData push and pullPower, memory, bandwidth managementRanking of informationExperimental/commercial projects, Performance metric, and comparisonBackchannel exploitation

Page 54: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 54

Report Ranking: sample demand

Queries relation is FIFO maintained

Page 55: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 55

Rank of Reports

Rank of a report R is determined byDemand for R

Qi’s are the members of the queries relation

Supply (global parameter)

∑=

n

iiQRmatch

1

),(

)(supply/)()( RRdemandRrank =

Page 56: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 56

Query Processing outline

Basics of MP2P searchData push and pullPower, memory, bandwidth managementRanking of informationExperimental/commercial projects, Performance metric, and comparisonBackchannel exploitation

Page 57: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 57

Experimental MP2P projects (Pedestrians)

7DS -- Columbia University (web pages)iClouds – Darmstadt Univ. (incentives)MoGATU – UMBC (specialized query processing, e.g., collaborative joins)PeopleNet -- NUS, IIS-Bangalore (Mobile commerce, information type location baazar)MoB – Wisconsin, Cambridge (incentives, information resources e.g. bandwidth)Mobi-Dik – Univ. of Illinois, Chicago (brokering, physical resources, bandwidth/memory/power management)

Page 58: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 58

Vehicular projectsInter-vehicle Communication and Intelligent Transportation:

CarTALK 2000 is a European project VICS (The Vehicle Information and Control System) is a government-sponsored system in Japan with an 11-year track record FleetNet, an inter-vehicle communications system, is being developed by a consortium of private companies and universities in Germany IVI (Intelligent Vehicle Initiative) and VII (Vehicle Infrastructure Integration), the US DOT

MP2P provides data management capabilities on top of these communication systemsGrassroots – Rutgers, p2p dissemination of traffic info to reduce travel times

Page 59: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 59

Existing companies

Messaging and Social Networks

Networking events: talk only to the right peopleSocial group: alert when buddy in near-by

Mobiluck (Bluetooth, $14.95/year, Europe)Bedd (Bluetooth, free)Jambo (Wifi)Sixsense (Bluetooth, free)Inventop

Page 60: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 60

RANk-based DIssemination (RANDI)

Ranking of reportsBandwidth/energy awareExchange enhances

Consumer functionalityBroker functionality

Consumer: Answer local query (pull)Broker: Transmit reports most likely requested by future-encountered peers (push)Transmission trigger:

EncounterNew reports

Page 61: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 61

query

queryquery

queryreports

reports

7DSP2P mode: each node periodically broadcasts its query and receivesreports from neighboring peers. No strategy to determine query frequency and transmission size. Cache management based on web-page expiration time.

Page 62: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 62

PeopleNet

before exchange after exchange

Peer A Peer B Peer A Peer B

random-spread

before exchange after exchange

Peer A Peer B Peer A Peer B

random-swap

Reports are randomly selected for exchanging and saving upon encountering.

Page 63: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 63

Comparison with 7DS and PeopleNet

• 7DS: Periodically querying neighboring nodes• PeopleNet: Exchanging upon encounters• Differences from RANDI:

There is no energy management for determining the transmission size; The broker function is much more simplistic (no ranking); 7DS does not have a good strategy to determine when to communicate.

Also compared with PStree and flooding

Page 64: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 64

0

5

10

15

20

25

0 60 120 180 240 300

thro

ughp

ut (a

nsw

ers/

devi

ce)

response-time bound (second)

RANDI7DS-15

7DS-350PeopleNet

transmission range=100 meters, energy allocation=0.01, battery life-time = 8 hoursmean of reports database size=100Kbytesreport size uniformly distributed between 100 and 2000 bytesinter-device distance=40 meters, 0.1 report produced per secondmean of life span = 900 seconds, standard deviation of life span = 300 seconds

Page 65: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 65

Optimum Broadcast Size is Important

percentage of transmissions that determine their size based on maximum transmission size

99.7%23% 4.4% 4%

energy allocation during 8 hours

0.0010.01

0.11

Page 66: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 66

Query Processing outline

Basics of MP2P searchData push and pullPower, memory, bandwidth managementRanking of informationExperimental/commercial projects, Performance metric, and comparisonBackchannel exploitation

Page 67: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 67

Backchannel availability

If so, why mp2p?Answers:

Backchannel does not imply server; may be CostlyInefficient due to frequent updatesRequire some hierarchical architecture

Solution that does not necessitate server

Page 68: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 68

Benefit of Backchannel

• When a match occurs at a moving object, the object sends the answer report to the query originator via the fixed infrastructure• Backchannel communication:

• Subject to energy constraints• Consumes more energy

(R,Q)

Q

R

R

Page 69: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 69

0

20

40

60

80

100

120

140

0 60 120 180 240 300

thro

ughp

ut (a

nsw

ers/

devi

ce)

response-time bound (second)

RANDIRANDI+B

transmission range=100 meters, energy allocation=0.01reports database size=1Kbytes, backchannel message header=20 bytesreport size uniformly distributed between 10 and 100 bytesinter-device distance=40 meters, 1 report produced per secondmean of life span = 3600 seconds, standard deviation of life span = 0 seconds

Page 70: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 70

Research issues in data management

Query ProcessingDissemination analysisValue of information and comparison with C/SParticipation incentivesRemote QueryingData Integration of sensor and higher level information (maps, trip plans, ride-sharing profiles)Other relevant work

Page 71: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 71

Dissemination analysis issues

Dissemination pattern: how a report spreads

Dissemination coverage: % of moving objects receiving the report

Page 72: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 72

Dissemination pattern/density

Smart flooding: Locality of diffusion is ensured by demand/supply ranking and limited memory and bandwidth

Page 73: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 73

How fast/far a resource is disseminated?

In a Mobile Opportunistic p2p system, the answer depends on:Memory allocation to the resource typeTransmission rangeTraffic speedVehicle densityResource densityAverage resource-validity time

Page 74: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 74

Dissemination coverage

Gas stations, restaurants, ATM’s, etc., report continuously

An report is acquired by the peers within the wireless transmission range, and disseminated transitively

Alternative location-based-services paradigm to Cellular-service provider database (privacy)

Page 75: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 75

Advertising Request

Advertise to peers within the target area

The route-distance from the producer is smaller than 3 blocks

Announcement strategy: to each passer-by

Page 76: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 76

Transmission range = 50 meters, motion speed =40 miles/hour, diameter of target area = 1 miles

0

20

40

60

80

100

0 50 100 150 200 250 300 350 400 450 500

perc

enta

ge o

f rea

ched

pee

rs w

ithin

1 m

ile

number of peers per square mile

Coverage: % of peers reached within target area

Page 77: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 77

Further research in dissemination analysis – mathematical model

Spread resembles epidemiological models of (Bailey 75) but there are important differences

Spatio-temporal relevance functionInteraction of multiple infectious-diseases (resources)Random graphs relationship

For a given mobility model:

topology (grid, free-space, synthetic graph, map), interference (independent), constraints (random walk, random waypoint)

Resource/report generation model Communication network model

Page 78: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 78

Should answer questions:

what is the probability that peer at (x,y,t) receives report generated at (0,0,0)?

What is the coverage for a given announcement strategy?

Y X

Time

Page 79: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 79

Research issues in data management

Query ProcessingDissemination analysisValue of information and comparison with C/SParticipation incentivesRemote QueryingData Integration of sensor and higher level informationOther relevant work

Page 80: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 80

A resource classification

Competitive – acquired by one consumer at a time (parking slots, cab-customers)

Semi-competitive (ride-sharing partners)

Noncompetitive (malfunctioning brake lights, speed of a vehicle at (x,y,t))

Page 81: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 81

Strategies for Capturing (semi-) Competitive Resources

Blind Search: move in some pattern, and when encounter available resource – capture it

Information Guided Search– as BS, exceptBreak pattern to capture resource if report receivedNot successful resume pattern-motionIf while moving to r1 a higher-relevance report is received for r2, move to r2.

Page 82: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 82

Blind Search

Consumer follows a pattern (e.g. clockwise along a rectangle) to capture a resource

Page 83: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 83

Information Guided Search

Consumer changes direction to a reported resource

Page 84: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 84

Information Guided Search

Consumer resumes the pattern if the target resource is not captured

Page 85: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 85

Information Guided Search

Consumer chooses the most relevant resource to go

Page 86: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 86

Value of information: IGS versus BS in Client/Server Mode

• IGS outperforms benchmark BS

• Benchmark BS outperforms partial-BS

0

5

10

15

20

25

30

0 0.2 0.4 0.6 0.8 1

disc

over

y tim

e (m

inut

e)

IGS consumer ratio

v = 10, c = 100, q = 20, H0 = 0.1

IGSBS

Benchmark BS

motion speed = 10 miles/hour, 100 consumers/mile2, mean of invalid duration = 20 minutes, delay = 0

Page 87: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 87

IGS versus BS in Client/Server Mode

0

5

10

15

20

25

30

10 15 20 25 30

disc

over

y tim

e (m

inut

e)

mean of invalid duration (minute)

v = 10, c = 100, H0 = 0.1, i = 0.1

BSIGS

Benchmark BS

motion speed = 10 miles/hour, 100 consumers/mile2, 10% IGS consumers, delay = 0

• IGS outperforms benchmark BS

• Benchmark BS outperforms partial-BS

• IGS especially suitable for long-occupancy environment

Page 88: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 88

Client/server versus OP2Ptransmission range = 150 meters, motion speed = 10 miles/hour,

mean of invalid duration = 20 minutes, 100 consumers/mile2, 10% IGS consumers, delay = 20 seconds

• IGS outperforms BS

• IGS approaches C/S as broker density increases

0

2

4

6

8

10

12

14

16

18

0 50 100 150 200

disc

over

y tim

e (m

inut

e)

broker density (brokers per square mile)

OP2P-IGSCS-IGS

Benchmark BS

Page 89: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 89

Research issues in data management

Query ProcessingDissemination analysisValue of information, comparison with Client/ServerParticipation incentivesRemote QueryingData Integration of sensor and higher level informationRelated approaches

Page 90: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 90

Incentive Mechanisms

Taxi! 9:35am, Taylor & Morgan Why bother propagating???

Peers owned by different authorities, each with its own goalOwner may decide not to participate in information dissemination, i.e. turn off OP2P moduleIncentive mechanisms are needed

Page 91: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 91

Who pays?

Consumer: economic benefits of storing reports

Producer

Page 92: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 92

Possible solution: Virtual Currency and Security Module

System circulates a virtual currency, coins for payment Coin counter stored in a trusted and tamper resistant security module (hardware + software) Security module exposes a fixed set of operations.Example of security module implementation: microprocessor smart cardReport dissemination is paid by producer

Moving Object

Security Module

Coin wallet

e.g.1 coin = 1 cent

Page 93: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 93

Advertising Report

Disseminate a data item to moving objects within the target area

The route-distance from the producer is smaller than 3 blocks.

Page 94: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 94

Offline Producer-paid (OPP) strategy

Transmit 1 for A

A Report

A Report A Report

Transmit 1 for A

1. Announce to each passer-by2. Producer attaches its ID (credit card) to announcement3. Each broker records number of transmissions for producer4. Record is submitted offline to clearance center for redemption

A ReportProducer A

Page 95: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 95

Opp drawback – clearance center

Page 96: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 96

Producer-paid – Logarithmic Dissemination Strategy (LDS)

Coin wallet = 0

100 Report

Coin wallet = 1 Coin wallet = 0

45 Report44 Report

45 Report

Coin wallet = 0

22 Report22 Report

Coin wallet = 1

1. Announce to each passer-by2. Producer includes an initial budget in announcement3. Each broker withdraws a flat commission fee f4. The rest of the budget is split between sender and receiver

Page 97: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 97

Initial credit of LDS

Transmission range = 50 meters, motion speed =40 miles/hour, diameter of coverage area = 2 miles

0

10

20

30

40

50

60

70

80

90

100

0 100 200 300 400 500 600 700 800 900 1000

perc

enta

ge of

reac

hed

with

in 1

mile

initial credit

objects per square mile = 100objects per square mile = 5000

10

20

30

40

50

60

0 100 200 300 400 500 600 700 800 900 1000

cost

per r

each

ed ob

ject

initial credit

objects per square mile = 100objects per square mile = 500

Inflection point (50) indicates optimal initial credit At inflection point 2 coins wasted for each peer reached.

Tradeoff: coverage vs. initial credit

Page 98: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 98

LDS versus OPP

OPP maximizes coverage with minimum cost per reached object (exactly f)

LDS enables complete decentralization

Page 99: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 99

Atomicity Issue

Commit protocol may not complete, leaving one participant not knowing the final status at the other participant.

Here is the advertisement

budget = 100

Got it. Please half your budget

Coin counter = 44 Coin counter = 90

Page 100: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 100

Possible solution

Clearance center

Peers remember unsuccessful transactions.

Page 101: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 101

Research in incentive models

Other incentive models (reputation based??)Pricing, negotiation, auctions (report value may depend on number of recipients)Cost optimizations in such models

Example: minimize advertisement cost per potential customerTransactions and atomicity issuesSecurity

fake resourcestampering to gain unfair advantage, create havoc

Incorporate P2P concerns (reward both producers and brokers), and MANET concerns (energy management)

Page 102: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 102

Research issues in data management

Query ProcessingDissemination analysisValue of information, comparison with Client/ServerParticipation incentivesRemote QueryingData Integration of sensor and higher level informationOther relevant work

Page 103: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 103

Spatio-temporal resource query modes

Local: peer queries local database

Remote: peer queries a region R, i.e. all the peers in R

Page 104: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 104

Query language

Spatio-temporal SQL, or OWL+ operators:

Remote region of disseminationMay be implicit, e.g route of bus #5

Budget

Page 105: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 105

Remote query-- research issues

Query dissemination to R

Query processing in R

Answer delivery to query originator, o

Page 106: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 106

Query dissemination to R

Relationship of o and R-- 2 cases:

Originator o is in (the center of R), “find the taxi cabs within 1km of my location”

Query flooded within R Query dropped by a peer outside R

Originator outside R, “what is the average speed one mile ahead on the highway”

Flooding may be too resource-expensive

Page 107: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 107

R

Flooding area

originator

Page 108: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 108

Two Cases

Each peer knows the trajectories of each other peer

Trajectories exchanged as resources

Each peer does not know the trajectories of other peers except that of the originator

Page 109: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 109

Known Trajectories

Encounter graph: each edge represents the time interval during which two peers can communicate

A B

C D

[9:30, 9:35]

[13:15, 13:20]

[10:00, 10:10][11:20, 11:26]

[8:30, 8:32]

Page 110: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 110

Known Trajectories

A revised Djikstra algorithm is used to findthe shortest path between the originator and peers in the query destination area (for query dissemination)

A B

C D

[9:30, 9:35]

[13:15, 13:20]

[10:00, 10:10][11:20, 11:26]

[8:30, 8:32]

Page 111: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 111

Unknown trajectories: Transmitting to a peer p depends on

Moving direction of p relative to R

Budget of query

Density of peers

Several related works in Mobile ad hoc networks, egLocation-based-multicast (LBM), DREAM, but

Low mobilityConnected communication graph

Page 112: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 112

Remote query-- research issues

Query dissemination to R

Query processing in R

Answer delivery to query originator, o

Page 113: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 113

Query Processing Modes (1)

Response to originator by each queried vehicle

Query originator/consolidates

Page 114: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 114

Query Processing Modes (2)

Response to leader by each queried vehicle; leaderconsolidates and responds to originator

Query originator

Page 115: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 115

Hierarchical solution

subregion

subregion

subregion

Query Processing Modes (3)

Page 116: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 116

Another research issue

In network consolidation of answers – delivery of query and partial answer

Example: Q= “average speed in region R”

When transmitting the query to a peer, the partial answer computed so far is also transmitted (static sensor network technique)

Page 117: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 117

Remote query-- research issues

Query dissemination to R

Query processing in R

Answer delivery to query originator, o

Page 118: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 118

How is query originator v found?

Via the infrastructure using node-idMay be costly

In p2p modev sends future trajectory in queryIssues similar (more difficult) to query-region delivery

Page 119: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 119

Other research issues in Remote Querying

Graceful degradation of precision, depending on: peers density, budget, etc.

Dynamic/adaptive use of infrastructure.

Page 120: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 120

Research issues in data management

Query ProcessingDissemination analysisParticipation incentivesRemote QueryingData Integration of sensor and higher level information (maps, trip plans, ride-sharing profiles)Other relevant work

Page 121: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 121

Moving Objects Database Technology

Query/trigger examples:During the past year, how many times was bus#5 late by more than 10 minutes at station 20, or at some station (past query)Send me message when helicopter in a given geographic area (trigger)Trucks that will reach destination within 20 minutes (future query)Tracking for “context awareness”

GPS

GPS

GPS

Wireless link

Page 122: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 122

Data placement/replication

Dynamic data replication (Wolfson, Jajodia Huang (1997)

Regional database

Local database

mod

P2p database

Page 123: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 123

Spatial information Temporal informationMoving objects databases

Location management

Page 124: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 124

Spatial databasesGeospatialLayout of a vlsi design3d model of human bodyProtein structure

Main concepts: points, lines, regionsCommon Instances: plane partitions (eg US into

states), networks (roads, telephone)Operations:

Intersection (line,line) -> points(region,region) -> region

Inside (point,line) -> boolAdjacent (region,region) -> bool

Implementation: indexing structure e.g. R-tree, extensible DBMS

Page 125: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 125

Temporal databases

Main conceptsTime instant Period, 1/2/05 – 1/15/05Interval, eg 2 monthsDateTransaction time vs. valid time (eg salary updated 1/1/05, effective 12/1/04)

Page 126: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 126

Research issues in moving objects databases

Location modeling/management

Linguistic issues

Uncertainty/Imprecision

Indexing

Synthetic datasets

Compression/data-reduction

Joins and data mining

Page 127: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 127

IndexingUsed for fast processing of range queries

• Range query: Given a spatial region R and a time interval [t1, t2], retrieve all objects that will be in R at some time during the interval.

• Restricted range query: Range query when the time interval is a single point t1.

• In case of one dimension, region R is a line-segment; in higher dimensions it is a hyper-rectangle.

Performance measure: number of I/Os

Page 128: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 128

Indexing Methods

•Primal Space Method:

• Consider the space together with time as an additional axis. Object movements form straight lines in this space (when moving with constant velocity).

•Consider the hyper rectangle X formed by the region R of the query and the given time interval. The answer is the set of objects whose lines intersect X.

Page 129: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 129

Primal Space

Time T

Posi

tion

X

Query Q1: region R is the x-interval [1,2], time interval is the single point 1.

Q2: R is the x-interval [1,3], time interval is [2,3]

o3

o2

x2x1

o1

Page 130: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 130

Dual Space Method: Consider the axes to be the coefficients in the equations of object motions.

Ex: In 1-dimension, the equation of motion of an object is x=at+b.

•The dual space has two axes a and b.

•Each object is represented by a single point (a,b) in the dual space.

•The answer to a range query is the set of points in the dual space enclosed in a region satisfying some linear constraints.

Page 131: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 131

Answer to query Q1: all the points in the strip.

Dual Space

0

1

2

3

0 1 2 3a->

b->

o1

o2

o3

Page 132: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 132

Q: Retrieve objects for which dynamic attribute has value v a≤v≤b at time t.

Spatial indexing to find objects that satisfy ( intersect ) query.

.o1

.o2

.o3 slopequery

intercept

dual

dynamic attribute value

o2o1

o3

timet

ba Q primal

Page 133: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 133

Primal Space Methods

First Method: (Sistla, Wolfson et al 97, Tayeb et al 98)

Divide time into periods of length T. For each period construct a multi-dimensional index using quad-trees.

•Divide primary space recursively into cells

•Store an object in a cell that its trajectory intersects

•The index can get large as an object may appear in more than one cell.

Page 134: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 134

Indexing (cont.) Primal Space Examples (TUW98)

assuming a bucket size of 2 for the leaf nodes:

o1

o2

o1, o2

SW , NW , NE , SENWNE

SESW

o2,o3 o1

o2

o1

o3

o1,o4

o2 o3 o1, o3 o2

Page 135: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 135

Performance analysis of primal plane representation using quadtrees. Tayeb, Ulusoy, Wolfson; Computer Journal, 1998

Example of implication:

30,000 objects 3 I/O’s per range query

Page 136: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 136

Primal Space Methods--- Contd

Second Method: (kinetic data structure) only for one dimensional motion.

•At any point in time we can linearly order objects based on their location. The ordering changes at those times when object trajectories cross.

•Fix a time period T and determine the orderings at the beginning and at T.

•Find the crossing points t1,t2,…,tm of the objects.

Page 137: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 137

o1

o2

o3

Time T

Spac

e X

Determine ordering between crossing points

t1 t2 t3

Page 138: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 138

•Obtain the orderings between the crossings. Build binary search trees T1,…,Tm based on them.

•To retrieve objects in the space interval I at time t do as follows:

•Find a value j such that time t falls in the jth time interval.

•Use the search tree Tj to find all objects in the space interval I at that time.

Has space complexity O(n+m) and time complexity O(log (n+m)) where m is the number of crossings and n = N/B; N is the number of moving point objects, and B is the block size.

Page 139: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 139

Primal Space Methods (continued)• Third method: Saltenis et. al. 2000

• Time parameterized R*-trees (TPR)

• works for motion in any number of dimensions.

• Similar to R*-trees except that the MBRs are time parameterized.

• Objects are clustered and grouped into MBRs.

• MBRs are enclosed into bigger MBRs.

• They are arranged into a R*-tree.

• Each MBR has the following information.

• Its coordinates

• the min and max velocities of objects (in each direction).

Page 140: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 140

o1 o2

X

Y

Leaf level MBRs overtime

o3

o4

o1

o2

X

Y

o3

o4

At Time t At Time t+2

Page 141: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 141

• The position and sizes (i.e. the coordinates) change with time. The actual values can be computed at any time.

• Searching is performed as in R*-trees except that whenever an MBR is used its actual coordinates at that time are computed.

• The tree is reconstructed periodically

• Tree construction and insertions are processed so as to reduce the average area of the MBRs over the time period.

Page 142: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 142

Dual Space Methods

• similar to quad trees except:

• Employs Partition trees (used in computational geometry)

• Partition trees use simplicial partitions of sets of points.

• A simplicial partition of S is a set of pairs (S1,D1),…,(Sr,Dr) such that S1, …Sr is a partition of S. Di is a triangle enclosing points in Si.

[Kollios et al 99 (1-dimension), Agarwal et al 00 (2-dimensions)]

Page 143: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 143

For the given set of moving point objects, a partition tree is constructed satisfying the following properties.

• The leaves are blocks containing moving objects.

• A triangle is associated with each node in the tree.

•The vertices of the triangle are stored in the node.

•This triangle contains all the object points of the sub-tree.

• The sets of points and triangles associated with the children of a node form a balanced simplicial partition of the set of nodes of the parent.

• The size of the tree is O(n) and the height O(log n).

Page 144: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 144

Searching for the points enclosed in a time/space region X:

Recursively search starting from the root.

• If the triangle at a node is contained in X then output all points in the subtree.

• Otherwise, recursively search along the sub-trees of the children whose triangles intersect X.

• At a leaf node, output all points in the node that are in X.

Range query Complexity: approximately O(k+ Sqrt(n)); k is output size

Insertion/deletion--- O(log²(n)) amortized complexity.

.

Page 145: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 145

Solution Paradigm

Geometric Problem Representation in Multidimensional Time-Space

Spatial Indexing of Geometric Representation

Page 146: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 146

Indexing with Uncertaintyo1

o2

o3

possibly

time

dynamic attribute value

intercept

slopequery

o1o2

o3 possibly

definitely

definitely

Page 147: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 147

Conclusion

Query processingBasics of MP2P searchData push and pull (state/ful/less, topologies, flooding, negotiation, store/forwardPower, memory, bandwidth management: transmission freqency:size tradeoffRanking of information: economic modelExperimental/commercial projects, Performance metric, and comparisonBackchannel exploitation

Dissemination analysis (pattern, coverage)Value of information, comparison with Client/ServerParticipation incentivesRemote QueryingData Integration of sensor and higher level information (maps, trip plans, ride-sharing profiles)Related approaches

Page 148: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 148

Add

DTN’s, wake-up schemes, Incentives: Madria (store to maximize revenue), negotiation (eg bidding) 1 hop and multihopgrassroots,

vary transmission range (Santi)

Page 149: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 149

Query Processing outline

Basics of MP2P searchData push and pullPower, memory, bandwidth managementRanking of informationExperimental/commercial projects, Performance metric, and comparisonBackchannel exploitation

Page 150: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 150

Conclusion

Mobile P2P – new interesting problem

Approach to data dissemination: Flooding modified with

Unicast and broadcastdata push/pullEnergy boundRankingAdaptive-size broadcast based on Backchannel exploitation

Formula for bandwidth/energy optimizationBroadcast-size = f( broadcast-frequency)

Page 151: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 151

Conclusion

Query processingDissemination analysisValue of information, comparison with Client/ServerParticipation incentivesRemote QueryingIntegration of Mobile p2p and MOD’s

sensor-rich-environment + short-range wireless mobile p2p

Page 152: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 152

Future ChallengesProlong network lifetime

Employ redundancy and node density

Sparse networksMany algorithms do not perform well if the network is not dense

Rapid topology changesSelf-configuration and reconfiguration

Global behavior from local knowledgeAchieve desired global goal using adaptive localized algorithms

(Self-) Localization techniquesGPS is not available indoors

Integration of MANET & WSN with wired or cellular networksConnecting wireless sensor networks to the Internet

Page 153: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 153

RANDIWhen two peers meet they conduct a two-phase exchange:

queries

answers

more reports

satisfied as a consumer

enhanced as a broker

Phase 1: Exchange queries and receive answers. Phase 2: Exchange more reports using available energy/bandwidth

Phase 1

Phase 2

Combination of:unicast (thin line) and broadcast (thick lines) to enable overhearing.

Page 154: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 154

RANDI (Cont’d)

Two interaction modes which combine pull and push

• Query-response: triggered by discovery of new neighbors• Relay: triggered by receipt of new reports

− Disseminate to existing neighbors

new reports

Page 155: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 155

How much faster is IGS than BS?

Transmission (rendevous) range -- rTraffic speed -- vBroker density -- gResource density -- sRelevance threshold -- H0(Resource available time) / (resource unavailable time) -- k

In a Mobile Opportunistic p2p system, the answer depends on:

Page 156: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 156

Outline

Introduction

Resource-capture strategies

Performance evaluation

Page 157: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 157

Simulation Environment for OP2P

Page 158: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 158

Values of Parameters

17, 36, 100hotspots/mile2sHotspot density

0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9H0Relevance threshold

10, 20, 30, 40, 50kunavailable/available time

0, 50, 100, 150, 200brokers/mile2gBroker density

10, 20, 30, 40, 50, 60miles/hourvMotion speed50, 100, 150, 200meterrTransmission range

ValueUnitSymbolParameter

Page 159: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 159

Simulation Results -- Relevance Threshold

Even reports with a low relevance are better than no reports at all.

02468

10121416

0 0.2 0.4 0.6 0.8 1

capt

ure

time

(min

ute)

relevance threshold H0

r = 200, v = 20, k = 50, g = 0, s = 100

IGSBS

Page 160: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 160

Simulation Results -- Broker Density & Transmission Range

• The discovery time of BS is not affected by the transmission range and the broker density.

• speed of information propagation ↑ IGS discovery time ↓

0

1

2

3

4

5

6

7

0 50 100 150 200

capt

ure

time

(min

ute)

number of brokers per square mile

v = 60, r = 100, k = 20, s = 17

IGS (optimal)BS

0

2

4

6

8

10

12

14

16

40 60 80 100 120 140 160 180 200ca

ptur

e tim

e (m

inut

e)transmission range (meter)

v = 20, g = 0, k = 50, s = 100

IGS (optimal)BS

Page 161: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 161

Simulation Results -- unavailable-to-available Ratio

Time(BS) - Time(IGS) ↑ as unavailable/available ↑

IGS advantage ↑ when competition ↑.

0

2

4

6

8

10

12

14

16

10 15 20 25 30 35 40 45 50

capt

ure

time

(min

ute)

unavailable-to-available ratio

r = 200, v = 20, g = 0, s = 100

IGS (optimal)BS

Page 162: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 162

Simulation Results -- Resource Density

• Resource density ↑ time(BS) - time(IGS) ↓ IGS advantage ↑ as competition ↑

5

10

15

20

25

30

35

40

45

10 20 30 40 50 60 70 80 90 100

capt

ure

time

(min

ute)

number of resources per square mile

r = 200, v = 20, g = 0, k = 50

IGS (optimal)BS

Page 163: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 163

Simulation Results -- Motion Speed

• speed ↑ Time(BS) - time(IGS) ↓ IGS advantage ↑ with ↓ of speed.

0

5

10

15

20

25

30

10 15 20 25 30 35 40 45 50 55 60

capt

ure

time

(min

ute)

motion speed (miles/hour)

r = 200, g = 0, k = 50, s = 100

IGS (optimal)BS

Page 164: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 164

Justification of exponential relevance function

dteR •−•−= βα )a(report of relavance

u/1=α

Theorem:

Assume: (1) The length of the valid duration of R is a random variable with an exponential distribution having mean u. (2) The speed of the consumer is v.

)/(1 vu •=βIf:

Then: the relevance of a report a(R) is the probability that the resource R is available when the consumer reaches R.

and

Page 165: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 165

Observations concerning (semi-) competitive resources

Information by itself is not sufficient to capture resource

If move to obsolete resources may waste time compared to blind search

Page 166: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 166

Mp2p vs. client-server

Mp2p advantagesZero cost

Unregulated communicationNo central database to maintain

Independent of infrastructureHigher reliabilityPrivacy preservation

Mp2p disadvantagesWeaker answer-completeness guarantees

Page 167: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 167

Relevant research work

Page 168: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 168

Relationship to work on Mobile Ad Hoc Networks

Work mainly concerned with sending a message to an ip-address

In contrast, MP2P focuses on dissemination among a group interested peers

Page 169: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 169

Future work

Improve ranking by:ReliabilitySize

Processing for other types of queries (e.g. min, joins)

Privacy/security issues

Page 170: Mobile P2P Databases...November 24, 2008 Ouri Wolfson, UIC 3 Mobile Local Search: applications social networking (wearable website) Personal profile of interest at a convention Singles

November 24, 2008 Ouri Wolfson, UIC 170

Future work: Reducing Duplicate Backchannel Transmissions

Negotiation

Visit-trace

Novelty estimation (machine-learning)

advertise R’s id

request

R

(R,Q)

Q

R(A) AB

CR(A,B)