• 沒有找到結果。

A Novel Mobile Agent Search Algorithm

N/A
N/A
Protected

Academic year: 2021

Share "A Novel Mobile Agent Search Algorithm"

Copied!
4
0
0

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

全文

(1)A No evl Mobile Agent Search Algorit hm W en-Shyen E. Chen. Chun-W u R. Leng and Yao-Nan Lien. Institute of Compu ter Science National Chung-Hsing University Taichung, Taiwan ROC 40227 [email protected]. Departm ent of Compu ter Science National Chengchi University Taipei, Taiwan ROC fleng, [email protected]. Abstract. Intelligent Agent has been shown to be a good approach to addressing the issues of limited capacity and unreliable wireless links in mobile computing. However, before the approach can be commercially viable, a set of management capabilities that support the controls of intelligent agents in a mobile environment need to be in place. Since controls can only be applied after the target agent is located, an e ective agent search algorithm is an indispensable part of the management functions. In this paper, we propose a new algorithm, the Highest Probability First Algorithm, for locating the target agent. The approach makes use of the execution time information to reduce cost and network trac. The execution time of the agent on a server is assumed to be binomial distributed and therefore is more realistic.. Keywords: Mobile Agent, Management, Agent Location, Search Algorithm. 1 Introduction. Compared to the conventional computers with a

(2) xed connection to wired networks, mobile computers have narrow, unreliable connectivity, limited processing power and battery capacity, and have to operate in a dynamic, heterogeneous environment [1, 2]. Intelligent Agent [3, 4, 5, 6] is shown to be promising in addressing the issues of limited capacity and unreliable links of mobile computers. Nevertheless, before an intelligent agent service can be accepted, a high quality and cost e ective agent mobility operation, administration and maintenance (OA&M) system must be in place to guarantee a certain level of service quality. For any control to be applied to the target agent, it needs to be located

(3) rst. Therefore, agent location is an indispensable part of the OA&M. In this paper, we extend the work in [7] and propose a new agent search algorithm, the Highest-ProbabilityFirst search (HPFS) algorithm, that makes use of the execution time information. In the HPFS algorithm, the execution time on a server is assumed. to be binomial distributed [8], which is closer to reality. The derived probability function is shown to be much less complicated and can be adopted by a search agent when being sent to locate the target agent. Although the itinerary of the agent is assumed to be non-branching, the proposed approach can be easily extended to cover the branching cases, as in the timed protocol speci

(4) cation and validation [9, 10]. The rest of the paper is organized as follows. Section 2 describes the Highest-Probability-First search algorithm we propose. Simulation results are presented in Section 3. Concluding remarks and the future research topics will be given in Section 4.. 2 The High est Probability First Search Algorithm 2.1 Location Estim ation. According to the above discussion, the performance of a search algorithm is determined by the time spent on locating the target agent, as well as the network overhead caused by the algorithm. Both evaluation criteria, in fact, are mainly resulted from the number of times that the search agent probes the servers to locate the target agent. Therefore, a strategy of querying to the server with the highest probability among those servers will consequently consume less search time and network overhead than blind search strategies. The following notations are used in evaluating the HPFS. 1. ( 1 2 n ) : an ordered sequence of servers that the target agent will visit. Note that servers i and j can be the same. S ; S ; : : :; S. S. S. 2. [ 0Si 00Si ] : a an estimated service time range that the target agent stays in server i . The range can be determined by selecting the worst (widest) time range collected by experiments. t. ;t. S. 3.. Si : service time of the target agent completing its job at server i ; i.e., 00Si , 0Si . t. Proceedings of the Sixth International Conference on Computer Communications and Networks (ICCCN '97) 1095-2055/97 $10.00 © 1997 IEEE. S. t. t.

(5) 4.. : summation of the service time P that the target agent stays in 1 2 to i ; i.e., i`=1 S` . 5. S0 i : summation of all the minimum service time that P the target agent stays in servers 1 2 to i ; i.e., i`=1 0S` . 6. FSt i : probability of the target agent still running at server i after seconds since the agent is initially delivered to server i . 7. STi : probability that the target agent is currently located at server i , seconds after it was initiated at 1 . Instead of blindly searching for the target agent, the HPFS algorithm sends a probe to a server with the highest probability that the agent might currently stay. If the result of probing is negative, the server with the second highest probability will be the next target. This search strategy will continue until the agent is located. Conclusion of the following theorem provides an ecient way to determine the probability values. Si. T. S ;S. S. t. T. S ;S. S. t. S. t. S. P. S. T. S. Theorem 1 Assume that the service time of an agent. to complete its job on each server is binomial distributed over the time range [t0Si ; t00Si ]. After T seconds since the target agent is initialized in the

(6) rst server T S1 , the probability PS of the agent being located in i server Si is formulated as: tSi  1 X. 00. T PS i. =. Si,1 , TSi0,1 T. , 2TSi,1 j =0 2 t00Si  3 X 1 Si 5 41 , tS 2 i `=0 , 0Si T. j. t. `. t. . . t. (1). S. t. S. t. x. t. `. x. x. S. x. t. `. S. x. x. x. S. S. S. S. T. i. T. S i. i. i. To verify Theorem 1, without loss of generality, we make the assumption that the probability function, say FSi ( ), of the service time on server i is a normaldistribution-like function over the execution time range from 0Si to 00Si . That is, the agent could spend an arbitrary length of time to

(7) nish its work in server i within the time range, but the highest probability of the length of time for the agent to complete its job should be around the mid-point between 0Si and 00Si . The assumption of normal-distribution-like probability function seems to be more practical and reasonable than other distribution function, such as the uniform distribution function. Consequently, the probability function F can be formulated to be a binomial distribution function, which is a discrete function with a shape similar to that of the curvature of a normal distribution function [8]. tSi   0 X Si tSi +` FSi ( ) = 2t1Si (2) `=0 x. 0. Note that tSi is the lower bound of the time interval that the agent will stay in server i . The coecient 0S +` t of a term i in Eq. 2 represents the probability of agent to spend 0Si + seconds to accomplish the work in i . Those which term powers are out of the summation range will be considered to have zero probability. Consequently, Eq. 2 can be simpli

(8) ed as: FSi ( ) = 2t1Si t0Si  (1 + )tSi (3) Eq. 3 is mainly used to depict the length of time that agent requires to complete its work in a server. If the time to deliver the agent from the end of a server i to the start of the next server i+1 is negligible (or the deliver time can be treated as a part of the responsibility to server i ), Considering the probability that the target agent is in server i after seconds from the client sending out the agent to the

(9) rst server, the probability consists of several components. The

(10) rst component is in conjunction with two probability values: the probability that the previous , 1 servers spend all the seconds services time, and the probability that server i will not

(11) nish the job with zero second. According to the results of Eq. 3, probability function of the

(12) rst , 1 servers is the production of each individual server probability functions because all the

(13) rst , 1 servers can be considered as one large system, and each individual server among them is just one step of the whole procedure. Therefore, the probability function of the

(14) rst , 1 servers as a whole can be formulated as. t. i,1 Y k=1. FSk ( ) = TS1i,1 2. x. x. TS0 i,1.  (1 + )TSi,1 x. (4). Then, the coecient of the term T in Eq. 4 represents the probability that the target agent spends exactly seconds in , 1 servers.   Si,1 coef. of T = TS1i,1 (5) , S0 i,1 2 Next, the probability that the target agent will not

(15) nish the work at tserver i in seconds is representedt by the notation FSi . We can describe the function FSi from a di erent point of view: the probability value will be one minus each probability value that the job will be done in less than seconds.  t  X Si FSt i = 1 , 2t1Si (6) , 0Si `=0 Concluding from the the discussion above, as well as in Eqs. 5 and 6, Theorem 1 can be veri

(16) ed from the following formulation. x. T. Proceedings of the Sixth International Conference on Computer Communications and Networks (ICCCN '97) 1095-2055/97 $10.00 © 1997 IEEE. i. T. x. T. S. T. t. t. t. `. t.

(17) T PS i. =. . 1. S. .  TSi,1 "2 # 0  X 1 S i 1 , 2tSi + 0 , Si `=0   1 Si,1 TSi,1 , 1 , S0 i,1  "2 # 1  X 1 Si 1 , 2tSi , 0Si + `=0 +   1 Si,1 , 00Si , S0 i,1  2TSi,1 2 3 t00Si   X Si 41 , t1S 5 2 i `=0 , 0Si Si,1 , TS0 i,1 T. T. away from that server, then we should exclude all the servers that proceed t from the search list. This is based on the assumption that the servers will be visited in sequence. On the other hand, if the target agent has not arrived at t , then all the servers following t in the original execution order will be excluded in the future search for the same reason. The search list will then be sorted according to the servers' corresponding probability values. Since the target agent is still mobile before being located, it is possible that the target agent might \slip through" the search, i.e., the target agent might move to servers excluded from the search list in previous rounds of search. A simple solution is to leave some information at the servers that the search agents have visited and ask the target agent to report its position and status when it arrives at those servers. S. t. `. t. T. T. T t. `. t. 3 Sim ulation Resul ts. T. T. t. T. t. `. t. (7). Note that Eq. 7 is the same as Eq. 1. 2.2 The Highest Probability First Search Algorithm With the results from the previous subsection, we propose to include the following Highest Probability First Search Algorithm in the search agent to locate the target agent.. Highest Probability First Search Algorithm Main f SS = f 1 2 ng. In this section, we present the simulations results and use \number of probes" needed to locate the target agent as a performance measure to compare the basic binary search and the HPFS. In the simulations, we assume that the target agent will visit twenty servers, numbered in sequence form 1 to 20. The service time ranges for the servers are as shown in Table 1. The elapse times range from 1 to 200 in the simulations and the service time range for server 20 is chosen so that it can be a \sink", i.e., the target agent will not go beyond server 20. The values of the simulation results are obtained by taking the average of the results of 1000 runs. Table 1: Service Time Ranges for the Servers. S ; S ; : : :; S. g. PSL = Sort(SS) HPFS (target, SS). Procedure Sort(SS)f Sort SS in decreasing order according to corresponding probability values. g. Procedure HPFS (target, SS)f if (SS = ;) then return NOT FOUND t = First server in PSL Move the Search Agent to t if (target found in t ) then return ( t ) else if ( t has been visited by the target agent) then PSL = Sort (SS - f 1 2 t g) else PSL = Sort (SS - f t t+1 ng) return (HPFS (target, PSL)) S. S. S. S. S. S ; S ; : : :; S. S ;S. g. ; : : :; S. Note that \SS" and \PSL" are global variables. In this algorithm, if the search agent arrives at a server t and

(18) nds that the target agent has moved S. S. S. 0S 00i tS t. S. i. 0S 00i tS t. i. 1 3 8 11 8 17. 2 4 20 12 6 20. 3 6 17 13 3 18. 4 2 10 14 5 14. 5 3 14 15 9 13. 6 7 8 9 10 2 8 7 4 1 6 16 22 20 9 16 17 18 19 20 2 4 2 7 500 11 17 21 28 600. Our goal is to predict with certain accuracy where the target agent is when the elapse time and execution time ranges are given. Therefore, it is of interest to know if the Eq. 1 can show the probability of where the agent is accurately and if the the di erence between the theoretical and simulations results vary with elapse time. Figure 1 that the simulationresults are very close to the theoretical results, with the highest probability all pointing to the same server. Figure 2 shows the comparison of the basic binary search and the HPFS algorithms. As illustrated in the

(19) gure, the basic binary search algorithm needs more. Proceedings of the Sixth International Conference on Computer Communications and Networks (ICCCN '97) 1095-2055/97 $10.00 © 1997 IEEE.

(20) It is expected to generate less probes to locate the target agent. The simulation results match the theoretical results quite well We had made the assumption that the target agent traverse the servers in a predetermined order. However, the path the target agent takes might depend on the real time condition and could be nondeterministic. In addition, the relationship between agent location and agent control functions (how to apply the control function after the target agent is located?) needs to be clari

(21) ed. W e plan to resolve these problems in the future research.. Elapsed Time T=85 1 Theoretic Result Simulation Result. 0.9 0.8 0.7. Probability. 0.6 0.5 0.4 0.3 0.2 0.1 0 0. 1. 2. 3. 4. 5. 6. 7. 8 9 10 11 Server Number. 12. 13. 14. 15. 16. 17. 18. 19. Figure 1: Probability Distribution of the Location of the Agent (Elapse Time = 85). probes to locate the target agent. In addition, the numbers of probes needed vary in a wide range with the elapse time. On the contrary, the expected values of the probes needed for the HPFS algorithm are lower than those for basic binary search and the variation is much smaller. The simulation results match the theoretical results quite well. Consequently, the validity of Theorem 1 can be veri

(22) ed.. W e gratefully acknowledge the help of C.-Y. Lin, Y.-T. Liu, and C.-J. Chu for writing the simulation programs. References [1] G. H. Forman and J. Zahorjan. The Challenges of Mobile Compu ting. IEEE Computer, pages 38{ 47, March 1994. [2] T. Imielinski and B. R. Badrinat. Mobile Wireless Computing: Challenges in Data Managemen. Communication of the ACM, August 1994. [3] M. W ooldridge and N. R. Jennings, editors.Intelligent Agents: Theories, Architectures, and Languages. Springer-Verlag Lecture Notes in AI - vol.. 890, 1995. [4] M. W ooldridge and N. R. Jennings, editors. In-. 6 Basic Binary Search High Probability First Search (Simulation) Expected Value of HPFS 5. telligent Agents II: Theories, Architectures, and Languages. Springer-Verlag Lecture Notes in AI. 4 Number of Probes. Acknowledgm ent. 3. 2. 1. 0 0. 20. 40. 60. 80. 100 120 Elapsed Time. 140. 160. 180. 200. Figure 2: Comparison of the Basic Binary Search and the HPFS.. 4 Conclusion. Agent location is an indispensable part of the management functions needed to support the mobility of intelligent agents. Straightforward agent search algorithms often lead to excessive network trac. In this paper, we have proposed a new agent search algorithm that makes use the execution time information available. The execution time is assumed to be binomial distributed, which is closer to reality. With the probability functions we came up with, the Highest Probability First Search algorithm is then formulated.. - vol. 1037, 1996. [5] N. Jennings and M. W ooldridge. Software Agent. IEEE Personal Communications Magazine, pages 17{20, Janurary 1996. [6] W.-S. E. Ch en and Y.-N. Lien. Intelligent Messaging for Mobile Compu ting over the WorldWide W eb. In Proceedings of the Second Workshop on Mobile Computing, April 1995. [7] Y.-N. Lien and C.-W. R. Len g. On the Search of Mobile Agents. In Proceedings of the 7th IEEE Symp. of Personal, Indoor, and Radio Communications, October 1996. [8] R. Jain. The Art of Computer System Performance Analysis. John Wiley & Sons, Inc., 1991.. [9] F.-J. Lin, P. M. Chu, and M. T. Liu. Protocol Veri

(23) cation Using Reachability Analysis. ACM Computer Communicaiton Review, 17(5):126{ 135, 1987. [10] G. J. Holzmann. Design and Validation of Computer Protocols. Prentice-Hall, 1991.. Proceedings of the Sixth International Conference on Computer Communications and Networks (ICCCN '97) 1095-2055/97 $10.00 © 1997 IEEE.

(24)

參考文獻

相關文件

We focus on this part and propose a search method called pre-selected-pulses replacement method to replace the focused search method in G.729 to reduce the complexity for

Exploring the online reading comprehension strategies used by sixth-grade skilled readers to search for and locate information on the Internet.. Disorientation in hypermedia

At migration or load time, the Roam agent can compare the device requirements from the application components with the target device capabilities and decide the best

Understanding and inferring information, ideas, feelings and opinions in a range of texts with some degree of complexity, using and integrating a small range of reading

Writing texts to convey information, ideas, personal experiences and opinions on familiar topics with elaboration. Writing texts to convey information, ideas, personal

 Promote project learning, mathematical modeling, and problem-based learning to strengthen the ability to integrate and apply knowledge and skills, and make. calculated

Root the MRCT b T at its centroid r. There are at most two subtrees which contain more than n/3 nodes. Let a and b be the lowest vertices with at least n/3 descendants. For such

• We shall prove exponential lower bounds for NP-complete problems using monotone circuits. – Monotone circuits are circuits without