RASC: Enhancing Observability & Programmability in Smart Spaces
Anna Karanika (University of Illinois Urbana-Champaign), Kai-Siang Wang (University of Illinois Urbana-Champaign), Han-Ting Liang (University of Illinois Urbana-Champaign), Shalni Sundram (University of Illinois Urbana-Champaign), Indranil Gupta (University of Illinois Urbana-Champaign)
23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 1 · Mobile and Embedded Systems
Overview
Modern smart spaces—such as automated homes, smart offices, and connected buildings—increasingly rely on complex routines and background automations. These routines are typically triggered by humans, time, or sensor events using consumer platforms like Alexa or Google Home. However, the underlying communication primitives powering these environments remain fundamentally inadequate. Today's smart spaces expose physical actions through one-shot remote procedure calls (RPCs), which are ill-suited for the slow, unpredictable, and physical nature of IoT devices. When a garage door takes ten seconds to close, or a thermostat takes hours to heat a room, treating these operations as instantaneous RPCs creates severe visibility gaps, safety violations, and rigid automation limits.

Key moments
- 0:00 Introduction and limitations of RPCs in smart spaces
- 2:00 Evaluating RPC variants: ack, start, and complete
- 4:00 Introducing RASC abstraction and RASCAL system design
- 7:30 Scheduling routines and managing action length deviations
- 9:30 Addressing poll-based APIs and adaptive polling formulation
- 12:45 Implementation details and evaluation results on polling overhead
- 14:45 Handling interruptions, data drift, and end-to-end impact
- 16:00 Conclusion and opening the floor for questions
RASC: Enhancing Observability & Programmability in Smart Spaces
Speakers: Anna Karanika, University of Illinois Urbana-Champaign; Kai-Siang Wang, University of Illinois Urbana-Champaign; Han-Ting Liang, University of Illinois Urbana-Champaign; Shalni Sundram, University of Illinois Urbana-Champaign; Indranil Gupta, University of Illinois Urbana-Champaign
Conference: USENIX NSDI
YouTube: https://www.youtube.com/watch?v=Be_sOd0c6EE
Overview
Modern smart spaces—such as automated homes, smart offices, and connected buildings—increasingly rely on complex routines and background automations. These routines are typically triggered by humans, time, or sensor events using consumer platforms like Alexa or Google Home. However, the underlying communication primitives powering these environments remain fundamentally inadequate. Today's smart spaces expose physical actions through one-shot remote procedure calls (RPCs), which are ill-suited for the slow, unpredictable, and physical nature of IoT devices. When a garage door takes ten seconds to close, or a thermostat takes hours to heat a room, treating these operations as instantaneous RPCs creates severe visibility gaps, safety violations, and rigid automation limits.
In this talk, researchers from the University of Illinois Urbana-Champaign introduce RASC (Request, Acknowledgement, Start, Complete), a novel abstraction that sits atop traditional RPCs to provide structured observability into the critical lifecycle stages of physical actions. To operationalize this abstraction, the authors present RASCAL, an implementation built by extending the open-source Home Assistant project. RASCAL introduces intelligent adaptive polling algorithms to track device state without overwhelming vendor APIs, alongside transactional scheduling and dynamic rescheduling strategies. The work demonstrates how bringing fine-grained observability to cyber-physical systems enables more expressive programmability, higher parallelism, and significantly reduced wait times.
Background
▶ Watch: Introduction and limitations of RPCs in smart spaces (0:00)
The fundamental architectural mismatch in smart spaces stems from treating cyber-physical actions as traditional software-defined RPCs. In standard distributed systems, an RPC is a request-response mechanism where completion is nearly instantaneous. When applied to the Internet of Things (IoT), developers are typically forced into one of three compromised RPC variants: RPC ack (reply sent immediately upon command reception), RPC start (reply sent when preconditions are met and physical execution begins), or RPC complete (reply sent when the device finishes and returns to its resting state).
Because physical actions can fail, stall, or get jammed at any intermediate phase, relying on a single-point reply leaves developers between a rock and a hard place. For example, if a smart trash can gets stuck beneath a closing garage door due to an obstacle, an RPC-ack system assumes success prematurely, creating a dangerous safety violation. Furthermore, multi-step routines must often be awkwardly fragmented into separate routines tied together by fragile timing assumptions.
Compounding this abstraction gap is a severe systems constraint: a vast fraction of commercial device vendors exclusively expose poll-based APIs rather than push-based event streams. Developers face a rigid trade-off between periodic polling—which either overloads vendor clouds and device batteries when frequent, or detects failures far too late when infrequent—and building reliable schedulers that guarantee mutual exclusion and serial equivalence across concurrent routines. RASC and RASCAL solve these foundational tensions by lifting physical execution stages into first-class abstractions and optimizing poll placement.
Key Findings
▶ Watch: Introducing RASC abstraction and RASCAL system design (4:00)
RASCAL demonstrates that introducing multi-stage observability and adaptive scheduling drastically improves the performance and reliability of smart space automations. Across comprehensive evaluations using real-world physical action traces and standard benchmark workloads, the system delivers headline performance improvements:
- Routine Completion Speed: RASCAL finishes routines 11% faster than the fastest baseline scheduling systems.
- Latency Reduction: Average wait times are reduced by 33%, with 95th percentile wait times dropping by 50%.
- Device Efficiency: Device idle time is cut by up to 27%, maximizing hardware utilization across shared appliances.
- Parallelism Gains: The system enables 10% higher parallelism compared to traditional sequential baselines, despite introducing modest end-to-end latency overheads for individual tasks.
- Distribution Convergence: Adaptive polling stabilizes action length distributions rapidly, requiring only 10 to 20 samples for short actions (doors, shades) and up to 20 samples for longer actions (thermostats).
- Robust Distribution Shift: When device behaviors drift over time, RASCAL reconverges within roughly 20 to 40 samples as measured by the Wasserstein distance (Earth Mover's distance).
Technical Deep Dive
▶ Watch: Addressing poll-based APIs and adaptive polling formulation (9:30)
The RASC architecture is divided into two primary layers: the RASC abstraction for lifecycle visibility and the RASCAL system runtime for execution, polling, and scheduling.
The RASC Abstraction
RASC replaces single-shot RPCs with a four-stage state machine: Request, Acknowledgement, Start, and Complete. When a client triggers a physical action, the device or its cloud gateway immediately returns an acknowledgment. As execution progresses, the runtime surfaces explicit start and completion notifications. This allows developers to construct unified routines that define co-actions upon action acknowledgement and start, as well as robust fallback actions upon action failure, avoiding the fragmentation of traditional sequential models.
RASCAL System Architecture & Graph Representation
Internally, RASCAL expresses user routines as Directed Acyclic Graphs (DAGs), with explicit dependency types assigned to each edge. Because routines act like transactions over shared physical devices, RASCAL enforces mutual exclusion (no device may execute more than one action simultaneously) and guarantees that concurrent executions remain serial equivalent.
Adaptive Polling Algorithms
To circumvent the limitations of poll-only vendor APIs without overwhelming cloud infrastructure, RASCAL models state change detection as an optimization problem. Given an expected upper bound $U$ for an action stage's length and a strict poll budget, the system minimizes the expected state change detection time $Q$.
RASCAL models $Q$ using historical action length distributions, calculating the weighted average distance from stage completion to the next scheduled poll. For actions that exceed their expected duration $U$ due to environmental factors or human interruptions, RASCAL employs two adaptive mechanisms:
- Progress Extrapolation: If partial physical progress is observed between polls, the system estimates the remaining duration based on observed velocity and reschedules the subsequent poll accordingly.
- Bounded Exponential Back-off: If no progress is observed, RASCAL applies a bounded exponential back-off up to a tolerance threshold $QW$ to prevent API rate-limiting while ensuring timely failure detection.
Dynamic Rescheduling
When real-world actions experience length deviations, RASCAL identifies affected routines and computes an immutable serialization order for running tasks. It leverages scheduling algorithms adapted from shortest task first policies and restriction vectors from real-time systems literature to reschedule tasks while strictly preserving cross-task dependencies.
Experimental Setup & Results
▶ Watch: Implementation details and evaluation results on polling overhead (12:45)
The evaluation of RASCAL combines empirical hardware measurements with large-scale trace-driven simulations:
- Action Duration Datasets: The authors manually measured physical action durations for doors, window shades, and elevators inside an office building. For thermal systems, they utilized an existing open-source dataset for thermostat actions.
- Workload Traces: Routine arrival workloads were adapted from IoT bench and SmartThings traces, generating two distinct arrival patterns: purely random intervals, and random arrivals combined with bursty intervals to simulate peak activity periods.
- Baselines: RASCAL was benchmarked against traditional periodic polling strategies and standard IoT scheduling baselines.
Experimental Results & Robustness
Results confirm that RASCAL provides state observability significantly faster than periodic polling while maintaining minimal poll overhead. CPU and memory footprints on the host machine running Home Assistant remained low.
To test system resilience against physical anomalies—such as a human holding an elevator door open or interrupting a thermostat cycle—the authors tracked false-positive rates. While false positives temporarily increase when interruptions occur near the very end of an action, RASCAL reliably distinguishes true physical failures from temporary interruptions. Furthermore, extra poll overhead remained tightly bounded for brief interruptions, scaling gracefully only when interruptions were prolonged.
Practical Implications
▶ Watch: Conclusion and opening the floor for questions (16:00)
For IoT developers, infrastructure engineers, and smart home platform builders, RASC and RASCAL offer a compelling blueprint for bridging the gap between fragile vendor APIs and reliable automation logic.
- For Infrastructure Teams: The adaptive polling framework demonstrates that cloud-polling overhead can be mathematically minimized using historical distributions, alleviating rate-limiting concerns when integrating with third-party IoT clouds.
- For Model and Routine Builders: Exposing start and complete hooks eliminates the need for brittle, time-based hacks, empowering developers to build complex, transactional workflows that gracefully handle physical stalls and rollbacks.
- Tradeoffs & Limitations: While RASC introduces slight end-to-end latency overhead due to transactional scheduling safeguards, the trade-off is heavily amortized by increased parallelism and dramatically reduced user wait times. Limitations primarily lie in environments where devices exhibit extreme, unpredictable variance without sufficient historical data for initial distribution stabilization.
Key Takeaways
- Traditional single-shot RPCs are fundamentally inadequate for capturing the slow, unpredictable, and physical execution stages of smart space devices.
- The RASC abstraction introduces structured lifecycle visibility (Request, Acknowledgement, Start, Complete) to bridge this gap.
- RASCAL, built as an extension to Home Assistant, models poll placement mathematically to minimize detection latency without overloading vendor APIs.
- Using historical data and distribution modeling, RASCAL converges rapidly (within 10–40 samples) and adapts robustly to distribution drift and physical interruptions.
- Dynamic scheduling algorithms structured around DAGs and restriction vectors achieve an 11% faster routine completion rate, a 33% reduction in wait times, and a 27% cut in device idle time.
About the Speaker(s)
Anna Karanika is a researcher in the Department of Computer Science at the University of Illinois Urbana-Champaign (UIUC), co-authoring this work alongside colleagues Kai-Siang Wang, Han-Ting Liang, Shalni Sundram, and Professor Indranil Gupta. Their collaborative research at UIUC focuses on distributed systems, networking, and the unique systems challenges introduced by cyber-physical environments and human-in-the-loop applications.
Reviews
→ Top-rated talks at 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)
All talks from 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)