A comparison of mechanisms for locating mobile agents

Joachim BaumannOPUS 1999

Abstract: In this paper we present different possible approaches for locating mobile agents and introduce a classification for them. We will use this classification to categorize mechanisms proposed in standards and implemented in mobile agent systems. Then we assess the different mechanisms regarding their fault tolerance, their message complexity and the migration delay they induce. We conclude by combining the different assessments to allow a comparison of all mechanisms.

Introduction

The mobile agent paradigm allows software to physically migrate from one server (a "place") to another to process data locally or access specific services. However, this autonomy creates a management nightmare: if an agent is constantly moving, how does the system controller find it to request a status update, send it a new task, or shut it down? While global communication tools like distributed tuple spaces exist, they are often too heavy or unreliable for simple location tracking. The challenge is to find a mechanism that doesn't slow down migration, doesn't flood the network, and remains resilient to node crashes.

The Mobile Agent Environment

To understand the location problem, one must first visualize the environment in which these agents operate. As shown in the figure below, agents exist within "places" (such as desktops, laptops, or servers) and can migrate between them. Communication can occur locally within a place or globally across the network.

The mobile agent paradigm: agents migrating between places and communicating locally or globally.

Classification of Location Mechanisms

A comprehensive taxonomy of location strategies can be divided into two main branches: Preordained Paths and Autonomous Migration. In the former, the agent follows a fixed itinerary, and the system "probes" places along that path. In the latter, the agent moves freely, requiring more complex tracking strategies such as logging (using databases or path proxies), brute force searches, or nondeterministic methods like "Advertising."

A taxonomy of mechanisms for locating mobile agents, categorized by migration type and logging strategy.

Logging and Path Proxies

One common strategy is leaving "Path Proxies" (pointers) at each hop. However, this "breadcrumb" trail is incredibly fragile. Mathematical modeling based on reliability theory (MTTF/MTTR) demonstrates that as an agent moves, the probability of finding it drops exponentially; a single node failure along the path breaks the entire chain. For an agent that has moved 50 times, availability can drop to as low as 0.50.

The Shadow Mechanism

To address these vulnerabilities, the Shadow mechanism (implemented in the Mole system) was developed. This is a hybrid approach where an agent leaves a path of proxies but also periodically updates a "Shadow" (a local database) at a fixed Time-to-Live (TTL) interval. This allows the system to "shorten" long proxy paths and recover if a node in the middle of a path crashes, restoring availability to approximately 0.95.

Comparative Analysis

The paper evaluates these mechanisms across three primary dimensions:

  1. Availability (Reliability): Databases and Brute Force score high (~0.96), while untimed paths are the least reliable.
  2. Message Complexity: The "Energy" approach (where agents check in when low on execution credits) is the cheapest. Databases and Brute Force are the most expensive, while Shadows and Path Proxies occupy a middle tier.
  3. Migration Delay: A critical factor for autonomy. Databases and Advertising force the agent to wait for acknowledgments before migrating. Shadows, Proxies, and Brute Force allow for No-Delay migration, preserving agent autonomy.

Conclusion

While many mechanisms offer high reliability, they often do so at the cost of high message complexity or significant migration delays. Brute force methods are fast but non-scalable for large networks. Ultimately, the Shadow mechanism occupies the "sweet spot": it provides high availability and moderate message costs without imposing any delay on the agent's autonomous migration.

Summary updated

BibTeX
@inproceedings{baumann1999comparison,
  author = {Joachim Baumann},
  title = {{A comparison of mechanisms for locating mobile agents}},
  booktitle = {OPUS},
  year = {1999},
  doi = {10.18419/opus-2434},
}
Figure