Mobile Database Systems

Σχετικά έγγραφα
Test Data Management in Practice

Assalamu `alaikum wr. wb.

Approximation of distance between locations on earth given by latitude and longitude

HOMEWORK 4 = G. In order to plot the stress versus the stretch we define a normalized stretch:

Γιπλυμαηική Δπγαζία. «Ανθπυποκενηπικόρ ζσεδιαζμόρ γέθςπαρ πλοίος» Φοςζιάνηρ Αθανάζιορ. Δπιβλέπυν Καθηγηηήρ: Νηθφιανο Π. Βεληίθνο

derivation of the Laplacian from rectangular to spherical coordinates

EE512: Error Control Coding

the total number of electrons passing through the lamp.

Συστήματα Διαχείρισης Βάσεων Δεδομένων

Instruction Execution Times

SEMANTIC DATA CACHING AND REPLACEMENT

Πανεπιστήμιο Πειραιώς Τμήμα Πληροφορικής Πρόγραμμα Μεταπτυχιακών Σπουδών «Πληροφορική»

Math 6 SL Probability Distributions Practice Test Mark Scheme

Capacitors - Capacitance, Charge and Potential Difference

Εποχές( 1. Εποχή(του(mainframe((πολλοί( χρήστες,(ένας(υπολογιστής)(( 2. Εποχή(του(PC((ένας(χρήστης,(

Section 8.3 Trigonometric Equations

Εργαστήριο Ανάπτυξης Εφαρμογών Βάσεων Δεδομένων. Εξάμηνο 7 ο

The Simply Typed Lambda Calculus

Πώς μπορεί κανείς να έχει έναν διερμηνέα κατά την επίσκεψή του στον Οικογενειακό του Γιατρό στο Ίσλινγκτον Getting an interpreter when you visit your

Στο εστιατόριο «ToDokimasesPrinToBgaleisStonKosmo?» έξω από τους δακτυλίους του Κρόνου, οι παραγγελίες γίνονται ηλεκτρονικά.

Πτυχιακή Εργασία Η ΠΟΙΟΤΗΤΑ ΖΩΗΣ ΤΩΝ ΑΣΘΕΝΩΝ ΜΕ ΣΤΗΘΑΓΧΗ

Main source: "Discrete-time systems and computer control" by Α. ΣΚΟΔΡΑΣ ΨΗΦΙΑΚΟΣ ΕΛΕΓΧΟΣ ΔΙΑΛΕΞΗ 4 ΔΙΑΦΑΝΕΙΑ 1

Προσομοίωση BP με το Bizagi Modeler

TMA4115 Matematikk 3

The challenges of non-stable predicates

Phys460.nb Solution for the t-dependent Schrodinger s equation How did we find the solution? (not required)

Block Ciphers Modes. Ramki Thurimella

[1] P Q. Fig. 3.1

Finite Field Problems: Solutions

Démographie spatiale/spatial Demography

Concrete Mathematics Exercises from 30 September 2016

2016 IEEE/ACM International Conference on Mobile Software Engineering and Systems

6.003: Signals and Systems. Modulation

Αναερόβια Φυσική Κατάσταση

EPL 603 TOPICS IN SOFTWARE ENGINEERING. Lab 5: Component Adaptation Environment (COPE)

Inverse trigonometric functions & General Solution of Trigonometric Equations

ΣΧΕΔΙΑΣΜΟΣ ΔΙΚΤΥΩΝ ΔΙΑΝΟΜΗΣ. Η εργασία υποβάλλεται για τη μερική κάλυψη των απαιτήσεων με στόχο. την απόκτηση του διπλώματος

CHAPTER 25 SOLVING EQUATIONS BY ITERATIVE METHODS

4.6 Autoregressive Moving Average Model ARMA(1,1)

Τμήμα Πολιτικών και Δομικών Έργων

ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 19/5/2007

Classification and Comparison of Energy-Efficient Routing Algorithms in Wireless Networks

Fractional Colorings and Zykov Products of graphs

3.4 SUM AND DIFFERENCE FORMULAS. NOTE: cos(α+β) cos α + cos β cos(α-β) cos α -cos β

Bring Your Own Device (BYOD) Legal Challenges of the new Business Trend MINA ZOULOVITS LAWYER, PARNTER FILOTHEIDIS & PARTNERS LAW FIRM

ΓΗΠΛΧΜΑΣΗΚΖ ΔΡΓΑΗΑ ΑΡΥΗΣΔΚΣΟΝΗΚΖ ΣΧΝ ΓΔΦΤΡΧΝ ΑΠΟ ΑΠΟΦΖ ΜΟΡΦΟΛΟΓΗΑ ΚΑΗ ΑΗΘΖΣΗΚΖ

Η ΨΥΧΙΑΤΡΙΚΗ - ΨΥΧΟΛΟΓΙΚΗ ΠΡΑΓΜΑΤΟΓΝΩΜΟΣΥΝΗ ΣΤΗΝ ΠΟΙΝΙΚΗ ΔΙΚΗ

Εγκατάσταση λογισμικού και αναβάθμιση συσκευής Device software installation and software upgrade

ΜΕΤΑΠΤΥΧΙΑΚΗ ΔΙΠΛΩΜΑΤΙΚΗ ΕΡΓΑΣΙΑ «ΘΕΜΑ»

Section 9.2 Polar Equations and Graphs

Partial Trace and Partial Transpose

Physical DB Design. B-Trees Index files can become quite large for large main files Indices on index files are possible.

Locking to ensure serializability

2 Composition. Invertible Mappings

ΑΚΑ ΗΜΙΑ ΕΜΠΟΡΙΚΟΥ ΝΑΥΤΙΚΟΥ ΜΑΚΕ ΟΝΙΑΣ ΣΧΟΛΗ ΜΗΧΑΝΙΚΩΝ ΠΤΥΧΙΑΚΗ ΕΡΓΑΣΙΑ

Τ.Ε.Ι. ΔΥΤΙΚΗΣ ΜΑΚΕΔΟΝΙΑΣ ΠΑΡΑΡΤΗΜΑ ΚΑΣΤΟΡΙΑΣ ΤΜΗΜΑ ΔΗΜΟΣΙΩΝ ΣΧΕΣΕΩΝ & ΕΠΙΚΟΙΝΩΝΙΑΣ

ΠΑΝΕΠΙΣΤΗΜΙΟ ΠΑΤΡΩΝ ΠΟΛΥΤΕΧΝΙΚΗ ΣΧΟΛΗ ΤΜΗΜΑ ΜΗΧΑΝΙΚΩΝ Η/Υ & ΠΛΗΡΟΦΟΡΙΚΗΣ. του Γεράσιμου Τουλιάτου ΑΜ: 697

ίκτυο προστασίας για τα Ελληνικά αγροτικά και οικόσιτα ζώα on.net e-foundatio // itute: toring Insti SAVE-Monit

ΕΛΛΗΝΙΚΗ ΔΗΜΟΚΡΑΤΙΑ ΠΑΝΕΠΙΣΤΗΜΙΟ ΚΡΗΤΗΣ. Ψηφιακή Οικονομία. Διάλεξη 7η: Consumer Behavior Mαρίνα Μπιτσάκη Τμήμα Επιστήμης Υπολογιστών

Terabyte Technology Ltd

Lecture 2: Dirac notation and a review of linear algebra Read Sakurai chapter 1, Baym chatper 3

5.4 The Poisson Distribution.

Ψηφιακή ανάπτυξη. Course Unit #1 : Κατανοώντας τις βασικές σύγχρονες ψηφιακές αρχές Thematic Unit #1 : Τεχνολογίες Web και CMS

Οι αδελφοί Montgolfier: Ψηφιακή αφήγηση The Montgolfier Βrothers Digital Story (προτείνεται να διδαχθεί στο Unit 4, Lesson 3, Αγγλικά Στ Δημοτικού)

ΙΑΤΜΗΜΑΤΙΚΟ ΠΡΟΓΡΑΜΜΑ ΜΕΤΑΠΤΥΧΙΑΚΩΝ ΣΠΟΥ ΩΝ ΣΤΑ ΠΛΗΡΟΦΟΡΙΑΚΑ ΣΥΣΤΗΜΑΤΑ "VIDEO ΚΑΤΟΠΙΝ ΖΗΤΗΣΗΣ" ΑΝΝΑ ΜΟΣΧΑ Μ 11 / 99

Σπουδάστρια Δακανάλη Νικολέτα Α.Μ "Πώς η εξέλιξη της τεχνολογίας επηρεάζει την απόδοση των επιχειρήσεων" ΠΤΥΧΙΑΚΗ ΕΡΓΑΣΙΑ

TaxiCounter Android App. Περδίκης Ανδρέας ME10069

Strain gauge and rosettes

Main Memory (or, In-Memory) Databases: An Overview

Example Sheet 3 Solutions

«Χρήσεις γης, αξίες γης και κυκλοφοριακές ρυθμίσεις στο Δήμο Χαλκιδέων. Η μεταξύ τους σχέση και εξέλιξη.»

(C) 2010 Pearson Education, Inc. All rights reserved.

ΑΓΓΛΙΚΗ ΓΛΩΣΣΑ ΣΕ ΕΙΔΙΚΑ ΘΕΜΑΤΑ ΔΙΕΘΝΩΝ ΣΧΕΣΕΩΝ & ΟΙΚΟΝΟΜΙΑΣ

SCHOOL OF MATHEMATICAL SCIENCES G11LMA Linear Mathematics Examination Solutions

Architecture οf Integrated Ιnformation Systems (ARIS)

Potential Dividers. 46 minutes. 46 marks. Page 1 of 11

Μεταπτυχιακή εργασία : Μελέτη της εξέλιξης του προσφυγικού οικισμού της Νέας Φιλαδέλφειας με χρήση μεθόδων Γεωπληροφορικής.

Advanced Subsidiary Unit 1: Understanding and Written Response

Solutions to Exercise Sheet 5

Ψηφιακή ανάπτυξη. Course Unit #1 : Κατανοώντας τις βασικές σύγχρονες ψηφιακές αρχές Thematic Unit #1 : Τεχνολογίες Web και CMS

Εργαστήριο Ανάπτυξης Εφαρμογών Βάσεων Δεδομένων. Εξάμηνο 7 ο

Other Test Constructions: Likelihood Ratio & Bayes Tests

Every set of first-order formulas is equivalent to an independent set

ΠΑΝΕΠΙΣΤΗΜΙΟ ΠΕΙΡΑΙΩΣ ΤΜΗΜΑ ΠΛΗΡΟΦΟΡΙΚΗΣ ΠΜΣ «ΠΡΟΗΓΜΕΝΑ ΣΥΣΤΗΜΑΤΑ ΠΛΗΡΟΦΟΡΙΚΗΣ» ΚΑΤΕΥΘΥΝΣΗ «ΕΥΦΥΕΙΣ ΤΕΧΝΟΛΟΓΙΕΣ ΕΠΙΚΟΙΝΩΝΙΑΣ ΑΝΘΡΩΠΟΥ - ΥΠΟΛΟΓΙΣΤΗ»

ΕΘΝΙΚΟ ΜΕΤΣΟΒΙΟ ΠΟΛΥΤΕΧΝΕΙΟ ΣΧΟΛΗ ΠΟΛΙΤΙΚΩΝ ΜΗΧΑΝΙΚΩΝ. «Θεσμικό Πλαίσιο Φωτοβολταïκών Συστημάτων- Βέλτιστη Απόδοση Μέσω Τρόπων Στήριξης»

ΚΥΠΡΙΑΚΟΣ ΣΥΝΔΕΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY 21 ος ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ Δεύτερος Γύρος - 30 Μαρτίου 2011

ΠΑΝΕΠΙΣΤΗΜΙΟ ΚΥΠΡΟΥ - ΤΜΗΜΑ ΠΛΗΡΟΦΟΡΙΚΗΣ ΕΠΛ 133: ΑΝΤΙΚΕΙΜΕΝΟΣΤΡΕΦΗΣ ΠΡΟΓΡΑΜΜΑΤΙΣΜΟΣ ΕΡΓΑΣΤΗΡΙΟ 3 Javadoc Tutorial

Second Order RLC Filters

ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 6/5/2006

Lecture 2. Soundness and completeness of propositional logic

Code Breaker. TEACHER s NOTES

Srednicki Chapter 55

Schedulability Analysis Algorithm for Timing Constraint Workflow Models

ΕΘΝΙΚΟ ΜΕΤΣΟΒΙΟ ΠΟΛΥΤΕΧΝΕΙΟ

Συντακτικές λειτουργίες

ΚΑΘΟΡΙΣΜΟΣ ΠΑΡΑΓΟΝΤΩΝ ΠΟΥ ΕΠΗΡΕΑΖΟΥΝ ΤΗΝ ΠΑΡΑΓΟΜΕΝΗ ΙΣΧΥ ΣΕ Φ/Β ΠΑΡΚΟ 80KWp

Statistical Inference I Locally most powerful tests

ΜΟΝΤΕΛΑ ΛΗΨΗΣ ΑΠΟΦΑΣΕΩΝ

PARTIAL NOTES for 6.1 Trigonometric Identities

Transcript:

Κινητές Β Mobile Database Systems Βασικήπηγήδιαφανειών: Vijay Kumar, Mobile Database Systems, J.Wiley & Sons, 2006. Εργαστήριο Πληροφοριακών Συστηµάτων, Παν/µιο Πειραιώς (http://infolab.cs.unipi.gr/) έκδοση: Ιανουάριος 2010 1 ΠΑ.ΠΕΙ. Νίκος Πελέκης Mobile Database Systems Fully connected information space 2 ΠΑ.ΠΕΙ. Νίκος Πελέκης 11.1

Mobile Database Systems Fully connected information space Can be created and maintained by integrating legacy database systems, and wired and wireless systems (PCS, Cellular system, and GSM) 3 ΠΑ.ΠΕΙ. Νίκος Πελέκης What is a Mobile Database System (MDS)? A system with the following structural and functional properties Distributed system with mobile connectivity Full database system capability Complete spatial mobility Built on PCS/GSM platform Wireless and wired communication capability 4 ΠΑ.ΠΕΙ. Νίκος Πελέκης 11.2

What is a mobile connectivity? A mode in which a client or a server can establish communication with each other whenever needed. Intermittent connectivity is a special case of mobile connectivity. 5 ΠΑ.ΠΕΙ. Νίκος Πελέκης What is intermittent connectivity? A node in which only the client can establish communication whenever needed with the server but the server cannot do so. 6 ΠΑ.ΠΕΙ. Νίκος Πελέκης 11.3

Personal Communication System (PCS) A system where wired and wireless networks are integrated for establishing communication. AC HLR VLR EIR PSTN MSC (MTSO) MSC (MTSO) MS BS MS Wireless component PSTN: Public Switched Network. MSC: Mobile Switching Center. Also called MTSO (Mobile Telephone Switching Office). BS: Base Station. MS: Mobile Station. Also called MU (Mobile Unit) or Mobile Host (MH). HLR: Home Location Register. VLR: Visitor Location Register. EIR: Equipment Identify Register. AC: Access Chanel. 7 ΠΑ.ΠΕΙ. Νίκος Πελέκης Mobile Database Systems (MDS) Architecture Data categorization Data management Transaction management Recovery 8 ΠΑ.ΠΕΙ. Νίκος Πελέκης 11.4

Mobile Database Systems (MDS) A Reference Architecture (Client-Server model) PSTN DB DB HLR VLR DBS DBS MSC MSC Fixed host Fixed host MU BSC BSC BS MU MU BS BS MU MU 9 ΠΑ.ΠΕΙ. Νίκος Πελέκης MDS Applications Insurance companies Emergencies services (Police, medical, etc.) Traffic control Taxi dispatch E-commerce Etc. 10 ΠΑ.ΠΕΙ. Νίκος Πελέκης 11.5

MDS Limitations Limited wireless bandwidth Wireless communication speed Limited energy source (battery power) Less secured Vulnerable to physical activities Hard to make theft proof. 11 ΠΑ.ΠΕΙ. Νίκος Πελέκης MDS capabilities Can physically move around without affecting data availability Can reach to the place data is stored Can process special types of data efficiently Not subjected to connection restrictions Very high reachability Highly portable 12 ΠΑ.ΠΕΙ. Νίκος Πελέκης 11.6

Objective To build a truly ubiquitous information processing system by overcoming the inherent limitations of wireless architecture. 13 ΠΑ.ΠΕΙ. Νίκος Πελέκης MDS Issues Data Management Data Caching Data Broadcast (Broadcast disk) Data Classification Transaction Management Query processing Transaction processing Concurrency control Database recovery 14 ΠΑ.ΠΕΙ. Νίκος Πελέκης 11.7

MDS Data Management Issues How to improve data availability to user queries using limited bandwidth? Possible schemes Semantic data caching: The cache contents is decided by the results of earlier transactions or by semantic data set. Data Broadcast on wireless channels 15 ΠΑ.ΠΕΙ. Νίκος Πελέκης MDS Data Management Issues How to improve data availability to user queries using limited bandwidth? Semantic caching Client maintains a semantic description of the data in its cache instead of maintaining a list of pages or tuples. The server processes simple predicates on the database and the results are cached at the client. 16 ΠΑ.ΠΕΙ. Νίκος Πελέκης 11.8

MDS Data Management Issues Data Broadcast (Broadcast disk) A set of most frequently accessed data is made available by continuously broadcasting it on some fixed radio frequency. Mobile Units can tune to this frequency and download the desired data from the broadcast to their local cache. A broadcast (file on the air) is similar to a disk file but located on the air. 17 ΠΑ.ΠΕΙ. Νίκος Πελέκης MDS Data Management Issues Data Broadcast (Broadcast disk) The contents of the broadcast reflects the data demands of mobile units. This can be achieved through data access history, which can be fed to the data broadcasting system. For efficient access the broadcast file use index or some other method. 18 ΠΑ.ΠΕΙ. Νίκος Πελέκης 11.9

MDS Data Management Issues How MDS looks at the database data? Data classification Location Dependent Data (LDD) Location Independent Data (LID) 19 ΠΑ.ΠΕΙ. Νίκος Πελέκης MDS Data Management Issues Location Dependent Data (LDD) The class of data whose value is functionally dependent on location. Thus, the value of the location determines the correct value of the data. Location Data value Examples: City tax, City area, etc. 20 ΠΑ.ΠΕΙ. Νίκος Πελέκης 11.10

MDS Data Management Issues Location Independent Data (LID) The class of data whose value is functionally independent of location. Thus, the value of the location does not determine the value of the data. Example: Person name, account number, etc. The person name remains the same irrespective of place the person is residing at the time of enquiry. 21 ΠΑ.ΠΕΙ. Νίκος Πελέκης MDS Data Management Issues Location Dependent Data (LDD) Example: Hotel Taj has many branches in India. However, the room rent of this hotel will depend upon the place it is located. Any change in the room rate of one branch would not affect any other branch. Schema: It remains the same only multiple correct values exists in the database. 22 ΠΑ.ΠΕΙ. Νίκος Πελέκης 11.11

MDS Data Management Issues Location Dependent Data (LDD) LDD must be processed under the location constraints. Thus, the tax data of Pune can be processed correctly only under Pune s finance rule. Needs location binding or location mapping function. 23 ΠΑ.ΠΕΙ. Νίκος Πελέκης MDS Data Management Issues Location Dependent Data (LDD) Location binding or location mapping can be achieved through database schema or through a location mapping table. 24 ΠΑ.ΠΕΙ. Νίκος Πελέκης 11.12

MDS Data Management Issues Location Dependent Data (LDD) Distribution MDS could be a federated or a multidatabase system. The database distribution (replication, partition, etc.) must take into consideration LDD. One approach is to represent a city in terms of a number of mobile cells, which is referred to as Data region. Thus, Pune can be represented in terms of N cells and the LDD of Pune can be replicated at these individual cells. 25 ΠΑ.ΠΕΙ. Νίκος Πελέκης MDS Data Management Issues Concept Hierarchy in LDD In a data region the entire LDD of that location can be represented in a hierarchical fashion. City data County 1 data County 2 data County n data Subdivision 1 data Subdivision data Subdivision m data 26 ΠΑ.ΠΕΙ. Νίκος Πελέκης 11.13

MDS Query processing Query types Location dependent query Location aware query Location independent query 27 ΠΑ.ΠΕΙ. Νίκος Πελέκης MDS Query processing Location dependent query A query whose result depends on the geographical location of the origin of the query. Example What is the distance of Pune railway station from here? The result of this query is correct only for here. 28 ΠΑ.ΠΕΙ. Νίκος Πελέκης 11.14

MDS Query processing Location dependent query Situation: Person traveling in the car desires to know his progress and continuously asks the same question. However, every time the answer is different but correct. Requirements: Continuous monitoring of the longitude and latitude of the origin of the query. GPS can do this. 29 ΠΑ.ΠΕΙ. Νίκος Πελέκης MDS Transaction Management Transaction properties: ACID (Atomicity, Consistency, Isolation, and Durability). Too rigid for MDS. Flexibility can be introduced using workflow concept. Thus, a part of the transaction can be executed and committed independent to its other parts. 30 ΠΑ.ΠΕΙ. Νίκος Πελέκης 11.15

MDS Transaction Management Transaction fragments for distributed execution Execution scenario: User issues transactions from his/her MU and the final results comes back to the same MU. The user transaction may not be completely executed at the MU so it is fragmented and distributed among database servers for execution. This creates a Distributed mobile execution. 31 ΠΑ.ΠΕΙ. Νίκος Πελέκης MDS Transaction Management A mobile transaction (MT) can be defined as T i is a triple <F, L, FLM>; where F = {e 1, e 2,, e n } is a set of execution fragments, L = {l 1, l 2,, l n } is a set of locations, and FLM = {flm 1, flm 2,, flm n } is a set of fragment location mapping where j, flm i (e i ) = l i 32 ΠΑ.ΠΕΙ. Νίκος Πελέκης 11.16

MDS Transaction Management An execution fragment e ij is a partial order e ij = {σ i, j } where σ i = OS j {N i } where OS j = k O jk, O jk {read, write}, and N j {Abort L, Commit L }. For any O jk and O jl where O jk = R(x) and O jl = W(x) for data object x, then either O jk j O jl or O jl j O jk. 33 ΠΑ.ΠΕΙ. Νίκος Πελέκης MDS Transaction Management Mobile Transaction Models Kangaroo Transaction: It is requested at a MU but processed at DBMS on the fixed network. The management of the transaction moves with MU. Each transaction is divided into subtransactions. Two types of processing modes are allowed, one ensuring overall atomicity by requiring compensating transactions at the subtransaction level. 34 ΠΑ.ΠΕΙ. Νίκος Πελέκης 11.17

MDS Transaction Management Mobile Transaction Models Reporting and Co-Transactions: The parent transaction (workflow) is represented in terms of reporting and co-transactions which can execute anywhere. A reporting transaction can share its partial results with the parent transaction anytime and can commit independently. A co-transaction is a special class of reporting transaction, which can be forced to wait by other transaction. 35 ΠΑ.ΠΕΙ. Νίκος Πελέκης MDS Transaction Management Mobile Transaction Models Clustering: A mobile transaction is decomposed into a set of weak and strict transactions. The decomposition is done based on the consistency requirement. The read and write operations are also classified as weak and strict. 36 ΠΑ.ΠΕΙ. Νίκος Πελέκης 11.18

MDS Transaction Management Mobile Transaction Models Semantics Based: The model assumes a mobile transaction to be a long lived task and splits large and complex objects into smaller manageable fragments. These fragments are put together again by the merge operation at the server. If the fragments can be recombined in any order then the objects are termed reorderable objects. 37 ΠΑ.ΠΕΙ. Νίκος Πελέκης MDS Transaction Management Mobile Transaction execution. DBS1 DBS2 T 2 (e 4, e 5 ) MU1 T 1 (e 1, e 2, e 3 ) MU3 MU2 DBS4 DBS3 38 ΠΑ.ΠΕΙ. Νίκος Πελέκης 11.19

MDS Transaction Management Serialization of concurrent execution. Two-phase locking based (commonly used) Timestamping Optimistic Reasons these methods may not work satisfactorily Wired and wireless message overhead. Hard to efficiently support disconnected operations. Hard to manage locking and unlocking operations. 39 ΠΑ.ΠΕΙ. Νίκος Πελέκης MDS Transaction Management Serialization of concurrent execution. New schemes based on timeout, multiversion, etc., may work. A scheme, which uses minimum number of messages, especially wireless messages is required. 40 ΠΑ.ΠΕΙ. Νίκος Πελέκης 11.20

MDS Transaction Management Database update to maintain global consistency. Database update problem arises when mobile units are also allowed to modify the database. To maintain global consistency an efficient database update scheme is necessary. 41 ΠΑ.ΠΕΙ. Νίκος Πελέκης MDS Transaction Management Transaction commit. In MDS a transaction may be fragmented and may run at more than one nodes (MU and DBSs). An efficient commit protocol is necessary. 2-phase commit (2PC) or 3-phase commit (3PC) is no good because of their generous messaging requirement. A scheme which uses very few messages, especially wireless, is desirable. 42 ΠΑ.ΠΕΙ. Νίκος Πελέκης 11.21

MDS Transaction Management Transaction commit. One possible scheme is timeout based protocol. Concept: MU and DBSs guarantee to complete the execution of their fragments of a mobile transaction within their predefined timeouts. Thus, during processing no communication is required. At the end of timeout, each node commit their fragment independently. 43 ΠΑ.ΠΕΙ. Νίκος Πελέκης MDS Transaction Management Transaction commit. Protocol: TCOT-Transaction Commit On Timeout Requirements Coordinator: Coordinates transaction commit Home MU: Mobile Transaction (MT) originates here Commit set: Nodes that process MT (MU + DBSs) Timeout: Time period for executing a fragment 44 ΠΑ.ΠΕΙ. Νίκος Πελέκης 11.22

MDS Transaction Management Protocol: TCOT-Transaction Commit On Timeout MT arrives at Home MU. MU extract its fragment, estimates timeout, and send rest of MT to the coordinator. Coordinator further fragments the MT and distributes them to members of commit set. MU processes and commits its fragment and sends the updates to the coordinator for DBS. DBSs process their fragments and inform the coordinator. Coordinators commits or aborts MT. 45 ΠΑ.ΠΕΙ. Νίκος Πελέκης MDS Transaction Management Transaction and database recovery. Complex for the following reasons Some of the processing nodes are mobile Less resilient to physical use/abuse Limited wireless channels Limited power supply Disconnected processing capability 46 ΠΑ.ΠΕΙ. Νίκος Πελέκης 11.23

MDS Transaction Management Transaction and database recovery. Desirable recovery features Independent recovery capability Efficient logging and checkpointing facility Log duplication facility 47 ΠΑ.ΠΕΙ. Νίκος Πελέκης MDS Transaction Management Transaction and database recovery. Independent recovery capability reduces communication overhead. Thus, MUs can recover without any help from DBS Efficient logging and checkpointing facility conserve battery power Log duplication facility improves reliability of recovery scheme 48 ΠΑ.ΠΕΙ. Νίκος Πελέκης 11.24

MDS Transaction Management Transaction and database recovery. Possible MU logging approaches Logging at the processing node (e.g., MU) Logging at a centralized location (e.g., at a designated DBS) Logging at the place of registration (e.g., BS) Saving log on Zip drive or floppies. 49 ΠΑ.ΠΕΙ. Νίκος Πελέκης Mobile Agent Technology A mobile agent is an independent software module capable of Migrating to any node on the network Capable of spawning and eliminating itself Capable of recording its own history 50 ΠΑ.ΠΕΙ. Νίκος Πελέκης 11.25

Mobile Agent Technology A mobile agent can be used for the following activities, which are essential for recovery. Centralized and distributed logging Log carrier. A Mobile unit may need to carry its log with it for independent recovery Log processing for database recovery Transaction commit or abort 51 ΠΑ.ΠΕΙ. Νίκος Πελέκης Mobile E-commerceE What is E-commerce? Mapping of business activity on the network. The network may be mobile of ad-hoc units, in which case the scope of business activities significantly increases. 52 ΠΑ.ΠΕΙ. Νίκος Πελέκης 11.26

Mobile E-commerceE Why mobile E-commerce? To make business activity free from spatial constraints. This allows tremendous flexibility to customers as well as to vendors. Important gain: Making information available at the right time, at the right location, and in a right format. 53 ΠΑ.ΠΕΙ. Νίκος Πελέκης Mobile E-commerceE Requirements for a mobile E-system Security Reliability Efficient Customer trust Quality of service 54 ΠΑ.ΠΕΙ. Νίκος Πελέκης 11.27

Mobile E-commerceE These requirements are difficulty and complex to achieve Security Conventional key approaches needs revision. Reliability Hard to provide mainly because of the unreliability and limitations of resources. 55 ΠΑ.ΠΕΙ. Νίκος Πελέκης Mobile E-commerceE These requirements are difficulty and complex to achieve Efficient This capability can be easily improved mainly because of the elimination of spatial constraints. Customer trust A time consuming activity. Customer do not easily trust electronic communication and always wants to see a reliable backup service. 56 ΠΑ.ΠΕΙ. Νίκος Πελέκης 11.28

Mobile E-commerceE These requirements are difficulty and complex to achieve Quality of service Mobility and web provides ample scope for improving the quality of service. An integration of mobility, web, data warehousing and workflow offers tremendous growth potential and a very controlled way of managing business activities. 57 ΠΑ.ΠΕΙ. Νίκος Πελέκης Conclusions and summary Wireless network is becoming a commonly used communication platform. It provides a cheaper way to get connected and in some cases this is the only way to reach people. However, it has a number of easy and difficult problems and they must be solved before MDS can be built. This tutorial discussed some of these problems and identified a number of possible approaches. 58 ΠΑ.ΠΕΙ. Νίκος Πελέκης 11.29

Conclusions and summary The emerging trend is to make all service providing disciplines, such as web, E-commerce, workflow systems, etc., fully mobile so that any service can be provided from any place. Customer can surf the information space from any location at any time and do their shopping, make flight reservation, open bank account, attend lectures, and so on. This is what the wireless technology driving us to. 59 ΠΑ.ΠΕΙ. Νίκος Πελέκης References 1. Acharya, S., Alonso, R., Franklin, M., and Zdonik, S. Broadcast Disks: Data management for Asymmetric Communication Environments. Proc. ACM SIGMOD Conf., San Jose, May, 1995. 2. Alonso, R., and Korth, H. Database Systems Issues in Nomadic Computing. Proc. ACM SIGMOD International Conf. on management of Data, May 1993. 60 ΠΑ.ΠΕΙ. Νίκος Πελέκης 11.30

References 3. Barbara, D., and Imielinski, T. Sleepers and Workaholics: Caching Strategies in Mobile Environments. Proc. ACM SIGMOD Conf., Minneapolis, May, 1994. 4. Chrysanthis, P. K., Transaction Processing in Mobile Computing Environment, in IEEE Workshop on Advances in Parallel and Distributed Systems, October 1993. 61 ΠΑ.ΠΕΙ. Νίκος Πελέκης References 5. Dhawan, C. Mobile Computing. McGraw-Hill, 1997. 6. Dunham, M. H., Helal, A., and Balakrishnan, S., A Mobile Transaction Model That Captures Both the Data and Movement Behavior, ACM/Baltzer Journal on Special Topics in Mobile Networks and Applications, 1997. 7. Forman, H. George and Zahorjan, J. The Challenges of Mobile Computing, IEEE Computers, Vol. 27, No. 4, April 1994. 62 ΠΑ.ΠΕΙ. Νίκος Πελέκης 11.31

References 8. Pitoura, E. and Bhargava, B., Maintaining Consistency of Data in Mobile Distributed Environments. Proceedings of 15th International Conference on Distributed Computing Systems., 1995. 9. Pitoura, E. and Bhargava, B., Building Information Systems for Mobile Environments, Proc. 3rd. Int. conf. on Information and Knowledge Management, Washington, DC, No. 1994. 63 ΠΑ.ΠΕΙ. Νίκος Πελέκης References 10. Vijay Kumar, Timeout-based Mobile Transaction Commit Protocol, 2000 ADBIS- DASFAA Symposium on Advances in Databases and Information Systems, Prague, Sep. 5-8, 2000. 11. Shaul Dar, Michael Franklin, Bjorn T. Johnsson, Divesh Srivastava, and Michael Tan, Semantic Data Caching and Replacement, Proc. Of the 22 nd VLDB Conference, Mumbai, India, 1996. 64 ΠΑ.ΠΕΙ. Νίκος Πελέκης 11.32

References 12. E. Pitoura and G. Samaras, Data Management for Mobile Computing, Kluwer Academic Publishers, 1998. 13. E. Turban, at. el., Electronic Commerce: A Managerial Perspective, Prentice Hall, 2000. 14. L. Loeb, Secure Electronic Transactions, Artech House, 1998. 65 ΠΑ.ΠΕΙ. Νίκος Πελέκης 11.33