Skip to main content
QUICK REVIEW

[Paper Review] Femto-Containers: DevOps on Microcontrollers with Lightweight Virtualization & Isolation for IoT Software Modules

Koen Zandberg, Emmanuel Baccelli|arXiv (Cornell University)|Jun 17, 2021
Cloud Computing and Resource ManagementComputer Science17 references6 citations
TL;DR

Femto-Containers introduce a lightweight, eBPF-based virtualization architecture enabling secure, isolated, and agile DevOps on low-power microcontrollers. The system achieves sub-10% memory overhead and sub-millisecond startup times, supporting concurrent execution of multiple software modules with strong isolation and low resource consumption across Arm Cortex-M, ESP32, and RISC-V platforms.

ABSTRACT

Development, deployment and maintenance of networked software has been revolutionized by DevOps,which have become essential to boost system software quality and to enable agile evolution.Meanwhile the Internet of Things (IoT) connects more and more devices which are not covered by DevOps tools:low-power, microcontroller-based devices.In this paper, we contribute to bridge this gap by designing Femto-Containers,a new architecture which enables containerization, virtualizationand secure deployment of software modules embedded on microcontrollers over low-power networks.As proof-of-concept, we implemented and evaluated Femto-Containers on popular microcontroller architectures (Arm Cortex-M, ESP32 and RISC-V), using eBPF virtualization, and RIOT, a common operating system in this space.We show that Femto-Containers can virtualize and isolate multiple software modules, executed concurrently, with very small memory footprint overhead (below 10%) and very small startup time (tens of microseconds) compared to native code execution.We show that Femto-Containers can satisfy the constraints of bothlow-level debug logic inserted in a hot code path, and high-level business logic coded in a variety of common programming languages.Compared to prior work, Femto-Containers thus offer an attractive trade-off in terms of memory footprint, energy consumption, agility and security.

Motivation & Objective

  • Address the lack of DevOps support in low-power, microcontroller-based IoT devices.
  • Enable secure, isolated, and remotely updatable software modules on constrained devices.
  • Design a lightweight virtualization layer that supports both high-level logic and low-level debug instrumentation.
  • Achieve minimal performance and resource overhead while ensuring strong isolation and security.
  • Bridge the gap between modern DevOps practices and constrained IoT microcontroller ecosystems.

Proposed method

  • Leverage eBPF as the virtualization engine to execute portable bytecode on microcontrollers.
  • Implement a Femto-Container hosting engine on the RIOT operating system to manage isolated software modules.
  • Use eBPF’s instruction set to enforce memory and resource isolation without hardware memory protection.
  • Support both short-lived debug logic and long-running business logic through a unified virtualization layer.
  • Optimize eBPF bytecode by compressing fixed-zero bit fields into variable-length instructions to reduce code size.
  • Apply fuzzing and formal verification techniques to harden the hosting engine against malicious code.

Experimental results

Research questions

  • RQ1Can lightweight virtualization with eBPF enable secure, isolated, and agile DevOps on microcontroller-based IoT devices?
  • RQ2What is the performance and resource overhead of running multiple isolated software modules on low-power microcontrollers?
  • RQ3How does Femto-Containers compare to prior approaches like WebAssembly, JavaScript, and Python-based containers in terms of memory, energy, and security?
  • RQ4To what extent can eBPF-based virtualization support both high-level and low-level logic on constrained devices?
  • RQ5Can the system maintain strong isolation and security while minimizing runtime and memory overhead?

Key findings

  • Femto-Containers achieve less than 10% memory footprint overhead for virtualization and isolation on microcontrollers.
  • Startup times for Femto-Containers are in the tens of microseconds, approaching native execution performance.
  • The system successfully hosts and isolates multiple software modules concurrently on Arm Cortex-M, ESP32, and RISC-V architectures.
  • Femto-Containers outperform prior solutions like WebAssembly, JavaScript (RIOTjs), and Python (microPython) in terms of memory efficiency and execution speed.
  • The architecture supports both long-running business logic and short-lived, time-critical debug instrumentation with strong isolation guarantees.
  • eBPF-based virtualization enables secure execution without requiring hardware memory protection units.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.