Docsity

Mobile Computing - The Mobile Agent Model, Study notes of Mobile Computing

Toggle sidebar
bg1
11/25/14 1
The Mobile Agent Model
1. Mobile agent receives client request
2. Mobile agent moves into fixed network
3. Mobile agent acts as a client to the server
4. Mobile agent performs transformations
and filtering
5. Mobile agent returns back to mobile
platform, when the client is connected
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Mobile Computing - The Mobile Agent Model and more Study notes Mobile Computing in PDF only on Docsity!

The Mobile Agent Model

1. Mobile agent receives client request

2. Mobile agent moves into fixed network

3. Mobile agent acts as a client to the server

4. Mobile agent performs transformations

and filtering

5. Mobile agent returns back to mobile

platform, when the client is connected

Comparison of 3 Network

computing paradigm

  • (^) Client-Server Paradigm Code-on-Demand

Paradigm

Know- how

Client

Server

Client

Know- how Know how Server Download (Applet) Agent Agent Know- how Know- how

Host Host

Network

Mobile Agent

Paradigm

Agent States and Lifecycle

  • (^) At any point in its lifecycle, an agent resides in one of the following three states: - Active : Agent enters this state on creation; in this state, agent is executing inside the live() method (agent thread running); after the live() method completes, the agent is still active, and can have its methods invoked by other agents - (^) Suspended : Agent thread suspended; a suspended agent cannot have its methods invoked by other agents, and can resume itself - (^) Flushed : Agent’s data state (persistently) stored, but agent instance is removed from the agency; a flushed agent re- activated (indirectly) by other agents invoking methods on the flushed agent

Agent States and Lifecycle

active suspended flushed

creation

flushing

reactivation

suspension resumption

deletion

There are methods to change the state of an agent: e.g., FlushAgent(), suspendAgent( ), resumeAgent()

MA System Architecture

  • (^) The main components include
    • (^) mobile agents (defined before)
    • (^) places
      • (^) supports the execution of particular procedures and provides access to local resources.
    • (^) agent systems
      • (^) Places inside an agent system may share resources, code, or security mechanisms and, in general, have a privileged relationship with each other and less expensive mobility.
    • (^) Regions
      • (^) Agent systems may be grouped in regions. A region represents a security domain where network-wide resources are accessed following a uniform policy.
    • (^) Principals
      • (^) Agents, places, agent systems, and regions are associated with a number of principals that represent real-world entities such as a person, an organization, or a company.

Stationary VS Mobile

• Stationary agent

  • (^) Can just sit there and communicate with its environment through conventional means (RMI & message passing)
  • (^) Executes only on the system on which it begins execution

• Mobile agent

  • (^) Free to travel among the hosts in the network
  • (^) Transport is state and code with it

Mobility concepts for mobile

agents

  • (^) Remote Execution
    • (^) The agent program is transferred before its activation to some remote node, where it runs until to its termination
  • (^) Remote Evaluation
    • An operation (a procedure + parameters) is transferred to a remote site, where it is performed entirely.
  • (^) Code on demand
    • (^) The destination itself initiates the transfer of the program code. (ActiveX , Java Applets)
  • (^) Code mobility (Remote execution and Code on Demand) – Mobile Code - (^) transfer agent programs before their activation.
  • (^) Agent mobility – Mobile Agent
    • (^) May migrate from node to node in a network

Agent application

  • (^) Low level
    • (^) Network maintenance
    • (^) Testing and fault diagnosis
    • (^) Installation and software upgrade
  • (^) Middleware – user applications
    • (^) Electronic market place
    • (^) Active mail messages Agent Server
  • (^) Agent code execution
  • (^) Primitive operations
    • (^) Migrate
    • (^) Communicate
    • (^) Access resources
    • (^) Application specific services

What application domains do mobile agents have potential deployment?

  1. Data-intensive applications where the data is remotely located, is owned by the remote service provider, and the sure has specialized needs.
  2. Agents are launched by an appliance – i.e. limitation computing power and memory
  3. Mobile client - Cellular phone and PDAs.
  4. Extensible servers, where a user can ship and install an agent representing him more permanently on a remote server.  Personalized e-commerce
  5. Disconnected computing.
  6. Information retrieval situations  (^) Can sent a agent to the large data source and filter through the data locally.

Applications of Agent Systems

  • (^) E- Commerce – Agents act and negotiate on behalf of the user. Example: Auctions, service negotiations, etc.
  • (^) Personal Assistant – acts like a remote assistant. For example, can search and book airline ticket depending on a search criteria.
  • (^) Secure Brokering - Mobile agents meet and collaborate on mutually agreed secure host.
  • (^) Distributed information retrieval - Agent are dispatched to remote information sources and they can perform extended searches not restricted by working hours or connectivity.
  • (^) Information distribution – works on the push model. Software
  • (^) Parallel processing – agents can execute concurrently in a distributed system. A single task can be decomposed amongst multiple agents.
  • (^) Network Security testing - Agents can be used in network intrusion detection.
  • (^) Database searches – It is efficient to send out an agent to perform a specialized search on a large database than to move big chunks of data to the client using up enormous amount of bandwidth.

Potential usage for mobile client

  • (^) Mobile clients’ feature:
    • (^) They only intermittently connected to a network,
    • (^) Even when connected they have limited bandwidth
    • (^) They have limited storage and processing capability
  • (^) Mobile agents’ feature:
    • (^) Reduction of Network traffic
    • (^) Asynchronous interaction
    • (^) Remote searching and filtering