Docsity

Client-Server Computing in Mobile Environment - Notes | CS 4440, Study notes of Computer Science

Toggle sidebar
bg1
Client-Server Computing in Mobile Environments
JIN JING
GTE Laboratories Incorporated
ABDELSALAM (SUMI) HELAL
University of Florida
AND
AHMED ELMAGARMID
Purdue University
Recent advances in wireless data networking and portable information appliances
have engendered a new paradigm of computing, called mobile computing, in which
users carrying portable devices have access to data and information services
regardless of their physical location or movement behavior. In the meantime,
research addressing information access in mobile environments has proliferated. In
this survey, we provide a concrete framework and categorization of the various
ways of supporting mobile client-server computing for information access. We
examine characteristics of mobility that distinguish mobile client-server computing
from its traditional counterpart. We provide a comprehensive analysis of new
paradigms and enabler concepts for mobile client-server computing, including
mobile-aware adaptation, extended client-server model, and mobile data access. A
comparative and detailed review of major research prototypes for mobile
information access is also presented.
Categories and Subject Descriptors: C.2.4 [Computer-Communication
Networks]: Distributed Systems
General Terms: Algorithms, Design
Additional Key Words and Phrases: Application adaptation, cache invalidation,
caching, client/server, data dissemination, disconnected operation, mobile
applications, mobile client/server, mobile computing, mobile data, mobility
awareness, survey, system adaptation
1. INTRODUCTION
Advances in wireless networking tech-
nology and portable information appli-
ances have engendered a new paradigm
of computing, called mobile computing,
in which users who carry portable de-
vices have access to information ser-
vices through a shared infrastructure,
Authors’ addresses: J. Jing, GTE Laboratories Incorporated, 40 Sylvan Road, Waltham, MA 02454; A.
Helal, Computer and Information Science and Engineering Department, University of Florida, Gaines-
ville, FL 32611; email: [email protected]; A. Elmagarmid, Computer Sciences, Purdue University, West
Lafayette, IN 47907.
Permission to make digital/hard copy of part or all of this work for personal or classroom use is granted
without fee provided that the copies are not made or distributed for profit or commercial advantage, the
copyright notice, the title of the publication, and its date appear, and notice is given that copying is by
permission of the ACM, Inc. To copy otherwise, to republish, to post on servers, or to redistribute to
lists, requires prior specific permission and/ or a fee.
© 1999 ACM 0360-0300/99/0600–0117 $5.00
ACM Computing Surveys, Vol. 31, No. 2, June 1999
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29

Partial preview of the text

Download Client-Server Computing in Mobile Environment - Notes | CS 4440 and more Study notes Computer Science in PDF only on Docsity!

Client-Server Computing in Mobile Environments

JIN JING

GTE Laboratories Incorporated

ABDELSALAM (SUMI) HELAL

University of Florida

AND

AHMED ELMAGARMID

Purdue University

Recent advances in wireless data networking and portable information appliances have engendered a new paradigm of computing, called mobile computing , in which users carrying portable devices have access to data and information services regardless of their physical location or movement behavior. In the meantime, research addressing information access in mobile environments has proliferated. In this survey, we provide a concrete framework and categorization of the various ways of supporting mobile client-server computing for information access. We examine characteristics of mobility that distinguish mobile client-server computing from its traditional counterpart. We provide a comprehensive analysis of new paradigms and enabler concepts for mobile client-server computing, including mobile-aware adaptation, extended client-server model, and mobile data access. A comparative and detailed review of major research prototypes for mobile information access is also presented.

Categories and Subject Descriptors: C.2.4 [ Computer-Communication Networks ]: Distributed Systems General Terms: Algorithms, Design Additional Key Words and Phrases: Application adaptation, cache invalidation, caching, client/server, data dissemination, disconnected operation, mobile applications, mobile client/server, mobile computing, mobile data, mobility awareness, survey, system adaptation

1. INTRODUCTION

Advances in wireless networking tech- nology and portable information appli- ances have engendered a new paradigm

of computing, called mobile computing , in which users who carry portable de- vices have access to information ser- vices through a shared infrastructure,

Authors’ addresses: J. Jing, GTE Laboratories Incorporated, 40 Sylvan Road, Waltham, MA 02454; A. Helal, Computer and Information Science and Engineering Department, University of Florida, Gaines- ville, FL 32611; email: [email protected]; A. Elmagarmid, Computer Sciences, Purdue University, West Lafayette, IN 47907. Permission to make digital / hard copy of part or all of this work for personal or classroom use is granted without fee provided that the copies are not made or distributed for profit or commercial advantage, the copyright notice, the title of the publication, and its date appear, and notice is given that copying is by permission of the ACM, Inc. To copy otherwise, to republish, to post on servers, or to redistribute to lists, requires prior specific permission and / or a fee. © 1999 ACM 0360-0300/99/0600–0117 $5.

regardless of their physical location or movement behavior. Such a new envi- ronment introduces new technical chal- lenges in the area of information access. Traditional techniques for information access are based on the assumptions that the location of hosts in distributed systems does not change and the con- nection among hosts also does not change during the computation. In a mobile environment, however, these as- sumptions are rarely valid or appropri- ate. Mobile computing is distinguished from classical, fixed-connection comput- ing due to (1) the mobility of nomadic users and their computers and (2) the mobile resource constraints such as lim- ited wireless bandwidth and limited battery life. The mobility of nomadic users implies that the users might con- nect from different access points through wireless links and might want to stay connected while on the move, despite possible intermittent disconnec- tion. Wireless links are relatively unre- liable and currently are two to three orders of magnitude slower than wire- line networks. Moreover, mobile hosts powered by batteries suffer from limited battery life constraints. These limita- tions and constraints leave much work to be done before mobile computing is

fully enabled. This remains true despite the recent advances in wireless data communication networks and hand-held device technologies. There has been a recent proliferation of research addressing issues of mobile systems and applications, especially for the purpose of mobile information ac- cess. In this survey, we attempt to pro- vide a concrete framework and categori- zation of various methods of supporting such applications and information ac- cess from the viewpoint of client-server computing. The scope of this survey cov- ers techniques and methods in support of components above the transport layer of networks. In a mobile client-server information system, a loose or tight col- lection of trusted information servers are connected via a fixed network to provide information services to a much larger collection of untrusted mobile cli- ents over wireless and mobile networks.

1.1 Paradigms of Mobile Client-Server Computing

In this section, we briefly examine the impacts of mobility on information ser- vices and applications, and the new par- adigms of client-server computing needed to deal with these impacts. A categorization of these computing para- digms is given below. This examination should facilitate our analysis and re- view of the various proposed techniques for mobile information access. Existing research on mobile client- server computing can be categorized into the following three paradigms: (1) mobile-aware adaptation, (2) extended client-server model, and (3) mobile data access. Mobile-aware Adaptation : The dy- namics of mobile environments and the limitations of mobile computing re- sources make adaptation a necessary technique when building mobile sys- tems and applications. The paradigm of mobile-aware adaptation covers various strategies and techniques in how sys- tems and applications respond to the environmental changes and the re-

CONTENTS

  1. Introduction 1.1 Paradigms of Mobile Client-Server Computing 1.2 Organization of this Paper
  2. Mobile-Aware Adaptation 2.1 Application-Transparent Adaptation 2.2 Application-Aware Adaptation
  3. Extended Client-Server Model 3.1 Thin Client Architecture 3.2 Full Client Architecture 3.3 Flexible Client-Server Architecture
  4. Mobile Data Access 4.1 Server Data Dissemination 4.2 Client Cache Management
  5. Case Studies 5.1 Bayou 5.2 Odyssey 5.3 Rover 5.4 Summary
  6. Conclusion

118 • J. Jing et al.

applications and the system. That is, the applications can decide how to best adapt to the changing environment while the system provides support through the monitoring of resources and the enforcing of resource allocation deci- sions. This section will discuss different proposed adaptation approaches.

2.1 Application-Transparent Adaptation

Many existing client-server applications are built around the assumption that the environment of a client does not change. These applications are usually unaware of the mobility and make cer- tain assumptions about the resource availability. The approach of applica- tion-transparent adaptation attempts to make these applications work with no modification in mobile environments. This is done by having the system shield or hide the differences between the stationary and mobile environments from applications. Examples of this ap- proach include Coda [Satyanarayanan et al. 1990; Kistler and Satyanarayanan 1992], Little Work [Honeyman et al. 1992], and WebExpress [Housel and Lindquist 1996; Chang et al. 1997]. In these examples, a local proxy runs on the mobile host and provides an inter- face for regular server services to the applications. The proxy attempts to mit- igate any adverse effects of mobile envi- ronments.

2.1.1 File System Proxy. The basic idea is to use a file system proxy to hide mobile issues from applications and to emulate file server services on the mo-

bile computers (see Figure 2). The Coda file system [Kistler and Satyanaray- anan 1992], pioneering this approach, uses a file system proxy to make exist- ing applications work with no modifica- tion. The proxy logs all updates to the file system during disconnection and re- plays the log on reconnection. Auto- matic mechanisms for conflict resolu- tion using optimistic concurrency control are provided for directories and files through the proxy and the file server. The file system proxy in Coda facilitates the following features: Disconnected Operations: A small col- lection of trusted Coda servers exports a location-transparent UNIX file name space to a larger collection of untrusted clients. On each client, a user-level pro- cess, Venus , manages a file cache on the local disk. Venus acts as a file system proxy and bears the brunt of discon- nected operations. Venus operates in one of three states: hoarding, emulat- ing, and reintegrating. In the hoarding state, server files are pre-fetched onto the mobile computer. Upon disconnec- tion, Venus enters the emulating state and begins logging updates in a client modify log. In this state, Venus per- forms log optimizations to improve per- formance and reduce resource usage. Upon reconnection, Venus enters the re- integrating state, where it synchronizes its cache with the servers, propagates updates from the client modify log, and returns to the hoarding state. In anticipation of disconnection, users may hoard data in the cache by provid- ing a prioritized list of files in a per-

Laissez faire (No system support)

Application-transparent (No changes to applications)

Application-awareness (collaboration)

Figure 1. Range of adaptation strategies.

120 • J. Jing et al.

client hoard database. Venus combines the hoard database information with LRU (Least Recently Updated) informa- tion to implement a cache management policy. Periodically, Venus walks the cache to ensure that the highest priority items are present and consistent with the servers. A user may also explicitly request a hoard walk at any time. Since consistency is based on optimistic rep- lica control, update conflicts may occur upon reintegration. The system ensures the detection and confinement of update conflicts and provides mechanisms to help the users recover from them. Weakly Connected Operations: The file system proxy pre-fetches server data into the client cache and uses ob- ject or volume 1 callbacks for the cache validation in order to support weak con- nectivity. Volume call back is pessimis- tic in that invalidating a volume invali- dates all the objects in this volume. However, the gain is in reducing cache invalidation information that needs to be communicated between the client and the server. The file system proxy can determine, based on factors such as cached data structures and connectivity changes, whether object or volume call- backs are best for a particular connec- tion. The variable granularity of call- back attempts to minimize the cost of validation and invalidation to provide

effective support of operations for weakly connected clients. Isolation-only Transactions: Discon- nected operations may result in data inconsistency due to conflicting opera- tions on multiple disconnected comput- ers. Isolation-only Transaction (IOT) is proposed to automatically detect read/ write conflicts. The execution of IOT is realized by the file system proxy code in the Coda system. An IOT provides con- sistency guarantees depending on the system connectivity conditions. Unlike traditional transactions, it does not guarantee failure atomicity and only conditionally guarantees permanence. When an IOT is completed, it enters either the committed or the pending state, depending on the connectivity condition (see Figure 3). If the execution of an IOT does not contain any parti- tioned file access, it is committed and its result is made visible on the servers. Otherwise, it enters the pending state for later validation. The result is tempo- rarily held within the client’s local cache and is visible only to subsequent processes on the same client. When the relevant partitions are repaired, the IOT is validated according to the isola- tion consistency criteria, namely, serial- izability. If the validation succeeds, the result will be immediately reintegrated and committed to the servers. Other- wise, the IOT enters the resolution (^1) A volume is a collection of related objects. state. When it is automatically or man-

Mobile Host Fixed Network

File Server

Mobile

File System Proxy

Applications

Mobile File System APIs

File System APIs

Figure 2. File system proxy.

Client-Server Computing in Mobile Environments • 121

Web proxy that is co-resident with the Web browser. On the mobile host, the CSI communicates with the Web browser over a local TCP connection (using the TCP/IP “loopback” feature) via the HTTP protocol. Therefore, no external communication occurs over the TCP/IP connection between the browser and the CSI. No changes to the browser are required other than specifying the (local) IP address of the CSI as the browser’s proxy address. The CSI com- municates with an SSI process over a TCP connection using a reduced version of the HTTP protocol. The SSI reconsti- tutes the HTML data stream and for- wards it to the designated CSI Web server (or proxy server). Likewise, for responses returned by a Web server (or a proxy server), the CSI reconstitutes an HTML data stream received from the SSI and sends it to the Web browser over the local TCP connection as though it came directly from the Web server. The proxy approach implemented in WebExpress offers the transparency ad- vantage to both Web browsers and Web servers (or proxy servers) and, there- fore, can be employed with any Web browser. The CSI/SSI protocols facili- tate highly effective data reduction and protocol optimization without limiting any of the Web browser functionality or interoperability. WebExpress optimiza- tion methods are summarized below:

Caching: Both the CSI and SSI cache graphics and HTML objects. If the URL specifies an object that has been stored in the CSI’s cache, it is returned imme- diately as the response. The caching functions guarantee cache integrity within a client-specified time interval. The SSI cache is populated by responses from the requested Web servers. If a requested URL received from a CSI is cached in the SSI, it is returned as the response to the request. Differencing: CSI requests might re- sult in responses that normally vary for multiple requests to the same URL (e.g., a stock quote server). The concept of differencing is to cache a common base object on both the CSI and SSI. When a response is received, the SSI computes the difference between the base object and the response and then sends the difference to the CSI. The CSI then merges the difference with its base form to create the browser response. This same technique is used to deter- mine the difference between HTML doc- uments. Protocol reduction: Each CSI connects to its SSI with a single TCP/IP connec- tion. All requests are routed over this connection to avoid the costly connec- tion establishment overhead. Requests and responses are multiplexed over the connection.

Mobile Hosts Fixed Network

TCP/IP Connection

(or Proxy Server)

Web Server

Side Intercept (SSI)

Web Express Server Side Intercept (CSI)

Web Express Client

HTTP (TCP/IP) (TCP/IP)

HTTP

Web Browser

Figure 4. The WebExpress intercept model.

Client-Server Computing in Mobile Environments • 123

Header reduction: The HTTP protocol is stateless, requiring that each request contain the browser’s capabilities. For a given browser, this information is the same for all requests. When the CSI establishes a connection with its SSI, it sends its capabilities only on the first request. This information is maintained by the SSI for the duration of the con- nection. The SSI includes the capabili- ties as part of the HTTP request that it forwards to the target server (in the wire line network). The Mowgli project [Kojo et al. 1994] also uses a similar approach to support Web applications over wireless links (see Figure 5). A specialized HTTP agent and a specialized HTTP proxy are applied to: (1) reduce unnecessary mes- sage exchange, (2) reduce the volume of data transmitted over the wireless link, and (3) support disconnected opera- tions. The HTTP agent acts as a local Web proxy on mobile client hosts while the HTTP proxy is located in the fixed network. With the agent-proxy ap- proach, neither Web clients nor servers need to be modified. The HTTP agent intercepts requests generated by the Web client on the mobile node. It com- municates with the HTTP proxy in the fixed network. Both the agent and the proxy maintain a cache of their own to improve performance over low-band- width links.

2.2 Application-Aware Adaptation

The approach of application-transpar- ent adaptation does not require chang-

ing existing applications to run in mo- bile environments. However, it could sacrifice functionality and performance. As applications are shielded from deal- ing with mobility, it might be very hard for the system to make adaptation deci- sions that meet the needs of different and diverse applications. As a result, it may have to require some manual inter- vention by the user (e.g., having the user indicate which data to pre-fetch onto the mobile device) to make applica- tions run smoothly. Such user-adminis- tered manual actions could be less agile to adapt to the changing environment. To address these problems, application- aware adaptation has been developed. Application-aware adaptation allows applications or their extensions to react to the mobile resource changes. One way to realize the application-aware ad- aptation is through the collaboration be- tween the system and individual appli- cations. The system monitors resource levels, notifies applications of relevant changes, and enforces resource alloca- tion decisions. Each application inde- pendently decides how best to adapt when notified. In a video player applica- tion, for example, such adaptation al- lows the video player system to scale back quality (and resource consump- tion) when application performance is poor and to attempt to discover addi- tional resources by optimistically scal- ing up usage. Depending on where the adaptive ap- plication logic resides, the approaches of application-aware adaptation can be di-

WWWClient Mowgli Socket Mowgli

MDCS WirelessInterface

HTTPAgent

WWW

WirelessInterface InterfaceVirtual NetworkInterface

Mobile IP

TCP / UDP

Socket

HTTPMowgliProxy Server Socket TCP / UDP IP NetworkInterface

Mobile-Connection Host Fixed Host

Mobile Node

... ...

Fixed Net

MDCS

Figure 5. The Mowgli wireless Web browsing architecture.

124 • J. Jing et al.

relationship in the application-aware adaptation is thus realized in two parts. The first, between the viceroy and its wardens, is data-centric: it defines the consistency levels for each data type and factors them into resource manage- ment. The second, between applications and Odyssey, is action-centric: it pro- vides applications with control over the selection of consistency levels supported by the wardens. A number of similar approaches have also been discussed in the literature. In the Prayer system [Bharghavan and Gupta 1997], the application-aware ad- aptation is supported with the use of abstractions: QoS classes and adapta- tion blocks. A QoS class is defined by specifying the upper and lower bounds for resources. An application divides its execution into adaptation blocks. An ad- aptation block consists of a set of alter- native sequences of execution, each as- sociated with a QoS class. At the beginning of an adaptation block, an application specifies the QoS classes that it is prepared to handle, along with a segment of code associated with each class and an action to take should the QoS class be violated within the code segment. In Welling and Badrinath [1998], ap- plication-aware adaptation is imple- mented under an event delivery frame- work. In the framework, a notification subsystem, called event channel, deliv- ers different events that are generated by the environment monitor to applica- tions based on delivery policies. For ex- ample, a low memory event may be de- livered to each application in series until enough memory is freed for other uses, while a low bandwidth event can be delivered to each application in par- allel. The applications are notified of the events to react to the environmental changes.

2.2.2 Client-Server Application Adap- tation. The Rover Toolkit [Joseph et al. 1996; 1997] supports the application- aware adaptation through the use of relocatable dynamic object (RDO). The

key task of the programmer when im- plementing an application-specific ad- aptation with Rover is to define RDOs for the data types manipulated by the application and for the data transported between the client and the server. The programmer divides the program that contains the RDOs into portions that run on the client and portions that run on the server; these parts communicate by means of queuing RPC. The pro- grammer also defines the methods that update objects, including code for con- flict detection and resolution. At the level of RDO design, applica- tion designers have semantic knowledge that is very useful in implementing ap- plication-aware adaptation. By tightly coupling data with program code, appli- cations can manage resource utilization more carefully than possible with a clas- sic file or object system that handles only generic data. For example, an RDO can include compression and decom- pression methods along with com- pressed data in order to obtain applica- tion-specific and situation-specific compression, reducing both network and storage utilization. The RDO ap- proach provides a generic framework to implement type-specific or application- specific operations for application- aware adaptation. The application that consists of these RDO modules actively cooperates with the runtime system of the Rover Toolkit to import RDOs onto the local machine, invoke well-defined methods on those objects, export logs of method invoca- tions on RDOs to servers, and reconcile the client’s copies of the objects with the server’s. In Davis et al. [1998], a tuple space based platform, called L2imbo, is pro- posed to support mobile distributed ap- plications and adaptation. The platform offers an asynchronous programming model and architecture for reporting and propagating QoS information about mobile environments. The L2imbo ar- chitecture supports mechanisms of ad- aptation with the use of system and

126 • J. Jing et al.

application agents that interact with the tuple space.

2.2.3 Proxy-Based Application Adap- tation. The application-specific proxy has been proposed as an intermediary between clients and servers to perform computation intensive and storage in- tensive tasks, such as data type specific lossy compression, on behalf of clients [Brooks et al. 1996; Brewer et al. 1998; Zenel and Duchamp 1997]. This proxy architecture reduces the bandwidth de- mands on the infrastructure through lossy compression and allows legacy and other nonstandard (including thin) cli- ents to inter-operate with existing serv- ers. The proxy-based application adap- tation allows the proxy agents to react to the environmental changes on behalf of mobile clients. This approach avoids inserting adaptation machinery at each origin server. From the client’s perspec- tive, the proxy is simply a server that gets the data from someplace else. In the BARWAN project [Brewer et al. 1998], the application specific proxy uses the transcoders (i.e., proxy agents)

to optimize the quality of service for the client in real time (see Figure 6). To use transcoding to adapt to network varia- tion, the proxy must have an estimate of the current network conditions along the path from the proxy to the client. SPAND (Shared Passive Network Per- formance Discovery), a network mea- surement system, allows a measure- ment host to collect the actual application-to-application network per- formance (e.g., available bandwidth and latency) between proxies and clients. SPAND monitors end-to-end bandwidth and connectivity to the clients (and servers) and notifies the proxy of any changes, which may result in changes in transcoding to adjust the quality of ser- vice. The original servers are unaware of the transformations or of the limited capabilities of the clients or networks. Compact HTML [CompactHTML 1998] is a W3C submission of a standard for small information appliances. It defines a subset of HTML for small information appliances, such as smart phones, smart communicators, and mobile PDAs. The

App Support

Client app

App Support

Client app

Video

Server

Proxy

SPAND

Transcoders

Image

PostScript

Audio

bandwidth

Medium

bandwidth

High

Low bandwidth

Figure 6. A proxy-based adaptation architecture.

Client-Server Computing in Mobile Environments • 127

the functions of a server. An extreme case is called the thin client architecture that offloads most application logic and functionality from clients to stationary servers. In the thin client architecture, applications in stationary servers are usually mobile-aware and optimized for mobile client devices. The thin client architecture is especially suitable for dumb terminal or small PDA applica- tions. The other extreme case is the full client architecture. The full client archi- tecture emulates server functions on the client devices and, therefore, is able to minimize the uncertainty of connectiv- ity and communications.

3.1 Thin Client Architecture

The InfoPad project [Le et al. 1994] demonstrates the approach of thin cli- ent architecture. The InfoPad system is composed of four layers shown in Figure 9: Pad, InfoNet, Type Servers, and Ap- plications. The Pad is a low power, por- table multimedia terminal that is capa- ble of displaying text and graphics, playing audio and compressed video, re- cording audio, and capturing pen input. The InfoNet layer presents the soft- ware layer above the Pad with an ab- straction in which each pad appears as a stationary, network-connected, multi- media terminal. This layer contains the routing algorithms to make mobility seamless and the routines to manage the wireless network resources (e.g., al- location of frequencies to pads). The type servers make the pad appear as a typical workstation to applications; this allows for compatibility with stan-

dard workstation software. The type servers shield applications from knowl- edge of the mobile environments and terminal hardware. However, applica- tions are optimized for use on the pad. The optimization takes advantage of the special characteristics of the pad, such as small screen size, lack of a keyboard, and support for handwriting and speech recognition. While applications in the InfoPad sys- tem are customized for the characteris- tics of the pad, they do not contain code that allows them to dynamically adapt to changes in mobile networks. Instead, mobile-aware adaptation is largely per- formed in the InfoNet and type server layers. In this sense, the adaptation in the InfoPad system can be characterized as application-transparent adaptation rather than application-aware adapta- tion. The thin client architecture from CIT- RIX Corporation allows a variety of re- mote computers, regardless of their plat- form, to connect to a Windows NT terminal server to remotely access a pow- erful desktop and its applications [CIT- RIX 1998]. A server called MetaFrame runs under Windows NT in the desktop machine and communicates with the thin clients executing at the remote computers using the Independent Computing Archi- tecture protocol (ICA). The ICA client and the MetaFrame server collaborate to dis- play the virtual desktop on the remote computer screen. They also collaborate to process mouse and keyboard events, and to execute programs and view data stored at the server. All executions are remote and none takes place at the client porta- ble computer. A research project at Mo- torola [Duran and Laubach 1999] ex- tended CITRIX’s thin client architecture so that it is optimized in the wireless environment. The work pointed out that bandwidth limitation is not as detrimen- tal to the thin client performance as net- work latency. This is because the thin clients’ use of bandwidth is limited. W4 [Bartlett 1994] applies the tech- nique of dividing application functional- ity between a small PDA and a power-

Fixed Network

Mobile Host

Client Code

Code (^) Code

Server Server

Code

Client

Figure 8. Extended client-server model.

Client-Server Computing in Mobile Environments • 129

ful, stationary host for Web browsing. Other thin client examples include the Top Gun Wingman and Top Gun Media- Board applications in the BARWAN project [Brewer et al. 1998].

3.2 Full Client Architecture

Mobile clients must be able to use net- works with rather unpleasant charac- teristics: intermittence, low bandwidth, high latency, or high expense. The con- nectivity with one or more of these prop- erties is referred to as weak connectiv- ity. In the extreme case, mobile clients will be forced to work under the discon- nected mode. The ability to operate in disconnected mode can be useful even when connectivity is available. For ex- ample, disconnected operations can ex- tend battery life by avoiding wireless transmission and reception. It can re- duce network charges, an important feature when charge rates are high. It allows radio silence to be maintained, a vital capability in military applications.

Finally, it is a viable fallback position when network characteristics degrade beyond usability. A full client architecture can be used to effectively support the disconnected or weakly connected clients. Compared to a thin client architecture, the full client architecture is at the other ex- treme of the range of extended client- server model. The full client architec- ture supports the emulation of functions of servers at the client host so that applications can be executed without fully connecting to remote servers. The emulation can be supported through a proxy or a “lightweight” server residing on client hosts. For example, a proxy can emulate some database operations to allow mobile users to work in a dis- connected mode. Systems, enabling the full client architecture, include CODA and WebExpress.

Pad

InfoNet

Applications

Type Server Type Server

X Type Server

AudioFile

Application

Generic X

Application

X Telephone

Figure 9. InfoPad system layering.

130 • J. Jing et al.

any group member access to any data that is available to the group. The architecture is based on a divi- sion of functionality between servers, which store data, and clients, which read and write data managed by serv- ers. A server is any machine (e.g., a mobile host) that holds a complete copy of one or more databases. A client is able to access data residing on any server to which it can communicate; and conversely, any machine holding a copy of a database, including personal lap- tops, should be willing to service read and write requests from other nearby machines. In this architecture, portable comput- ers can be servers for some databases and clients for others. The Bayou sys- tem [Demers et al. 1994; Terry et al. 1995] is an example that implements the collaborative group architecture.

3.3.3 Application-Specific Proxy. The application-specific proxy acts as an intermediary between clients and serv- ers to perform computation-intensive and storage-intensive tasks on behalf of clients. An application-specific proxy on a stationary host supports proxy agents (which can be fixed or mobile) to dynam- ically “transcode” or “distill” application data to reduce the bandwidth consump- tion between the proxy and the mobile client. This proxy allows legacy and other nonstandard (including thin) cli- ents to inter-operate with existing serv- ers. From the client’s perspective, the proxy is simply a server that gets the data from someplace else. The examples of application-specific proxies are dis- cussed in Brooks et al. [1996], Brewer et al. [1998], and Zenel and Duchamp [1997].

3.3.4 Virtual Mobility of Servers. In a wireless information system, informa- tion (data) servers are connected via fixed networks to provide information services to mobile users. The replication (or partition) of information services could help reduce the latency of remote operations and balance the workloads of

data servers in a distributed and multi- ple networks environment. The replica- tion of information services in different networks can be used to support the application service handoffs for moving mobile clients. In a wireless environment, the client moves around, perhaps to areas it has never visited before; once in a new mi- lieu (or a new network environment), it will negotiate with some nearby ma- chine to become a new coordinator to continuously provide services for its op- erations. The movement of mobile hosts may result in a long path of communica- tions in fixed networks because the physical distance may not necessarily reflect network and service distance be- tween the client and the server, espe- cially when the movement crosses the boundary of different networks. The long path of communication in fixed net- works will increase the traffic and la- tency of transactional services. If the new coordinator could always use a nearby or local information service site as the client’s data server, the traffic and latency in fixed networks can be reduced for the continuous interaction between the client and the information service server. Therefore, the mobility of the client introduces the concepts of virtual mobility of servers and applica- tion service handoffs. An issue of supporting the virtual mo- bility of servers is to minimize the over- head of application service handoffs for synchronous multi-server operations. The work in Tait and Duchamp [1991; 1992] investigates how to maintain rep- licas in a distributed file system that supports mobile clients. This work as- sumes that (1) clients’ movements can- not be constrained, although patterns of movement may exist; (2) the latency of remote operations increases as the dis- tance between hosts increases; (3) se- quential sharing workload is not un- common, but simultaneous sharing (other than read-read) workload is rare; and (4) a file cache of modest size is maintained by each client. The design goals in this work include: minimizing

132 • J. Jing et al.

synchronous multi-server operations; easing the addition and deletion of server sites; and allowing for incomplete replication. To achieve these goals, a primary- secondary server hierarchy architecture is proposed, as shown in Figure 11. Typ- ically, the client need not contact any (remote) server, but it communicates synchronously with the (local) primary server only. All updates are stored in the client’s cache. The primary server makes periodic pickups from the clients it is currently servicing and propagates updates back to the secondary servers asynchronously. This pickup strategy allows the client’s write operation to return immediately after placing the new value in its cache. The primary servers are used as in- termediaries between clients and sec- ondary servers. Because the system supports replica addition/deletion and incomplete replication, a primary server must learn about mapping from the file system to the secondary servers. The mapping is provided by calling a map- ping server function specified by the cli- ent. For example, someone from New York who is visiting Seattle would call the Seattle matchmaker to obtain a lo- cal primary server site. The locally-cho- sen primary server then calls the map- ping server in New York to locate files that the client wishes to access. After the handoff of primary servers, the new primary server can lazily copy the cli- ent’s file from the old cache in the old

primary server. Therefore, this method always connects the mobile client to the local primary server for information ac- cess in a distributed file system. The work in Krishnakumar and Jain [1994]; Jain and Krishnakumar [1994] presents a system architecture and ap- plication service handoff protocols for virtual mobility of servers. The architec- ture is based on replicated distributed servers connected to users via a per- sonal communication services (PCS) network. Under this architecture, as the user moves out of one service area into another, the local server at the new service area takes over providing the service. This service handoff for the vir- tual mobility of the server is broadly analogous to the PCS call handoff proce- dure and also requires that service con- tinuation is transparent with no inter- ruptions. For the application services handoffs, a service coordinator, when informed that the user has moved, initiates the set-up of a conference call between the current server, the mobile host, and the new server so that the service can be transparently handed off to the new server. The coordinator can then termi- nate the call with the old server. Before the new server takes over dur- ing a service handoff, it has to know what the mobile user is currently doing with the service, that is., the context of the user with respect to the service. Context information is the information associated with a user and a service so

Matchmaker

Server

Mapping Secondary 2

Secondary 1

Client Primary

Figure 11. The primary-secondary server hierarchy.

Client-Server Computing in Mobile Environments • 133

plications with asymmetrical communi- cations is how to deliver server data and information to a large number of clients. To address this scalability problem, a new information system architecture that exploits broadcast-based dissemi- nation capability of communications has been proposed [Herman et al. 1987; Imi- elinski and Badrinath 1994; Acharya et al. 1995, 1997; Su and Tassiulas 1998]. The central idea is that the servers ex- ploit the downstream communication capacity in bandwidth by broadcasting data to multiple clients. This arrange- ment is called a push-based architec- ture where data is pushed from the server to the clients. In contrast, most traditional client-server information systems use pull-based data delivery to provide data to locally running applica- tions.

4.1.1 Broadcast Disks. When a server continuously and repeatedly broadcasts data to a client community, the broadcast channel becomes a “disk” from which cli- ents can retrieve data as it goes by. The broadcasting data can be organized as multiple disks of different sizes and speeds on the broadcast medium [Acharya et al. 1995]. The broadcast is created by multiplexing chunks of data from different disks onto the same broad- cast channel. The chunks of each disk are evenly interspersed with each other. The chunks of the fast disks are repeated more often than the chunks of the slow disks (see Figure 13). The relative speeds of these disks can be adjusted as a param- eter to the configuration of the broadcast. This use of the channel effectively puts

the fast disks closer to the client while at the same time pushing the slower disks further away. This technique presents an opportu- nity to more closely match the broadcast to the workload at the client. Assuming that the server has an indication of the client access patterns (either by watch- ing their previous activity or from a description of intended future use from each client), then hot pages or pages that are more likely to be of interest to a larger part of the client community can be brought closer while cold pages can be pushed further away. This, in effect, creates an arbitrarily fine-grained memory hierarchy, as the expected de- lay in obtaining an item depends upon how often that item is broadcast. The broadcast disk technique, therefore, provides improved performance for non- uniformly accessed data. In the simplest scenario, the server can broadcast different items at the same frequency. With the “flat” broad- cast, the expected delay required prior to obtaining an item is the same for all items broadcast (namely, half a broad- cast period) regardless of their relative importance to the clients. This “flat” approach has been adopted in earlier work on broadcast-based information system such as Datacycle [Herman et al. 1987] and the work in Imielinski et al. [1994a; 1994b]. By comparison, the server can broadcast different items with differing frequency; important items can be broadcast more often than others.

A A

A

A

F (^) E D

A B C

Figure 13. A broadcast program.

Client-Server Computing in Mobile Environments • 135

Similar to the broadcast disk concept, a pyramid broadcasting method is used to provide Video-On-Demand services to mobile users [Vishwanath and Imielin- ski 1995]. In pyramid broadcasting, the most frequently requested movies are multiplexed on the broadcast network, resulting in radical improvement of ac- cess time and efficient bandwidth utili- zation.

4.1.2 Indexing on Air. In the “push- based” approach, servers periodically broadcast most frequently requested data items (hot spots). The server should dynamically adjust the content of the broadcast hot spot, depending on the periodically measured demand dis- tribution. The client is lazy in that it transmits only when necessary. The cli- ent could also stay in the doze mode (turning the power off) as much as pos- sible. To minimize wake-up time, clients can use selective tuning capabilities in the broadcasting channel. In Imielinski et al. [1994a; 1994b], the authors dis- cuss basic methods for data organiza- tion on the broadcast channel that pro- vide selective tuning capabilities for clients. In these methods, index infor- mation is broadcast together with the data. The index is structured so that the following two parameters are mini- mized:

— Query Time: Amount of time that it takes for a client to issue a query until the answer is received by the client.

— Listening Time: Amount of time spent by the client listening to the channel.

Query time is proportional to the overall size of the broadcast data. Therefore, the presence of the index increases the query time since the presence of the index increases the overall broadcast size. However, the presence of the index reduces the listening time. This, in turn, reduces energy consumption be- cause clients can use the selective lis- tening capabilities in broadcasting channels to stay in the doze mode and

minimize wake-up time, as demon- strated in Imielinski et al. [1994a; 1994b].

4.2 Client Cache Management

Caching of frequently-accessed data items is an important technique that reduces contention and improves query response times on narrow bandwidth wireless links. The cached data can also support disconnected or intermitted connected operations. However, cache pre-fetching and consistency strategies can be greatly affected by the disconnec- tion or weak connectivity of mobile cli- ents. The weak connectivity makes cache coherence expensive due to com- munication latency and intermittent failures. Pre-fetching (or hoarding ) data into the client cache prior to disconnec- tion is a difficult challenge in mobile client-server computing. This subsec- tion describes an automated hoarding approach and two cache validation mechanisms.

4.2.1 Automated Hoarding. A useful solution to support disconnected opera- tions is hoarding, in which nonlocal files are cached on the client cache prior to disconnection. The difficult issue for hoarding is which files should be se- lected and stored locally. Possible solu- tions include choosing the most recently referenced files or asking the user to participate at least peripherally in man- aging hoard contents. The former ap- proach might be wasteful of scarce hoard space, while the latter requires more expertise and involvement that most users are willing to offer. In the SEER system, an automated predictive hoarding approach is devel- oped [Kuenning and Popek 1997]. The automated predictive hoarding is based on the idea that a system can observe user behavior, make inferences about the semantic relationships between files, and use those inferences to aid the user. In SEER, an observer component watches the user’s behavior and file ac- cesses, classifying each access according

136 • J. Jing et al.