agent management 652
TRANSCRIPT
12 April 2023 Agent management 1
Agent managementLIFE CYCLE & LOG STRUCTUREYUOSEF M. RADI
Research for CS 652Dr. FATHI AL-BORAEI
12 April 2023 Agent management 2
Outline
Introduction.Introduction. Agent management. Life cycle. Mobile agent life state log structure. Storage method. Proposal. Question. Reference.
12 April 2023 Agent management 3
Introduction
An agent is created on a certain agent server and it will run autonomously.
Each agent has a life cycle, and each agent has several different life states during entire lifetime.
12 April 2023 Agent management 4
Introduction
The mobile agent migrates among agent servers as needed to execute given tasks using different services provided by individual servers.
After accomplishing its given tasks, mobile agent terminates. A “common ground” between these agents needs to be
available to enable agent coordination.
12 April 2023 Agent management 5
Outline
Introduction.
Agent management system.Agent management system. Agent Platform.Agent Platform.
FIBA standard.FIBA standard. Grasshopper standard.Grasshopper standard.
Life cycle. Mobile agent life state log structure. Storage method. Proposal. Question. Reference.
12 April 2023 Agent management 6
Agent Platform
FIBA standard AMS (Agent management Agent management
systemsystem) is recognized to be an important part of an agent platform.
Only one AMS will exist in a single AP.
Agent Platform
Message Transport System
Agent Platform Security Manager
Agent Management&
Directory Facilitator
Agent Application
12 April 2023 Agent management 7
Agent Platform
The AMS is responsible for: managing the operation of an AP, such as:
creation, deletion and migration of agents to and from the AP.
Maintained an agent life cycle. understand the life cycle model for which an agent has
been designed.
12 April 2023 Agent management 8
Agent Platform
Grasshopper standard: Management Service: allow
the monitoring and control of agents and places
create, remove, suspend and resume agents, services, and places.
get information about specific agents and services.
list all agents residing in a specific place, and to list all places of an agency.
12 April 2023 Agent management 9
Outline
Introduction. Agent management.
Life cycle.Life cycle. Life cycle definition.Life cycle definition. Life cycle in different technology.Life cycle in different technology. Life cycle model.Life cycle model. Life cycle states.Life cycle states.
Mobile agent life state log structure. Storage method. Proposal. Question. Reference.
12 April 2023 Agent management 10
Life cycle definition
An agent life cycle can be defined as: A series of stages through which an agent passes during its lifetime.
An agent’s state can be used to provide coordination mechanisms with useful status information.
12 April 2023 Agent management 11
Life cycle in different technology FIPA agents can be in one of the following states:
Initiated. After creation, the agent is said to be in the initiated state.
Active. After invoking the agent, it is active. The central state of a FIPA agent is the so-called active state. After moving into another state, agents always return to the
active state before additional state transitions are possible. Transit.
the move function failed on the original AP. the agent was successfully started on the destination AP
Suspended.
12 April 2023 Agent management 12
Life cycle in different technology Pathfinder model consists of the following
states and transitions between them: Stopped. Running. Suspended. Aborted. Completed.
12 April 2023 Agent management 13
Life cycle in different technology MASIF includes the following functions:
Creation. Termination. Suspension. Transfer. Resumption.
12 April 2023 Agent management 14
Life cycle model
Life cycle model as presented in the following research paper: Supporting Life Cycle Coordination in Open Agent
Systems
12 April 2023 Agent management 15
Life cycle model
life cycle models are used by mobile management systems to:
Monitor the state of agents. Control agent-state changes.
The basic life states are:1. Suspending
the agent can not run and still stay within the agent server.
2. Activatedrunning and able to perform actions.
3. Migratingtravelling between two server.
Migration
Suspend
Activated
Creation Termination
Arr
ival
Departure
Run
Finish
Term
inati
on
12 April 2023 Agent management 16
Life cycle model
From an agent’s perspective, the most important state is the active state, in which it can perform its tasks.
From a management perspective, the suspended state is the most important state.
Why? A management system can perform actions on the agent
without interfering with its tasks. Security chicks on agent when it’s arrive to see if agent are
carrying stolen or harm data.
12 April 2023 Agent management 17
Outline
Introduction. Agent management. Life cycle.
Mobile agent life state log Mobile agent life state log structure.structure.
Storage method. Proposal. Question. Reference.
12 April 2023 Agent management 18
Mobile agent life state log structure During its life cycle, a mobile agent may go
through many states, In order to improve the mobile agent management, we have to record these states.
The mobile agent life state log structure is described as a four-items: Life_State_Log_Structure=
(Agentld, State-Type, Time, Place)
12 April 2023 Agent management 19
Mobile agent life state log structure
Where: Agentld: identifies a log item belongs to which mobile agent. State-Type: indicates the type of mobile agent life state. Time: indicates the time when the mobile agent came to the
current State Type. Place: identifies the agent server where the mobile agent came
to the current State-Type at the specific time.
12 April 2023 Agent management 20
Outline
Introduction. Agent management. Life cycle. Mobile agent life state log structure.
Storage method.Storage method. Proposal. Question. Reference.
12 April 2023 Agent management 21
Storage method
Agent life state log structure storage methods as discussed in the following research paper: Mobile Agent Life State Management
12 April 2023 Agent management 22
Storage method
The storage method of the agent life state log indicates that where the log was stored.
There are many places to store the logs in a mobile agent system:
i. The agent server where the mobile agent is created.A necessary storage place.
ii. The agent server where the mobile agent currently stays.One of its basic functions.
iii. The mobile agent itself.Temporary place.
12 April 2023 Agent management 23
Storage method
12 April 2023 Agent management 24
Storage method
1. The agent server where the mobile agent is created:It is a necessary storage place because the mobile agent creator needs to know the status of its created agents during their life cycle.
2. The agent server to which the mobile agent migrates:Is a definite choice of place of life state log storage because managing the coming agent is one of its basic functions.
3. The mobile agent can take its life state logs too:but it is only temporary place because the mobile agent will be terminated at future time.
12 April 2023 Agent management 25
Outline
Introduction. Agent management. Life cycle. Mobile agent life state log structure. Storage method.
ProposalProposal.. Question. Reference.
12 April 2023 Agent management 26
Proposal
The storage strategy goes as follows: When a mobile agent migrates to an agent server,
both the server and the mobile agent itself log the agent life state change.
When the agent returns to its creator server, the mobile agent transfers the logs to the server and deletes the same from its own storage.
12 April 2023 Agent management 27
Proposal
Advantage. The life state logs will be stores in many
distributed places, so the reliability is increased. The creator server can search and analyze locally
life state logs of all the agents it created, which will decrease the network load and increase the search speed.
12 April 2023 Agent management 28
Proposal
12 April 2023 Agent management 29
Example
00:00:00
00:00:43
00:01:26
00:02:10
00:02:53
00:03:36
00:04:19
00:05:02
Susp
endin
g
Susp
endin
g
Susp
endin
g
Migra
tion
Migra
tion
Migra
tion
Activ
ating
Activ
ating
Activ
ating
M#0 M#1 M#2 M#0 M#1 M#2 M#0 M#1 M#2
Duration
Duration
PLACE AGENT-ID STATE-TYPE TIME Duration
MACHINE 0 AGENT 1 Suspending 00:00:01 00:00:0100:00:01
MACHINE 0 AGENT 1 Activating 00:00:02 00:00:0800:00:08
MACHINE 0 AGENT 1 Suspending 00:00:10 00:00:1000:00:10
MACHINE 0 AGENT 1 Migration 00:00:20 00:00:4000:00:40
MACHINE 1 AGENT 1 Suspending 00:01:00 00:00:0500:00:05
MACHINE 1 AGENT 1 Activating 00:01:05 00:01:0000:01:00
MACHINE 1 AGENT 1 Suspending 00:02:05 00:00:4000:00:40
MACHINE 1 AGENT 1 Migration 00:02:45 00:00:2500:00:25
MACHINE 2 AGENT 1 Suspending 00:03:10 00:02:3000:02:30
MACHINE 2 AGENT 1 Activating 00:05:40 00:01:0000:01:00
MACHINE 2 AGENT 1 Suspending 00:06:40 00:02:2000:02:20
MACHINE 2 AGENT 1 Migration 00:09:00 00:03:0000:03:00
12 April 2023 Agent management 30
Outline
Introduction. Agent management. Life cycle. Mobile agent life state log structure. Storage method. Proposal.
Question.Question. Reference.
12 April 2023 Agent management 31
Question
QuestionObjectiveComments
12 April 2023 Agent management 32
Outline
Introduction. Agent management. Life cycle. Mobile agent life state log structure. Storage method. Proposal. Question.
Reference.Reference.
12 April 2023 Agent management 33
Reference
Mobile Agent Life State Management. Managing Agent Life Cycles in Open
Distributed Systems Supporting Life Cycle Coordination in Open
Agent Systems Design and implementation of a FIPA
compliant. Grasshopper A Universal Agent.