A mobile agent and method for allowing a mobile agent to identify characteristics of another mobile agent

Abstract: A mobile agent technology and method allow a mobile agent to identify its ancestor, children, grand children and sibling, etc., and to flexibly cooperate with them in working by implanting gene information in a mobile agent while maintaining a high security. The mobile agent is provided with ancestor gene information and self gene information. The self gene information is encrypted information which indicates how many generations the mobile agent is descendant from the original agent. When the mobile agent creates a clone (creates a child agent), it generates gene information of its self generation + 1 and implants it in the child agent. The mobile agent moving on the network and encountering another mobile agent on a same place obtains gene information of that agent. The mobile agent then convert the obtained gene information by a predetermined algorithm to identify that the agents were born from a same ancestor.

Description: Technical Field of the Invention This invention relates to a mobile agent technology in which a mobile agent is moved to a remote server in a distributed computer network to generate an instruction on the remote server and to a method of moving a mobile agent to a remote server. Background There has been in the prior art a mobile agent technology to move a mobile agent to a remote server on a network to generate an instruction on the remote server in a distributed computer environment (PUPA 7-182174 (USP 5,603,031), PUPA 7-509799 (International Application Number PCT/US94/07397, International Publication Number:WO97/02219), "Latest Internet Technology", Nikkei Communication Separate Edition, Nikkei BP Co., pp 104 - 117, by Fumihiko Nishida, Susumu Fujiwara, et al). H.Peine "An Introduction to Mobile Agent Programming and the Ara System", ZRI-Report, January 1997, pages 1-67, University of Kaiserslautern, Germany, [ online version retrieved by European Patent Office on 13 / 07 / 1999 ] describes many of the concepts of mobile agent programming, and summarizes the approach as sending a processing program (mobile agent) to remote data for on-site execution (as an alternative to repeatedly sending data to a remote processor for processing). Such a mobile agent can be defined by two basic elements which are its mobile agent functions and the network location (hereafter "place") at which it performs its operations. The mobile agent can move around places existing on the network while maintaining its internal state. The mobile agent can contact another agent (a mobile agent or a non-mobile agent) in a place to receive a necessary service. The "place" is a network location provided by a server existing on the network where the agent moves to, supports a contact between agents, and absorbs the complexities for interoperability which result from differences between hardware and operating system platforms. Such mobile agent technology enables a mobile agent to execute jobs which have been done in the past by a human being, such as to adjust setting of an internal conference depending on a schedule of employees or a reservation status of a conference room and to obtain desired information distributed on the network. There is a technology of classifying complex behavior of a mobile agent into basic behavior patterns, providing a template (moderator template) which enables a desired behavior pattern of the mobile agent to be defined, and controlling an activity of issuing a request in each place around which the mobile agent wanders as a predecessor (an activity working in a previous place) and a successor (an activity working in the next place), as disclosed in Japanese patent application 9-92091 filed by the applicant of this application on April 10, 1997 though not laid open at the time when this application is filed. With this technology, a problem can be solved relying on the cooperativity of the mobile agent not only by moving the agent but also causing it to be split by itself and consolidating it. In this technology, however, the model is applied only to a predetermined cooperative algorithm (plan) and this technology has not come to a stage of providing a flexible cooperative problem solving technique which allows a cooperative algorithm defined beforehand to be reassembled or newly added. This is because the mobile agent has no function to identify itself or a clone created from itself (children, grand children, sibling, cousin, uncle and aunt, etc), so that it can not determine and identify each other by an ID which is an index of split and consolidation of a mobile agent. A simple self corroboration may be feasible by corroborating the identity by an ID in the form of a simple numerals but this may lead to a problem from a security view point in that data may be replaced with malicious data if the ID can be found by anybody. Summary of the Invention This invention provides a mechanism for allowing a mobile agent to identify its ancestor, children, grand children and sibling, etc., by implanting gene information in a mobile agent. The invention preferably provides highly secured gene information which can not be understood by a third party. The invention also preferably provides a mobile agent which can flexibly modify a job to be executed during movement. The invention also preferably shortens a processing time required from the time when the mobile agent is released to the time when the result is returned. A mobile agent is provided with ancestor gene information and self gene information. The self gene information is encrypted information indicating the number of generations separating the agent from the original agent. When a mobile agent creates a clone (a child agent), it creates gene information of its generation + 1 and implants it in the child agent. A mobile agent moving on the network and encountering another agent gets gene information of the latter agent and performs a given conversion to affirm that they are created from a same ancestor. Various aspects of this invention provide a mobile agent and methods as set out in the accompanying claims. Description of Preferred Embodiments The present invention will now be described in more detail, by way of example, with reference to the accompanying drawings, in which: Fig.1 shows a distributed network environment where a mobile object created in accordance with this invention operates. Fig.2 shows a schematic diagram of a hardware configuration of node systems in a preferred embodiment of this invention. Fig.3 is a functional block diagram showing an embodiment of processing components in the node system. Fig.4 is an object diagram of the mobile agent created in a preferred embodiment of this invention. Fig.5 is a diagram showing a message flow between objects in the preferred embodiment of this invention. Fig.6 is a diagram showing an example of descendant gene creating logic of this invention. Fig.7 is a diagram showing a message flow between objects in the preferred embodiment of this invention. Fig.8 is a diagram explaining an example of a gene comparison logic of this invention. A. Summary An embodiment of this invention is now described hereunder with reference to the drawings. Fig.1 shows a distributed network environment 150 executing a mobile object which is generated in accordance with this invention. Each server 112 - 117 is provided with a place 102 - 107 where a service can be provided to mobile agents 125, 135, 141, etc. The places in the distributed network environment are called a crowd. A mobile agent generating part 113 for generating a mobile agent exists in a client system 101. The mobile agent generating part 113 delivers a generated plan to a mobile agent 111 which, in turn, can move through a designated place by executing the plan. The mobile agent 125, etc., can contact to another agent (an agent contacting to a mobile agent to provide a service is specifically called an actor agent) existing in each place 102 - 107, send out a request and receive the result of the request. The place supports a contact between agents. Also, the mobile agent 125, etc., can hold the result of the request received from an actor agent as Result 139, 143, 153, 163, continue to move and apply various works on the Result such as composition and split of the Result during movement. In the preferred embodiment of this invention, movement, split and extinguishment of a mobile agent are controlled by moderator templates 181 - 187 and a user can simply define a complicated work including split and merge as shown in Fig.2 by combining various templates as required by the mode of processing. B. Hardware Configuration Fig.2 shows a schematic diagram of a hardware configuration of node systems in a preferred embodiment of this invention. The node system 100 comprises a central processing unit (CPU) 1 and a memory 4. The CPU 1 and the memory 4 are connected to a hard disk device 13, 31 as an auxiliary storage via a bus 2, etc. A floppy disk device 20 (or a medium drive device such as an MO, a CD-ROM, etc. 13, 26, 28, 29, 30) is connected to the bus 2 through a floppy disk controller 19 (or a controller such as an IDE controller 25, a SCSI controller 27). A floppy disk (or a medium such as an MO, a CD-ROM, etc.) is inserted to the floppy disk device 20 (or a medium drive device such as an MO, a CD-ROM, etc. 26, 28, 29). A computer program code which gives instructions to the CPU and the like in cooperation with an operating system to practice this invention may be recorded in the floppy disk or a recording medium of the hard disk device 13, 30 and a ROM 14, and executed by being loaded in the memory 4. The computer program code may be compressed or divided into pieces for recording in a plurality of media. Further, the node system 100 may be a system which is provided with a user interface hardware including a pointing device 7 (a mouse, a joystick and a track ball, etc.) for inputting screen position information, a keyboard 6 for supporting a key input and a display 11, 12 for presenting image data to the user. A speaker 23 receives an audio signal from an audio controller 21 via an amplifier 22 for output as a voice. A GUI plan node library (to be described later) which is an input to the node system 100 of this invention is stored in a storage medium such as the floppy disk 24 and the hard disk 30 and inputted to the system via the SCSI interface 27. The GUI plan node library which is an input may be stored in a database of another system. In such case, it is possible to communicate with other computers , etc., to access to a database of another system for obtaining the GUI plan node library via a serial port 15 and a modem or a communication adapter 18 such as a token ring. As such, it will be readily understood that this invention may be implemented by a conventional personal computer (PC), a workstation, a computer implemented in home electric appliances such as a television set and a facsimile equipment, and a combination thereof. It should be noted, however, that these components are given for exemplary purpose and it is not meant that all of these components are the indispensable components of this invention. Specifically, because this invention is directed to generation of a mobile agent, those components including the serial port 15, the communication adapter card 18, the audio controller 21, the amplifier 22 and the speaker 23 are not indispensable to one mode of this invention. As an operating system, those which support a GUI multi window environment in default, such as Windows (trademark of Microsoft), OS/2 (trademark of IBM), X-WINDOW System (trademark of MIT) on AIX (trademark of IBM) are desirable but the operating system is not limited to any specific operating system environment. While Fig.2 shows a system in a stand alone environment, this invention may be implemented in a client/server system in which a client machine is LAN connected to a server machine via Ethernet and a token ring, etc. and the server machine side is provided with a plan split part, etc., to be described later with the rest of functions disposed in the client side. As such, it is a matter of discretion in the design to dispose what function in which of the server machine side and the client machine side. Various modifications of a combination of a plurality of machines, distribution of functions to these machines, etc., and implementation thereof are within the concept of this invention. C. Processing Components in the System Fig.3 is a block diagram showing an embodiment of processing components in the node system 100. The agent 200 holds an ancestor gene 201 and a self gene 203 and obtains a gene 205 from another agent for comparison. The agent 200 is also provided with a child creating module 211, a gene conversion module 213 and a gene comparison module 215. The agent 200 is also provided with an interface to exchange the self gene with other agents. The ancestor gene 201 is information to specify the ancestor (original) of the agent. In the preferred embodiment of this invention, this information is protected from being externally notified or modified itself. The self gene 203 is information to specify that the agent itself is how many generations descending from the ancestor. The gene 205 for comparison is information of the self gene 233 of another agent 230 obtained from the agent 230. The child creating module 211 is a module for creating a descendant. The child creating module 211 implants a child gene 253 generated by converting the self gene 203 in the created child agent 250. The ancestor gene 201 is also implanted in the child agent 250. The gene conversion module 213 converts a gene which is a character string to another gene in response to a request from the child creating module 211 and the gene comparison module. This is a conversion which can be reverse converted. The gene comparison module 215 can identify how many generations the gene is descendant by repeating reverse conversions of that gene. The gene comparison module 215 can determine whether or not a gene 205 obtained from another agent is an agent which has a common ancestor and how many generations it is descendant therefrom by obtaining the gene 205 from another agent and repeating reverse conversion of that gene. D. Object Configuration Fig.4 is an object diagram of the mobile agent of this invention. The class of the agent class 300 has data and a method. Each class of a gene converter class 310 and a gene comparison class 320 has a method. In the preferred embodiment of this invention, the agent class 300 has data of ancestor gene information 201 (ancestorGene) and self gene information 203 (selfGene). It also has methods "get ancestorGene" and "get selfGene" to obtain ancestor gene information 201 and self gene information 203. A "create child" method is a method for creating a child agent while a "create clone" method is a method for creating a clone of itself. A "create clone" method has an ancestor gene (ancestorGene) and a self gene of a child agent (childGene) as an argument. The gene converter class 310 has a convertGene method for converting gene information in accordance with the generation. The convertGene method has converted gene information (gene) and generation information (n) as arguments. The gene comparison class 320 has a compareGene method for comparing gene information. The compareGene method has gene information (gene) as an argument. E. Creation of Child Agent Fig.5 is a diagram showing a major message flow of each class upon creating a child agent in the preferred embodiment of this invention. When the createChild method is called upon for creating a child agent, a self gene is first obtained from the agent. Next, the gene comparison class 320 is inquired of how many generations the agent is descendant. The ancestor gene 201 is then obtained and the gene converter class 310 is asked to generate the gene 253 of the child agent 250. The argument then is generation information of its generation + 1 and ancestor gene information. When the gene 253 of the child agent 250 is delivered from the gene converter class 310, a clone is created (create a copy of the agent own) using the gene 253 and the ancestor gene information as an argument. The child agent 250 is thus created. Fig.6 is a diagram showing an example of self gene creating logic (of descendant) of this invention. The example is explained by 16 bits string to simplify the explanation. The leftmost 8 bits are an ID which is common to an agent family. In the preferred embodiment of this invention, this ID is assigned a value which is unique on the global network. For example, the ID may be created by composing an internet URL, a port number and a serial number (assigned each time when creating an original mobile agent). The rightmost 8 bits are a bit string which specify the generation. In this example, the original agent (originator agent) is given gene information "10101101" (coincides the ancestor gene). The child (the second generation) agent is give gene information "01010010" which is an inversion of the rightmost 8 bits. Further, its child (grand child: the third generation) agent is given gene information "01011101" by inverting the rightmost 4 bits. The fourth generation agent is given "01011110" by inverting the rightmost 2 bits and the fifth generation agent is given "01011111" by inverting the rightmost 1 bit. In this example, up to the fifth generation can be managed. However, it is enough for the gene information to be information which allows determination of the level of generation from the ancestor and whether or not the descendant of that ancestor. The gene information may be information which encrypts the ancestor gene information and the generation information (or only the ancestor gene information) by a predetermined algorithm. F. Comparison of Gene Fig.7 is a diagram showing a major message flow of classes upon comparing genes in the preferred embodiment of this invention. The agent 200 requests another agent on a same place to deliver its self gene (get selfGene). The gene thus obtained is stored as a gene 205 to be compared. In the preferred embodiment of this invention, the agent family ID is first identified. The gene 205 to be compared is then delivered to the gene comparison class 320 to determine the generation. The gene comparison module 215 reverse converts the gene to compare it with the ancestor gene. If the compare is equal in the Nth comparison, it is identified as a Nth generation descendant from the ancestor. In the preferred embodiment of this invention, when it is identified as an ancestor, the gene comparison class 320 returns N while it returns error information such as a low value otherwise (when the comparison fails to match the ancestor in a predetermined number of conversions, i.e., when it is determined that the agent is not a descendant). Fig.8 is a diagram explaining an example of a reverse conversion logic of gene in this invention. The gene of the fifth generation described in Fig.5 is used. In this conversion also, the gene is inverted in the sequence of the rightmost 8 bits, 4 bits, 2 bits and 1 bit in the manner similar to Fig.6 and compared to the ancestor gene 201 each time it is converted. As shown in the figure, it is determined that the gene matches the ancestor gene 201 in the fourth conversion. In other words, it can be identified that the mobile agent has a common ancestor and how many generations it is descendant from the ancestor. Similarly, the second generation matches the ancestor gene 201 in the first conversion ("01010010" => "10101101"), the third generation matches in the second conversion ("01011101" => "10100010" => "10101101"), and the fourth generation matches in the third conversion ("01011110" => "10100001" => "10101110" => "10101101"). As described in the above, this invention allows a mobile agent to identify its ancestor, children, grand children and sibling, etc., and to flexibly cooperate with them in working by implanting gene information in a mobile agent while maintaining a high security.

Claims: A mobile agent (200) which is adapted to interoperate with other mobile agents at the same network location, characterised in that the mobile agent comprises: (a) self gene information (203) from which ancestor gene information (201) and generation information can be derived by a predetermined conversion logic, (b) a gene conversion module (213) for applying a predetermined conversion logic to derive ancestor gene information and generation information from said self gene information and from gene information obtained from another mobile agent (230); (c) a gene comparison module (215) for determining whether or not the result (205) of a conversion of gene information (233) obtained from said another agent (230) corresponds to said ancestor gene information (201) derived from said self gene information (203); and (d) a child agent generating module (211) for generating child agent gene information (253) from said self gene information (203), said child agent gene information comprising information from which said ancestor information and said generation information can be derived, and for implanting said child agent gene information in a child agent when creating the child agent of said mobile agent. A mobile agent according to claim 1. further comprising means for interrogating said another mobile agent at the same computer network location to obtain its gene information. A mobile agent according to claim 1 or claim 2, wherein the self gene information is held by the mobile agent in an encrypted form and the gene conversion module is adapted to decrypt the encrypted self gene information. A method of creating a child agent (250) based on a mobile agent (200) existing at a computer network location, characterised in that the method comprises the steps of: (a) deriving generation information of said mobile agent based on self gene information (203) and ancestor gene information (201). (b) generating gene information (253) of a child agent (250) based on said derived generation information and said ancestor gene information, and (c) creating a child agent (250) which contains the generated gene information of the child agent and said ancestor gene information. The method of claim 4, wherein the steps of deriving generation information and generating gene information of a child agent comprise: obtaining said self gene information; determining from said self gene information a generation value for said mobile agent; incrementing said generation value to create a child generation value; and providing said child generation value and said ancestor gene information as child agent self gene information. A method for a first mobile agent (200) existing at a computer network location to identify whether a second mobile agent (230) existing at the same network location has the same ancestor gene information (201) as is held in said first mobile agent, characterised in that the method comprises the steps of: (a) obtaining gene information (233) from said second mobile agent, (b) converting said obtained gene information (233) by a predetermined conversion logic (213), and (c) determining whether or not the result (205) of the converting step corresponds to said ancestor gene information (201) held in said first mobile agent.

Inventors: MINAMI KAZUHIRO, SUZUKI TOSHIHIRO, MINAMI, KAZUHIRO, SUZUKI, TOSHIHIRO
Applicants: IBM, INTERNATIONAL BUSINESS MACHINES CORPORATION
Application year: 1999
Main classification: G06F9
IPC codes: G06F9, G06F15, G06N5, G06F13