Mobile Agent Routing for Query Retrieval Using Genetic Algorithm

Similar documents
Tony White, Bernard Pagurek, Dwight Deugo

Job Shop Scheduling Problem (JSSP) Genetic Algorithms Critical Block and DG distance Neighbourhood Search

International Journal of Digital Application & Contemporary research Website: (Volume 1, Issue 7, February 2013)

ARTIFICIAL INTELLIGENCE (CSCU9YE ) LECTURE 5: EVOLUTIONARY ALGORITHMS

Solving the Traveling Salesman Problem using Reinforced Ant Colony Optimization techniques

SIMULATION APPROACH OF CUTTING TOOL MOVEMENT USING ARTIFICIAL INTELLIGENCE METHOD

MIRROR SITE ORGANIZATION ON PACKET SWITCHED NETWORKS USING A SOCIAL INSECT METAPHOR

Evolutionary Non-Linear Great Deluge for University Course Timetabling

Routing in Dynamic Network using Ants and Genetic Algorithm

Evolutionary Non-linear Great Deluge for University Course Timetabling

AGENT-BASED ROUTING ALGORITHMS ON A LAN

Automatic Programming with Ant Colony Optimization

An Application of Genetic Algorithm for Auto-body Panel Die-design Case Library Based on Grid

Crew Scheduling Problem: A Column Generation Approach Improved by a Genetic Algorithm. Santos and Mateus (2007)

GA-Based Hybrid Algorithm for MBR Problem of FIPP p-cycles for Node Failure on Survivable WDM Networks

Using Genetic Algorithms to optimize ACS-TSP

Dynamic Routing and Wavelength Assignment in WDM Networks with Ant-Based Agents

Ant Algorithms for the University Course Timetabling Problem with Regard to the State-of-the-Art

AN EVOLUTIONARY APPROACH TO DISTANCE VECTOR ROUTING

Artificial Bee Colony (ABC) Optimization Algorithm for Solving Constrained Optimization Problems

Navigation of Multiple Mobile Robots Using Swarm Intelligence

A genetic algorithm for kidney transplantation matching

Grid Scheduling Strategy using GA (GSSGA)

GENETIC ALGORITHM with Hands-On exercise

Network Routing Protocol using Genetic Algorithms

ISSN: [Keswani* et al., 7(1): January, 2018] Impact Factor: 4.116

Genetic Algorithm Performance with Different Selection Methods in Solving Multi-Objective Network Design Problem

Available online at ScienceDirect. Procedia CIRP 44 (2016 )

Genetic Model Optimization for Hausdorff Distance-Based Face Localization

[Jagtap*, 5 (4): April, 2016] ISSN: (I2OR), Publication Impact Factor: 3.785

Tabu search and genetic algorithms: a comparative study between pure and hybrid agents in an A-teams approach

Hierarchical routing in traffic networks

Santa Fe Trail Problem Solution Using Grammatical Evolution

A Web-Based Evolutionary Algorithm Demonstration using the Traveling Salesman Problem

Genetic Algorithm for Network Design Problem-An Empirical Study of Crossover Operator with Generation and Population Variation

AN OPTIMIZATION GENETIC ALGORITHM FOR IMAGE DATABASES IN AGRICULTURE

The Design of Pole Placement With Integral Controllers for Gryphon Robot Using Three Evolutionary Algorithms

Information Fusion Dr. B. K. Panigrahi

1. Introduction. 2. Motivation and Problem Definition. Volume 8 Issue 2, February Susmita Mohapatra

Ant colony optimization with genetic operations

Dynamic Robot Path Planning Using Improved Max-Min Ant Colony Optimization

LOW AND HIGH LEVEL HYBRIDIZATION OF ANT COLONY SYSTEM AND GENETIC ALGORITHM FOR JOB SCHEDULING IN GRID COMPUTING

A genetic algorithm based focused Web crawler for automatic webpage classification

Genetic Algorithms Variations and Implementation Issues

INTERACTIVE MULTI-OBJECTIVE GENETIC ALGORITHMS FOR THE BUS DRIVER SCHEDULING PROBLEM

A Technique for Design Patterns Detection

Task Allocation for Minimizing Programs Completion Time in Multicomputer Systems

Scheduling Mixed-Model Assembly Lines with Cost Objectives by a Hybrid Algorithm

Metaheuristic Optimization with Evolver, Genocop and OptQuest

Solving the Shortest Path Problem in Vehicle Navigation System by Ant Colony Algorithm

Abstract. 1 Introduction

Heuristic Optimisation

ANT COLONY OPTIMIZED ROUTING FOR MOBILE ADHOC NETWORKS (MANET)

Lazy Agent Replication and Asynchronous Consensus for the Fault-Tolerant Mobile Agent System

MTU Based Dynamic Routing Using Mobile Agents

Genetic Algorithm for Dynamic Capacitated Minimum Spanning Tree

An Evolutionary Algorithm for the Multi-objective Shortest Path Problem

Research Article Path Planning Using a Hybrid Evolutionary Algorithm Based on Tree Structure Encoding

International Journal of Information Technology and Knowledge Management (ISSN: ) July-December 2012, Volume 5, No. 2, pp.

Solving ISP Problem by Using Genetic Algorithm

The Study of Genetic Algorithm-based Task Scheduling for Cloud Computing

COMBINING NEURAL NETWORKS FOR SKIN DETECTION

A Binary Model on the Basis of Cuckoo Search Algorithm in Order to Solve the Problem of Knapsack 1-0

DETERMINING MAXIMUM/MINIMUM VALUES FOR TWO- DIMENTIONAL MATHMATICLE FUNCTIONS USING RANDOM CREOSSOVER TECHNIQUES

Evolutionary Mobile Agents

A New Selection Operator - CSM in Genetic Algorithms for Solving the TSP

New Genetic Operators for Solving TSP: Application to Microarray Gene Ordering

A NOVEL APPROACH FOR PRIORTIZATION OF OPTIMIZED TEST CASES

Hybrid of Genetic Algorithm and Continuous Ant Colony Optimization for Optimum Solution

Selection of Optimal Path in Routing Using Genetic Algorithm

Revision of a Floating-Point Genetic Algorithm GENOCOP V for Nonlinear Programming Problems

The movement of the dimmer firefly i towards the brighter firefly j in terms of the dimmer one s updated location is determined by the following equat

The Influence of Run-Time Limits on Choosing Ant System Parameters

A Taguchi Approach to Parameter Setting in a Genetic Algorithm for General Job Shop Scheduling Problem

TESTING A COGNITIVE PACKET CONCEPT ON A LAN

Comparison Study of Multiple Traveling Salesmen Problem using Genetic Algorithm

ANANT COLONY SYSTEMFOR ROUTING IN PCB HOLES DRILLING PROCESS

Mobile Robots Path Planning using Genetic Algorithms

Radio Network Planning with Combinatorial Optimisation Algorithms

A Genetic Algorithm Applied to Graph Problems Involving Subsets of Vertices

Fast Efficient Clustering Algorithm for Balanced Data

Hybridization of Genetic Algorithm and Linear Programming for Solving Cell Formation Problem with Alternative Process Routings

A COMPARATIVE STUDY OF FIVE PARALLEL GENETIC ALGORITHMS USING THE TRAVELING SALESMAN PROBLEM

Solving A Nonlinear Side Constrained Transportation Problem. by Using Spanning Tree-based Genetic Algorithm. with Fuzzy Logic Controller

A GENETIC ALGORITHM APPROACH TO OPTIMAL TOPOLOGICAL DESIGN OF ALL TERMINAL NETWORKS

An Approach Using Ant-like Agents. Alice Forehand Robert Pienta

C 1 Modified Genetic Algorithm to Solve Time-varying Lot Sizes Economic Lot Scheduling Problem

Lamarckian Repair and Darwinian Repair in EMO Algorithms for Multiobjective 0/1 Knapsack Problems

Investigation of Simulated Annealing, Ant-Colony and Genetic Algorithms for Distribution Network Expansion Planning with Distributed Generation

Using implicit fitness functions for genetic algorithm-based agent scheduling

Automated Lesion Detection Methods for 2D and 3D Chest X-Ray Images

Adaptive Crossover in Genetic Algorithms Using Statistics Mechanism

Solving Sudoku Puzzles with Node Based Coincidence Algorithm

Adhoc Network Routing Optimization and Performance Analysis of ACO Based Routing Protocol

A Combined Meta-Heuristic with Hyper-Heuristic Approach to Single Machine Production Scheduling Problem

The Continuous Genetic Algorithm. Universidad de los Andes-CODENSA

Genetic Algorithm for Dynamic Capacitated Minimum Spanning Tree

Optimal Reactive Power Dispatch Using Hybrid Loop-Genetic Based Algorithm

MINIMAL EDGE-ORDERED SPANNING TREES USING A SELF-ADAPTING GENETIC ALGORITHM WITH MULTIPLE GENOMIC REPRESENTATIONS

Models and Algorithms for Shortest Paths in a Time Dependent Network

Transcription:

1 Mobile Agent Routing for Query Retrieval Using Genetic Algorithm A. Selamat a, b, M. H. Selamat a and S. Omatu b a Faculty of Computer Science and Information Systems, Universiti Teknologi Malaysia, 81310 UTM Skudai, Johor, Malaysia. Tel.: 6-07-5532070 Fax: 6-07-5565044 E-mail: aselamat@fsksm.utm.my, hafiz@fsksm.utm.my b Division of Computer and Systems Sciences, Graduate School of Engineering, Osaka Prefecture University, Sakai, Osaka, 599-8531, Japan. Telephone: +81-722-54-9278,Fax: +81-722-57-1788 E-mail: omatu@cs.osakafu-u.ac.jp ABSTRACT Mobile agents often have a task to collect data from several predefined sites. This should be done in an efficient way by minimizing the elapsed time. Usually these agents only know the list of sites but not the distances between them. This paper proposes a method to minimize a network routing time taken by the mobile agents to collect information from different sites using genetic algorithm (GA). The mobile agents repeat travelling over short routes and avoid longer ones. Mobile agents for query retrieval have used the GA to select the best routes that minimize the query retrieval time. The result shows that the proposed method provides good time minimization in retrieving the query results by the mobile agents based on different GA parameters. Keywords Mobile agent, query retrieval, genetic algorithm, network routing. 1.0 INTRODUCTION The introduction of mobile agent in the field of distributed computing has proven useful where the mobile agents will roam the networks to search for information requested by the users. The mobile agents will also cooperate with other agents to accomplish the assigned tasks. There are four main properties belonging to mobile agents such as intelligence, communication, autonomy, and mobility. Maes et al., (1997) have described each of these properties. The biological insects have inspired most of the research related to agent based network routing and their colonies as described by Schoonderwoerd et al., (1997). It relies on the principles that individual insects will perform a simple behaviour while the collective communities of these insects will perform complex problem solving capabilities. A research has been conducted in mapping the biological insects to the network routing management by using mobile agents. These agents are represented as artificial agents that traverse the network to collect specific information from the designated hosts. They will visit these hosts and coordinate with other agents to accomplish the assign tasks on behalf of users. They will also make several decisions to adapt their behavior according to the current environment in which they are currently reside. Many researchers have investigated the adaptations of mobile agents for network routing. For example, Sum et al., (2003) have proposed a method to reduce the number of agents to be used to retrieve the information from the Internet that will minimize the routing time taken by the mobile agents. Kashiwazaki et al., (2002) have proposed an adaptive routing algorithm for network routing by using a rule-based method. Chen et al., (1997) have proposed a method to reduce the cost and network traffic used by mobile agents to retrieve information from the internet, namely, the highest probability first search (HPFS) algorithm. The HPSF has been used to locate the agent that has been dispatched to the Internet to collect the required information. However, there is a problem with the HPSF where the control function of agents after the target object has been located has not been discussed. Park, (2003) has analyzed the performance migrations of mobile agents from one host to another. However, the mobile agent routing mechanism has not been investigated. In this paper, a network routing by mobile agents for query retrieval using a genetic algorithm (GA) is proposed. The agent repeats traveling over short routes and avoids longer ones. The GA approach for selecting the best routes has been applied to the mobile agents technology. We have applied the route selection of query retrieval by mobile agents in the Mobile Agent Search System (MaSS) (Selamat et al., (2002)). The result shows that the proposed method provides good time minimization in retrieving the query results by the mobile agents based on different GA parameters. This paper is organized as follows: The query retrieval using mobile agent is discussed in Section 2. The MaSS architecture is described in Section 3. The network routing using the GA applied to the MaSS search agent is discussed in Section 4. The experiments and results of

2 proposed network routing method with different parameters are discussed in Sections 5 and 6. The conclusions are described in Section 7. 2.0. QUERY RETRIEVAL USING MOBILE AGENTS The mobile agent technology for prefetching the results from the search engines in the MaSS is shown in Figure 1 and 2 (see Appendix). The term prefetching means that our mobile agents were used to retrieve the URL datasets that exist in the search engines databases and store them in the local database servers. The process has been executed during night-time by employing the activation and deactivation functions that exist in our mobile agent system. Activation is a process of activating the mobile agent to start retrieving the search engine databases based on specific queries. Also the activation time was set to 1-hour where in each hour, the mobile agent will retrieve the query results from the designated search engines. If the search query result is new, then it will be added to the local database, otherwise, it will be discarded. A deactivation is a process to stop the mobile agent from collecting the new search results, which will be determined by the user. Further description on the MaSS for query retrieval approach is described in the next section. 3.0 THE MASS ARCHITECTURE The Mobile Agent Search System (MaSS) was developed to support retrieval query results from a few numbers of search servers and its architecture is shown in Figure 2. The architecture consists of a MaSS client, a MaSS server, and a collection of the local prefetch (LP) servers. The algorithm used to select the best routes that minimizes the query retrieval time by mobile agents is shown in Figure 3. Figure 2 represents the detail architecture of the query retrieval using the MaSS. Further description on each component of the MaSS is described as follows: Save this route as a candidate Send the MaSS search agent to the LP servers Start timer for routing algorithms Is a suitable route found? Time out? Choose best route from routing candidates Figure 3: The algorithm that has been used to select a suitable route by the MaSS search agent in order to collect the query results from the LP servers. 3.1. The MaSS client The MaSS client comprises of the MaSS client agent (W) and a simple user interface. A user interface is used as a medium for a user to interact with the MaSS. 3.2. The MaSS client agent A user will enter a search keyword on the query form in the HTML browser. The MaSS client agent (W) will send a request to the MaSS server agent (X) in order to get the query search results. 3.3. The MaSS server The MaSS server comprises of the MaSS server agent (X) and the MaSS search agent (Y). Further descriptions on each of them are as follows: 3.3.1. The MaSS server agent The MaSS server agent (X) is a stationery agent. Upon receiving request from the MaSS client agent (W), the user's id will be checked at this stage. Then the MaSS server agent will delegate the search tasks to the MaSS search agent (Y). After receiving the search results from the MaSS search agent, the MaSS server agent will rank them. The ranked search results will be stored into the MaSS server database (SD) before returning them to the MaSS client agent to be presented to the user. 3.3.2. The MaSS search agent When receiving a query request from the MaSS server agent (X), the MaSS search agent (Y) will start to mobile to a collection of local prefetch servers as shown in Figure 2. Then it will communicate with the local agents at each of the hosts at the collection of the LP servers A, B, and C. At host 1, the MaSS search agent will ask the local agent about the query that is requested by the MaSS server agent. The query results will be given to the MaSS search agent by a local agent. The same process will be repeated at hosts 2, 3,,14 with different local agents. Once the tasks have been completed, the MaSS search agent (Y) will return home and pass the search results to the MaSS server agent (X). 3.4. A collection of LP servers Route good enough? Accept connection Route exists? Refused connection The operational architecture of the MaSS in retrieving the search results from the collection of LP servers is shown in Figure 2. The W send and W recv are the time taken to send and receive the query results from the MaSS client agent (W) to the MaSS server agent (X). The LP servers consist of a local Yahoo database server (host 1), a local AltaVista database server (host 2), a local HotBot database server (host 3), etc. The idea of LP

3 server is to store the query results locally instead of searching them from the World Wide Web. They will reduce the time of searching and retrieving the query results by the MaSS search agent (Y). The LP servers will send their local agents to roam the WWW and collect the search results from designated search engines and store the query results in a local database (LD) at hosts 1, 2,, 14. The process of removing the broken and duplicated links, stemming, and stopping will take place before storing them into a local database. This is performed in a night-time using activation and deactivation function that exist in the local agents. 4.0 NETWORK ROUTING BY MOBILE AGENTS USING GA In order to retrieve the query results in an optimal time, the MaSS search agent has applied the GA approach for route selection in order to minimize the query retrieval time as shown in Figure 4. Further formulation of the route optimization is as follows: Min Qrt(route) s.t. Delay(route) MaxDelay (1) where Qrt(route) is the query retrieval time taken to retrieve the query results, route is the paths that have been used by the MaSS search agent (Y) to send and retrieve the results from the LP servers. Delay(route) is the time constraint due to network bottleneck. The operational process of the MaSS search agent in using GA for selecting an optimal route is shown in Figure 4. MaxDelay is the maximum time delay applied to the path used by the MaSS search agent to retrieve the query results. Initialize the first generation of solutions Evaluate the fitness of each solution Min. number of generation (k) <= 300? or best solution is illegal? or ChangeRate(k) >= 90%? Selection operation ChangeRate(k) >=90% or the Min. number of generation (k) <= 300? Mix past solution including the web proxy server as shown in Figure 1. The route from the MaSS Server to the web proxy server can be represented as [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15]. If the route does not exist then a value of 0 is included to the route such as [1 2 3 4 5 6 7 8 9 10 0 0 0 0 0]. 4.2. Population initialization We can randomly determine how many nodes the route will pass through and randomly determine which node will be in the route and the sequence of nodes of the route. However, there will be some solutions that may violate constraint of delay connectivity. A penalty method was used to deal with these constraints. For those routes that do not exist, a very large delay value was assigned to them. For those routes that violate the delay constraint, a penalty was added to their cost. The following expression to evaluate the weighted cost of those illegal routes was employed in the algorithm. It is given by Qrt(route) = Cost(route) + (α + Delay(route)) (2) where Qrt(route) is the weighted query retrieval time for a selected route as described at the beginning of this section, α is the penalty constraint if the route does not exist, e.g., α=1,2,3,,10, and Cost(route) is the function that evaluates the total cost of the links that the route may pass through. The details of Cost(route) and Delay(route) are shown in Table 1 and 2 (in Appendix). 4.3. Fitness evaluation Fitness of the solutions is proportional to the chromosomes survivability during the GA operation where the good values are selected and the bad values are discarded. In this study, the fitness of solutions was normalized to 0 Fitness(route) 1 by the following expression: Costs ( route ) Fitness ( route ) = (3) TotalCosts ( route ) + MaxDelay Crossover operation Mutation operation set the best solution to this computation Evaluate the fitnesses of new generation where the Costs(routes) has been described in previous paragraph and the TotalCosts(routes) is the sum of Costs(routes) for all populations at generation k. The TotalCosts is given by Figure 4: The GA used to select a suitable route by the MaSS search agent. 4.1. Encoding of the GA The encoding of the GA that has been used by the mobile agents to select the optimal route in retrieving the query results is shown in Figure 4. The path representation approach was chosen to encode a route due to its easy implementation. There are 15 LP servers i k = = TotalCosts( route) Costs( route). (4) i= 1 For the first 30 generations, the Fitness(route) value was adjusted when the Fitness(route) 0.005 to Fitness(route) = 0.005 to prevent premature efficiency.

4 4.4. Selection operation In order to keep the good solutions and discard the bad solutions at the same time, two selection operators have been used in the algorithm. First, the fitness of all solutions was added by generating number randomly between zero and the total value of fitness. Second, the fitness value was added on each of the solutions until the value is greater than the current fitness value of each solution. Then the highest fitness value among the solutions will be selected. 4.5. Crossover operation In this paper, the traditional one-point crossover method is used. Firstly, a certain point of the array was determined and swap the part before and after the cross point to generate two new solutions. However, because the number of nodes the routes may pass through is not fixed, it is difficult to determine a fixed crossover point. So, a new dynamic crossover point method was assigned such as [((A+B)/4 )] where A and B are the number of nodes that the two routes will pass through; respectively, and the operator [] is the rounding function. For example, two routes before the crossover operations are [1 2 3 4 5 0 0 0 0 0 0 0 0 0] and [6 7 8 0 0 0 0 0 0 0 0 0 0 0]. According to this procedure [((A+B)/4 )] after crossover so that [1 2 8 0 0 0 0 0 0 0 0 0 0 0] and [6 7 3 4 5 0 0 0 0 0 0 0 0 0] were obtained. In the proposed approach, only part of the population will exercise the crossover operation. 4.6. Mutation operation A solution has been randomly chosen among the population and the solution was changed slightly to generate a new solution. In this way, there are some chances to find better solution that cannot be found by only crossover operation. 4.7. Repair operation During crossover and mutation operations, illegal representation of route may be generated because duplicated elements (node) may appear in the same route. In the proposed algorithm, those duplicated nodes were deleted that bring high cost to the route. 4.8. Finding route efficiently and dynamically Although GA can be used to search in large solution space and obtain an optimal solution, it may take a lot of time to coverage to the optimal solution. In some cases, GA can only find some other sub optimal solution. In practice, usually a sub optimal solution is sought, which, however, is close to the optimal one. So, in this approach, a combination of conditions was used to determine when to stop the algorithm's computation. The basic idea is as follows: After a minimum number of k generations (i.e., k 300), if the algorithm has found a feasible solution and has made no improvement for a specific period of time, then stop. In the proposed algorithm, the improvement is presented by the coverage cost rate of the best solution of certain generation. This change rate is evaluated as follows, Costs ( k 1) ChangeRate ( k ) = 100 (5) Costs ( k) where the cost of the best solution of that generation changes at k-th step and ChangeRate(k) is the average change rate of cost at k-th step. Once this value is greater than a certain value (i.e., ChangeRate(k) 90%), then stop the GA computation. The flow of the GA process for a route selection by the MaSS search agent applied in the MaSS is shown in Figure 3. 5.0 EXPERIMENTS The experiments and the performance parameters of mobile agent using the GA routing have been conducted in a local area network (LAN) as shown in Figure 1 and 2. In this figure, only the nodes of interest (i.e., access nodes or edge nodes) and their interconnections are represented. In the following the cost and delay of links between two nodes at certain period time are assumed given. If there are no links exist between nodes or bandwidth of the link cannot support the traffic request between the MaSS server and the web proxy server, a large delay value (i.e., 999) is assigned to that link. The objective of the experiment is to find the route from the MaSS server to the web proxy server that has the lowest cost and the delay is less than the maximum delay requirement. The cost matrix and the delay matrix are given in Table 1 and 2 respectively. In these tables, element (i,j, i j), is the Cost(delay) from node i to node j where i, j [1,2,,3,,15], element (i,i) is the Cost(delay) from the MaSS server to node i, element (i, 15) is the Cost(delay) from node i to the web proxy server. The upper-bound requirement of time delay (MaxDelay) is assumed to be 25 times in this study. The parameters of the GA are shown in Table 3. Table 3: Genetic algorithm parameters. Items Run-1 Run-2 Run-3. of populations 320 320 320. of genomes 14 14 14 Crossover rate 0.85 0.85 0.85 Mutation rate 0.7 0.5 0.24. of generations 420 420 420

5 6.0 EXPERIMENTAL RESULTS The results based on three runs, which are shown in Figure 5,6,7, and 8 respectively. The costs of Run-1 is better than Run-2 and Run-3 as shown in Figure 8. Also, the parameters that affect the populations size and generations are analyzed and shown in Figure 5, and the effect of mutation rate with the generations size as shown in Figure 6. Furthermore, the effect of the cost values and the generations are also shown in Figure 8. The mutation rates of 0.1 and 0.7 reduce the routes costs taken by the MaSS search agent when requesting and retrieving the query results from the LP servers as shown in Figure 6. However, when the effects of costs are compared with the k generations as shown in Figure 8, the mutation rate of 0.7 in Run-1 performs better compared with the mutation rates of 0.5 and 0.24 in Run- 2 and Run-3, respectively. This is due to the network bottleneck that occurs while the MaSS search agent is retrieving the query results from the LP servers. The parameters used in Run-1 provide a good time minimization in retrieving query results by mobile agents as shown in Figure 7. As there are 15 hosts in the local prefetch (LP) servers, the time used to retrieve query results can be significantly long if some of the hosts serves many agents at one time. In the experiments, the minimum time to retrieve query results is 125 seconds by using GA parameters in Run-1, 180 seconds in Run-2, and 200 seconds in Run-3, respectively. Time delay (seconds) 700 600 500 400 300 200 100 0 0 100 200 300 400 500 generation Run-3 Run-2 Run-1 Cost 0.50 0.40 0.30 0.20 0.10 0.00 0 200 400 600 800 Population size Figure 7: The optimal time to retrieve query results is 125s by using GA parameters in Run-1 Cost 50 40 30 20 Figure 5: The effect of the size of chromosome pool on the performance of the proposed algorithm. 10 0 1 6 11 16 21 26 31 36 41 Generation Run-1 Run-2 Run-3 Cost 0.350 0.300 0.250 0.200 0.150 0.100 0.050 0.000 0 0.2 0.4 0.6 0.8 1 Mutation rate (%) Figure 6: The effect of the mutation rate on the performance of the proposed algorithm. Figure 8: The effect of the number of generations on the performance of the proposed GA. 7.0 CONCLUSIONS In this paper, a routing algorithm based on GA applied to a mobile agent for query retrieval in the MaSS was proposed. The proposed mobile agent for routing algorithm tries to minimize the query retrieval cost while maintaining a reasonable path delay. The number of generations required to reach a good solution has been reduced significantly by preferring shorter routes in initializing the chromosome pool and reusing the past solutions as the initial chromosomes for the new search.

6 The simulation results show that, with properly setting of the GA's parameters, such as the size of chromosome pool and the number of generations, the proposed routing algorithm is able to obtain a better solution with different running parameters. A comparison with the Dijkstra s algorithm will be carried out in future. 8.0 REFERENCES Chen, W.-S.E., Leng, C.-W.R. Lien Yao-Nan, (1997). A vel Mobile Agent Search Algorithm, In the Sixth International Conference on Computer Communications and Networks (ICCCN '97). Di Caro, G. and Dorigo, M. (1998). AntNet: Distributed Stigmergetic Control for Communication Networks, Journal of Artificial Intelligence Research, pp. 317-365. Kashiwazaki, H. and Takai, H. (2002). Adaptive Network Routing by Using the Multiagent, Proc. of IASTED International Conference Networks, Parallel and Distributed Processing, and Applications. Maes, P., Lashkari, Y. and Metral, M. (1997). Collaborative interface agents, Readings in Agents, edited by Michael N. Huhns & Munidar P. Singh, Morgan Kaufmann Publishers, Inc. Park, H-S (2003). Agent Migration Information System for the Efficient Migration of the Mobile Agent, In V. Kumar et. al. (Eds.): ICCSA2003, LNCS 2668, pp. 607-613, Springer-Verlag Berlin Heidelberg. Schoonderwoerd, R., Holland, O. and Bruten, J. (1997). Ant-like agents for load balancing in telecommunication networks, In Proceedings of the First Int. Conf. on Autonomous Agents, pages 209-216, ACM Press. Selamat, A, Omatu, S., Yanagimoto, H., Fujinaka, T. and Michifumi, Y. (2002). Effectiveness of Mobile Agent for Query Retrieval, IEEJ Transactions on Electronic and Information Systems, 122 (8): 1367-1373. Sum, J., Shen, H., and Leung, C-S, Young, G., (2003). Analysis on a Mobile Agent-Based Algorithm for Network Routing and Management, 14:3, 2003, pp. 193-202

7 Appendix Local area network 1 5 LP Server A AltaVista Web server MaSS client 4 2 7 3 6 LP Server B 11 WWW MaSS server 8 Web Proxy Server 9 10 12 13 14 14 Yahoo Web server MaSS client LP Server C * LP: local prefetch Figure 1: The Mobile Agent Search System (MaSS) architecture. Local area network MaSS client W Wrecv Server Wsend Y LP server B Z1 Y Z12 Host 1 LD Host 11 LD LP server A tes: W : the MaSS client agent X : the MaSS server agent Y : the MaSS search agent Z1,Z2,Z3,Z14: the prefetch server's stationery agent SD : the MaSS server database LD : the local prefetch server's database Wsend, Wrecv: The time taken to send and receive the query results from the agent W to the agent X X Y SD MaSS server Y Z14 Host 14 LD LP server C Represents one mobile agent Represents the flow of information by the MaSS search agent (Y) Figure 2: The detail of the MaSS architecture.

8 Table 1: Cost matrix of simulation. Host's ID 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 99 15 99 99 99 23 99 99 99 99 99 99 99 99 99 2 15 18 99 99 23 99 99 99 99 99 99 99 99 99 99 3 99 99 15 99 99 99 99 300 99 99 99 99 99 99 99 4 99 23 99 99 99 50 30 99 99 99 99 99 99 99 99 5 99 23 99 99 99 50 30 99 99 99 99 99 99 99 99 6 23 99 99 99 50 99 20 99 18 99 99 99 99 99 99 7 99 99 99 99 30 20 99 10 99 30 30 99 99 99 99 8 99 99 300 99 99 99 10 99 99 99 15 99 99 99 99 9 99 99 99 99 18 99 99 99 99 25 5 99 99 99 99 10 99 99 99 99 99 99 99 99 25 99 99 99 99 99 99 11 99 99 99 99 99 99 99 99 25 99 99 99 99 99 99 12 99 99 99 99 99 99 99 99 25 99 99 99 99 99 99 13 99 99 99 99 99 99 99 99 25 99 99 99 99 99 99 14 99 99 99 99 99 99 99 99 25 99 99 99 99 99 99 Table 2: Delay matrix simulation. Host's ID 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 999 7 999 999 999 10 999 999 999 5 999 999 999 999 999 2 7 3 999 999 6 999 999 999 999 999 999 999 999 999 999 3 999 999 1 999 999 999 999 5 999 999 999 999 999 999 999 4 999 999 999 2 999 999 999 999 999 10 999 999 999 999 999 5 999 6 999 999 999 20 5 999 999 999 999 999 999 999 999 6 10 999 999 999 20 999 20 999 7 999 999 999 999 999 999 7 999 999 999 999 5 20 999 7 999 9 5 999 999 999 999 8 999 999 5 999 999 999 7 999 999 999 1 999 999 999 999 9 999 999 999 999 999 7 999 999 999 3 2 999 999 999 999 10 5 999 999 999 999 999 999 999 3 999 999 999 999 999 999 11 5 999 999 999 999 999 999 999 3 999 999 999 999 999 999 12 5 999 999 999 999 999 999 999 3 999 999 999 999 999 999 13 5 999 999 999 999 999 999 999 3 999 999 999 999 999 999 14 5 999 999 999 999 999 999 999 3 999 999 999 999 999 999