Component-based System Software: A Generic Approach

Jó Ueyama, François Taı̈ani, Geoff Coulson, Edmundo R. M. Madeira, Paul Grace2007

Abstract

Component-based software engineering has recently emerged as a promising solution to the development of system-level software. Unfortunately, current approaches are limited to specific platforms and domains. This lack of generality is particularly problematic as it prevents knowledge sharing and generally increases development costs. In this paper we present OpenCom, a generic component-based platform that is specifically designed to support a wide range of system software, both in terms of deployment environments (e.g. PDAs, embedded devices, network processor-based routers) and target domains (e.g. embedded systems, middleware, OSs, programmable networking environments). We discuss the fundamentals of OpenCom’s programming model, present a performance evaluation, and illustrate the advantages of our model based on several case studies.

Introduction

Component-based software engineering (CBSE) is a staple for application developers, enabling modularity through plugins and frameworks. However, it has struggled to gain a foothold in system-level software. While existing component models for systems exist, they are often "siloed"—optimized for a specific operating system (like OSKit) or a specific network router (like NetBind), but lacking cross-domain utility.

This fragmentation prevents developers from sharing knowledge and reusing code across different hardware types, driving up development costs. OpenCom addresses this by providing a "one-size-fits-all" infrastructure that is lightweight enough for sensor nodes but powerful enough for high-speed routers.

The OpenCom Architecture

OpenCom utilizes an incremental, "microkernel-style" architecture designed for maximum flexibility and minimal footprint. As shown in Figure 1, the design is partitioned into three primary layers.

The OpenCom Platform architecture, showing the relationship between the runtime kernel, extensions framework, and reflective meta-models.
  1. The Run-time Kernel: A minimalist core (approx. 32KB) that handles only the absolute basics: loading, instantiating, and binding components.
  2. The Extensions Framework: This layer manages heterogeneity through three abstractions: Caplets (isolated deployment loci), Loaders (plugins for specific code types like C++ or Java), and Binders (plugins for connection logic).
  3. Reflective Meta-models: These allow the system to inspect and modify its own structure at runtime, facilitating dynamic reconfiguration.

A central concept is the Capsule, a logical container that can span multiple hardware environments while being managed by a single OpenCom kernel.

Experimental Validation

To validate OpenCom's generality, the authors tested it across three distinct environments:

  • PC Environment: A Dell Precision workstation running Redhat Linux 8.0.
  • Network Environment: A Radsys IXP1200 router platform, featuring a heterogeneous mix of a StrongARM CPU and six specialized microengines.
  • Sensor Environment: Low-level sensor "motes" running the Contiki OS on 8-bit microcontrollers.
A capsule spanning a PC and an IXP1200 router, demonstrating OpenCom's ability to manage heterogeneous hardware.

Key Results and Insights

OpenCom demonstrates that minimalism is key to portability. By stripping the kernel to 32KB, the same programming model can be applied to both high-end PCs and tiny sensor nodes.

Performance evaluations show that OpenCom’s incremental binding approach is highly efficient. Unlike "pipeline" models like NetBind, where overhead increases linearly with the number of components, OpenCom maintains a constant overhead because it only processes individual new connections. Specifically, loading a primary-style component takes only 9.8µs, compared to 7µs for a raw C++ object, with instantiation taking a mere 0.47µs.

The system successfully managed a unified "capsule" combining C++ on a Linux CPU with assembly-level microcode on network processors, proving its viability for complex, heterogeneous systems.

Conclusion and Future Work

OpenCom provides a flexible, lightweight foundation for system-level CBSE. Future work includes expanding language support (e.g., occam-pi) and integrating Architecture Description Languages (ADLs) like Plastik for formal topology specification. The project continues through the "Runes" initiative, focusing on networked embedded systems.

Summary updated

BibTeX
@misc{ueyama2007component,
  author = {Jó Ueyama and François Taı̈ani and Geoff Coulson and Edmundo R. M. Madeira and Paul Grace},
  title = {{Component-based System Software: A Generic Approach}},
  year = {2007},
  doi = {10.5753/sbes.2007.21302},
}
Figure