Transaction Management for M-Commerce at a Mobile Terminal

29
Transaction Management for M-commerce at a Mobile Terminal, Tsukuba 28.5.02 J. Veijalainen UNIVERSITY OF JYVÄSKYLÄ Transaction Management for M- Commerce at a Mobile Terminal Jari Veijalainen Vagan Terziyan

description

Transaction Management for M-Commerce at a Mobile Terminal. Jari Veijalainen Vagan Terziyan. Contents. Introduction Modeling M-commerce transactions Application-driven MC-Transaction Manager Design Ontology-oriented MC-Transaction Manager Design More general trends in M-commerce - PowerPoint PPT Presentation

Transcript of Transaction Management for M-Commerce at a Mobile Terminal

Page 1: Transaction Management for M-Commerce at a Mobile Terminal

Transaction Management for M-commerce at a Mobile Terminal, Tsukuba 28.5.02 J. Veijalainen

UNIVERSITY OF JYVÄSKYLÄ

Transaction Management for M-Commerce at a Mobile Terminal

Jari Veijalainen

Vagan Terziyan

Page 2: Transaction Management for M-Commerce at a Mobile Terminal

Transaction Management for M-commerce at a Mobile Terminal, Tsukuba 28.5.02 J. Veijalainen

UNIVERSITY OF JYVÄSKYLÄ

Contents

• Introduction• Modeling M-commerce transactions• Application-driven MC-Transaction Manager Design• Ontology-oriented MC-Transaction Manager Design• More general trends in M-commerce• Conclusions

Page 3: Transaction Management for M-Commerce at a Mobile Terminal

Transaction Management for M-commerce at a Mobile Terminal, Tsukuba 28.5.02 J. Veijalainen

UNIVERSITY OF JYVÄSKYLÄ

Introduction

• Currently mobile Internet is advancing fast; in Japan NTT DoCoMo’s i-Mode and similar services of the other operators have gathered 30-40 million users and it is expected that the penetration will reach saturation in a few years

• Telecom industry estimates that in 2003 there will be over 500 million Internet-enabled terminals in use in the world, the total number is now about 1 billion

• An important class of applications running on these terminals are M-commerce applications

• M-commerce is – shortly said – E-commerce conducted with wireless portable handsets, i.e. it is a special case of E-commerce

• the distinction between the Internet E-commerce are dynamic Location Based Services (LBS) that use the actual location of the terminal on earth in one way or the other to perform the transaction (cf. ordering taxi in a foreign city based on the positioning of the terminal and the taxi)

Page 4: Transaction Management for M-Commerce at a Mobile Terminal

Transaction Management for M-commerce at a Mobile Terminal, Tsukuba 28.5.02 J. Veijalainen

UNIVERSITY OF JYVÄSKYLÄIntroduction: The big picture: convergence of Internet and digital telecom networks•

IP Backbone Network

Communityserver Service provider

Server (e.g. GIS)

TV set

Mobile terminal

PC PC

CAserver

E-commerce server

Mobile NWOperator sphere

Page 5: Transaction Management for M-Commerce at a Mobile Terminal

Transaction Management for M-commerce at a Mobile Terminal, Tsukuba 28.5.02 J. Veijalainen

UNIVERSITY OF JYVÄSKYLÄ

Introduction: Some measures for the big picture

• there are about 700 GSM networks in 171 countries on earth and several other types of 2G networks (eg. CDMA-based);

• GSM technology is truly global with its roaming capability and coverage

• the number of digital telecom handsets will soon exceed 1 billion (this year 400 million handsets will be sold) and by 2005 perhaps 2 billions

• of these hundred of millions are Internet-enabled( WWW or WAP) • There are over a hundred million of servers at the server side

Page 6: Transaction Management for M-Commerce at a Mobile Terminal

Transaction Management for M-commerce at a Mobile Terminal, Tsukuba 28.5.02 J. Veijalainen

UNIVERSITY OF JYVÄSKYLÄ

Introduction: Functional convergence on PTDs

Page 7: Transaction Management for M-Commerce at a Mobile Terminal

Transaction Management for M-commerce at a Mobile Terminal, Tsukuba 28.5.02 J. Veijalainen

UNIVERSITY OF JYVÄSKYLÄ

Introduction: Roaming heterogeneity:overcoming it an all levels

Page 8: Transaction Management for M-Commerce at a Mobile Terminal

Transaction Management for M-commerce at a Mobile Terminal, Tsukuba 28.5.02 J. Veijalainen

UNIVERSITY OF JYVÄSKYLÄ

Introduction: Technical enablers of advanced services

Page 9: Transaction Management for M-Commerce at a Mobile Terminal

Transaction Management for M-commerce at a Mobile Terminal, Tsukuba 28.5.02 J. Veijalainen

UNIVERSITY OF JYVÄSKYLÄ

Introduction: M-commerce prospectives

• Due to the huge number of terminals and emerging Location-Based Services that are the most natural M-commerce applications, there is a rather considerable potential for M-commerce

• there are still obstacles currently: the technology is not mature and it raises fears of security and privacy

• the terminals are not as convenient as PC:s for conducting E-commerce transactions designed for PC:s and wired Internet

• The importance of M-commerce applications is recognized by key players who have established Mobile electronic Transactions Forum:

• ”MeT is an initiative founded to establish a framework for secure mobile transactions, ensuring a consistent user experience independent of device, service and network”. http://www.mobiletransaction.org/

• Open Mobile Architecture (OMA) attempts to prevent the fragmentation of the Mobile Services, including M-commerce services, at all levels www.nokia.com/oma

Page 10: Transaction Management for M-Commerce at a Mobile Terminal

Transaction Management for M-commerce at a Mobile Terminal, Tsukuba 28.5.02 J. Veijalainen

UNIVERSITY OF JYVÄSKYLÄ

Introduction: problems of M-commerce transactions

• there are still problems with the M-commerce transactions not addressed by MeT or other bodies, like OMA– the computations are inherently distributed (apply at least a

wireless communication link), but no clear overall computational properties have been specified (termination of the computations, exact status, correctness of them etc)

– especially overall atomicity in an exact sense is not guaranteed: M-commerce transaction succeeds only if all parts including ordering, payment and goods delivery succeed, but this is not really addressed by MeT

– if something goes wrong in some part of the transaction execution it is difficult to automatically find out what exactly has happened and how the situation could be recovered

Page 11: Transaction Management for M-Commerce at a Mobile Terminal

Transaction Management for M-commerce at a Mobile Terminal, Tsukuba 28.5.02 J. Veijalainen

UNIVERSITY OF JYVÄSKYLÄ

Modeling M-commerce transactions: Location-Based Services (LBS)• LBS in a broad sense: Services accessible through the network that utilize

location of various objects on earth (or in space) • Location-aware services do not need the actual position of the terminals on

earth in order to be provided; • example “send me the map of Kyoto”, or “find all restaurants at most 500 m

away from Jyvaskyla railway station”• Notice that these queries can be posed through a fixed PC or mobile terminal

• Location-dependent services: Services utilizing the possibility to dynamically determine the actual position of terminals and the persons carrying them

• Typically services accessed with or offered by the mobile terminals • Examples

– Finding a suitable restaurant– Ordering of a taxi– Finding the current position of a child or friend (I.e. location of another

terminal)

Page 12: Transaction Management for M-Commerce at a Mobile Terminal

Transaction Management for M-commerce at a Mobile Terminal, Tsukuba 28.5.02 J. Veijalainen

UNIVERSITY OF JYVÄSKYLÄ

Modeling M-commerce transactions: GIS Supporting LBS• Geographic data collection and conversion• Geographic data management• Geographic data analysis• Geographic data presentation

• Building advanced and usable LBS in global scale require – Efficient data collection methods– Extensive utilization of existing GIS databases– Standardization and interoperability– Knowledge and efficient methods for geographic data

transformations– Efficient geographic data analysis methods– Knowledge and methods of geographic data presentation

Page 13: Transaction Management for M-Commerce at a Mobile Terminal

Transaction Management for M-commerce at a Mobile Terminal, Tsukuba 28.5.02 J. Veijalainen

UNIVERSITY OF JYVÄSKYLÄ

Modeling M-commerce transactions

• we view the whole distributed computation facilitating the M-commerce transaction as a(n execution) graph that has a spanning tree– the root of the (spanning) tree models the computation at the

mobile terminal, the nodes computations at different players– the arcs model messages sent between players according to a

protocol; also sending tangible goods are represented in the same way

– based on the graph one can specify when a transaction is complete/incomplete, when it is in a consistent/inconsistent state etc.

– the most important property of MC-transactions is certified delivery ala Tyger; this can be specified based on the form of the execution graph

Page 14: Transaction Management for M-Commerce at a Mobile Terminal

Transaction Management for M-commerce at a Mobile Terminal, Tsukuba 28.5.02 J. Veijalainen

UNIVERSITY OF JYVÄSKYLÄ

Modeling M-commerce transactions: examples

Merchantsubtransactions

Paymentsubtransactions

The goods

Customer roottransactions

Goods deliverysubtransactions

a)

M e r c h a n ts u b t r a n s a c t i o n s

P a y m e n t / b i l l i n gs u b t r a n s a c t i o n s

T h e g o o d s

C u s t o m e r r o o tt r a n s a c t i o n s

G o o d s d e l i v e r ys u b t r a n s a c t i o n

b )

Page 15: Transaction Management for M-Commerce at a Mobile Terminal

Transaction Management for M-commerce at a Mobile Terminal, Tsukuba 28.5.02 J. Veijalainen

UNIVERSITY OF JYVÄSKYLÄ

Modeling M-commerce transactions

• the model is similar to the S-transaction model (see Elmagramid –92]), but

– an MC transaction is business model-dependent; different business models and customer relationships lead to structurally different kind of MC-transactions (whereas S-transactions are regular in structure)

– MC- transactions are heterogeneous in the sense that at different levels there can be different protocols in use; these do not always offer commit/abort facilities; they might also be unreliable (cf. HTTP request-responses)

– the terminal cannot always control the fate of the overall transaction for the above reason

• Thus: The actual scope or sphere of control of an MC transaction is the root and first level of the execution graph

Page 16: Transaction Management for M-Commerce at a Mobile Terminal

Transaction Management for M-commerce at a Mobile Terminal, Tsukuba 28.5.02 J. Veijalainen

UNIVERSITY OF JYVÄSKYLÄ

LBS-oriented client design

• The actual application in our case is a location-based service that first checks the position of the terminal and then provides a menu for the user to select the features of the city she is interested in

• after that, the client side asks the server to compile the requested vector map from the database and sent it to the client

• after receiving the map (in XML encoded format), the client renders it and shows it to the user

• The application can also use locally stored compressed maps in the above format

• with the help of the component TM the application can recover (forward) an earlier session after any crash

Page 17: Transaction Management for M-Commerce at a Mobile Terminal

Transaction Management for M-commerce at a Mobile Terminal, Tsukuba 28.5.02 J. Veijalainen

UNIVERSITY OF JYVÄSKYLÄ

LBS-oriented client architecture

Geographical Data

XML-Parser

Data-Source

RenderUser-InterfaceMap image

Analysis

Transaction Monitor

Mobile-Manager

Page 18: Transaction Management for M-Commerce at a Mobile Terminal

Transaction Management for M-commerce at a Mobile Terminal, Tsukuba 28.5.02 J. Veijalainen

UNIVERSITY OF JYVÄSKYLÄ

Application-driven M-commerce TM design

• A MC TM tries to guarantee transactional properties for the first level of the execution graph– it is assumed that it runs at the mobile terminal– it acts against

• terminal crashes• application crashes• connection losses• server crashes

– it facilitates forward and backward recovery of an interrupted transaction– technically, it can be designed in various ways

• as an application-driven software running as part of the application process

• as a separate ”demon” process• it can control itself the application-server communication or let

application do it also during the recovery

Page 19: Transaction Management for M-Commerce at a Mobile Terminal

Transaction Management for M-commerce at a Mobile Terminal, Tsukuba 28.5.02 J. Veijalainen

UNIVERSITY OF JYVÄSKYLÄ

Application-driven MC TM design

• we chose a design, where the TM is rather close to a logger; thus, a large portion of the responsibility for the transactional properties remain at the application

• it runs as part of the application process and logs data asked by the application

• upon recovery, it checks for the non-closed transactions in the log and asks the application to choose one to be finalized

• it is assumed that the TM is not able to decide what to do for an interrupted transaction, but the application – perhaps together with the user – must do the right steps, this is because the semantics of the MC transactions varies and it is rather difficult to describe for a general-purpose TM all variations of the recovery.

Page 20: Transaction Management for M-Commerce at a Mobile Terminal

Transaction Management for M-commerce at a Mobile Terminal, Tsukuba 28.5.02 J. Veijalainen

UNIVERSITY OF JYVÄSKYLÄ

Application-driven TM design

• Due to the structure of the M-commerce transactions at the root we decided to record into the log– Each request-response pair towards servers (action)– A sequence of actions towards a certain server (subtransaction)– The overall sequence of subtransactions (transaction)

• For all these the application attempts to guarantee atomicity (either happens or did not happen)– This is marked by begin tag and end tag in the log– The TM “understands” the non-atomicity of the actions, subtransactions

and transactions during recovery: end tag is missing• The TM also writes the parameters of each action, including the entire map,

into the log so that they can be reused either when requests are resubmitted or results displayed upon recovery

• the actual log is stored in a special XML-format that can be rendered e.g. by a browser; the maps are stored in a local format used by the Java programs

Page 21: Transaction Management for M-Commerce at a Mobile Terminal

Transaction Management for M-commerce at a Mobile Terminal, Tsukuba 28.5.02 J. Veijalainen

UNIVERSITY OF JYVÄSKYLÄ

Application-driven MC TM design

BeginTR BeginSTR BeginAC

TR_ID [ STR_ID { AC_ID ( /*CLS_ID=DATA*/

WriteCKPN

… /*CLS_ID=DATA*/

GetCHKPNT EndAC

)

EndSTR

STR_ID }

EndTR

]

Archivist

Dispatcher

Application Log Memory (ALM)

Application

CheckTR CheckSTR CheckAC

TR_State STR_State AC_State

GetTR GetSTR GetAC

TR_List STR_List AC_List

DeleteLog

t1 t2 t3 t4 … tn-3 tn-2 tn-1

t

Compensate AC

TR_ID

tn

GetCLS

CLS_List

AC_ID

TM_State

CheckMonitor

Page 22: Transaction Management for M-Commerce at a Mobile Terminal

Transaction Management for M-commerce at a Mobile Terminal, Tsukuba 28.5.02 J. Veijalainen

UNIVERSITY OF JYVÄSKYLÄ

An alternative TM design: Ontological TM

• there are certain problems with the above design– It is very difficult to provide action atomicity so that it is recorded

correctly into the log: now we have: if there is a log record then certainly the atomicity is guaranteed, but lacking end-record does not mean that the action did not succeed (crash only prevented to close the log record)

– A more clever TM could also automatically try to recover; now the application must be able to decide what to do with the log records it finds, whether to recover forward or backward

– The TM should guarantee security features (message encryption and decryption using WPKI, storing them in an encrypted form)

– The TM should take care of the communication towards the servers

Page 23: Transaction Management for M-Commerce at a Mobile Terminal

Transaction Management for M-commerce at a Mobile Terminal, Tsukuba 28.5.02 J. Veijalainen

UNIVERSITY OF JYVÄSKYLÄ

An alternative TM design: Ontological TM

Application

Transaction Monitor

Communication Manager

Log

TO/From Server

Security manager

Page 24: Transaction Management for M-Commerce at a Mobile Terminal

Transaction Management for M-commerce at a Mobile Terminal, Tsukuba 28.5.02 J. Veijalainen

UNIVERSITY OF JYVÄSKYLÄ

An alternative TM design: Ontological

• How much should TM ”understand” about the ontology of the communicated messages between the application and various servers?

• if the TM cannot automatically deduce all intentions of the application, how should the application signal the intentions (e.g. that a signature is required to authorise the M-commerce transaction)?

• that is, what kind of interface specification should there be between the application and TM?

Page 25: Transaction Management for M-Commerce at a Mobile Terminal

Transaction Management for M-commerce at a Mobile Terminal, Tsukuba 28.5.02 J. Veijalainen

UNIVERSITY OF JYVÄSKYLÄ

MLS Pilot System

• Multimeetmobile Location-based Service system• Developed in MultiMeetMobile research project

– www.cs.jyu.fi/~mmm• Offering map and navigation service accompanied with access to

location-based information

Page 26: Transaction Management for M-Commerce at a Mobile Terminal

Transaction Management for M-commerce at a Mobile Terminal, Tsukuba 28.5.02 J. Veijalainen

UNIVERSITY OF JYVÄSKYLÄ

MLS Pilot System• The constraints of mobile computing environment where taken into account

– Mobile terminals: memory, computing power, screen size and resolution, means of input, power consumption

– Mobile networks: bandwidth, latency, connection stability, availability, cost

– Using conditions: unpredictable and cognitively demanding environments

• Features

– Based on geographic vector data

– XML-based vector data

– Some computation delegated to the client (e.g. zooming and panning)

– Programmed with Java (runs on Symbian 5 and 6 devices, MS Windows))

– Intelligent selection of geographic data (up to certain distance of the current location)

– Transaction management feature: recovers (forward) to the current state

Page 27: Transaction Management for M-Commerce at a Mobile Terminal

Transaction Management for M-commerce at a Mobile Terminal, Tsukuba 28.5.02 J. Veijalainen

UNIVERSITY OF JYVÄSKYLÄ

Business model issues

• How to load the map software– By the terminal manufacturer?– By the user over Internet/PC? (in advance)– By the user over a wireless network on the spot?– By the user at a special Internet Kiosk on the spot?

How to load the maps?By the user over Internet/PC (in advance)By the user over a wireless telecom network on the spot?By the user at a special Internet kiosk on the spot (BT)?

Page 28: Transaction Management for M-Commerce at a Mobile Terminal

Transaction Management for M-commerce at a Mobile Terminal, Tsukuba 28.5.02 J. Veijalainen

UNIVERSITY OF JYVÄSKYLÄ

MLS – Future Work

• Improving the user interface• Implementing analysis functions, such as advanced search and route

finding• Further development of Transaction Monitor• Implementing client to J2ME• More efficient utilization of Oracle Spatial GIS functions• Support for dynamic geographic objects• XML-based interaction with content servers

• Utilization of existing location services• Testing the solutions with different devices and operating systems

Page 29: Transaction Management for M-Commerce at a Mobile Terminal

Transaction Management for M-commerce at a Mobile Terminal, Tsukuba 28.5.02 J. Veijalainen

UNIVERSITY OF JYVÄSKYLÄ

Conclusions and further research

• The level of the persistency of the log state is determined by the most persistent programmable memory offered at the terminal

• The Application-driven TM design is the first iteration;it implements 3-level MC transaction concept and the application interface is accordingly complicated

• a more intelligent TM design with more automatic analysis and recovery features is for further study