A Sidecar Object for the Optimized Communication Between Edge and Cloud in Internet of Things Applications

Marco Picone, Ph.D., Stefano Busanelli, Simone Cirani, Lorenzo Melegari, Marco Picone, Mirco Rosa, Luca VeltriFuture Internet 2019

TL;DR

This paper introduces the "sidecar object," a novel architectural pattern for IoT that allows smart devices to seamlessly integrate with cloud services without modifying their original firmware. This approach enhances IoT device capabilities and simplifies cloud integration, addressing the growing complexity of the IoT ecosystem.

What Problem Does This Paper Address?

The Internet of Things (IoT) is rapidly expanding, leading to a massive increase in connected devices. This growth presents significant challenges in managing, updating, and integrating these devices with cloud platforms. Traditional methods often require modifying the device's firmware to embed SDKs and handle cloud communication, which is impractical for many existing or resource-constrained devices. This paper tackles the problem of extending smart object functionalities and enabling seamless cloud communication without altering the original device, aiming for a more flexible and scalable IoT architecture.

Methods

The core contribution of this paper is the "sidecar object" concept. This is a separate software component that attaches to a pre-existing smart object, acting as an intermediary for communication with cloud services. The sidecar object operates in isolation, meaning the original smart object doesn't need to be aware of its presence or functionality. This approach leverages the "sidecar pattern," commonly used in containerized applications, and adapts it for IoT.

The architecture of the sidecar object is modular, comprising:

  • Smart Object Module: Handles interactions with the smart object itself.
  • Cloud Module(s): Manages communication with specific cloud platforms (e.g., AWS IoT, Google Cloud IoT).
  • Sidecar Processors: Act as bridges between the smart object and cloud modules, enabling unidirectional data flow.
  • Sidecar Orchestrator: Manages the overall coordination, initialization, and shutdown of the sidecar object.

The paper details the operational phases: startup, runtime, fault handling/recovery, and shutdown, with a focus on transparent data synchronization.

Datasets

Not discussed in the paper. The paper focuses on experimental evaluation using a custom setup.

Key Insights and Ideas

  • Decoupling is Key: The sidecar object's isolation from the main smart object is crucial. This allows for updates and new features to be added to the sidecar without impacting the original device, significantly simplifying maintenance and evolution.
  • Extensibility without Modification: This pattern offers a powerful way to add cloud connectivity and advanced features to legacy or resource-constrained IoT devices without needing to re-engineer their core firmware.
  • Modular Design for Scalability: The modular architecture of the sidecar object, with distinct modules for smart object interaction and cloud communication, allows for flexibility and scalability, supporting multiple cloud services and processing chains.
  • Fault Tolerance through Recovery Policies: The paper highlights the importance of different recovery policies (NoRecovery, AllRecovery, OneEveryNRecovery) for handling connection faults, demonstrating how the sidecar can gracefully manage message loss or retransmission based on chosen strategies.
  • Resource Efficiency: The experiments show that the sidecar object can operate effectively even with limited memory, suggesting its suitability for constrained environments.

Key Results

The experimental evaluation demonstrated the effectiveness of the sidecar object:

  • Startup Times: The average startup time for the entire sidecar object was approximately 1229.8 ms, with individual components initializing much faster.
  • Message Pass-Through Delay: The sidecar object exhibited low pass-through delays, even at high message rates (up to 100 messages/second), with minimal performance degradation.
  • Ack Delays: While ack delays were naturally higher due to internet round-trip times, they remained stable and showed the platform's ability to handle high-frequency messages.
  • State Message Handling: The sidecar object successfully managed state messages, adhering to Google Cloud's one-state-message-per-second limit and preventing disconnections.
  • Resource Usage: The sidecar object demonstrated efficient resource usage, operating successfully with as little as 16 MB of heap memory, indicating its potential for constrained devices.
  • Constrained Device Performance: When tested on a Raspberry Pi 3B+, the sidecar object showed a slight performance degradation compared to a more powerful machine, but still maintained operational capability, confirming its limited footprint.

Limitations and Future Work

  • Limitations:
    • The paper acknowledges that the performance degradation on the Raspberry Pi was expected due to the hardware's limited power.
  • The current implementation primarily focuses on Google Cloud IoT and AWS IoT, with potential for expansion to other cloud services.
  • Future Work:
    • Implementing additional integrations with other cloud modules (e.g., Azure IoT) for broader cloud synchronization support.
  • Evaluating the sidecar object's performance with different mobile internet connectivity scenarios to understand mobility and data caching implications.
  • Investigating innovative sidecar object orchestration patterns for more dynamic deployment and management.
  • Exploring the sidecar object's role in advanced IoT applications like digital twin creation, edge-oriented serverless execution, and IoT container orchestration.

Summary updated

BibTeX
@article{phd2019sidecar,
  author = {Marco Picone, Ph.D. and Stefano Busanelli and Simone Cirani and Lorenzo Melegari and Marco Picone and Mirco Rosa and Luca Veltri},
  title = {{A Sidecar Object for the Optimized Communication Between Edge and Cloud in Internet of Things Applications}},
  journal = {Future Internet},
  year = {2019},
  doi = {10.3390/fi11070145},
}
Figure