+ All Categories
Home > Documents > LNCS 3739 - Simulating a Finite State Mobile Agent … a...654 VO [6] is a virtual and dynamic...

LNCS 3739 - Simulating a Finite State Mobile Agent … a...654 VO [6] is a virtual and dynamic...

Date post: 18-May-2018
Category:
Upload: truongxuyen
View: 218 times
Download: 3 times
Share this document with a friend
6
W. Fan, Z. Wu, and J. Yang (Eds.): WAIM 2005, LNCS 3739, pp. 651 656, 2005. © Springer-Verlag Berlin Heidelberg 2005 Simulating a Finite State Mobile Agent System Liu Yong, Xu Congfu, Chen Yanyu, and Pan Yunhe College of Computer Science, Zhejiang University, Hangzhou 310027, P.R. China Abstract. This paper analyzes the simulation of Finite State mobile agent, which regards the migration, execution, and searching of the mobile agents as finite states. As the finite state mobile agents are deployed under the virtual organization platform, the corresponding search algorithm in virtual organization is also introduced. The experiments results based on the finite mobile agent’s evaluation model show the finite mobile agents can achieve satisfied performance. 1 Introduction A mobile agent is a program that can move through a network under its own control, capable of navigating through the underlying network and performing various tasks at each node independently [10]. Mobile agents are an effective paradigm for distributed applications, and are particularly attractive in a dynamic network environment involving partially connected computing elements [11]. They locate for the appropriate computation resources, information resources and network resources, combining these resources in a certain host, to achieve the computing tasks. So the mobile agent is the desirable technology for the next generation network applications. While mobile agents have generated considerable excitement in the research community, and also have many prototype systems [8], [9], they have not translated into a significant number of real-world applications. One of the main reasons for this is the lack of work that quantitatively evaluates. The works on the mobile agents performance evaluation have attracted many researchers [2], [3], [4], [1]. Strasser and Schwehm [2] develop a general model for comparing the performance of Remote Procedure Calls (RPC) with the performance of migrating agents. Johansen [4] shows that MAs perform better as the size of the data increase, and as the number of clients increase. More recently, Puliafito et al. [3] used Petri nets to compare the mobile- agent, remote-evaluation and client–server paradigms. David Kotz etc [1] develop an analytical model in wireless network. These papers propose a number of performance benefits that can be gained through the use of MAs. The Grid technology [5] and the VO (virtual organization) technology [6] provide a new approach for the self-organization and self-management among the network nodes, and also provide a powerful platform for the mobile agent. The virtual organization can help the mobile agent to ignore the different OS problem and communication problem, decrease the complexity of the mobile agent greatly. Although the performance analysis on mobile agents has been studied for several
Transcript

W. Fan, Z. Wu, and J. Yang (Eds.): WAIM 2005, LNCS 3739, pp. 651 – 656, 2005. © Springer-Verlag Berlin Heidelberg 2005

Simulating a Finite State Mobile Agent System

Liu Yong, Xu Congfu, Chen Yanyu, and Pan Yunhe

College of Computer Science, Zhejiang University, Hangzhou 310027, P.R. China

Abstract. This paper analyzes the simulation of Finite State mobile agent, which regards the migration, execution, and searching of the mobile agents as finite states. As the finite state mobile agents are deployed under the virtual organization platform, the corresponding search algorithm in virtual organization is also introduced. The experiments results based on the finite mobile agent’s evaluation model show the finite mobile agents can achieve satisfied performance.

1 Introduction

A mobile agent is a program that can move through a network under its own control, capable of navigating through the underlying network and performing various tasks at each node independently [10]. Mobile agents are an effective paradigm for distributed applications, and are particularly attractive in a dynamic network environment involving partially connected computing elements [11]. They locate for the appropriate computation resources, information resources and network resources, combining these resources in a certain host, to achieve the computing tasks. So the mobile agent is the desirable technology for the next generation network applications. While mobile agents have generated considerable excitement in the research community, and also have many prototype systems [8], [9], they have not translated into a significant number of real-world applications. One of the main reasons for this is the lack of work that quantitatively evaluates. The works on the mobile agents performance evaluation have attracted many researchers [2], [3], [4], [1]. Strasser and Schwehm [2] develop a general model for comparing the performance of Remote Procedure Calls (RPC) with the performance of migrating agents. Johansen [4] shows that MAs perform better as the size of the data increase, and as the number of clients increase. More recently, Puliafito et al. [3] used Petri nets to compare the mobile-agent, remote-evaluation and client–server paradigms. David Kotz etc [1] develop an analytical model in wireless network. These papers propose a number of performance benefits that can be gained through the use of MAs.

The Grid technology [5] and the VO (virtual organization) technology [6] provide a new approach for the self-organization and self-management among the network nodes, and also provide a powerful platform for the mobile agent. The virtual organization can help the mobile agent to ignore the different OS problem and communication problem, decrease the complexity of the mobile agent greatly. Although the performance analysis on mobile agents has been studied for several

652

years, to our best knowledge, not much work has yet been done to the mobile agents’ performance evaluation on VO platforms.

In this paper, we present a Finite State Mobile Agent (FS-MA) [7] performance evaluation experiment in the VO platforms, in our work, we focus on quantitative performance evaluation of FS-MA on VO platforms, and propose a framework for investigating the performance characteristics of FS-MA platforms and applications. Experimental results provide us with initial conclusions that lead to further refinement and extension of FS-MA and benchmarks.

2 VO Based FS-MA and MACM

2.1 VO Based Finite State Mobile Agents

In our Finite state mobile Agent model, there is fabric architecture, named virtual organization (VO or group), to support the computation. The basic elements of virtual organization are nodes, which can be PC, PDA, laptop, and other devices that connect via network .The nodes group in virtual, and they can join and leave the group dynamically. The groups are virtually hierarchical, which means the groups can be classified into root-layer, middle-layers and leaf virtual layers. The virtual group based fabric architecture is the platform of the mobile agent migration. By this way, the mobile agent can discovery and move more effective and it also can greatly decrease the mobile agent size when migration.

Finite-state mobile agent is a resource driven mobile agent system. In fact, the mobile agent can be seen as a finite-state machine auto motioning and driven by the resource and data. The FS-MA is a finite state machine driven by the resource and service time. And the migration state between the block state and the serve state will insure that the agent can find and move to another node that takes on enough resource when there is not enough executing resource in the local node.

Fig. 1. Transition Relationship of the Finite State Agent

Y. Liu et al.

Simulating a Finite State Mobile Agent System 653

2.2 Mobile Agent Computation Model (MACM)

In practice, the topology of network is unstable, and the resources in those nodes of network are consumed and regenerated continually. So the executing routes of the mobile agents are different. We use service computing finite state machine to describe the real executing process of the service under the VO [6]. Because the service computing is the executing process of the mobile agent, the service computing finite state machine is also called MACM, mobile agent computing model finite state.

The definition of the MACM-FS establishes upon the virtual origination [6] and the definition is presented as follows:

Mobile agent computation model MACM is an eighttuple

MACM =(R, S, M, Φ , v, E, Λ ,ε ), where R is the node set, S is the finite state

set of the mobile agent, it refers the service process of the agents. S does not include the state of the agent migration Λ and the null state ε . Here, migration state Λ means that the mobile agent starts moving to another node to execute new state; null state ε means the mobile agent does not perform any action (executing and migration), M is the set of all the message operation states for mobile agent. M = {Ms, Ma}, Ms is the state of sending message, Ma is the state of receive message, v∈R is the initial node that the mobile agent has been produced, a mobile agent’s service firstly comes from the node v, and then cycles driven by the finite states, RE ⊂ is the set of final node for the mobile agent, only in the final node the mobile agent can be destroyed and the service ends, Φ , The transition relation, is a finite subset of (R X (S },{ εΛU )) → R:

Φ : R X (S },{ εΛU ) → R, where

(1) To all the Ri, Rj∈R, if Φ (Ri, ε ) = Rj, then Ri = Rj, (2) To all the Ri, Rj∈R, if Φ (Ri, Λ ) = Rj, then Ri ≠ Rj, (3) To all the Ri, Rj∈R, Sk∈S, if Φ (Ri, Sk) = Rj, then Ri = Rj, (4) To all the Ri∈R, if Φ (Ri, Ma) = Ri, then the next transition state relation

is Φ (Ri, Ms) = Ri.

In this computation model the migration state Λ is established by the communication of the nodes in VO. Using the communication algorithm, mobile agent can move from the original node to the destination node efficiently. The state transition and message communication are both implemented by this algorithm.

3 Evaluation of the Finite State Mobile Agent Computation Model

To study MA system performance, one should take into account issues such as: control and state information; the complicate architecture of MA platforms; the variety of distributed computing (software) models applicable to mobile-agent applications; the continuously changing resource configuration of Internet-based systems.

654

VO [6] is a virtual and dynamic hierarchical architecture in which Grid nodes are grouped virtually. Nodes can join the group and leave the group dynamically. The groups are virtually hierarchical, with one root-layer, several middle-layers, and many of leaf virtual groups. Among each leaf group, one (just one) node (called as manger or gateway node) is chosen to form upper-layer groups in the same way, and this way is repeated until to form one root layer group. Gateway nodes will forward the low-layer group’s status information to all the nodes in the up-layer group, and distribute the upper-layer group’s status information to all the nodes in the lower-layer group.

We simulate the VO architecture on PC systems and make it self-grouping dynamically according to Grid size, the number of nodes in Grid and the resources on nodes. Every node can search resources in Grid, deploy FS-MA, and communicate with other node through VO. In fact, the communications are implemented by the group’s gateway node, which is similar to the gateway in TCP/IP protocol.

There are two important factors must be considered carefully when grouping the Grid nodes. One is the distance between the nodes and group manager; the other is the resource distribution among the nodes. In our evaluation model, we use a new concept named Resource Homologies to describe the resource distribution among nodes. Normally, the resource can be viewed as a multiple-dimension vector R

ur, each

dimension in the vector represents one kind of resource. So the Resource Homologies

of the nodes A and B can be defined as | |A BR R−ur ur

.

4 Results

In this section, we present and obtain the simulation results of the previous evaluation models for the FS-MA.

The single agent experiments focus on the agent performance on the measurement of service availability.The agent in the experiments (except Figure 5) is a five-state mobile agent, that means the agent includes five service-executing states and will request resource in the VO platforms at most five times. In the figure 2, the diagram presents the results for 1000 times of the same agent executing in different resources distributions conditions. Here, although the resources are re-distributed and the topology of the VO platform is re-generated each time, the total VO grid size and the nodes number on the VO platform are the same. The results in figure 2 show that the service availability of the agent will grow up with the average state executing time rising, and the resources and nodes distribution cannot make visible influence on the service availability. Figure 3 presents the relation between the average service availability and the average state executing time with different agent size. The results show the agent size has obvious affection on the service availability. The service availability will decrease with the agent size increasing.

As we can see from Figure 4 and Figure 5 the agent total executing time mounts up with the increasing of the average state executing time and the migration times, and also with the augment of agent size.

Y. Liu et al.

Simulating a Finite State Mobile Agent System 655

Fig. 2. service available ratio

Fig. 3. average service available ratio

Fig. 4. average life time

Fig. 5. life time VS migration times

5 Conclusions

In this paper, we introduce an evaluation model of the finite state mobile agent, which the executing, blocking and migration of the agents are treated as a finite state. The model is constructed on the virtual organization based platform and the corresponding search algorithm on that platform is also presented. The evaluable experiments for the single agent and multiple agents are also introduced. The experiments results indicate the finite state mobile agent can achieve stable performance in varied environments.

Future works will consider the agent system performance with more influence parameters, such the group rate of the virtual organization, size of the topology etc. The system workloads, such as the CPU workload, memory workload, and I/O workload, are also included in our future works.

Acknowledgement

This paper is sponsored by National Science Foundation of China (No.60402010) and Zhejiang Province Science Foundation (No.M603169), Advanced Research Project of China Defense Ministry (No.413150804), and partially supported by the Aerospace Research Foundation (No. 2003-HT-ZJDX-13).

656

References

[1] Kotz, D., Cybenko, G., Gray, R. S., Jiang, G., Peterson, R. A. et al.. Performance analysis of mobile agents for filtering data streams on wireless networks. Mobile Networks and Applications, 2002, 7, 163-174

[2] Strasser, M., Schwehm, M.. A performance model for mobile agent systems. In: Proceedings of the International Conference on Parallel and Distributed Processing Techniques and Applications (PDPTA’97), June 1997, Vol.2, 1132-1140

[3] A. Puliafito, S. Riccobene and M. Scarpa, An analytical comparison of the client–server, remote evaluation and mobile agents paradigms, in: Proceedings of the First International Symposium on Agent Systems and Applications and Third International Symposium on Mobile Agents (ASA/MA99) (IEEE Computer Society Press, October 1999).

[4] Johansen, D.: Mobile Agent Applicability. In: Rothermel, K., Hohl, F. (Eds.): Proceedings of the 2nd Int. Workshop on Mobile Agents (MA'98). Lecture Notes in Computer Science, Vol. 1477. Springer-Verlag, Berlin Heidelberg New York (1998) 80-98. 442, 443, 443, 444

[5] Foster, I., Kesselman, C., Tuecke, S.. The anatomy of the grid: enabling scalable virtual organizations. International Journal of Supercomputer Applications, 2001, 15(3).

[6] Huang Li-Can, Wu Zhao-Hui, Pan Yun-He. Virtual and dynamic hierarchical architecture for E-science grid. International Journal of High Performance Computing Applications, Volume 17 Issue 3- August 2003

[7] Liu Yong, Xu Congfu, Wu Zhaohui et al.. A finite state mobile agent computation model. In: Proceedings of Advanced Web Technologies and Applications: the 6th Asia-Pacific Web Conference, APWeb 2004, Hangzhou, China, April 14-17, 2004, 152-157

[8] Object Space. Voyager core package technical overview. http://www.recursionsw.com/ products /voyager/voyager.asp

[9] Lange, D., Oshima, M.. Programming mobile agents in Java - with the Java Aglet API. http://www.cis.upenn.edu/~bcpierce/courses/629/papers/AgletsBook-index.html

[10] Vu Anh Pham and Ahmed Karmouch, Mobile Software Agents: An Overview, IEEE Communication Magazine, July, 1998.

[11] R.Gray, D.Kotz, S.Nog and G.Cybenko, Mobile agents for mobile computing, Technical Report PCS-TR96-2X5, Department of Computer Science, Dartmouth College, Hanover, NH 03755, May, 1996.

Y. Liu et al.


Recommended