440 likes | 541 Views
CADRE: A Collaborative Replica Allocation and Deallocation approach for Mobile-P2P networks. Anirban Mondal (University of Tokyo, JAPAN) Sanjay K. Madria (University of Missouri-Rolla, USA) Masaru Kitsuregawa (University of Tokyo, JAPAN). Contact Email address: anirban@tkl.iis.u-tokyo.ac.jp.
E N D
CADRE: A Collaborative Replica Allocation and Deallocation approach for Mobile-P2P networks Anirban Mondal (University of Tokyo, JAPAN) Sanjay K. Madria (University of Missouri-Rolla, USA) Masaru Kitsuregawa (University of Tokyo, JAPAN) Contact Email address: anirban@tkl.iis.u-tokyo.ac.jp
INTRODUCTION Ever-increasing popularity and proliferation of mobile technology Mobile user statistics for JAPAN Jan 31, 2006 (http://www.wirelesswatch.jp/)
Proliferation of mobile devices M-P2P Paradigm
Proliferation of mobile devices + Popularity of the P2P paradigm e.g., Kazaa M-P2P Paradigm
Proliferation of mobile devices + Popularity of the P2P paradigm e.g., Kazaa M-P2P Paradigm
Proliferation of mobile devices + Popularity of the P2P paradigm e.g., Kazaa M-P2P Paradigm • M-P2P network: Mobile Hosts (MHs) interact in a P2P fashion • Sometimes, base station infrastructure does not exist • Current infrastructures are beginning to support P2P interactions among mobile devices e.g., Microsoft’s Zune
Challenges in M-P2P networks Low data availability • frequent network partitioning due to mobility
Challenges in M-P2P networks Dynamic data replication Low data availability • frequent network partitioning due to mobility
Challenges in M-P2P networks Dynamic data replication Low data availability • frequent network partitioning due to mobility What makes M-P2P replication more challenging than traditional replication?
Challenges in M-P2P networks Dynamic data replication Low data availability • frequent network partitioning due to mobility What makes M-P2P replication more challenging than traditional replication? • Limited Bandwidth • Limited Energy • Limited Available memory space • Uncertainty due to MH mobility
Challenges in M-P2P networks Dynamic data replication Low data availability • frequent network partitioning due to mobility What makes M-P2P replication more challenging than traditional replication? • Limited Bandwidth • Limited Energy • Limited Available memory space • Uncertainty due to MH mobility Existing static P2P replication schemes are not adequate for M-P2P environments.
Challenges in M-P2P networks Dynamic data replication Low data availability • frequent network partitioning due to mobility What makes M-P2P replication more challenging than traditional replication? • Limited Bandwidth • Limited Energy • Limited Available memory space • Uncertainty due to MH mobility Existing static P2P replication schemes are not adequate for M-P2P environments. Existing schemes for mobile P2P replication do not consider deallocation, fairness and load-sharing issues.
M-P2P APPLICATION SCENARIOS Two tourist buses moving in different parts of a city
M-P2P APPLICATION SCENARIOS Two tourist buses moving in different parts of a city Tourist buses generally have a tour-guide Tour-guides
M-P2P APPLICATION SCENARIOS Two tourist buses moving in different parts of a city John says to Tourist guide: “I wish to see pictures/video-clips of different rooms in Janpath National Museum”
M-P2P APPLICATION SCENARIOS Two tourist buses moving in different parts of a city John says to Tourist guide: “I wish to see pictures/video-clips of different rooms in Janpath National Museum” Query
M-P2P APPLICATION SCENARIOS Two tourist buses moving in different parts of a city John says to Tourist guide: “I wish to see pictures/video-clips of different rooms in Janpath National Museum” Query Result Image
M-P2P APPLICATION SCENARIOS Two tourist buses moving in different parts of a city John receives the result image and deletes it after sometime. Query Result Image
M-P2P APPLICATION SCENARIOS Two tourist buses moving in different parts of a city Ravi says to Tourist guide: “I wish to see pictures/video-clips of different rooms in Janpath National Museum”
M-P2P APPLICATION SCENARIOS Two tourist buses moving in different parts of a city Oops! Now I need to retrieve the same image(s) again Retrieving the same image/replica multiple times taxes the limited bandwidth and energy resources of mobile peers
M-P2P APPLICATION SCENARIOS Two tourist buses moving in different parts of a city Oops! Now I need to retrieve the same image(s) again If Ravi and John had collaboratively deallocated images/replicas, the need to retrieve the image multiple times would not arise.
Why is collaborative replica deallocation necessary? Suppose replicas of data item d are stored at MHs A, B, C. At 10.15 AM At 10.30 AM Existing replication schemes deallocate replicas locally, hence they would deallocatedfrom MH C at 10.15 AM, then reallocate d at MH C at 10.30 AM. Multiple allocations and deallocations of the same data item at the same MH could lead to THRASHING, if d is large (e.g., image)
Why is collaborative replica deallocation necessary? Suppose replicas of data item d are stored at MHs A, B, C. At 10.15 AM At 10.30 AM Existing replication schemes deallocate replicas locally, hence they would deallocatedfrom MH C at 10.15 AM, then reallocate d at MH C at 10.30 AM. Multiple allocations and deallocations of the same data item at the same MH could lead to THRASHING, if d is large (e.g., image) Replica deallocation should be done collaboratively.
Main contributions of CADRE 1) It collaboratively performs both replica allocation and deallocation in tandem to facilitate optimal replication and to avoid ‘thrashing’ conditions. 2) It addresses fair replica allocation across the MHs. It also considers replication of images at different levels of granularity to optimize MH memory space.
ARCHITECTURE OF CADRE • CADRE considers a hybrid super-peer architecture, • some of the MHs act as the ‘Gateway Nodes’ (GNs). • GNs have high processing capacity, high available bandwidth and high energy. • Neighbouring GNs periodically exchange their regional information concerning MH characteristics (e.g., load, energy) to facilitate replication. • In case of GN failures, neighbouring GNs could take over the responsibility of the failed GN. • GNs can also collaborate for search and replication across different regions.
QUERY PROCESSING IN CADRE • When an MH enters a region R, it registers with the GN G in R. • G provides the MH with the list of data items currently available in R. • EachMH periodicallysends its list of data items and replicas to its corresponding GN. • GN periodically broadcasts the list of available items within its region to the MHs in its region. • A query issuing MH M can distinguish whether its query is local or global. • CADRE supports both local and remotequerying. • Local queries: Broadcast mechanism • Remote queries: GN forwards query to its neighbouring GNs.
Key Components of CADRE • User-specified size of query result image • Fairness in replication • Prevention of thrashing conditions
User-specified query result image size Users specify a maxsize constraint for the query result image • Limited memory space of mobile devices • Significant differences in available memory space among MHs • Higher value of maxsize finer image granularity (i.e., better quality) Query for MI MS MS stores img or its replica. image img • Case 1: Query Result maxsize < size_img • Image needs to be compressed. • MS (not MI) performs the compression • Bandwidth optimization due to smaller-sized images being transmitted • One-time compression by MS to serve multiple user requests saves energy • Case 2: Query Result maxsize >= size_img • No need for image decompression. • Direct the query to the original owner of img or to any MH storing a relatively larger-sized replica of img
User-specified query result image size (Cont.) • Different users can specify different maxsize values • MS needs to determine the size of the replica (of img) that it stores • We consider four ranges of image size granularity w.r.t. the original image size So • Low image size granularity: (0.25 * So) to [0.5 *So] • Medium image size granularity: (0.5 * So) to [0.75 * So] • Medium image size granularity: Above (0.75 * So), but below So • Original image size granularity: So • MS keeps track of queries and maps each query to any one of these four mutually exclusive ranges. • MS selects the range with maximum number of queries. • The average maxsize in this range is the replica size of img at MS.
Fairness in replication • We need to ensure fairness in replication by considering origin of queries for data items. • Each MH M assigns a score S to each data item d to quantify importance of d. • M sorts the MHs in descending order of their access frequencies for d. S where N = the number of MHs MH w = weight coefficient i.e., i / (no. of MHs) i n = access frequency of d at MH i i = spatial density of region from which the query originated = weight factor for normalizing S w.r.t. image size = 0.25 (small), 0.5 (medium), 0.75 (big)
Prevention of thrashing conditions • To address prevention of thrashing, each MH keeps track of the number of deallocations of each replica at itself over a period of time. • We define a metric designated as the Flip-Flop Ratio (FFR). where N = no. of times that replica r has been deallocated at M dealloc where T = total no. of deallocations of all replicas at M dealloc size = size of the replica r T = sum of the sizes of all the replicas at M size We normalize FFR w.r.t. replica size to minimize the probability of thrashing of large data items • A replica r should not be deallocated if its FFR value exceeds a threshold • threshold= the average value of FFR across all the replicas in the network
CADRE allocates replicas starting from the data item with the highest score, thus preferring data items with higher scores.
{ CADRE tries to replicate a given data item d either at the MH, which made the maximum number of accesses to d or at one of its 1-hop neighbours
{ CADRE considers load, memory space and energy of MHs.
The score of the item d to be replicated at the MH M is compared with the scores of the existing replicas.
Performance Study • Metrics • Average Response time ART • Data Availability • Traffic (hop-count) during replica allocation
SUMMARY • CADRE collaboratively performs both replica allocation and deallocation in tandem to facilitate optimal replication and to avoid ‘thrashing’ conditions. • CADRE addresses fair replica allocation across the MHs. • CADRE also considers replication of images at different levels of granularity to optimize MH memory space. ONGOING WORK: Economy-based models in Mobile-P2P environments • Presented at Dagstuhl Seminar • To be presented at COMAD’06 and DASFAA’06