Docsity

Mobile Computing - Mobile Code, Study notes of Mobile Computing

Toggle sidebar
bg1
11/27/14 1
Mobile Code
•“Mobile code” defined as “software that travels on a
heterogeneous network, crossing protection domains,
and automatically executed upon arrival at the
destination”
•protection domains – corporate network or PDA
•excludes cases where code is
–loaded from a shared disk
–downloaded (manually) from the Web
•Mobile code supports a flexible form of distributed
computation where the desired nonlocal computations
need not be known in advance at the execution site
•Advantages
Efficiency
Simplicity and flexibility
Storage
pf3
pf4
pf5

Partial preview of the text

Download Mobile Computing - Mobile Code and more Study notes Mobile Computing in PDF only on Docsity!

Mobile Code

  • (^) “Mobile code” defined as “software that travels on a heterogeneous network, crossing protection domains, and automatically executed upon arrival at the destination”
  • (^) protection domains – corporate network or PDA
  • (^) excludes cases where code is
    • (^) loaded from a shared disk
    • (^) downloaded (manually) from the Web
  • (^) Mobile code supports a flexible form of distributed computation where the desired nonlocal computations need not be known in advance at the execution site
  • (^) Advantages Efficiency Simplicity and flexibility Storage

11/27/14 2

Mobile Code

  • (^) Well-known examples of Mobile Code
  1. PostScript
  2. Database technology – SQL
  3. Documents with embedded executable contents transmitted on the network = Java (applet)
  4. Inferno developed by Lucent – a mobile-code-enabled network OS
  • (^) Common needs of mobile code in terms of programming languages
    • (^) Portability
    • (^) Safety
    • (^) Security
      • (^) Confidentiality
      • (^) Integrity
      • (^) Availability
      • (^) Authenticity
    • (^) Efficiency
  • (^) Representative programming languages for mobile code
    • (^) Java
    • (^) Limbo
    • (^) Objective Caml
    • (^) Obliq
    • (^) Telescript
    • (^) Safe-Tcl

Differences between Java Applets and Mobile Agents

  • (^) MAs initiate the migration process; migration of Java applets is initiated from other software components (e.g. Web browser)
  • (^) Java applets migrate only from a server to a client, do not leave the client to another client or back to the server
  • (^) Applet’s lifetime bound to that of the Web page, dies when browser terminates or another Web page requested; MA usually migrate more than once

Process Migration

  • (^) Transfer of OS process from one m/c to other
  • (^) Migration mechanisms handle bindings between - (^) process and execution environment (e.g. open fds, env variables)
  • (^) Provide for load balancing
  • (^) Most of these facilities provide transparent process migration
  • (^) Other like Locus provide for some control
    • (^) like external signal or migrate( ) system call