database caching in manets based on separation of queries and responses

25
Database caching in M ANETs Based on Separa tion of Queries and R esponses Author: Hassan Artail, Haidar Safa, and Samuel Pierre Publisher: Wireless And Mobile Computing, Networking And Communications, 2005. (WiM ob'2005), IEEE International Conference o n Presenter: Chen-Yu Chung Date: 2008/09/24

Upload: hope

Post on 29-Jan-2016

29 views

Category:

Documents


0 download

DESCRIPTION

Database caching in MANETs Based on Separation of Queries and Responses. Author: Hassan Artail, Haidar Safa, and Samuel Pierre Publisher: Wireless And Mobile Computing, Networking And Communications, 2005. (WiMob'2005), IEEE International Conference on Presenter: Chen-Yu Chung - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Database caching in MANETs Based on Separation of Queries and Responses

Database caching in MANETs Based on Separation of Queries and Responses

Author: Hassan Artail, Haidar Safa, and Samuel PierrePublisher: Wireless And Mobile Computing, Networking And Communications, 2005. (WiMob'2005), IEEE International Conference onPresenter: Chen-Yu ChungDate: 2008/09/24

Page 2: Database caching in MANETs Based on Separation of Queries and Responses

Outline

Introduction

Proposed architecture Goal Components of the Architecture The flow chart of data Discovery Formation of Query Directories

Simulations and Result

Page 3: Database caching in MANETs Based on Separation of Queries and Responses

Introduction(1/2)

Most previous researches on MANETs have been focusing on the development of dynamic routing protocols that make efficient use of bandwidth and computational overhead.

Although routing is an important issue, the ultimate goal of a MANET is to provide mobile nodes with access to services.

Page 4: Database caching in MANETs Based on Separation of Queries and Responses

Introduction(2/2)

In MANETs accessing services and data over the network can be very slow and hence, caching frequently accessed data is an effective technique for improving performance.

Therefore, devising an effective caching strategy for the whole MANET is of special importance since it allows for improving the performance of the network as a whole.

Page 5: Database caching in MANETs Based on Separation of Queries and Responses

Outline

Introduction

Proposed architecture Goal Components of the Architecture The flow chart of data Discovery Formation of Query Directories

Simulations and Result

Page 6: Database caching in MANETs Based on Separation of Queries and Responses

Goal

Our aim is to increase the ability of mobile devices to have access to database data given their highly dynamic characteristics, such as mobility, power limitations, and intermittent availability. Our proposal calls for building a hierarchical architecture for handling the distribution of data, for providing services to the requesting nodes, and for managing the roles of the nodes.

Page 7: Database caching in MANETs Based on Separation of Queries and Responses

Components of the Architecture

SM (Service Manager) To assignment and to Keep track of which nodes have the role of QD and B

QD To broadcast the available QD information across the mobile network

CNs (Caching Nodes) To store the query response

QDs (Query Directories) To store the queries without the data To associate these queries with the CNs that hold the corresponding data

BSM (backup SM)

BQDs (backup QDs)

Page 8: Database caching in MANETs Based on Separation of Queries and Responses

The flow chart of data Discovery(1/5) We suppose that there is only one QD in the

mobile network

QD MN

CN

DB

SM

Broadcasting the information about QD to all the mobile node in the network

Page 9: Database caching in MANETs Based on Separation of Queries and Responses

The flow chart of data Discovery(2/5)

QD MN

CN

DB

SM

query

Page 10: Database caching in MANETs Based on Separation of Queries and Responses

The flow chart of data Discovery(3/5)

QD MN

CN

DB

SM

query

Hit

Page 11: Database caching in MANETs Based on Separation of Queries and Responses

The flow chart of data Discovery(4/5)

MN

CN

DB

SM

queryQD

Miss

Page 12: Database caching in MANETs Based on Separation of Queries and Responses

The flow chart of data Discovery(5/5) To note that,if ther has several QDs in the mo

bile network,the requesting Mobile Node (MN) will generate a random integer number between 1 and the number of QDs and then send its query to the corresponding QD in the list of QDs.

Page 13: Database caching in MANETs Based on Separation of Queries and Responses

Formation of Query Directories(1/4) Initially, the system starts with a single QD that caches

queries.

Single QD in the network

Caching new query

Page 14: Database caching in MANETs Based on Separation of Queries and Responses

Formation of Query Directories(2/4) When this QD is filled beyond a given threshold, it

informs the SM, which will assign an additional QD.

Full QDNon full QD

Caching new query

Page 15: Database caching in MANETs Based on Separation of Queries and Responses

Formation of Query Directories(3/4) When this new QD becomes filled, another node will join

the list of QDs that are linked in a circular manner. The number of QDs will increase until some kind of steady state level is reached

Full QDNon full QD

Caching new query

Full QD

Page 16: Database caching in MANETs Based on Separation of Queries and Responses

Formation of Query Directories(4/4) At any point in time, there is one QD that is available to c

ache non-cached queries and we refer to it as the non-full QD (NF-QD). If the submitted query was not found in the QDs, it is the NF-QD that goes to the database to fetch the results, adds the query to its local cache, updates its hash table, and forwards the result to the requesting node.

Page 17: Database caching in MANETs Based on Separation of Queries and Responses

Outline

Introduction

Proposed architecture Goal Components of the Architecture The flow chart of data Discovery Formation of Query Directories

Simulations and Result

Page 18: Database caching in MANETs Based on Separation of Queries and Responses

Simulations and Result(1/8) Simulation parameters

Nodes: 25AODV routing protocolRandom Waypoint mobility modelQuery interval: 2 seconds

800m*800m MN

DB

QD Number of QD nodes: 3

Implemented as a fixed node

Page 19: Database caching in MANETs Based on Separation of Queries and Responses

Simulations and Result(2/8)

For the simulations, we made some simplifications to get preliminary results that confirm the viability of the approach:1. We manually selected three QDs to be near the center of g

ravity of the network and made the assumption that all mobile nodes (MNs) know about it.

2. The nodes that requested queries were selected randomly and uniformly. This directly implies that the CNs were uniformly distributed throughout the network.

3. No replacement algorithm was implemented to update the contents of the CNs as their storage capacity was assumed unlimited.

Page 20: Database caching in MANETs Based on Separation of Queries and Responses

Simulations and Result(3/8)

4. The database server was implemented as a fixed node far from the mobile nodes (node 25 in Fig)

Network Topology using NS-2

Page 21: Database caching in MANETs Based on Separation of Queries and Responses

Simulations and Result(4/8)

5. At this stage, the SM and the backup nodes (BSM and BQDs) were not implemented.

6. The network comprises equally capable nodes.

7. It was assumed that the DB server is always accessible by the network.

8. We simulated 40 total queries that represent all the possible queries that the MNs could request

Page 22: Database caching in MANETs Based on Separation of Queries and Responses

Simulations and Result(5/8)

Time consumed to get query responses

Page 23: Database caching in MANETs Based on Separation of Queries and Responses

Simulations and Result(6/8)

Hop Count vs. Number of requests

Page 24: Database caching in MANETs Based on Separation of Queries and Responses

Simulations and Result(7/8)

Hop Count vs. cache size per QD

Page 25: Database caching in MANETs Based on Separation of Queries and Responses

Simulations and Result(8/8)

Hop Count with Caching/No Caching