SimDC: A High-Fidelity Device Simulation Platform for Device-Cloud Collaborative Computing

Ruiguang Pei, Junjie Wu, Dan Peng, Min Fang, Jianan Zhang, Zhihui Fu, Jun WangICDCS 2025 · DOI

Introduction

The proliferation of edge devices has catalyzed interest in device-cloud collaborative computing, particularly in fields like Federated Learning (FL). However, developing and testing algorithms for these environments presents a significant logistical challenge. While existing simulators such as FedML or Flower provide a starting point, they often suffer from a "fidelity gap"—a disconnect between idealized server-side execution and the heterogeneous, unpredictable reality of edge hardware.

The Fidelity Gap in Edge Simulation

Standard simulators typically execute on High-Performance Computing (HPC) clusters where "devices" are represented as separate threads or processes. This approach overlooks two critical factors:

  1. Hardware Discrepancy: HPC CPU cores differ fundamentally from the ARM-based processors found in mobile devices. Consequently, virtual simulations fail to capture physical constraints such as battery depletion, thermal throttling, and memory pressure.
  2. Behavioral Divergence: Real-world devices do not exhibit uniform connectivity. They experience network dropouts, operate across different time zones, and possess varying upload speeds. Most simulators assume a "perfect" network, which leads to results that do not translate to production environments.

The SimDC Platform

To bridge this gap, we introduce SimDC, a high-fidelity simulation platform designed to combine the scalability of server clusters with the physical accuracy of real mobile hardware. SimDC employs a three-pronged architectural approach:

Hybrid Heterogeneous Architecture

SimDC bifurcates the simulation workload. A Logical Simulation layer, built on Ray and Kubernetes, manages the massive scale required for experiments involving thousands of virtual devices. Simultaneously, a Device Simulation cluster utilizes actual Android phones (managed via Android Debug Bridge, ADB) to capture "ground truth" physical metrics. By designating a small subset of physical phones as "benchmarking devices," SimDC can extrapolate accurate power and latency metrics for the broader virtualized population without requiring a 1:1 hardware ratio.

Hybrid Allocation Optimization

Given that physical hardware is a finite resource, SimDC utilizes an Integer Linear Programming (ILP) model to optimize resource allocation. This model determines the ideal mix of virtual and physical resources to minimize simulation time while ensuring sufficient real-world performance data is gathered to maintain fidelity.

DeviceFlow Traffic Controller

Network realism is handled by DeviceFlow, a programmable traffic controller situated between the simulated devices and the cloud. DeviceFlow allows researchers to configure custom "strategies" to mimic realistic traffic patterns, such as right-tailed normal distributions for message arrivals. It can also simulate device "dropouts" with a specific probability ($p$), allowing for the study of algorithm robustness under unstable conditions.

Experimental Evaluation

SimDC was evaluated using the Avazu dataset, a standard benchmark for Click-Through Rate (CTR) prediction. The researchers utilized a subset of 2 million records covering 100,000 unique device IDs. SimDC’s performance and scalability were compared against mainstream frameworks, including FedScale and FederatedScope.

Key Results

  • Scalability: SimDC successfully scaled to 100,000 devices using a cluster of 200 CPU cores, demonstrating its capability for large-scale industrial applications.
  • Statistical Soundness: The accuracy difference between the hybrid SimDC environment and a benchmark local distributed environment was less than 0.5%, confirming that the simulation maintains high statistical fidelity.
  • Traffic Fidelity: The DeviceFlow controller achieved a Pearson correlation coefficient of >0.99 when matching user-defined traffic curves (e.g., sine waves or exponential growth), indicating precise mimicry of complex network behaviors.
  • Resource Efficiency: The ILP optimization consistently outperformed fixed-ratio allocations, identifying the optimal balance to minimize execution time across varying hardware grades.

Discussion and Future Work

SimDC demonstrates that the timing and reliability of device updates significantly impact global model convergence. Using DeviceFlow, the authors observed that non-IID data distributions combined with device dropouts cause substantial fluctuations in model stability—a phenomenon often missed by simpler simulators.

While SimDC represents a significant advancement, several areas for future development remain. The number of physical devices remains a bottleneck for pure hardware testing at scale. Furthermore, while DeviceFlow simulates traffic patterns, it does not yet account for low-level 5G/Wi-Fi signal interference or handoff protocols. Future iterations aim to expand support beyond Android to include a wider variety of IoT and wearable devices.

Conclusion

SimDC provides a robust framework for researchers to test device-cloud collaborative algorithms with high fidelity. By integrating physical hardware into the simulation loop and providing sophisticated traffic control, it offers a more realistic preview of how algorithms will perform in the messy, heterogeneous world of edge computing.

Summary updated

BibTeX
@inproceedings{pei2025simdc,
  author = {Ruiguang Pei and Junjie Wu and Dan Peng and Min Fang and Jianan Zhang and Zhihui Fu and Jun Wang},
  title = {{SimDC: A High-Fidelity Device Simulation Platform for Device-Cloud Collaborative Computing}},
  booktitle = {ICDCS},
  year = {2025},
  doi = {10.1109/icdcs63083.2025.00096},
}
Figure