Scheduling in Visual Fog Computing: NP-Completeness and Practical Efficient Solutions

Hong-Min Chu, Shao-Wen Yang, Padmanabhan Pillai, Yen-Kuang ChenAAAI 2018

Abstract

The visual fog paradigm envisions tens of thousands of heterogeneous, camera-enabled edge devices distributed across the Internet, providing live sensing for a myriad of different visual processing applications. The scale, computational demands, and bandwidth needed for visual computing pipelines necessitates offloading intelligently to distributed computing infrastructure, including the cloud, Internet gateway devices, and the edge devices themselves. This paper focuses on the visual fog scheduling problem of assigning the visual computing tasks to various devices to optimize network utilization. We first prove this problem is NP-complete, and then formulate a practical, efficient solution. We demonstrate sub-minute computation time to optimally schedule 20,000 tasks across over 7,000 devices, and just 7-minute execution time to place 60,000 tasks across 20,000 devices, showing our approach is ready to meet the scale challenges introduced by visual fog.

Introduction: The Visual Fog Challenge

As surveillance cameras proliferate globally, we face a "data deluge." Transmitting every video frame to the cloud for centralized processing is increasingly impractical due to bandwidth constraints. Visual Fog Computing (VFC) addresses this by distributing processing tasks across a hierarchy of devices, including the cameras themselves, local gateways, and the cloud.

Visual Fog Computing paradigm: Decomposing jobs into parallel tasks for distributed execution.

However, VFC introduces a massive coordination challenge. Unlike traditional cloud environments with high-bandwidth, all-to-all connectivity, VFC involves tens of thousands of heterogeneous devices with varying compute capacities and sparse, directional network links. Deciding which task runs on which device to minimize network utilization while respecting hardware limits is a complex optimization problem.

Problem Complexity and Formulation

The researchers formally prove that the VFC scheduling problem is NP-complete by reducing it from the Cloud Computing (CC) problem. This confirms that finding an optimal solution at scale is theoretically difficult.

To solve this practically, the authors explored two Integer Linear Programming (ILP) formulations:

  1. ILP-T (Task Perspective): A naive approach mapping tasks to devices. This model's complexity explodes exponentially with network depth because it must enumerate all possible paths for every job.
  2. ILP-D (Device Perspective): The core innovation of this work. Instead of mapping tasks to devices, it asks which task a specific device is performing. By treating task dependencies as a flow problem on the device graph, the number of variables remains polynomial relative to the number of devices and tasks.

Methods: Modeling Constraints and Flow

The ILP-D formulation incorporates critical real-world constraints:

  • Flow Conservation: Ensures that task dependencies are maintained as data flows through the network.
  • Resource Constraints: Respects the CPU capacity of devices and the bandwidth capacity of network links.
  • Linearization: The authors use a clever ordering function to ensure tasks are executed in the correct sequence without relying on non-linear constraints, keeping the problem solvable by standard ILP solvers like MATLAB’s Optimization Toolbox.
Task dependencies and device connectivity constraints in VFC scheduling.

As shown in Figure 4, different schedules (X, Y, Z) can be evaluated based on how they satisfy the requirements of the task dependency chain (a) within the physical constraints of the device connectivity graph (b).

Evaluation and Scalability

The algorithms were evaluated using simulated large-scale network topologies, including realistic tree settings for city-wide surveillance and generalized Directed Acyclic Graphs (DAGs) for complex multi-path networks. The scale ranged from a few hundred to 20,000 devices and up to 60,000 tasks.

The results demonstrate exceptional scalability:

  • Efficiency: For a network of 7,000 devices and 20,000 tasks, ILP-D found an optimal schedule in under one minute.
  • Massive Scale: The system successfully placed 60,000 tasks across 20,000 devices in just 7 minutes.

This performance indicates that global coordinated scheduling is feasible for real-world "Smart City" deployments.

Conclusion and Future Directions

This work provides a scalable foundation for global coordination in visual fog networks. By shifting to a device-centric ILP formulation, the researchers transformed a theoretically "hard" problem into a practically solvable one.

Future work will address several remaining challenges:

  • Dynamic Environments: Moving from static scheduling to runtime rescheduling to handle fluctuating device capacities and task demands.
  • Complex Task Graphs: Extending the model from linear task chains to general DAGs.
  • Task De-duplication: Optimizing the scheduler to share results of common pre-processing tasks across multiple applications.

Summary updated

BibTeX
@inproceedings{chu2018scheduling,
  author = {Hong-Min Chu and Shao-Wen Yang and Padmanabhan Pillai and Yen-Kuang Chen},
  title = {{Scheduling in Visual Fog Computing: NP-Completeness and Practical Efficient Solutions}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  url = {https://openreview.net/forum?id=HJbfzk-uWH},
}
Figure