Skip to main content
QUICK REVIEW

[Paper Review] Security and Performance Considerations in ROS 2: A Balancing Act

Jongkil Kim, Jonathon M. Smereka|arXiv (Cornell University)|Sep 24, 2018
Advanced Data Storage TechnologiesComputer Science9 references39 citations
TL;DR

This paper evaluates the performance and security trade-offs in ROS 2 by measuring latency and throughput under DDS security and VPN configurations in wired and wireless networks. It identifies critical implementation gaps between the DDS security specification and its actual use in ROS 2, particularly in AES-GCM IV size and RNG compliance, and recommends FIPS-compliant cryptographic practices to enhance security without sacrificing reliability.

ABSTRACT

Robot Operating System (ROS) 2 is a ground-up re-design of ROS 1 to support performance critical cyber-physical systems (CPSs) using the Data Distribution Service (DDS) middleware. Accordingly, the security of ROS 2 is highly reliant on the security of its DDS communication protocol. However, finding a balance between the performance and security is non-trivial task. Inappropriate security implementations may cause not only significant loss on performance of the system, but also security failures in the system. In this paper, we provide an analysis of the DDS security protocol as well as an overview on how to find the balance between performance and security. To accomplish this, we evaluate the latency and throughput of the communication protocols of ROS 2 in both wired and wireless networks, and measure the efficiency loss caused by the enabling of security protocols such as Virtual Private Network (VPN) and DDS security protocol in ROS 2 in both network setups. The result can be directly used by robotics developers to find the optimal and balanced settings of ROS 2 applications. Additionally, we analyzed the security specification of DDS using existing security standards and tested the implementation of the DDS protocol by performing static analysis. The results of this work can be used to enhance the security of ROS 2.

Motivation & Objective

  • To analyze the performance impact of enabling security in ROS 2 using DDS security and VPN in wired and wireless networks.
  • To assess the correctness and compliance of the DDS security implementation in ROS 2 with established standards like NIST SP 800-53 and FIPS 140-2.
  • To identify inconsistencies between the OMG DDS security specification and its actual implementation in the eProsima RTPS middleware.
  • To provide actionable recommendations for improving ROS 2 security, including forward secrecy and FIPS-compliant cryptographic practices.
  • To enhance the overall security posture of ROS 2 for real-world cyber-physical systems (CPS) by detecting and resolving implementation flaws.

Proposed method

  • Conducted physical experiments measuring latency and throughput of ROS 2 communication with and without DDS security and VPN in both wired and wireless network settings.
  • Built a secure network environment to compare performance overheads between VPN and native DDS security protocols.
  • Performed static code analysis on ROS 2 Ardent Apalone source code using Cppcheck to detect memory management and initialization errors.
  • Evaluated the eProsima RTPS middleware against NIST and FIPS standards, focusing on cryptographic algorithm correctness and key management.
  • Formally verified the DDS handshake protocol using ProVerif to ensure protocol correctness and absence of logical flaws.
  • Analyzed the use of OpenSSL in eProsima RTPS and assessed the benefits of replacing standard OpenSSL with the FIPS-validated module.

Experimental results

Research questions

  • RQ1How does enabling DDS security in ROS 2 affect communication latency and throughput in wired and wireless networks?
  • RQ2How does the performance of a VPN compare to native DDS security in ROS 2 for real-time CPS applications?
  • RQ3To what extent does the eProsima RTPS implementation of DDS security conform to the OMG specification and NIST/FIPS standards?
  • RQ4What critical security implementation flaws exist between the DDS specification and its actual use in ROS 2?
  • RQ5What cryptographic and architectural improvements can enhance ROS 2 security without degrading performance?

Key findings

  • The use of a reliable VPN provides better performance than native DDS security, making it a more viable option for systems requiring low-latency communication.
  • DDS security introduces significant performance overhead, with measurable increases in latency and reductions in throughput, especially in wireless networks.
  • The eProsima RTPS implementation uses a 128-bit IV for AES-GCM, violating the OMG specification’s mandated 96-bit IV, which may cause interoperability and security issues.
  • The random number generator used for master key challenges does not comply with NIST recommendations, relying instead on OpenSSL’s BN_rand, which lacks required cryptographic robustness.
  • Static code analysis revealed seven real security-related issues, including uninitialized variables, memory leaks, and NULL pointer dereferences in ROS 2 and RViz components.
  • Formal verification using ProVerif confirmed the correctness of the DDS handshake protocol, indicating no logical flaws in the protocol design despite implementation gaps.

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.