• 沒有找到結果。

HLR replication protocols for global mobility management in PCS networks

N/A
N/A
Protected

Academic year: 2021

Share "HLR replication protocols for global mobility management in PCS networks"

Copied!
25
0
0

加載中.... (立即查看全文)

全文

(1)

© 2003 Kluwer Academic Publishers. Printed in the Netherlands.

HLR Replication Protocols for Global Mobility Management

in PCS Networks



GWO-CHUAN LEE1, TSAN-PIN WANG2  and CHIEN-CHAO TSENG1 1Department of Computer Science and Information Engineering, National Chiao-Tung University,

HsinChu 30050, Taiwan, R.O.C.

2Department of Computer Science and Information Management, Providence University, Shalu 433,

TaiChung Taiwan, R.O.C. E-mail: tpwang@pu.edu.tw

Abstract. The new trend for PCS networks is to provide mobile users with large-scale mobile capability across

many service areas. In this scenario, global database management for PCS networks has become an increasingly important research issue. In this paper, we examined two replicated database strategies, single-replica (SR) and multiple-replica (MR), for large-scale mobility of per-user data management in personal communication networks. The SR strategy uses a single replica approach of HLR. The MR strategy replicates the per-user data of HLR in many regions. The two strategies are based a partial replication scheme, and a primary copy method is used to maintain replicas’ consistency. Our numerical results show that the MR strategy outperforms the SR strategy in most situations; however, it may be worse when the probability of a mobile user visiting a foreign region is high and the query rates from other foreign regions are low. Additionally, the number of replicas should be compact in the MR strategy in order to achieve a reasonable query response time. Therefore, we propose an adaptive multiple replication protocol to choose a suitable replication strategy and to decide the optimized number of replicas.

Keywords: personal communication services, mobility management, mobility databases, HLR replication.

1. Introduction

In recent years, personal communication services (PCS) have become popular with people in many countries. People can communicate with one another easily using mobile handsets everywhere at any time. Today, some people may wish to travel across many countries and take a handset to aid in their communications. It is therefore essential to support global mobility services for mobile users in PCS networks.

There has been much research involving mobility database design [2, 3, 6, 7, 11]. However, to support global mobility services efficiently in a wireless environment, database designs with the capability for large-scale mobility have become an important research issue [1, 8, 15, 16]. In this paper, we focus on a mobility database system for PCS networks. The current approach for a PCS database system is a two-level hierarchical system. Two different types of databases are required: HLR (Home Location Register) and VLR (Visitor Location Register) [5, 14, 13, 17]. The HLR is a home database that contains all of the customer records of mobile users, and the VLR is a remote database that will cache the profiles of callees located in a remote region. Thus, when a new call is generated, the query message of the caller will be sent to the HLR to find the location of the VLR where the callee is located. The VLR is then used to retrieve

 This paper was supported by the NSC Projects under Grant No. 90-2213-E-126-009.  Corresponding author.

(2)

information for handling the calls to or from the callee. Due to high terminal mobility and call demands in future PCS networks, the HLR-VLR architecture may perform inefficiently for a heavy traffic load on the signal links of networks close to the centralized HLR [4]. Particularly, when a mobile user travels with large-scale mobility over numerous service areas, the average query response time will increase quickly because of the long searching path to the HLR. The current approach is thus not well suited for global PCS mobility services.

Replication is a popular technique that is commonly used to minimize the traffic load on networks in traditional large-scale databases [18]. The scale of mobility database systems is always larger than the traditional database systems because of mobile hosts’ mobility. Therefore, the need for reducing the traffic load and response time of querying on mobility databases is more significant and replication may increasingly become the desired technology. Many studies on replicating data in mobile databases have been discussed [2, 3, 6, 11], and can be classified into two types of replication strategies. The first is the static replication strategy that allocates the replicated data to every replicated database. Each replica contains a complete set of data. If a mobile user alters any data on a local replica, updates must be propagated to all the other replicas to maintain the consistency of the replicated data. The update is always caused by the fast handoff of a mobile host in PCS networks. However, the traffic load for each update is heavy because of the amount of propagation. Thus, the number of replicas and the mobility patterns will effect the performance of mobility database systems. In contrast, a dynamic replication strategy does not replicate the data onto all databases. It replicates the data onto the specified service regions. The allocation for these replicas is dynamic in different time periods. Thus, this strategy will reduce the traffic load by eliminating redundant message flows propagating to the redundant replicas. Some research [3] used this approach to determine the locations of replicas according to the maximum number of callers in given regions.

Leung [11] classified the replication strategies into two kinds: partial replication and full replication. He proposed a partial replication protocol that belongs to a dynamic replication strategy. In this approach, the replicated data always reside in the region where a mobile user is located. When a mobile user alters any data, an update is sent to the replicated database, and forwarded to the mobile user’s home database by a delay message. Thus, the replicated database contains a full set of user data, and the home database contains a partial set because of weak consistency. This may reduce the undesirable traffic load on the home database if portions of the data are not requested frequently. He showed that the partial replication protocol is efficient for PCS mobility databases. Nevertheless, this approach is not always suitable for large-scale mobility services. In his design, when a mobile user leaves a service region, the replicated user data in the replicated database will be removed. This reveals that only one replica for each user profile exists in the mobile systems and we view this as a single-replica (SR) strategy. This strategy performs well using the assumption that most queries are generated in the same region where the callee is located. However, the query time is still large if there are many queries generated from other remote sites where the callee is not located. Therefore, a multiple-replica (MR) strategy is necessary for improving the performance of the SR strategy, and the MR strategy should be dynamic. In this paper, we propose an MR strategy to determine whether a profile should be replicated on a service region. The decision depends on the query rate of the service region. We also model the MR strategy based on a partial replication approach to compare with the SR strategy. Moreover, we propose an adaptive multiple replication (AMR) protocol to improve the performance of the MR strategy. The rest of this paper is organized as follows. In Section 2, we briefly describe the SR and MR strategies in mobility database systems. In Section 3, we analyze their performance. The

(3)

Figure 1. Replicated HLRs database systems.

performance results of the two strategies are discussed in Section 4. Next we propose an AMR protocol in Section 5. Finally, we conclude this paper in Section 6.

2. HLR Replication Strategies

In this section, we describe the two replication strategies, SR and MR strategies, for mobility database systems. In PCS networks, the VLR needs to cache the replication profile generated from HLR. Thus, the traditional HLR-VLR architecture can be viewed as a partial replication scheme. In this paper, we focus on the replicated HLRs of PCS networks. First, we describe the infrastructure of the replicated mobility database systems shown in Figure 1. The home

database (HDB) and replicated databases (RDBs) involve the HLR functions. HDB contains

the same customer data that the traditional HLR does. RDB is a database that may contain a replica of user data from HDB. In a service area, there are many VLRs managed by the HDB or RDB. For simplicity, we assume that a service area contains only an HDB or an RDB. The service area that contains the HDB is called the home region, and the service area that contains an RDB is called a foreign region. The sizes of the service areas may be different according to some cost constraints, for example, the population of customers.

2.1. SINGLE-REPLICA STRATEGY

The SR strategy is similar to the partial replication approach proposed by Leung [11]. In this approach, only one replica of a user profile is created along with the movement of a mobile user. When the mobile user leaves the HDB service area and enters a foreign region, it will create a replica of its profile in the RDB. However, if the mobile user continues to move to another foreign region, the replica in the previous RDB is removed and a new replica is created in the new RDB. The replica can be built using a registration and a download message sent by the mobile user. The user can then immediately update all data on the visiting RDB, but forward the data to the HDB only at each registration time. The RDB can thus be viewed as a primary site that contains a full replica of data, and the HDB is a secondary site that owns the partial data. The partial data are the infrequently updated information that may not contain

(4)

Figure 2. Traffic of registrations/downloads when a mobile user visits a foreign region in SR strategy.

Figure 3. Traffic of queries/responses when a mobile user visits a foreign region in SR strategy.

the current location for high mobility hosts. The primary copy method such as PWP protocol [12, 19] can be used to maintain the consistency of replicated data. The SR strategy is shown in Figures 2, 3 and 4. The RDBu denotes the replicated databases in a foreign region where

a callee is located. The RDBr and RDBnrboth represent the replicated databases without any

replica of the callee’s profile.

As Figure 2 shows, when a mobile user visits a foreign region, it first sends a registration message to the HDB and downloads its profile onto the RDBu as a replica. The user can thus

change any data on the local replica without any delay. In the scenario, the replica can be viewed as a full replica. When the user needs to send a registration to HDB again, it sends

(5)

Figure 4. Traffic of queries/responses when a mobile user visits the home region in SR strategy. all the updated data including the frequently and infrequently updated data to the HDB. Therefore, the data on HDB can be viewed as a partial replica because the registration to HDB may be delayed after the change of data on RDBu.

In Figure 3, the queries (marked as U-query) generated in the foreign region are processed first by the RDBu, all updated data can be obtained immediately because of the full replicas

in the RDBu. The queries (marked as N-query) generated in other foreign regions with no

replicas are processed by the RDBnr first. When failing to access the user profile, RDBnr

forwards a message (marked as N-forward) to HDB to query the lost data. Thus, infrequently updated data can be found at the HDB and returned using a response (marked as N-infre-response). Additionally, the RDBnrsends another forward message (marked as N-forward2) to

RDButo query the frequently updated data, and the results are returned using N-fre-response

directly to the user. We assume that there are some network links from RDButo both the RDBr

and RDBnr. The queries marked R-query have a similar protocol for N-query, because in the

SR model the RDBr is a database without any replica. If there are some queries (marked as

H-query) generated in the home region, HDB sends a forward message (marked as H-forward) to RDBuwhen failing to access the frequently updated data. The results are returned using the

response marked as H-fre-response.

As indicated in Figure 4, when a mobile user visits the home region, there are no replicas in the databases of the foreign regions. If there are some queries (marked as U-query, R-query and N-query) generated in foreign regions, the foreign regions will send the forward messages (marked as U-forward, R-forward and N-forward) to HDB to query the required data including frequently and infrequently updated data. These results are returned using responses marked as U-response, R-response and N-response.

2.2. MULTIPLE-REPLICA STRATEGY

The MR strategy may replicate many copies of user data in some RDBs, and use the partial replication policy and the primary copy method to manage the replicas. When a mobile user

(6)

Figure 5. Traffic of registrations/downloads and propagations when a mobile user visits a foreign region in MR strategy.

visits a foreign region collocated with the RDBu, it downloads its profile from HDB

imme-diately, in the same way as the SR strategy. The decision for replicating a profile on an RDB where the callee is not located is based on the query rate of callers in that region. If the query rate is high, the RDB will replicate the profile, and is referred to as RDBr. If the query rate

is low, the RDB has no replica, and is referred to as RDBnr. The RDBu that the mobile user

visits is viewed as a primary site, and the RDBrs with replicas are the secondary sites. When

the mobile user needs to change data, all updated data are written to the primary RDBuand the

frequently updated data are propagated to the secondary RDBrs immediately. Intuitively, the

cache scheme [9] will have a good performance in handling the infrequently updated informa-tion on the RDBrs. Hence, we don’t need to propagete the infrequently updated information

to the HDB immediately. The updated data are written to HDB only at the registration time; thus, the HDB keeps a partial replica because of weak consistency. The underlying principle of the MR strategy is to reduce the overhead of querying the frequently updated data. This strategy is described from Figures 5 to 8.

As Figure 5 shows, when a mobile user visits a foreign region, it sends a registration to HDB and downloads its profile onto RDBu as a replica. The user can change all the data on

the replica without any delay, but it needs to propagate the frequently updated data to those foreign regions marked as RDBr with the same replicas for consistency. Similar to the SR

model, the user alters the frequently and infrequently updated data in the HDB only at the registration time.

In Figure 6, if there are queries (marked as U-query) generated in the foreign region where a mobile user is located, these queries are processed by RDBufirst. Then all updated data can

be obtained immediately because of the full replica on RDBu. If there are queries (marked

as R-query) generated in other foreign regions with the replicas of a callee, these queries are processed by RDBr first. When failing to access the infrequently updated data that is not

replicated on the RDBr, RDBr sends a forward message (marked as R-forward) to HDB. The

HDB will then generate a response (marked as R-infre-response) to carry the infrequently updated data to the user. Additionally, it forwards another query (marked as R-forward2) to RDBu to request the lost information of frequently updated data. Finally, RDBu sends the

R-fre-miss-response message to return the lost data directly to the user. If there are queries (marked as N-query) generated in other foreign regions with no replicas, these queries are

(7)

Figure 6. Traffic of queries/responses when a mobile user visit a foreign region in MR strategy.

Figure 7. Traffic of propagations when a mobile user visits the home region in MR strategy.

processed by RDBnr first. Then RDBnr sends a forward message (marked as N-forward) to

HDB to query the user profile. The HDB will return the infrequently updated data to the user using the N-infre-response message. Additionally, HDB sends a forward message (marked as N-forward2) to RDBu to query the frequently updated data, and the results are returned

directly to the user using N-fre-response message. If there are some queries (marked as H-query) coming from the home region, the infrequently updated data can be directly obtained from HDB. The HDB also sends a forward message (marked as H-forward) to RDBubecause

the frequently updated data were not accessed from HDB. Finally, the lost data are returned to the user using the H-fre-response message.

When a mobile user visits the home region, as indicated in Figure 7, the operations of registration and download are performed locally on the HDB. If the user wishes to update his profile, only the frequently updated data need to be propagated to both RDBuand RDBr.

(8)

Figure 8. Traffic of queries/responses when a mobile user visits the home region in MR strategy. As Figure 8 shows, if there are queries (marked as R-query) generated in the foreign region with a replica of the user profile, these queries are first processed by RDBr. The frequently

updated data can be obtained immediately. RDBr then sends a forward message (marked as

R-forward) to HDB to query the infrequently updated data and the possibly obsolete replica of frequently updated data. These results are returned using the responses marked as R-infre-response and R-fre-mis-R-infre-response. The U-query has the same behavior as R-query. If there are some queries (marked as N-query) sent to the RDBnr, RDBnr will send a forward message

(marked as N-forward) to HDB to query all the needed information because of no replica on the databases. The results are directly returned to the callers using the N-response message.

3. Performance Analysis of the Replication Strategies

The performance evaluation of the two replication strategies is based on queuing models. For simplicity, the databases and the network links are also modeled as independent M/M/1 queues in our assumption.

3.1. DEFINITIONS OFKEYPARAMETERS

To develop our model, first we define the following parameters. Some of the notations are consulted from Leung’s paper [11].

• φ represents the probability that a callee visits at a foreign region. • 1 − φ represents the probability that a callee visits at the home region.

• ϕ represents the missed rate of querying the frequently updated data on RDBr. The miss

is caused by the network link transmission delay.

• α represents the probability that a call is generated from a foreign region collocated with RDBu.

• β represents the probability that a call is generated from a foreign region collocated with RDBr.

(9)

Table 1. Fraction of call-types. To From HDB RDBu HDB (1− α − kβ − sγ )(1 − φ) (1− α − kβ − sγ )φ RDBu α(1− φ) αφ RDBr kβ(1− φ) kβφ RDBnr sγ (1− φ) sγ φ

• γ represents the probability that a call is generated from a foreign region collocated with RDBnr.

• Rqrepresents the query to update rate ratio, which describes the average number of data

queries per update.

• Rgrepresents the query to registration rate ratio, which describes the average number of

data queries per registration. In general, the registration rate is less than the update rate; thus, the ratio Rgis larger than Rq.

• Nqrepresents the average number of queries for each call. We also assume that only N1q

queries for each call will access to the frequently updated data.

• Furepresents the probability of updating the frequently updated data for each update.

• N represents the number of total service regions.

• k represents the number of service regions which contains a replica of the profile for a callee.

• s represents the number of service regions without any replica of the profile for a callee. • ρ represents the server loads on all databases of the mobile systems.

• Xq, X2qrepresent average and second moment of query processing time on databases.

• Xu, Xu2represent average and second moment of update processing time on databases.

• Yq, Yq2represent average and second moment of transmission time for a query or response

on the network links.

• Yu, Yu2represent average and second moment of transmission time for an update on the

network links.

• Yd, Yd2represent average and second moment of transmission time for a downloaded data

on the network links.

• τ represents the average delay of transmission or propagation time on the network links. According to our model, there are fractions of eight call-types shown in Table 1. For example, a fraction α(1− φ) of call rates represents the calls generated from the foreign region collocated with RDBuand destined for a callee at the home region.

For fair comparison of the two replication strategies, we fix the server load ρ. That is, the server loads on all databases of SR and MR models are the same. We can derive the arrival rates of queries and updates from the processing times and the ratio of query-to-update. Thus, the arrival query rate λq and the arrival update rate λu on all databases can be obtained as

follows. λq= ρ Xq+XRqu , λu= λq Rq . (1)

(10)

The performance metric for comparison is the average query response time. In the follow-ings, we derive the average query response time of the two models by conditioning the traffic load from different types of replicated databases and network links.

3.2. SINGLE-REPLICA MODEL

In our model, we assume that there are N service areas in total, and each service area contains an RDB except the home region, which contains an HDB. Then we obtain that the number s of RDBnrs is equal to N−k −2, because there are k RDBrs and an RDBuin the N−1 RDBs.

Load of RDBu: The query load on the RDBu includes all queries marked as U-query and

the forward messages marked as R-forward2, N-forward2 and H-forward. Therefore, the probability Puq of query rate on RDBucan be derived as follows according to Table 1.

Puq = α + kβ φ Nq + sγ φ Nq + (1 − α − kβ − sγ ) φ Nq = α + (1 − α) φ Nq . (2) The fractionN1

q means that only one of the Nqqueries on the HDB will access to the frequently updated data. These queries need to be forwarded to RDBu for further processing because of

the partial replication scheme. Additionally, the updates on RDBuare all generated from the

callee of a foreign region. Thus, combining the query and update load, the server load ρu of

RDBuis

ρu= PuqλqXq+ φλuXu. (3)

According to the queuing theory [10], the average query response time Tuq on RDBu is

equal to the summation of the query processing time Xq and average waiting time. Then we

obtain

Tuq = Xq+

PuqλqX2q+ φλuX2u

2(1− ρu)

. (4)

Load from RDButo HDB: The traffic load of the network link from RDButo HDB includes

the forward query marked as U-forward, the query response marked as H-freq-response , and the registration. Thus, the probability Qquhof the query rate on the link is derived using

Qquh= α(1 − φ) + (1 − α − kβ − sγ ) φ Nq

. (5)

The registrations are all generated from the callee of the foreign region collocated with RDBu. λq

Rg is the registration rate. Thus, the traffic load βuhfrom RDButo HDB is

βuh= Q q uhλqYq+ φ λq Rg Yu. (6)

(11)

The average query response time Ruhq on the link is equal to the summation of the transmission time Yqand average waiting time. Then we can obtain

Ruhq = Yq+ QquhλqYq2+ φ λq RgY 2 u 2(1− βuh) . (7)

Load on HDB: There are four types of queries, an update and a registration on the database

HDB. These queries are H-query, U-forward, R-forward, and N-forward. Thus the probability

Phq of query rate on H DB can be derived using

Phq = (1 − α − kβ − sγ ) + α(1 − φ) + kβ + sγ

= 1 − αφ . (8)

The update comes from the home region of the callee, and the registration is generated from the callee of a foreign region. Combining these messages, the server load ρhon HDB is given

using ρh= P q hλqXq+  (1− φ)λu+ φ λq Rg  Xu, (9)

and the average query response time Thqis given using

Thq = Xq+ PhqλqX2q+ [(1 − φ)λu+ φ λq Rg]X 2 u 2(1− ρh) . (10)

Load from HDB to RDBu: The traffic load from HDB to RDBu includes the forward

mes-sages marked as H-forward, R-forward2 and N-forward2, and the query response marked as U-response. Then the probability Qqhuof query rate on the link is given using

Qqhu = (1 − α − kβ − sγ ) φ Nq + kβ φ Nq + sγ φ Nq + α(1 − φ) = (1 − α) φ Nq + α(1 − φ) . (11)

Whenever a mobile user visits a foreign region, the profile needs to be downloaded at registration time. Thus, the load βhuon the link is derived as

βhu= Q q huλqYq+ φ λq Rg Yd. (12)

The average query response time of Rqhuis

Rhuq = Yq+ QqhuλqYq2+ φ λq RgY 2 d 2(1− βhu) . (13)

(12)

Loads on RDBr and RDBnr: In this model, RDBr and RDBnr, which do not contain any

replicas of the callee can be viewed as the same type of replicated databases. For simplicity, we combine the two loads into one for calculation. The server loads of the two databases include the R-query and N-query separately. Thus, we derive the probability Pnqof query rate

and the load ρnon the two databases as follows.

Pnq = kβ + sγ , (14)

ρn= PnqλqXq. (15)

Then the average query response time Tnqon RDBr/RDBnris obtained using

Tnq = Xq+

PnqλqXq2

2(1− ρn)

. (16)

Load from RDBr/RDBnrto HDB: Considering the uplink traffic loads from RDBr/RDBnrto

HDB, the corresponding messages include R-forward and N-forward. For simplicity, the two links are also combined into one for calculation. Thus, the probability Qqnh of query rate and the load βnh on the two links can be derived using

Qqnh = kβ + sγ , (17)

βnh = Q

q

nhλqYq, (18)

and the average query response time Rnhq is obtained using

Rnhq = Yq+

QqnhλqYq2

2(1− βnh)

. (19)

Loads from HDB to RDBr/RDBnr: The downlink traffic loads from HDB to RDBr/RDBnr

in-clude four types of query responses marked as R-infre-response, R-response, N-infre-response and N-response. Thus, the probability Qqhnof query rate can be derived using

Qqhn = kβNq− 1 Nq φ+ kβ(1 − φ) + sγNq− 1 Nq φ + sγ (1 − φ) . (20) The fraction Nq−1

Nq means that only (Nq − 1) of the Nq queries on HDB will access the infrequently updated data successfully if the user visits at a foreign region. Then the traffic load βhn on the two links is

βhn = Q

q

hnλqYq, (21)

and the average query response time Rhnq is given using

Rhnq = Yq+

QqhnλqYq2

2(1− βhn)

(13)

Loads from RDButo RDBr/RDBnr: The traffic loads of network links directly from RDButo

RDBr and RDBnrare caused by the messages marked as R-fre-response and N-fre-response,

respectively. Therefore, the probability Qqun of query rate and the load βun on the links is

derived using Qqun = kβ φ Nq + sγ φ Nq , (23) βun = QqunλqYq, (24)

and the average query response time Runq is given using

Runq = Yq+

QqunλqYq2

2(1− βun)

. (25)

By combining all of traffic loads derived above, we can obtain the average query response time TSR

q for SR model as follows.

TqSR = PuqTuq+ Q q uh(R q uh+ τ) + Q q hu(R q hu+ τ) + Pq hThq+ P q nTnq+ Q q nh(R q nh+ τ) +Qq hn(R q hn+ τ) + Q q un(Runq + τ) . (26) 3.3. MULTIPLE-REPLICA MODEL

We proceed to analyze the query response time of the MR model by conditioning the traffic load from the different types of replicated databases and network links.

Load on RDBu: The query load of RDBuis caused by all the U-query and forward messages

marked as R-forward2, N-forward2 and H-forward similar to the SR model. The only differ-ence is that the R-forward2 message represents the missed requests of R-query for accessing the frequently updated data on the RDBr. Parameter ϕ describes the missed rate caused by the

propagating delay between RDBu and RDBr. Thus, the probability P q

u of query rate on the

database can be derived.

Puq = α + kβ φ Nq ϕ+ sγ φ Nq + (1 − α − kβ − sγ ) φ Nq = α + kβ φ Nq ϕ+ (1 − α − kβ) φ Nq . (27)

Additionally, the update load on RDBuincludes all updates sent from the callees at the foreign

region and the updates propagated from the callees at the home region. The propagating rate is λuFu which is the rate for updating the frequently updated data. Therefore, the server load

ρuis obtained using

ρu= PuqλqXq+ [φλu+ (1 − φ)λuFu]Xu, (28)

and the average query response time Tuq is equal to the summation of the query processing

time Xq and average waiting time. Then we obtain

Tuq = Xq+

PuqλqX2q+ [φλu+ (1 − φ)λuFu]X2u

2(1− ρu)

(14)

Load from RDBu to HDB: The traffic load from RDBu to HDB includes the query

re-sponse marked as H-fre-rere-sponse and the forward message marked as U-forward. Thus, the probability Qquhof query rate on the link is

Qquh= (1 − α − kβ − sγ ) φ Nq + α(1 − φ)  Nq− 1 Nq + ϕ Nq  . (30) The fraction Nq−1

Nq means that the portion for accessing the infrequently updated data, and

ϕ

Nq means the failed queries for accessing the frequently updated data. U-forward message includes the two querying messages. Besides, the load also includes the registration message sent from the callees of the foreign region with RDBu. Then the traffic load βuhon the link

can be derived as follows.

βuh= Q q uhλqYq+ φ λq Rg Yu. (31)

The average query response time Ruhq is given using

Ruhq = Yq+ QquhλqYq2+ φ λq Rg Y2 u 2(1− βuh) . (32)

Load on HDB: From Figures 5 to 8, the server load on HDB is caused by four types of

queries and two types of updates. One type of the queries is the U-forward message described above. The others include the query load on HDB (marked as H-query) generated from the home region, the R-forward message, and the N-forward message. The R-forward includes the messages of querying for the infrequently updated data and the messages missed at accessing to the replica of the frequently update data. Thus, the probability Phq of query rate on HDB can be derived in the following

Phq = α(1 − φ)  Nq− 1 Nq + ϕ Nq  + (1 − α − kβ − sγ ) + kβ  Nq− 1 Nq + ϕ Nq  + sγ = α(1 − φ)  Nq− 1 Nq + ϕ Nq  + (1 − α − kβ) +kβ  Nq− 1 Nq + ϕ Nq  . (33)

The two types of updates include all of the updates generated from the callees at home, and the registrations generated from the callees at the foreign region. Therefore, the load ρh on

HDB can be obtained by conditioning the queries, updates and registration loads.

ρh= P q hλqXq+  (1− φ)λu+ φ λq Rg  Xu. (34)

(15)

The average query response time Thq is given using Thq = Xq+ PhqλqX2q+ [(1 − φ)λu+ φ λq Rg]X 2 u 2(1− ρh) . (35)

Load from HDB to RDBu: The downlink traffic load from HDB to RDBu is effected by

the forward messages including H-forward, R-forward2 and N-forward2, and the response messages including U-fre-mis-response and U-infre-response. These forward messages are described in Equation (27). U-fre-mis-response and U-infre-response messages return all the data queried by U-forward, which is described in Equation (30). Thus, the probability Qqhuof query rate can be derived as follows.

Qqhu = (1 − α − kβ − sγ ) φ Nq + kβ φ Nq ϕ+ sγ φ Nq + α(1 − φ)  Nq− 1 Nq + ϕ Nq  = (1 − α − kβ) φ Nq + kβ φ Nq ϕ+ α(1 − φ)  Nq− 1 Nq + ϕ Nq  . (36)

Other types of messages occurred on the link are the download messages and the propagation messages. Combining these messages, the load βhuis given using

βhu= Q q huλqYq+ φ λq Rg Yd+ (1 − φ)λuFuYu, (37)

and the average query response time Rhuq is

Rhuq = Yq+ QqhuλqYq2+ φ λq RgY 2 d + (1 − φ)λuFuYu2 2(1− βhu) . (38)

Load on RDBr: The server load of RDBr includes the R-query and all the propagation from

the primary site (RDBuor HDB). Thus, the probability P q

r of query rate on the database is

Prq = kβ , (39)

and the server load ρr on RDBr can be obtained

ρr = P q r λqXq+ [φλuFu+ (1 − φ)λuFu]Xu = Pq r λqXq+ λuFuXu. (40) The average query response time Trq is given

Trq = Xq+

PrqλqXq2+ λuFuX2u

2(1− ρr)

(16)

Load on RDBnr: The load on RDBnris caused only by the N-query message. The probability

Pnq of query rate and the load ρnare obtained

Pnq = sγ , (42)

ρn= PnqλqXq. (43)

The average query response time Tnq is

Tnq = Xq+

PnqλqXq2

2(1− ρn)

. (44)

Load from RDBr to HDB: The traffic load from RDBr to HDB is caused by the R-forward

message described in Equation (33). Therefore, the probability Qqrhof query rate and the load

βrhon the link is easily derived in the following.

Qqrh= kβ  Nq− 1 Nq + ϕ Nq  (45) βrh= Q q rhλqYq. (46)

The average query response time Rrhq is given

Rrhq = Yq+

QqrhλqYq2

2(1− βrh)

. (47)

Load from RDBnr to HDB: The uplink traffic load from RDBnr to HDB can be derived

directly by the N-forward message. Therefore, the load βnhis calculated as follows.

Qqnh = sγ , (48)

βnh = Q

q

nhλqYq. (49)

The average query response time is given

Rnhq = Yq+

QqnhλqYq2

2(1− βnh)

. (50)

Load from HDB to RDBr: The downlink traffic from HDB to RDBr includes the query

responses marked as R-infre-response and R-fre-mis-response. R-infre-response returns the infrequently updated data no matter where the callee is located, whereas R-fre-mis-response returns the missed frequently updated data when the calee is at home. Thus, the probability

Qqhrof query rate on the link is derived as follows.

Qqhr = kβNq− 1 Nq

+ kβ(1 − φ) ϕ

Nq

(17)

The traffic also consists of the propagation messages generated from the callees in the home region. Then the load can be obtained

βhr = Q

q

hrλqYq+ (1 − φ)λuFuYu, (52)

and the average query response time Rhrq is given

Rhrq = Yq+

QqhrλqYq2+ (1 − φ)λuFuYu2

2(1− βhr)

. (53)

Load from HDB to RDBnr: The downlink traffic load from HDB to RDBnr includes the

query responses marked as N-response and N-infre-response. The two messages carry all of the required data when the callee is at home, and carry the infrequently updated data when the callee is at the foreign region. Thus, the load βhn is derived in the following.

Qqhn = sγ (1 − φ) + sγ φNq− 1 Nq , (54) βhn = Q q hnλqYq. (55)

The average query response time Rhnq is given

Rhnq = Yq+

QqhnλqYq2

2(1− βhn)

. (56)

Load from RDBu to RDBr: The traffic load from RDBu to RDBr includes the

R-fre-mis-response message, and thus the probability for the query rate is

Qqur = kβφ ϕ Nq

. (57)

The load also includes the propagation messages sent from the foreign region with RDBu.

Then the load βuris obtained

βur = QqurλqYq+ φλuFuYu, (58)

and the average query response time is given

Rurq = Yq+

QqurλqYq2+ φλuFuYu2

2(1− βur)

. (59)

Load from RDBu to RDBnr: The traffic load from RDBu to RDBnr is caused only by the

N-fre-response message. The load βun can be derived directly

Qqun = sγ φ Nq

, (60)

(18)

Figure 9. Query response times vs. query rates for various φs. and the average query response time Runq is given

Runq = Yq+

QqunλqYq2

2(1− βun)

. (62)

Finally, we combine the above conditional terms to derive the average query response time

TqMR. TqMR = PuqTuq+ Q q uh(R q uh+ τ) + P q hThq + Qq hu(R q hu+ τ) + P q r Trq+ P q nTnq + Qq rh(R q rh+ τ) + Q q nh(R q nh+ τ) + Qq hr(R q hr+ τ) + Q q hn(R q hn+ τ) +Qq ur(Rurq + τ) + Qqun(Runq + τ) . (63) 4. Numerical Results

In this section, we present the performance results by comparing the average query response time of the two replication strategies. The results are shown from Figures 9 to 14, where the SR curve represents the single-replica model, and the MR curve represents the multiple-replica model. Tq is the average query response time.

We assumed that the processing times for queries and updates are exponentially distributed with means Xq = 5 ms and Xu= 10 ms in our performance study. The transmission times for

queries, updates and downloads on the network links were also assumed to be exponentially distributed with means Yq = Yu = 6.25 ms and Yd = 253 ms, respectively. The average

transmission delay τ on the network links is 50 ms. These assumptions were also used in [11]. Figure 9 reveals the average query response times of the two models with various φs. When φ is large (more than about 0.414), and β exceeds a threshold value, the average query response time using the MR model is smaller than the time using the SR model. It is also true that when φ is small, no matter the value β is. But if φ is large and β is less than the threshold,

(19)

Figure 10. Query response times for various miss rates.

Figure 11. Query response times for different Fus.

the MR model becomes worse. The phenomenon is also consistent with an intuitive result that the MR model performs well in most situations. However, there exists a worst case situation, when a mobile user visits at a foreign region, propagating replicas to other foreign regions with small query rates for the user will enlarge the query time. The worse case may happen possibly because the query rates in foreign regions are always small. Moreover, we find that the query response time of the MR model decreases much faster as β increases slightly if φ is large. This result shows that if the query rates of other foreign regions with replicas are large, the benefit of the MR model will be obvious.

Figure 10 illustrates the average query response times with various miss rates for querying in foreign regions with replicas. The miss rate is caused by the propagation delay. As one would expect, the MR model always performs well if the miss rate is small.

Figure 11 describes a comparison of the average query response times with different Fus

in the MR model. We find Tq increases as Fu increases. Fu is the propagating rate that can

(20)

Figure 12. Impacts of traffic loads on the number of replicas.

Figure 13. Impacts of query rates on the number of replicas.

mobile host moves fast, the propagating load will increase; thus, the average query response time also increases. Additionally, the figure also shows that if Fuis large, an increase in k may

make Tqincrease. This phenomenon indicates that k cannot increase unlimitedly. That is, the

propagation overhead will be obvious when k or the speed of the mobile hosts increases. Figure 12 shows the impacts of traffic loads on MR. We find that the query response time increases as the traffic load increases. The traffic load is directly proportional to the propa-gation rate if the load does not get saturated. Hence the query time is low for low mobility users. Besides, we find that the best k, which minimizes the query time, decreases as the traffic load increases. As one would expect, the higher the traffic load, the lower the best number of replicas should be. Figure 13 depicts the query times as a function of the number of replicas for various βs. It shows that the best k decreases as the query rate β increases. If k is small, an increase in the query rate β makes the query time Tq decrease; however, if k is large, an

(21)

Figure 14. Query response times for different Nqs.

will be reduced by an increase in the traffic load, which is caused by an increase in the query rate β from the replication sites. In other words, the number of replicas is also bounded by the query rates of foreign regions with replicas. From Figures 11, 12 and 13, we can conclude that the number of replicas cannot enlarge arbitrarily, it should be bounded according to the total traffic load ρ, the query rate β, and the propagating rate Fu.

In Figure 14, the average query response times of two models for different Nqs are

pre-sented. We find that the query time decreases as Nq increases in both strategies. In other

words, the query time is low when the number of queries in a call is large. In SR model, the query time is inversely proportional to Nq. Nevertheless, in MR model if the query rate

β is high, the query time will converge no matter how large the number of queries in a call is. We can conclude that the SR model prefers batch processing. In contrast, the MR model prefers interactive processing for the queries. Moreover, N1

q represents the rate of accessing the frequently updated data; thus, the decrease of Nq will increase the benefit of the partial

replication scheme. Figure 14 shows that the query time will decrease quickly when Nq is

small in the MR model. This result indicates that the MR model will achieve more benefits from partial replication than the SR model.

5. Adaptive Multiple Replication Protocol

The numerical results show that the MR strategy cannot always perform well. First, there is a worse case situation when φ is large and β is small, the average query response time of the MR strategy is larger than that of the SR strategy. Further, the number of replicas cannot be too large to achieve a reasonable query response time. Therefore, we propose an adaptive multiple replication (AMR) protocol based on the MR strategy to solve these problems. The protocol is composed of two components.

The first part of the AMR protocol is to prevent the MR strategy from getting into the worse case situation. Therefore, we designed the first part as follows.

When φ is larger than a threshold value (denoted by Tφ) and β is smaller than another

(22)

mobile user. In other situations, we use the MR strategy to increase the number of replicas.

First, we need to estimate the threshold Tφ. Tφ can be derived using the assumption that

TSR

q is always larger than TqMRno matter how large β is. For example, Tφ is about 0.414 in

Figure 9. Then we derive the threshold Tβ that can be calculated from the Equations (34) and

(83) when TqSR= TqMR. TqSRand TqMRare functions of parameters φ, α, γ , etc. If we measure these parameters, we can obtain Tβ easily. However, the measurement and computation of

these parameters at once are not simple tasks; thus, we suggest that they should be performed periodically. In this manner, the average query response time is equal to the query time of the SR strategy when β is less than Tβ, and equal to the query time of the MR strategy when β is

larger than Tβ.

The second part of the AMR protocol involves avoiding the number of replicas exceeding an optimized value. When the query rate of a foreign region for a callee increases, the database in that region may attempt to replicate the callee’s profile to reduce the query response time. However, an increase in replicas makes the propagating load increase; thus, the query time also increases. Additionally, an increase in the query rate will also increase both the traffic load and the query time; thus, it will reduce the replication benefit. These factors will affect the allowable maximum number of replicas. Therefore, we use a 2-phase methodology com-bining a distributed request scheme and a centralized decision scheme to decide the number of replicas. We describe the second part of the protocol including the two phases as follows.

− Phase one: The distributed request scheme. If the call rate of a foreign region for a callee is high, the replicated database of the region will send a request message to RDBu to

require attaching a replica of the user profile. If the request is accepted, the RDBnr of

that region becomes an RDBr.

− Phase two: The centralized decision scheme. The replicated database (RDBu) of the

for-eign region where a callee visits will estimate the allowable maximum number of replicas (denoted by Tk) for the callee’s profile according to the total traffic load. When RDBu

receives a request message, it compares the number of replicas for the profile and the Tk.

If the number of replicas is less than Tk, the RDBu will allow the profile propagating to

the requesting region; otherwise, the RDBuwill reject the request. Additionally, when the

total traffic load increases, the RDBu can decide to discard a replica from other foreign

regions if the number of replicas is larger than a newly estimated Tk.

6. Conclusions

We modeled the single-replica (SR) and multiple-replica (MR) strategies of mobility data-bases for PCS networks. The two strategies are based on a partial replication scheme, and a primary copy method is our assumption to maintain the consistency of all replicas. In the SR strategy, only one replica is created along with the movement of the callee, while in the MR strategy, the replica allocation is dynamic according to the query rate of the callers. We compared the two strategies in a global mobility environment in which the query rates of other service areas for a callee may be high.

The numerical results show some important phenomena in our performance study. First, the MR strategy prefers interactive processing for the call queries, whereas the SR strategy prefers batch processing. Therefore, we can easily design an interactive mobile system using the MR strategy. Moreover, we find that the MR strategy will get the benefit of partial replication more

(23)

than the SR strategy does. Second, the MR strategy performs well than the SR strategy in most situations except that the probability of a mobile user visiting a foreign region is high and the query rates from other foreign regions are low. The worse case situation for the MR strategy may possibly happen for some callees. The third phenomenon is that the number of replicas in the MR strategy should be compact in order to achieve a reasonable query response time. This is because the propagation overhead will overtake the replication benefit which reduces the traffic load for queries and updates. Consequently, a mechanism is necessary for controlling the number of replicas for a callee. The decision for the number of replicas depends upon the traffic load, the propagating load and the query rate. We proposed an adaptive multiple replication (AMR) protocol to solve the above problems. The AMR protocol measures the distribution of the callee and the query rates of other service areas for the callee in choosing the SR strategy or the MR strategy. This protocol combines a distributed request scheme and a centralized decision scheme to obtain the optimized number of replicas.

References

1. I.F. Akyildiz, J. McNair, J.S.M. Ho, H. Uzunalioglu and W. Wang, “Mobility Management in Next-generation Wireless Systems”, Proceedings of the IEEE, Vol. 87, No. 8, pp. 1347–1384, 1999.

2. B.R. Badrinath and T. Imielinski, “Replication and Mobility”, in Proceedings of 2nd IEEE Workshop on Management of Replicated Data, Monterey, CA, November 1992, pp. 9–12.

3. B.K. Harumoto, M. Tsukamoto, S. Nishio and T. Takine, “On Strategies for Allocating Replicas of Mobile Databases”, IEICE Trans. Inf. and Syst., Vol. E81-D, No. 1, pp. 37–46, 1998.

4. B. Gabelgaard, “The (GSM) HLR – Advantages and Challenges”, in Proc. of Third IEEE Int. Conf. on Universal Personal Communications, Sept. 1994, pp. 335–339.

5. D.J. Goodman, G. Pollini and K.S. Meier-Hellstern, “Network Control for Wireless Communications”, IEEE Commun. Mag., pp. 116–124, 1992.

6. Y. Huang, P. Sistla and O. Wolfson, “Data Replication for Mobile Computers”, in Proceedings of the ACM-SIGMOD, May 1994, pp. 13–24.

7. Y. Huang and O. Wolfson, “Object Allocation in Distributed Databases and Mobile Computers”, in IEEE Proceedings of the 10th International Conference on Data Engineering, Feb. 1994, pp. 20–29.

8. G.C. Lee, T.-P. Wang and C.-C. Tseng, “Resetting Forwarding Pointers with Delay Propagation Schemes in a Distributed HLR Environment”, IEICE Transactions on Communications, Vol. E84-B, No. 4, 2001. 9. R. Jain, Y.B. Lin, C. Lo and S. Mohan, “A Caching Strategy to Reduce Network Impacts of PCS”, IEEE

JSAC, Vol. 12, pp. 1434–1444, 1994.

10. L. Kleinrock, Queueing Systems – Volume I: Theory, Wiley-Interscience, New York, U.S.A., 1975. 11. K.K. Leung and Y. Levy, “Global Mobility Management by Replicated Databases in Personal

Communica-tion Networks”, IEEE JSAC, Vol. 15, No. 8, pp. 1582–1596, 1997.

12. K.K. Leung, “An Update Algorithm for Replicated Signaling Databases in Wireless and Advanced Intelligent Networks”, IEEE Trans. on Computers, Vol. 46, No. 3, pp. 362–367, 1997.

13. Y.B. Lin, “Failure Restoration of Mobility Databases for Personal Communication Networks”, Wireless Networks, Vol. 1, No. 3, 365–372, 1995.

14. Y.B. Lin and I. Chlamtac, Wireless and Mobile Network Architectures, John Wiley & Sons, 2000.

15. Y.B. Lin, “Overflow Control for Cellular Mobility Databases”, IEEE Transactions on Vehicular Technology, Vol. 49, No. 2, pp. 520–530, 2000.

16. Y.B. Lin, “Eliminating Overflow for Large-Scale Mobility Databases in Cellular Telephone Networks”, IEEE Transactions on Computers, Vol. 50, No. 4, pp. 356–370, 2001.

17. Mohan, S. and Jain, R., “Two User Lacation Strategies for Personal Communications Services”, IEEE Personal Comunications, Vol. 1, No. 1, pp. 42–50, 1994.

18. O. Wolfson, S. Jajodia and Y. Huang, “An Adaptive Data Replication Algorithm”, ACM Transactions on Database Systems, Vol. 22, No. 2, pp. 255–314, 1997.

(24)

19. A. Zaslavsky, M. Faiz, B. Srinvasan, A. Rasheed and S. Lai, “Primary Copy Method and Its Modifications for Database Replication in Distributed Mobile Computing Environment”, in IEEE 15th Symposium On Reliable Distributed Systems, 1996, pp. 178–187.

Gwo-Chuan Lee is currently a Ph.D. candidate in the Department of Computer Science and

Information Engineering at National Chiao-Tung University, Hsin-Chu, Taiwan. He received his B.Sc. degree in computer science and information engineering from National Chiao-Tung University, Hsin-Chu, Taiwan, in 1988; M.Sc. degree in computer science from National Tai-wan University, Taipei, TaiTai-wan, in 1990. His research interests include mobile computing, wireless Internet, and computer networks.

Tsan-Pin Wang is currently an associate professor in the Department of Computer

Sci-ence and Information Management at ProvidSci-ence University, Shalu, Taiwan. He received the B.Sc. degree in applied mathematics; M.Sc. and Ph.D. in computer science and information engineering, from National Chiao Tung University, Taiwan, ROC, in 1990, 1992, and 1997, re-spectively. From 1992 to 1993, he was a system engineer in the R&D Division of Taiwan NEC Ltd. From 1997 to 2001, he was an assistant professor at Providence University. His research interests include mobile computing, mobile communications, and computer networks.

(25)

Chien-Chao Tseng is currently a professor in the Department of Computer Science and

Information Engineering at National Chiao-Tung University, Hsin-Chu, Taiwan. He received his B.Sc. degree in industrial engineering from National Tsing-Hua University, Hsin-Chu, Taiwan, in 1981; M.Sc. and Ph.D. degrees in computer science from the Southern Methodist University, Dallas, Texas, U.S.A., in 1986 and 1989, respectively. His research interests include mobile computing, and wireless Internet.

數據

Figure 1. Replicated HLRs database systems.
Figure 2. Traffic of registrations/downloads when a mobile user visits a foreign region in SR strategy.
Figure 4. Traffic of queries/responses when a mobile user visits the home region in SR strategy
Figure 5. Traffic of registrations/downloads and propagations when a mobile user visits a foreign region in MR strategy.
+7

參考文獻

相關文件

zero-coupon bond prices, forward rates, or the short rate.. • Bond price and forward rate models are usually non-Markovian

zero-coupon bond prices, forward rates, or the short rate. • Bond price and forward rate models are usually non-Markovian

In this section we define a general model that will encompass both register and variable automata and study its query evaluation problem over graphs. The model is essentially a

107 Administration of the Foreign Professionals Engaging in Arts and Performing Arts and the Documents Required for Foreign Professionals Engaging in Arts and Performing

Coefficients Extraction from Infant Cry for Classification of Normal and Pathological Infant with Feed-Forward Neural Networks”, Proceedings of the International Joint Conference

Like the governments of many advanced economies which have formulated strategies to promote the use of information technology (IT) in learning and teaching,

In the following we prove some important inequalities of vector norms and matrix norms... We define backward and forward errors in

– The futures price at time 0 is (p. 275), the expected value of S at time ∆t in a risk-neutral economy is..