ROSGuard: A Bandwidth Regulation Mechanism for ROS2-based Applications
Jon Altonaga Puente, Enrico Mezzetti, Irune Agirre Troncoso, Jaume Abella Ferrer, Francisco J. Cazorla Almeida · 2025
Read ROSGuard: A Bandwidth Regulation Mechanism for ROS2-based Applications by Jon Altonaga Puente, Enrico Mezzetti, Irune Agirre Troncoso, Jaume Abella Ferrer, Francisco J. Cazorla Almeida (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2506-04640.txt.
Introduction
Robots and other embedded systems often share one chip, and tasks that grab memory at the wrong moment can break timing. Jon Altonaga Puente and co-authors present a tool in 2025 that watches and limits that memory traffic for programs built on a common robot software layer. Their tool favors simple setup and wide use over the very fine control of earlier tools.
The team ran the tool on a modern NVIDIA board with both made-up and real programs. Its regulation scheme matched the effect of specialized, finer tools while staying portable across systems. The work aims to bring timing protection to the many modular products that need decent, not extreme, timing promises.
Catalog record
| CREATOR | Jon Altonaga Puente, Enrico Mezzetti, Irune Agirre Troncoso, Jaume Abella Ferrer, Francisco J. Cazorla Almeida |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 59 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2506-04640
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
ROSGuard: A Bandwidth Regulation Mechanism for ROS2-based Applications Thanks: This work has received funding from the European Union’s Horizon Europe Programme under the SAFEXPLAIN Project (www.safexplain.eu), grant agreement num. 101069595, and from the Spanish Ministry of Science and Innovation under project PLEC2023-010240, CAPSULIA. Jon Altonaga Puente, Enrico Mezzetti, Irune Agirre Troncoso, Jaume Abella Ferrer, Francisco J. Cazorla Almeida Abstract Multicore timing interference, arising when multiple requests contend for the same shared hardware resources, is a primary concern for timing verification and validation of time-critical applications. Bandwidth control and regulation approaches have been proposed in the literature as an effective method to monitor and limit the impact of timing interference at run time. These approaches seek for fine-grained control of the bandwidth consumption (at the microsecond level) to meet stringent timing requirements on embedded critical systems. This is typically achieved by resorting to ad-hoc, fine-tuned hardware and software configurations, exploiting hardware support, for monitoring bandwidth usage, and ad-hoc operating system level support, for inhibiting the execution of applications exceeding their allocated bandwidth. Such granularity and configurations, while effective, can become an entry barrier for the application of bandwidth control to a wide class of productized, modular ROS2 applications. This is so because those applications have less stringent timing requirements but would still benefit from bandwidth regulation, though under less restrictive, and therefore more portable, granularity and configurations. In this work, we provide ROSGuard , a highly-portable, modular implementation of a timing interference monitoring and control mechanism that builds on the abstractions available on top of a generic and portable Linux-based software stack with the Robotic Operating System 2 (ROS2) layer, a widespreadedly adopted middleware for a wide class of industrial applications, far beyond the robotic domain. We deploy ROSGuard on an NVIDIA AGX Orin platform as a representative target for functionally rich distributed AI-based applications and a set of synthetic and real-world benchmarks. We apply an effective bandwidth regulation scheme on ROS2-based applications and achieve comparable effectiveness to specialized, finer-grained state-of-the-art solutions. I Introduction Complex heterogeneous mpsoc ( mpsoc ) cots ( cots ) platforms are increasingly adopted, even in embedded critical domains, to support functionally-rich applications, often deploying machine learning based methods [ 1 ] . In the automotive domain, for example, the trend towards Software-Defined Vehicles [ 2 ] and the market push towards autonomous driving and advanced driver assistance systems are clearly driving the integration of more and more complex software functionalities on the same platform. Such functionalities are delivered by data-intensive software applications building on computationally intensive models, like convolutional and deep neural networks. Those functionalities typically react to rt ( rt ) stimuli from the environment they operate on, through an increasingly number of advanced sensors (e.g., cameras, lidar units, etc.) and actuators. The required performance can only be met with complex hpec platforms equipped with a large number of cores, gpu , and application-specific accelerators [ 1 ] . The adoption of hpec platforms, however, seriously challenges timing predictability and analyzability, and complicates an already onerous verification and validation process [ 3 ] . In particular, the huge amount of shared hardware resources, including but not limited to shared memories and cache hierarchies, expose co-running applications to contention when attempting to simultaneously access the same shared hardware resources [ 4 ] . The impact of contention on an application execution time is known as multicore timing interference and, if uncontrolled, can easily lead critical functions to miss their deadline [ 5 ] and, hence, impair the system’s nominal behavior. In the last decades, a lot of effort has been devoted, in industry and academia, to devise methodologies and tools to cope with multi-core timing interference [ 6 , 7 , 8 , 9 ] . Some solutions attempt to remove sources of interference in the platform altogether by enforcing full segregation across software partitions by leveraging hardware or software support fo resource partitioning. These solutions, however, despite effective in reducing interference in the system, are not able to completely prevent it, and often cause non-negligible performance degradation [ 10 , 11 ] . More recently, a family of approaches has been proposed that aim at monitoring and controlling the use of shared hardware resources at run time, in view to protect critical applications from interference exceeding a predetermined threshold. These type of approaches, going under the umbrella term of memory bandwidth regulation methods, provide a good compromise between interference control and overall performance [ 8 , 12 , 9 , 13 ] . These approaches rely on hardware [ 14 ] or hypervisor/operating system-level [ 15 , 16 ] support to implement fine-grained bandwidth usage monitoring and promptly react in case of over utilization. The monitoring aspect is dependent on the frequency at which it is possible to check for the bandwidth usage: the hardware and software support necessary to provide fine-grained interference control (below the \mu s level) are not always available in hpec hardware and software stacks and therefore cannot always be deployed without requiring important modifications to the setup. In fact, given their nature, achieving high levels of monitoring granularity may not be required for a wide class of systems. Availability and time-to-market considerations are pushing towards the adoption of non-specialized cots platforms and Linux-based setups, often relying on the use of generic communication middlewares such as ros2 ( ros2 ) [ 17 ] to facilitate the design and implementation of large modular applications. For such applications, the level of control required for bandwidth regulation is typically looser than that considered by existing approaches, and contention control at the ms level granularity is normally acceptable and still achieves an effective overall bandwidth control. Furthermore, it can help to avoid the risk of negatively affecting the overall system throughput [ 18 ] . In this context, we propose ROSGuard , a portable and modular bandwidth regulation solution that builds on top of the ros2 ecosystem, without requiring specialized hardware or software support. By reducing entry-access hardware and software requirements, ROSGuard extends the benefits of memory regulation to the wide class of ros2 -based productized software solutions that are not intended to be executed on top of specialized execution environments but rely on a generic Linux-based setup and naturally come with looser granularity requirements. ROSGuard builds on a ros2 environment and pthread support to enforce thread priorities. It provides a fully functional and configurable bandwidth regulation solution that matches the granularity requirements of this type of applications. Moreover, ros2 offers comparable guarantees to those obtained by state-of-the-art methods on more controlled setups. Our key contributions are: 1. We provide a highly-portable, modular, ros2 -based implementation of a memory bandwidth regulation mechanism, that better fits the requirements of productized, modular applications on ros2 . We discuss for the first time the main considerations when mapping bandwidth regulation concepts to the ros2 environment. 2. As a proof-of-concept, we implement and deploy our mechanism on an NVIDIA AGX Orin target, representative of heterogeneous MPSoC in embedded domains. 3. We demonstrate that our middleware-based mechanism offers comparable performance to that of more specialized methods, proving our approach as an useful alternative that enhances portability and facilitates the safe deployment of large modular applications built over generic communication middlewares.