JP3735730B2 - Agent system and communication method - Google Patents
Agent system and communication method Download PDFInfo
- Publication number
- JP3735730B2 JP3735730B2 JP2004252528A JP2004252528A JP3735730B2 JP 3735730 B2 JP3735730 B2 JP 3735730B2 JP 2004252528 A JP2004252528 A JP 2004252528A JP 2004252528 A JP2004252528 A JP 2004252528A JP 3735730 B2 JP3735730 B2 JP 3735730B2
- Authority
- JP
- Japan
- Prior art keywords
- agent
- communication device
- communication
- memory area
- route
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Description
本発明は、エージェントサーバから生成したエージェントを、通信回線を介して通信機器間を順次移動させるエージェントシステム及び通信方法に関する。 The present invention relates to an agent system and a communication method for sequentially moving an agent generated from an agent server between communication devices via a communication line.
近年、普及してきているエージェントシステムは、図14に示すように、エージェントサーバ50と、複数のパーソナルコンピュータ,ワークステーション等の通信機器60と、エージェントを生成するためのソースプログラムを記憶する記憶装置80とが有線回線90(図に示さないが無線回線でもよい)で接続され、各通信機器間を後述するエージェント70が移動するように構成されている。
As shown in FIG. 14, an agent system that has become popular in recent years includes an agent server 50, a plurality of communication devices 60 such as personal computers and workstations, and a storage device 80 that stores a source program for generating an agent. Are connected by a wired line 90 (which may be a wireless line (not shown)), and an
このエージェントシステムは、エージェントサーバ50が記憶装置80に記憶されているソースプログラムに基づき、オブジェクトコードからなるエージェント70を生成し、この生成したエージェント70を指定した通信機器60に送信し、その通信機器60のシステムエージェント601が受信したエージェント70を実行するようになっている。
In this agent system, the agent server 50 generates an
ところで、上述したエージェントシステムでは、エージェント70の移動方法として、(ア)エージェントに対しては目的地と目的処理とが与えられるが、目的地に至るまでの移動経路が与えられていない方法と、(イ)エージェントに対しては目的処理のみが与えられており、目的地、かつ、移動経路が与えられていない方法との2通りの方法が採用されている。
By the way, in the agent system described above, as a movement method of the
以下、この2通りの方法についての動作を、図15および図16のフローチャートを参照して説明する。 Hereinafter, the operation of these two methods will be described with reference to the flowcharts of FIGS. 15 and 16.
(ア)エージェントに対して目的地と目的処理とが与えられる場合
エージェントサーバ50は、記憶装置80に記憶されている所定の目的処理を行うソースプログラムからオブジェクトコードを形成し、さらに、このオブジェクトに移動先を示す目的地を与えてエージェントを生成し(ステップ510)、このエージェント70を目的地に送信する。
(A) When destination and purpose processing are given to the agent The agent server 50 forms an object code from a source program for performing a predetermined purpose processing stored in the storage device 80, and further adds to this object An agent is generated by giving a destination indicating the destination (step 510), and the
すると、送信されたエージェント70は、回線90を介して指定された目的地のノードを有する通信機器60に移動し(ステップ520)、この通信機器60に取り込まれ、通信機器60内のシステムエージェント601により、実行される。
Then, the transmitted
通信機器60内のシステムエージェント601は、エージェント70が有する目的処理が完了するか否かを判断しており(ステップ530)、目的処理が完了しないと判断した場合には(ステップ530;N)、生成元のエージェントサーバ50に戻る。
The
エージェント70が戻ってきたエージェントサーバ50は、目的地および目的処理を再設定し(ステップ550)、処理を520に戻し、上述した処理を続行する。
The agent server 50 to which the
一方、システムエージェント601は、目的処理が完了したと判断した場合には(ステップ530;Y)、エージェント70をエージェントサーバ50に戻し(ステップ540)、処理を終了する。
On the other hand, when the
(イ)エージェントに対しては目的処理のみが与えられている場合
エージェントサーバ50のシステムエージェント601は、生成したエージェントに目的処理を与えたエージェントを生成し(ステップ610)、このエージェント70を回線90を介して移動させる(ステップ620)。
(A) When only the target processing is given to the agent The
すると、エージェント70は、移動先の通信機器60に取り込まれ、通信機器60内のシステムエージェント601により目的処理の実行が開始される。
Then, the
システムエージェント601は、移動先の通信機器60において、目的処理が完了するか否かを判断しており(ステップ630)、目的処理が完了しないと判断した場合には(ステップ630;NO)、ステップ620に戻り、次の移動先の通信機器60に移動し、上述したと同様な処理を続行する。
The
一方、システムエージェント601は、目的処理が完了したと判断した場合には(ステップ630;Y)、エージェント70をエージェントサーバ50に戻し(ステップ640)、処理を終了する。
On the other hand, when the
上述したように、エージェントシステムでは、(ア)エージェントに対して目的地と目的処理とが与えられる方法の場合においても、また、(イ)エージェントに対しては目的処理のみが与えられている方法の場合においても、それぞれ以下のような問題点があった。 As described above, in the agent system, (a) in the case of a method in which a destination and a target process are given to the agent, and (b) a method in which only the target process is given to the agent. In each case, there were the following problems.
(1)(ア)エージェント70に対して目的地と目的処理とが与えられる方法の場合のエージェントシステムでは、目的処理を実行するに際して目的地が1対1で与えられるので、複数の所定の通信機器60のノードを経由するときには、それらのノードを指定する必要がある。
(1) (a) In the agent system in the case where the destination and the destination process are given to the
このため、目的処理が達成できなかった場合には、エージェントサーバ50がこれら複数の目的地を再度設定する必要があり、設定に要する時間が無駄であるという問題点があった。 For this reason, when the objective process cannot be achieved, the agent server 50 needs to set these plural destinations again, and there is a problem that the time required for the setting is wasted.
(2)(イ)エージェント70に対しては目的処理のみが与えられている方法の場合のエージェントシステムでは、任意の場所(ルールによって検索)に移動して目的処理を行うため、一度目的処理を与えると目的の再設定は不要であるが、経路を選択することができないので、シーケンシャルな処理、例えば、ファィヤーウォール上に形成されるアプリケーションゲートウエイにおいて、不正アクセスとみなされ、ファィヤーウォールから以下に接続する通信機器60のノードに移動する処理を実行することができないという問題点があった。
(2) (A) In the agent system in the case where only the target processing is given to the
(3)(ア)エージェントに対して目的地と目的処理とが与えられる方法の場合のエージェントシステム、および(イ)エージェントに対しては目的処理のみが与えられている方法の場合のエージェントシステムは、エージェント70が移動する際には、移動先の通信機器60の資源状態、例えばメモリの空き領域を知らずに移動するため、仮に、移動先の通信機器60の資源を使用できない場合、例えばメモリにエージェント70を格納する空き領域が無い場合には、その通信機器60にエージェント70が生成されず、エージェントサーバ50に所定時間内にエージェント70が戻ってこず、エージェントサーバ50がエラー処理を実行せざるを得ないという問題点があった。
(3) (a) An agent system in a method in which a destination and a target process are given to an agent, and (b) an agent system in a method in which only a target process is given to an agent When the
(4)通信機器60が実行する処理コードには、現在、通常のMPUが実行するネイティブコードと、JAVA(登録商標)等で代表される仮想マシン上で実行させるバイトコードとがある。 (4) Processing codes executed by the communication device 60 include native code currently executed by a normal MPU and bytecode executed on a virtual machine represented by JAVA (registered trademark) or the like.
従って、エージェントサーバ50および通信機器60に有するシステムエージェント601が同一な処理コードを実行する処理系で構成されているエージェントシステム間では、図17に示すように、移動してきたエージェント70を移動先のシステムエージェント601を実行することができるが、異なる処理コードを実行する処理系で構成されているエージェントシステム間では、実行することができないという問題点があった。
Therefore, between the agent systems that are configured by processing systems in which the
なお、異なる処理コードを実行する処理系で構成されているエージェントシステム間で実行する場合には、JAVA(登録商標) Virtual Machineのような仮想プロセッサを有する通信機器60を使用しなければならない。 Note that in the case of execution between agent systems configured with processing systems that execute different processing codes, a communication device 60 having a virtual processor such as JAVA (registered trademark) Virtual Machine must be used.
そこで、本発明は上述した問題点に鑑み、目的地を再度設定する必要をなくし、設定に要する無駄な時間を省くエージェントシステムを提供することを第1の目的とする。 Therefore, in view of the above-described problems, the first object of the present invention is to provide an agent system that eliminates the need to set a destination again and saves unnecessary time for setting.
また、本発明は、エージェントがあるノードを経由しなくても他のノードにたどり着けるエージェントシステムを提供することを第2の目的とする。 In addition, a second object of the present invention is to provide an agent system that allows an agent to reach another node without going through a node.
さらに、本発明は、エージェントが移動する際には、移動先の通信機器の資源状態をチェックしてエラー処理を回避するエージェントシステムを提供することを第3の目的とする。 Furthermore, a third object of the present invention is to provide an agent system that, when an agent moves, checks the resource state of a destination communication device and avoids error processing.
さらにまた、本発明は、異なる処理系で構成されているエージェントシステム間においても実行し得るエージェントシステムを提供することを第4の目的とする。 Furthermore, a fourth object of the present invention is to provide an agent system that can be executed between agent systems configured by different processing systems.
上述した目的を達成するために、請求項1に記載の発明は、エージェントサーバと複数の通信機器とが有線回線または無線回線の通信回線で接続されており、前記エージェントサーバから生成した移動経路情報を有するエージェントを、前記通信回線を介して前記移動経路情報に基づき前記通信機器間を移動させるエージェントシステムであって、前記通信機器は、先に受信してメモリ領域に記憶されているエージェントの移動経路情報を、必要に応じて変更して、所定の移動経路情報を有するエージェントに復元し、この復元したエージェントを送信するエージェント復元送信手段と、前記移動経路情報に基づき、送信を予定している通信機器に対し、予め、送信を予定しているエージェントを記憶させるメモリ領域を予約するメモリ領域予約手段と、前記移動経路情報に基づき、前記エージェントを次の通信機器に送信するに際し、その送信先の通信機器が仮に異なる処理コードを実行する通信機器であっても、処理可能な中間コードに前記エージェントを変換し、これを送信する中間コード変換送信手段と、を具備し、前記エージェントは、前記移動経路情報とともに、通過した通信機器のノード番号の履歴を経路収集情報として有しており、前記エージェント復元送信手段は、他の通信機器にエージェントを送信するに際し、自己のノード番号を前記経路収集情報に追加登録したエージェントを復元して送信するとともに、前記エージェントサーバは、互いに相違する移動経路の途中の通信機器のノード番号と互いに一致する最終目的地の通信機器のノード番号とが登録された移動経路情報を各々が一つずつ有する複数のエージェントを同時に通信機器に送信し、帰還したエージェント中の前記経路収集情報を読み出す一方、前記最終目的地の通信機器は、前記エージェントサーバから送信された複数のエージェントのうち、自身に最も早く到達したエージェントのみを前記エージェントサーバに帰還させることを特徴とする。
In order to achieve the above-described object, the invention according to
請求項2に記載の発明は、請求項1に記載の発明において、前記通信機器は、エージェントが移動してくる際に予め、このエージェントを記憶するメモリ領域を確保し、また、このエージェントを送信したのち前記メモリ領域から前記エージェントをクリアして開放するメモリ領域予約開放手段を具備することを特徴とする。
According to a second aspect of the present invention, in the first aspect of the present invention, when the agent moves, the communication device secures a memory area for storing the agent in advance and transmits the agent. After that, there is provided memory area reservation releasing means for clearing and releasing the agent from the memory area.
請求項3に記載の発明は、請求項1または2に記載の発明において、前記メモリ領域予約手段は、先に受信したエージェントの処理の進捗具合を検知するエージェント処理進捗検知手段、を有しており、このエージェント処理進捗検知手段により、前記先に受信したエージェントが所定箇所を実行したと検知されると、送信を予定している通信機器に対し、メモリ領域を予約することを特徴とする。
According to a third aspect of the present invention, in the first or second aspect of the present invention, the memory area reservation unit includes an agent process progress detection unit that detects a progress of the process of the agent received earlier. When the agent processing progress detection means detects that the previously received agent has executed a predetermined location, it reserves a memory area for the communication device scheduled to transmit.
請求項4に記載の発明は、エージェントサーバと複数の通信機器とが有線回線または無線回線の通信回線で接続されており、前記エージェントサーバから生成した移動経路情報を有するエージェントを、前記通信回線を介して前記移動経路情報に基づき前記通信機器間を移動させる通信方法であって、前記通信機器により、先に受信してメモリ領域に記憶されているエージェントの移動経路情報を、必要に応じて変更して、所定の移動経路情報を有するエージェントに復元し、前記移動経路情報に基づき、送信を予定している通信機器に対し、予め、送信を予定しているエージェントを記憶させるメモリ領域を予約し、前記移動経路情報に基づき、前記エージェントを次の通信機器に送信するに際し、その送信先の通信機器が仮に異なる処理コードを実行する通信機器であっても、処理可能な中間コードに前記エージェントを変換し、これを送信するとともに、前記エージェントは、前記移動経路情報とともに、通過した通信機器のノード番号の履歴を経路収集情報として有しており、前記通信機器により、他の通信機器にエージェントを送信するに際し、自己のノード番号を前記経路収集情報に追加登録したエージェントを復元して送信するとともに、前記エージェントサーバにより、互いに相違する移動経路の途中の通信機器のノード番号と互いに一致する最終目的地の通信機器のノード番号とが登録された移動経路情報を各々が一つずつ有する複数のエージェントを同時に通信機器に送信し、帰還したエージェント中の前記経路収集情報を読み出す一方、前記最終目的地の通信機器により、前記エージェントサーバから送信された複数のエージェントのうち、自身に最も早く到達したエージェントのみを前記エージェントサーバに帰還させることを特徴とする。
According to a fourth aspect of the present invention, an agent server and a plurality of communication devices are connected by a communication line of a wired line or a wireless line, and an agent having movement path information generated from the agent server is connected to the communication line. A communication method for moving between the communication devices based on the movement route information via the communication device, wherein the communication device changes the agent movement route information previously received and stored in the memory area as necessary. Then, based on the movement route information, a memory area for storing the agent scheduled for transmission is reserved in advance for the communication device scheduled for transmission based on the movement route information. When the agent is transmitted to the next communication device on the basis of the movement route information, the transmission destination communication device is temporarily different. Be a communication device that performs the over-de, converting the agent can be processed intermediate code, and transmits this, the agent, together with the travel route information, a history of the node number of the communication device that has passed through When the agent is transmitted to the other communication device by the communication device, the agent additionally registering its node number in the route collection information is restored and transmitted, and the agent server Thus, the communication device simultaneously has a plurality of agents each having one piece of movement path information in which the node number of the communication device in the middle of the different movement route and the node number of the communication device of the final destination that match each other are registered. The route collection information in the returned agent is read out while the final destination is communicated. Device via the one of the plurality of agents sent from the agent server, and wherein the feeding back only the agent who earliest reach itself to the agent server.
請求項5に記載の発明は、請求項4に記載の発明において、前記通信機器により、エージェントが移動してくる際に予め、このエージェントを記憶するメモリ領域を確保し、また、このエージェントを送信したのち前記メモリ領域から前記エージェントをクリアして開放することを特徴とする。
According to a fifth aspect of the present invention, in the invention of the fourth aspect, when the agent moves, the communication device secures a memory area for storing the agent in advance and transmits the agent. After that, the agent is cleared and released from the memory area.
本発明では、通信機器が、先に受信したエージェントから、必要に応じて移動経路情報を変更したエージェントを復元するため、目的地を再度設定する必要がなくなる。 In the present invention, since the communication device restores the agent whose movement route information has been changed as necessary from the agent received earlier, it is not necessary to set the destination again.
また、通信機器が、復元したエージェントの送信を予定している通信機器に対して、この復元したエージェントを記憶するメモリ領域を予約するため、復元したエージェントを確実に送信先に送ることができる。 In addition, since the communication device reserves a memory area for storing the restored agent for the communication device scheduled to transmit the restored agent, the restored agent can be reliably sent to the transmission destination.
さらに、この異なる処理系の通信機器がともに処理できる中間コードに変換して送信するため、異なる処理系で構成された通信機器間にエージェントを送信することができる。 Furthermore, since the communication device of the different processing system is converted into an intermediate code that can be processed together, the agent can be transmitted between the communication devices configured in different processing systems.
また、本発明では、他の通信機器にエージェントを送信するに際してエージェントを復元するに際し、復元したエージェントに経路収集情報を有しているため、エージェントサーバから目的地の通信機器に到達するまでの経路収集情報を得ることができる。 Further, in the present invention, when restoring an agent when transmitting the agent to another communication device, the restored agent has route collection information, so the route from the agent server to the destination communication device Collected information can be obtained.
従って、エージェントサーバから複数のエージェントを同時に目的地に送信することで、最も短時間に目的地に到達したエージェントの経路収集情報を調べることができる。 Therefore, by transmitting a plurality of agents from the agent server to the destination at the same time, it is possible to check the route collection information of the agent that has reached the destination in the shortest time.
以上本発明によれば、通信機器が、先に受信したエージェントから、必要に応じて移動経路情報を変更したエージェントを復元することにより、目的地を再度設定する必要性がなくなるため、再設定に要する無駄な時間を省くことがで、応答性を高くすることができる。 As described above, according to the present invention, it is not necessary to set the destination again by restoring the agent whose movement route information has been changed as necessary from the agent that has been received earlier. Responsiveness can be improved by eliminating unnecessary time.
また、通信機器が、復元したエージェントの送信を予定している通信機器に対して、この復元したエージェントを記憶するメモリ領域を予約するため、確実に復元したエージェントを送信先に送ることができる。 In addition, since the communication device reserves a memory area for storing the restored agent for the communication device scheduled to transmit the restored agent, the restored agent can be reliably sent to the transmission destination.
さらに、この異なる処理系の通信機器がともに処理できる中間コードに変換して送信するため、異なる処理系で構成された通信機器においてのエージェントを送信することができる。 Furthermore, since the communication device of the different processing system is converted into an intermediate code that can be processed and transmitted, the agent in the communication device configured in the different processing system can be transmitted.
さらにまた、他の通信機器にエージェントを送信するに際してエージェントを復元するに際し、復元したエージェントに経路収集情報を有しているため、エージェントサーバにおいて生成されたエージェントが目的地の通信機器に到達するまでの経路収集情報を得ることができる。 Furthermore, when the agent is restored when sending the agent to another communication device, the restored agent has route collection information, so that the agent generated in the agent server reaches the destination communication device. Route collection information can be obtained.
従って、エージェントサーバから複数のエージェントを同時に目的地に送信すると、最も短時間に目的地に到達したエージェントの経路収集情報を調べることができ、以後、この経路収集情報に基づき経路設定を行えば、応答性を高くすることができる。 Therefore, if a plurality of agents are simultaneously transmitted from the agent server to the destination, the route collection information of the agent that has reached the destination in the shortest time can be checked. Thereafter, if route setting is performed based on this route collection information, Responsiveness can be increased.
以下、本発明に係るエージェントシステム及び通信方法の実施形態を図面に基づき説明する。 Embodiments of an agent system and a communication method according to the present invention will be described below with reference to the drawings.
<第1実施形態>
図1は本発明に係るエージェントシステムの第1実施形態の構成を示すブロック図である。
<First Embodiment>
FIG. 1 is a block diagram showing the configuration of the first embodiment of the agent system according to the present invention.
この実施形態のエージェントシステムは、図1に示すように、エージェントサーバ1と、複数のパーソナルコンピュータ,ワークステーション等の通信機器2と、モバイルエージェントを生成するためのソースプログラムを記憶する記憶装置3とが有線回線または無線回線でなる通信回線4で接続されて構成されている。
As shown in FIG. 1, the agent system of this embodiment includes an
そして、エージェントサーバ1は、記憶装置3に記憶されているソースプログラムを読み出してオブジェクトコードからなるエージェント10(このエージェント10は、後述するように、通信機器2間を順次移動するものであるため、以下、モバイルエージェントという)を生成するようになっている。
Then, the
(1)エージェントサーバの構成について説明する。 (1) The configuration of the agent server will be described.
上述したエージェントサーバ1は、図2に示すように、システムエージェント20を有しており、このシステムエージェント20にはエージェント生成部201,フラグ格納部202,MPUコード変換部203,中間コード変換部204,資源管理部205およびエージェント間通信部206から構成されている。
The
エージェント生成部201は、制御部(図示せず)から所定のエージェントを作成するように指示を受けると(図2中の(1)参照)、フラグ格納部202に“ON”(=1)のフラグをセットさせ、資源をロックするとともに(図2中の(2)参照)、記憶装置3に記憶されている所定のソースプログラムを読み出してオブジェクトを形成し、さらに、このオブジェクトの送信先を示す後述する経路リスト101を設けたモバイルエージェント10を生成し、これをメモリ領域に記憶するようになっている。
When the
なお、エージェント生成部201は、すでにメモリ領域内に該当するモバイルエージェント10が記憶されている場合には、改めて、ソースプログラムからモバイルエージェント10を生成する必要がないことはいうまでもない。
Needless to say, the
また、エージェント生成部201は、生成したモバイルエージェント10の送信先である通信機器2に対して、送信予約を入れるように資源管理部205に指示するようになっている(図2中の(3)参照)。
The
さらに、エージェント生成部201は、送信先の通信機器2に対して送信予約を入れた旨の通知を資源管理部205から受けると(図2中の(7)参照)、先に生成してメモリ領域に記憶されているエージェント10を読み出し(図2中の(8)参照)、これをMPUコード変換部203に出力するようになっている(図2中の(9)参照)。
Further, upon receiving a notification from the resource management unit 205 (see (7) in FIG. 2) that the
さらに、エージェント生成部201は、モバイルエージェント10を送信先の通信機器2に送信し終わると、フラグ格納部202に“OFF”(=0)のフラグをセットさせ、資源を開放するようになっている(図2中のh参照)。
Furthermore, when the
さらに、エージェント生成部201は、通信機器2から受信したMPUコードに変換されたモバイルエージェント10をMPUコード変換部203から受けると(図2中のf参照)、元のモバイルエージェントに変換してメモリ領域に記憶するようになっている(図2中のg参照)。
Further, when the
フラグ格納部202は、自己の資源の使用を他のシステムエージェント20に許可するか否かを示すフラグを格納するものである。
The
格納されているフラグがON(=1)の場合には、自己の資源が他のシステムエージェント20から使用できない状態になり、一方、格納されているフラグがOFF(=0)の場合には、自己の資源が他のシステムエージェント20から使用可能な状態になる。
When the stored flag is ON (= 1), the self resource cannot be used by another
MPUコード変換部203は、エージェント生成部201からモバイルエージェント10を受けると(図2中の(9)参照)、受けたモバイルエージェント10をMPUコードに変換し、このMPUコードに変換したモバイルエージェント10を中間コード変換部204に出力するようになっている(図2中のa参照)。
When the MPU
また、MPUコード変換部203は、通信機器2から戻ってきた中間コードに変換されたモバイルエージェント10を中間コード変換部204から受けると(図2中のe参照)、中間コードのモバイルエージェント10をMPUコードのモバイルエージェント10に変換し、これをエージェント生成部201に出力するようになっている(図2中のf参照)。
Further, when the MPU
中間コード変換部204は、MPUコード変換部203から受けたMPUコードに変換されたモバイルエージェント10を中間コードに変換し送信先の通信機器2に送信するようになっている(図2中のb,c参照)。
The intermediate
また、中間コード変換部204は、通信機器2から送信されてきた中間コードからなるモバイルエージェント10を受信すると(図2中のd参照)、これをMPUコード変換部203に出力するようになっている(図2中のe参照)。
Further, when the intermediate
ここで、MPUコードとは、処理コードとして通常のMPUが実行するネイテイブコードであり、中間コードとは、処理コードとしてネイティブコードを使用する通常のMPU(図示せず)を有する通信機器2でも、また、処理コードとしてバイトコード(共通コード)を使用するJAVA(登録商標) Virtual Machineのような通信機器2でも実行できるコードである。
Here, the MPU code is a native code executed by a normal MPU as a processing code, and the intermediate code is a
資源管理部205は、エージェント生成部201の指示のもと(図2中の(3)参照)、モバイルエージェント10の送信先の通信機器2に対して資源状態を問い合わせ、資源が空きの状態であるときには、資源予約を入れ(図2中の(4),(5),(6)参照)、資源予約を入れた旨をエージェント生成部201に出力するようになっている(図2中の(7)参照)。
Under the instruction of the agent generation unit 201 (see (3) in FIG. 2), the
エージェント間通信部206は、通信機器2のシステムエージェント20に対して、通信機器2の資源の空き状態を問い合わせるようになっている(図2中のb参照)。
The inter-agent communication unit 206 inquires of the
ここで、エージェントサーバ1により生成されるモバイルエージェント10について説明する。
Here, the
このモバイルエージェント10は、上述したように、通信機器2に所定の目的とする処理(以下、目的処理という)を実行させるためのオブジェクトコードを有しているのみならず、図3に示すように、必ず通過し、その箇所でモバイルエージェントが処理を実行しなければならない通信機器2のノード番号を有する移動経路情報と、その通過し得る回数を示す許可回数とを備える経路リスト101を有するようになっている。
As described above, the
図4は図3に示した経路リスト101を有するモバイルエージェントの移動経路の一例である。
FIG. 4 shows an example of the movement route of the mobile agent having the
この例では、モバイルエージェント10は、最初、ノード番号が6である通信機器2で実行され、次に、ノード番号が2である通信機器2で実行され、次に、ノード番号が4である通信機器2で実行され、続いて、ノード番号が5である通信機器2で実行され、その後、ノード番号が3である通信機器2で実行され、次に、ノード番号が1である通信機器2で実行され、最後に、ノード番号が3である通信機器2で実行されることを示している。
In this example, the
(2)通信機器の構成について説明する。 (2) The configuration of the communication device will be described.
なお、通信機器2は、上述したエージェントサーバ1と同一な構成をなしているものも多いが、再び説明する。
Although
上述した通信機器2は、図5に示すように、システムエージェント20を有しており、このシステムエージェント20にはエージェント復元部201,フラグ格納部202,MPUコード変換部203,中間コード変換部204,資源管理部205およびエージェント間通信部206から構成されている。
As shown in FIG. 5, the
エージェント復元部201は、制御部から所定のエージェントを復元するように復元指示を受けると(図5中の(1)参照)、フラグ格納部202に“ON”(=1)のフラグをセットさせ、資源をロックするとともに(図5中の(2)参照)、メモリ領域に記憶されている、先に受信したモバイルエージェント10を読み出し、所定の経路リストを有するモバイルエージェントを形成し、これをメモリ領域に記憶し、加えて、先に受信したモバイルエージェント10の処理状況を監視させる指示を出力するようになっている(図5中の(3)参照)。
When receiving a restoration instruction from the control unit so as to restore a predetermined agent (see (1) in FIG. 5), the
また、エージェント復元部201は、送信先の通信機器2に対して資源予約を入れた旨の通知を資源管理部205から受けると(図5中の(8)参照)、先に生成してメモリ領域に記憶されているエージェント10を読み出し(図5中の(9)参照)、これをMPUコード変換部203に出力するようになっている(図5中のa参照)。
Further, when the
さらに、エージェント復元部201は、モバイルエージェント10を送信先の通信機器2に送信し終わると、フラグ格納部202に“OFF”(=0)のフラグをセットさせ、資源を開放するようになっている(図5中のi参照)。
Further, when the
さらに、エージェント復元部201は、通信機器2から受信したMPUコードに変換されたモバイルエージェント10をMPUコード変換部203から受けると(図5中のg参照)、元のモバイルエージェントに変換してメモリ領域に記憶するようになっている(図5中のh参照)。
Further, upon receiving the
フラグ格納部202は、自己の資源の使用を他のシステムエージェント20に許可するか否かを示すフラグを格納するものである。
The
格納されているフラグがON(=1)の場合には、自己の資源が他のシステムエージェント20から使用できない状態になり、一方、格納されているフラグがOFF(=0)の場合には、自己の資源が他のシステムエージェント20から使用可能な状態になる。
When the stored flag is ON (= 1), the self resource cannot be used by another
MPUコード変換部203は、エージェント復元部201からモバイルエージェント10を受けると(図5中のa参照)、受けたモバイルエージェント10をMPUコードに変換し、このMPUコードに変換したモバイルエージェント10を中間コード変換部204に出力するようになっている(図5中のb参照)。
When the MPU
また、MPUコード変換部203は、通信機器2から戻ってきた中間コードに変換されたモバイルエージェント10を中間コード変換部204から受けると(図5中のf参照)、中間コードのモバイルエージェント10をMPUコードのモバイルエージェント10に変換し、これをエージェント復元部201に出力するようになっている(図5中のg参照)。
Further, when the MPU
中間コード変換部204は、MPUコード変換部203から受けたMPUコードに変換されたモバイルエージェント10を中間コードに変換し、送信先の通信機器2に送信するようになっている(図5中のc,d参照)。
The intermediate
また、中間コード変換部204は、通信機器2から送信されてきた中間コードからなるモバイルエージェント10を受信すると(図5中のe参照)、これをMPUコード変換部203に出力するようになっている(図5中のf参照)。
Further, when the intermediate
資源管理部205は、エージェント復元部201にモバイルエージェントの復元指示が入力されたのち、先に受信したモバイルエージェント10の処理状況を監視しており(図5中の(4)参照)、先に受信したモバイルエージェント10が所定箇所の処理を実行すると、エージェント間通信部206を介して、生成したモバイルエージェント10の送信先の通信機器2に対して資源状態を問い合わせ、資源が空きの状態であるときには、資源予約を入れ(図5中の(5),(6),(7)参照)、その旨をエージェント復元部201に出力するようになっている(図5中の(8)参照)。
After the mobile agent restoration instruction is input to the
エージェント間通信部206は、送信先の通信機器2のシステムエージェント20に対して、通信機器2の資源の空き状態を問い合わせるようになっている(図5中の(6)参照)。
The inter-agent communication unit 206 inquires of the
ここで、エージェントサーバ1により生成されるモバイルエージェント10について説明する。
Here, the
このモバイルエージェント10は、上述したように、通信機器2に所定の目的とする処理(以下、目的処理という)を実行させるためのオブジェクトコードを有しているのみならず、図3に示すように、必ず通過し、その箇所で必ず実行しなければならない通信機器2のノード番号を有する移動経路情報と、その通過し得る回数を示す許可回数とを備える経路リスト101を有するようになっている。
As described above, the
ここで、上述したエージェント復元部201のモバイルエージェントの復元内容を詳細に説明する。
Here, the restoration contents of the mobile agent of the
エージェント復元部201は、先に受信したモバイルエージェント10の送信元のノードが経路リスト101に有する場合には、中間コード変換部204から受けた中間コードに、先に受信したノードの箇所の許可回数から1引いた許可回数を有する経路リスト101を付加したモバイルエージェント10を復元するようになっている。
When the node that is the transmission source of the
従って、エージェント復元部201は、図6中のAのノード4の箇所が示すように、受信した際の許可回数が1のモバイルエージェント10については、もはやそのノードに移動する必要がないので、再びモバイルエージェント10を復元する際には、その情報が不要であり、この情報を削除するようになっている。
Therefore, as indicated by the location of the
また、エージェント復元部201は、経路リスト101にないノードを移動させる復元指示を受けた場合には、中間コード変換部204から受けた中間コードの経路リスト101に、新たに移動させるノード名とその許可回数と追加した経路リスト101を有するモバイルエージェント10を復元するようになっている。
Further, when the
因みに、図7(a)に示した例では、エージェント復元部201は、以前から有している移動経路としてのノード1,ノード2およびノード3に、新たに許可回数1を有するノード4を追加した経路リスト101を有するモバイルエージェント10を復元している。
Incidentally, in the example shown in FIG. 7A, the
さらに、エージェント復元部201は、経路リスト101にはあるがその該当ノードの許可回数を変更させる復元指示を受けた場合には、中間コード変換部204から受けた中間コードの経路リスト101の該当箇所の許可回数を指示された回数に変更した経路リスト101を有するモバイルエージェント10を復元するようになっている。
Further, when the
因みに、図7(b)に示した例では、エージェント復元部201は、以前から有している移動経路としてのノード1,ノード2およびノード3に、新たに許可回数1を有するノード4の許可回数2とした経路リスト101を有するモバイルエージェント10を復元している。
Incidentally, in the example shown in FIG. 7B, the
次に、この実施形態のエージェントシステムの動作を、通信機器がモバイルエージェントを復元し、この復元されたモバイルエージェントが他の通信機器に移動し、移動した通信機器内のメモリ領域に記憶させるまでの処理動作を説明するに先だって、(1)モバイルエージェントを受信したシステムエージェントの概略処理、(2)システムエージェントが経路リストから移動経路情報を削除する処理、(3)システムエージェントが経路リストの移動経路情報を追加または更新する処理について、それぞれ図8,図9,図10のフローチャートを参照して明する。 Next, the operation of the agent system according to this embodiment is performed until the communication device restores the mobile agent, the restored mobile agent moves to another communication device, and is stored in the memory area in the moved communication device. Prior to explaining the processing operation, (1) the outline process of the system agent that received the mobile agent, (2) the process of deleting the movement route information from the route list by the system agent, and (3) the movement route of the route list of the system agent Processing for adding or updating information will be described with reference to the flowcharts of FIGS. 8, 9, and 10, respectively.
(1)モバイルエージェントを受信したシステムエージェントの概略処理について
モバイルエージェント10を受信した通信機器2のシステムエージェント20は、メモリ領域に記憶したモバイルエージェント10を実行して、目的処理が達成したか否かを判断し(ステップ110)、目的処理が達成したと判断した場合には(ステップ110;Y)、モバイルエージェント10を次の通信機器2に移動させずに、エージェントサーバ1に戻して処理を終了する一方、目的処理が達成していないと判断した場合には(ステップ110;N)、許可回数がすべて0であるか否かを判断する(ステップ120)。
(1) Schematic processing of a system agent that has received a mobile agent The
システムエージェント20は、経路リスト101のすべての移動経路情報における許可回数がすべて0であると判断した場合には(ステップ120;Y)、目的処理を再設定させるため、エージェントサーバ1に戻し、処理を終了する一方、許可回数がすべて0でないと判断した場合には(ステップ120;N)、経路リスト101に基づき、モバイルエージェント10を次の通信機器に移動させ(ステップ130)、処理をステップ110に戻し、上述したと同様な処理を継続する。
When the
(2)システムエージェントが経路リストから移動経路情報を削除する処理
モバイルエージェント10を受信した通信機器2のシステムエージェント20は、モバイルエージェント10を復元するに際し、メモリ領域に記憶されている、先に受信したモバイルエージェント10を読み出し、この読み出したモバイルエージェント10にある経路リスト101に、自己のノード番号があるか否かを判断する(ステップ210)。
(2) Process in which system agent deletes travel route information from route list When
システムエージェント20は、経路リスト101に自己のノード番号がないと判断した場合には(ステップ210;N)、移動経路情報の削除処理を終了する一方、自己のノード番号があると判断した場合には(ステップ210;Y)、該当するノードの許可回数から1減算した値を、新たな許可回数とする(ステップ220)。
When the
システムエージェント20は、新たな許可回数が0以下になった場合か否かを判断し(ステップ230)、判断した結果、新たな許可回数が0以下になっていないと判断した場合には(ステップ230;N)、移動経路情報の削除処理を終了する一方、新たな許可回数が0以下になっていると判断した場合には(ステップ230;Y)、該当する移動経路情報を削除し(ステップ240)、移動経路情報の削除処理を終了する。
The
(3)システムエージェントが経路リストの移動経路情報を追加または更新する処理について
モバイルエージェント10を受信した通信機器2のシステムエージェント20は、モバイルエージェント10を復元するに際し、メモリ領域に記憶されている、先に受信したモバイルエージェント10を読み出し、この読み出したモバイルエージェント10にある経路リスト101に、追加するノードがあるか否かを判断する(ステップ310)。
(3) Processing for system agent to add or update movement route information of route list The
システムエージェント20は、追加するノードがある場合には(ステップ310;Y)、追加するノードの移動経路情報を経路リスト101に追加し、移動経路情報を追加または更新する処理を終了する。
If there is a node to be added (
一方、システムエージェント20は、追加するノードがないと判断した場合には(ステップ310;N)、移動経路情報を追加または更新する処理を終了する一方、更新するノードがあると判断した場合には(ステップ320;Y)、該当するノードの許可回数から1加算した値を新たな許可回数とし(ステップ330)、移動経路情報を追加または更新する処理を終了する。
On the other hand, when the
次に、この実施形態のエージェントシステムの動作を、通信機器がモバイルエージェントを復元し、この復元されたモバイルエージェントが他の通信機器に移動し、移動した通信機器内のメモリ領域に記憶させるまでの処理動作を、図11に基づき説明する。 Next, the operation of the agent system according to this embodiment is performed until the communication device restores the mobile agent, the restored mobile agent moves to another communication device, and is stored in the memory area in the moved communication device. The processing operation will be described with reference to FIG.
#iの通信機器2のシステムエージェント20は、モバイルエージェント10から制御部を介して移動要求を受けると、すなわち、制御部から所定のエージェントを復元するように復元指示を受けると(図11中の(1)参照)、エージェント復元部201がフラグ格納部202に“ON”(=1)のフラグをセットさせ、資源をロックする(図11中の(2)参照)。
When the
続いて、エージェント復元部201は、メモリ領域に記憶されている、先に受信したモバイルエージェント10を読み出し、所定の経路リストを有するモバイルエージェントを形成し、これをメモリ領域に記憶するとともに、先に受信したモバイルエージェント10の処理状況を監視させる指示を資源管理部205に出力する(図11中の(3)参照)。
Subsequently, the
すると、資源管理部205は、先に受信したモバイルエージェント10の処理状況を監視し(図11中の(4)参照)、先に受信したモバイルエージェント10が所定箇所の処理を実行すると、エージェント間通信部206を介して送信先の通信機器2に対して、復元したモバイルエージェント10のメモリに占めるサイズを通知し、このサイズ分のメモリ領域を確保させる指示(資源予約)を出力する(図11中(5),(6)参照)。
Then, the
送信先の#kの通信機器2がエージェント間通信部206を介して所定サイズ分のメモリ領域を確保するように指示を受けると、そのエージェント復元部201は、メモリ領域が確保できたきには、フラグ格納部202に格納されているフラグを“ON”にセットし(図11中の(8)参照)、エージェント間通信部206を介して#iの通信機器における資源管理部205に資源予約が完了した旨を通知する(図11中の(9),a,b参照)。
When the destination #
一方、送信先の#kの通信機器2におけるエージェント復元部201は、メモリ領域が確保できない場合には、フラグ格納部202に格納されているフラグを“OFF”のままにセットしておき、エージェント間通信部206を介して#iの通信機器における資源管理部205に対して、資源予約ができなかった旨を通知する(図11中の(9),a,b参照)。
On the other hand, when the memory area cannot be secured, the
資源管理部205は、資源予約が完了した旨を受けると、その旨をエージェント復元部201に通知する(図11中のc参照)。
When the
すると、エージェント復元部201は、すでに生成してメモリ領域に記憶されているモバイルエージェント10を読み出し(図11中のd参照)、これをMPUコード変換部203に出力する(図11中のe参照)。
Then, the
MPUコード変換部203は、エージェント復元部201からモバイルエージェント10を受けると(図11中のe参照)、受けたモバイルエージェント10をMPUコードに変換し、このMPUコードに変換したモバイルエージェント10を中間コード変換部204に出力する(図11中のf参照)。
Upon receiving the
中間コード変換部204は、MPUコード変換部203から受けたMPUコードに変換されたモバイルエージェント10を中間コードに変換し、送信先の#kの通信機器2に送信する(図11中のg,h参照)。
The intermediate
#iの通信機器から中間コードからなるモバイルエージェント10を受信した#kの通信機器では、中間コード変換部204が、送信されてきた中間コードからなるモバイルエージェント10をMPUコード変換部203に出力する(図11中のl,m参照)。
In the #k communication device that has received the
MPUコード変換部203は、中間コードに変換されたモバイルエージェント10を中間コード変換部204から受けると(図11中のm参照)、中間コードのモバイルエージェント10をMPUコードのモバイルエージェント10に変換し、これをエージェント復元部201に出力する(図11中のn参照)。
Upon receiving the
エージェント復元部201は、MPUコードに変換されたモバイルエージェント10をMPUコード変換部203から受けると(図11中のn参照)、元のモバイルエージェントに変換してメモリ領域に記憶する(図11中のo参照)。
Upon receiving the
その後、エージェント復元部201は、自己の資源を開放すべくフラグ格納部202に“OFF”をセットさせる指示を出力し(図11中のp参照)、制御部に実行権を移行させる。
After that, the
なお、エージェントサーバ1がモバイルエージェントを生成し、この生成されたモバイルエージェント10が他の通信機器に移動し、移動した通信機器内のメモリ領域に記憶させるまでの処理動作については、上述した復元したモバイルエージェント10の場合と同様なので、その説明を省略する。
Note that the processing operation until the
この実施形態のエージェントシステムでは、通信機器2が、先に受信したモバイルエージェント10から、必要に応じて移動経路情報を変更したエージェントを復元するため、目的地を再度設定する必要性がなくなる。
In the agent system of this embodiment, since the
また、通信機器2が、復元したモバイルエージェント10の送信を予定している通信機器2に対して、この復元したモバイルエージェント10を記憶するメモリ領域を予約するため、復元したエージェントを確実に送信先に送ることができる。
In addition, since the
さらに、この異なる処理系の通信機器2がともに処理できる中間コードに変換して送信するため、異なる処理系で構成さた通信機器2間にモバイルエージェント10を送信することができる。
Furthermore, since the
<第2実施形態>
図12は通信機器2が復元したモバイルエージェントの構成を示すブロック図である。
Second Embodiment
FIG. 12 is a block diagram showing the configuration of the mobile agent restored by the
第1実施形態のエージェントシステムでは、システムエージェント20が、上述したような経路リスト101および目的処理からなるモバイルエージェント10を復元するような構成になっているが、この第2実施形態のエージェントシステムでは、システムエージェント20が、図12に示すように、さらに、通過した通信機器2のノードの履歴を示す経路収集リスト102を設けたモバイルエージェント10を復元するような構成になっている。
In the agent system of the first embodiment, the
このように、各通信機器2のシステムエージェント20により、モバイルエージェント10内に経路収集リスト102を設けたことにより、最短時間で目的地の通信機器2の到達する経路を取得することができる。
In this way, by providing the route collection list 102 in the
なお、各ノードでのシステムエージェント20の処理能力等の違いにより、モバイルエージェント10の目的地に到達する時間が異なるため、モバイルエージェント10が移動する通信機器2のノード数が少ない経路を、必ずしも最短経路とすることができないことはいうまでもない。
Note that, since the time to reach the destination of the
以下、モバイルエージェントの最短経路を取得する処理を、図13を参照して説明する。 Hereinafter, the process of acquiring the shortest path of the mobile agent will be described with reference to FIG.
例えば、エージェントサーバ1が、(1)経路リスト101において経路リスト101に移動経路情報としてA,D,Fおよび目的地としてのHのノードを有し、受信したシステムエージェント20に所定の処理(タスク)を実行させる#1の処理を実行させるモバイルエージェント10と、(2)経路リスト101に移動経路情報としてB,D,FおよびHのノードを有する#2のモバイルエージェント10と、(3)経路リスト101に移動経路情報としてC,E,GおよびHのノードを有する#3のモバイルエージェント10とをほぼ同時に送信したとする。
For example, the agent server 1 (1) in the
ここで、仮に#2のモバイルエージェント10が最初にHのノードに到達したとすると、Hのノードの通信機器2中のシステムエージェント20は、フラグ格納部202に有する自己が有する経路選択終了フラグをONにし、経路収集リスト102に自己のノード(経路収集情報)を有するモバイルエージェント10を復元し、これをエージェントサーバ1に戻す。
If the
エージェントサーバ1は、戻ってきたモバイルエージェント20の経路収集リスト102を参照することにより、目的地に到達する最短経路を知り、このモバイルエージェント10を消滅させる。
The
以後、エージェントサーバ1は、モバイルエージェント10の送信先がHノードの場合には、先に取得した経路終収集リスト102に基づいて経路リスト101を生成する。
Thereafter, when the transmission destination of the
ところで、Hのノードのシステムエージェント20は、その後、他のモバイルエージェント10を受信すると、経路選択終了フラグがONになっているのを確認したのち、到達したモバイルエージェント10を消滅し、エージェントサーバ1に戻さないようにしている。
このように、本発明では、他の通信機器2にエージェントを送信するに際してモバイルエージェント10を復元するに際し、復元したモバイルエージェント10に経路収集情報を有しているため、エージェントサーバから目的地の通信機器2に到達するまでの経路収集情報を得ることができる。
従って、エージェントサーバ1から複数のモバイルエージェント10を同時に目的地に送信することで、最も短時間に目的地に到達したモバイルエージェント10の経路収集情報を調べることができる。
By the way, when the
As described above, in the present invention, when the
Therefore, by transmitting a plurality of
1 エージェントサーバ
10 モバイルエージェント
101 経路リスト
102 経路収集リスト
2 通信機器
20 システムエージェント
201 エージェント生成部、エージェント復元部
202 フラグ格納部
203 MPUコード変換部
204 中間コード変換部
205 資源管理部
206 エージェント間通信部
3 記憶装置
4 通信回線
DESCRIPTION OF
Claims (5)
前記通信機器は、
先に受信してメモリ領域に記憶されているエージェントの移動経路情報を、必要に応じて変更して、所定の移動経路情報を有するエージェントに復元し、この復元したエージェントを送信するエージェント復元送信手段と、
前記移動経路情報に基づき、送信を予定している通信機器に対し、予め、送信を予定しているエージェントを記憶させるメモリ領域を予約するメモリ領域予約手段と、
前記移動経路情報に基づき、前記エージェントを次の通信機器に送信するに際し、その送信先の通信機器が仮に異なる処理コードを実行する通信機器であっても、処理可能な中間コードに前記エージェントを変換し、これを送信する中間コード変換送信手段と、
を具備し、
前記エージェントは、前記移動経路情報とともに、通過した通信機器のノード番号の履歴を経路収集情報として有しており、
前記エージェント復元送信手段は、他の通信機器にエージェントを送信するに際し、自己のノード番号を前記経路収集情報に追加登録したエージェントを復元して送信するとともに、
前記エージェントサーバは、互いに相違する移動経路の途中の通信機器のノード番号と互いに一致する最終目的地の通信機器のノード番号とが登録された移動経路情報を各々が一つずつ有する複数のエージェントを同時に通信機器に送信し、帰還したエージェント中の前記経路収集情報を読み出す一方、
前記最終目的地の通信機器は、前記エージェントサーバから送信された複数のエージェントのうち、自身に最も早く到達したエージェントのみを前記エージェントサーバに帰還させる
ことを特徴とするエージェントシステム。 An agent server and a plurality of communication devices are connected by a communication line of a wired line or a wireless line, and an agent having movement path information generated from the agent server is transmitted based on the movement path information via the communication line. An agent system that moves between communication devices,
The communication device is:
Agent restoration transmission means for changing the movement route information of the agent received first and stored in the memory area as needed, restoring it to an agent having predetermined movement route information, and sending the restored agent When,
Memory area reservation means for reserving a memory area for storing an agent scheduled for transmission in advance for a communication device scheduled for transmission based on the movement path information;
Based on the travel route information, when the agent is transmitted to the next communication device, the agent is converted into a processable intermediate code even if the destination communication device executes a different processing code. Intermediate code conversion transmission means for transmitting this,
Equipped with,
The agent has, as the route collection information, a history of the node number of the communication device that has passed along with the movement route information.
The agent restoration transmission means restores and transmits the agent whose node number is additionally registered in the route collection information when transmitting the agent to another communication device,
The agent server includes a plurality of agents each having one piece of movement route information in which node numbers of communication devices in the middle of different movement routes and node numbers of communication devices of final destinations that coincide with each other are registered. While simultaneously transmitting to the communication device and reading the route collection information in the returned agent,
The agent system according to claim 1, wherein the communication device at the final destination returns only the agent that has reached the earliest among the plurality of agents transmitted from the agent server to the agent server .
エージェントが移動してくる際に予め、このエージェントを記憶するメモリ領域を確保し、また、このエージェントを送信したのち前記メモリ領域から前記エージェントをクリアして開放するメモリ領域予約開放手段を具備する
ことを特徴とする請求項1に記載のエージェントシステム。 The communication device is:
When an agent moves, a memory area for storing the agent is secured in advance, and a memory area reservation releasing unit is provided for clearing and releasing the agent from the memory area after transmitting the agent. The agent system according to claim 1 .
先に受信したエージェントの処理の進捗具合を検知するエージェント処理進捗検知手段、
を有しており、
このエージェント処理進捗検知手段により、前記先に受信したエージェントが所定箇所を実行したと検知されると、送信を予定している通信機器に対し、メモリ領域を予約する
ことを特徴とする請求項1または2に記載のエージェントシステム。 The memory area reservation means includes
Agent processing progress detection means for detecting the progress of the processing of the agent received earlier;
Have
The memory area is reserved for a communication device scheduled to transmit when the agent processing progress detection means detects that the previously received agent has executed a predetermined location. Or the agent system of 2.
前記通信機器により、
先に受信してメモリ領域に記憶されているエージェントの移動経路情報を、必要に応じて変更して、所定の移動経路情報を有するエージェントに復元し、
前記移動経路情報に基づき、送信を予定している通信機器に対し、予め、送信を予定しているエージェントを記憶させるメモリ領域を予約し、
前記移動経路情報に基づき、前記エージェントを次の通信機器に送信するに際し、その送信先の通信機器が仮に異なる処理コードを実行する通信機器であっても、処理可能な中間コードに前記エージェントを変換し、これを送信するとともに、
前記エージェントは、前記移動経路情報とともに、通過した通信機器のノード番号の履歴を経路収集情報として有しており、
前記通信機器により、他の通信機器にエージェントを送信するに際し、自己のノード番号を前記経路収集情報に追加登録したエージェントを復元して送信するとともに、
前記エージェントサーバにより、互いに相違する移動経路の途中の通信機器のノード番号と互いに一致する最終目的地の通信機器のノード番号とが登録された移動経路情報を各々が一つずつ有する複数のエージェントを同時に通信機器に送信し、帰還したエージェント中の前記経路収集情報を読み出す一方、
前記最終目的地の通信機器により、前記エージェントサーバから送信された複数のエージェントのうち、自身に最も早く到達したエージェントのみを前記エージェントサーバに帰還させる
ことを特徴とする通信方法。 An agent server and a plurality of communication devices are connected by a communication line of a wired line or a wireless line, and an agent having movement path information generated from the agent server is transmitted based on the movement path information via the communication line. A communication method for moving between communication devices,
By the communication device,
The agent's movement route information received first and stored in the memory area is changed as necessary, and restored to an agent having predetermined movement route information,
Based on the travel route information, for a communication device that is scheduled to transmit, reserve in advance a memory area for storing an agent that is scheduled to transmit,
Based on the travel route information, when the agent is transmitted to the next communication device, the agent is converted into a processable intermediate code even if the destination communication device executes a different processing code. And send this,
The agent has, as the route collection information, a history of the node number of the communication device that has passed along with the movement route information.
When transmitting an agent to the other communication device by the communication device, the agent that additionally registered its own node number in the route collection information is restored and transmitted,
The agent server includes a plurality of agents each having one piece of moving route information in which node numbers of communication devices in the final destination that coincide with node numbers of communication devices in the middle of different moving routes are registered. While simultaneously transmitting to the communication device and reading the route collection information in the returned agent,
A communication method characterized in that, by the communication device at the final destination, only the agent that has reached the earliest among the plurality of agents transmitted from the agent server is returned to the agent server .
エージェントが移動してくる際に予め、このエージェントを記憶するメモリ領域を確保し、また、このエージェントを送信したのち前記メモリ領域から前記エージェントをクリアして開放する
ことを特徴とする請求項4に記載の通信方法。
By the communication device,
Advance when the agent comes moved, it allocates a memory area for storing the agent, also from the memory area after sending the agent to claim 4, characterized in that the opening clear the agent The communication method described .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004252528A JP3735730B2 (en) | 2004-08-31 | 2004-08-31 | Agent system and communication method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004252528A JP3735730B2 (en) | 2004-08-31 | 2004-08-31 | Agent system and communication method |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP10079814A Division JPH11282683A (en) | 1998-03-26 | 1998-03-26 | Agent system |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2005004793A JP2005004793A (en) | 2005-01-06 |
JP3735730B2 true JP3735730B2 (en) | 2006-01-18 |
Family
ID=34101475
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004252528A Expired - Fee Related JP3735730B2 (en) | 2004-08-31 | 2004-08-31 | Agent system and communication method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3735730B2 (en) |
-
2004
- 2004-08-31 JP JP2004252528A patent/JP3735730B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2005004793A (en) | 2005-01-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111091200B (en) | Updating method and system of training model, intelligent device, server and storage medium | |
JPH11282683A (en) | Agent system | |
JP2011118587A (en) | System for executing cooperative service by plurality of servers | |
JP2017162257A (en) | Load monitoring program, load monitoring method, information processing device, and information processing system | |
JPWO2019203221A1 (en) | Equipment control device, equipment control method, and equipment control system | |
JP6024138B2 (en) | Cluster system | |
JP3735730B2 (en) | Agent system and communication method | |
JP5084355B2 (en) | Flow processing execution device, flow processing execution method, and program | |
JP2009110337A (en) | Information processing apparatus, information processing system, and information processing method | |
JP2006318081A (en) | Backup system, backup management device and backup management method and program | |
JP5761345B2 (en) | Communication network system, communication method, and information processing apparatus | |
TW402710B (en) | Method and system for packet control list format for controlling a DMA machine in a packetized data communications system | |
US9678815B2 (en) | Information processing system, information processing apparatus, and method of controlling them | |
US9652342B2 (en) | Redundancy processing method and system, and information processing apparatus thereof | |
JP2010009147A (en) | Information processor, information processing method and program | |
JP5965781B2 (en) | Resource management apparatus, resource management method and program | |
JP2020027308A (en) | Atomicity assurance device and method for guaranteeing atomicity | |
CN108966254A (en) | A kind of method and system of deployment and control wireless network element | |
CN113554171B (en) | Model customization system and method | |
JP2011130172A (en) | Transmission device, transmission system, backup path management method, and backup path management program | |
JP5251197B2 (en) | Message processing method, message processing apparatus, and program | |
CN113568719B (en) | Service fault processing method and device, electronic equipment and storage medium | |
JP4715802B2 (en) | Communications system | |
JP2017058923A (en) | Log recording system | |
JP5965782B2 (en) | Data transmitting apparatus, data transmitting method and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A712 Effective date: 20050119 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050307 |
|
RD02 | Notification of acceptance of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7422 Effective date: 20050329 |
|
A072 | Dismissal of procedure [no reply to invitation to correct request for examination] |
Free format text: JAPANESE INTERMEDIATE CODE: A072 Effective date: 20050614 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20050622 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050822 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20050926 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20051009 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313113 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091104 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101104 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101104 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111104 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111104 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121104 Year of fee payment: 7 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131104 Year of fee payment: 8 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
LAPS | Cancellation because of no payment of annual fees |