| Literature DB >> 30150577 |
Long Mai1, Nhu-Ngoc Dao2, Minho Park3.
Abstract
The emerging fog computing technology is characterized by an ultralow latency response, which benefits a massive number of time-sensitive services and applications in the Internet of things (IoT) era. To this end, the fog computing infrastructure must minimize latencies for both service delivery and execution phases. While the transmission latency significantly depends on external factors (e.g., channel bandwidth, communication resources, and interferences), the computation latency can be considered as an internal issue that the fog computing infrastructure could actively self-handle. From this view point, we propose a reinforcement learning approach that utilizes the evolution strategies for real-time task assignment among fog servers to minimize the total computation latency during a long-term period. Experimental results demonstrate that the proposed approach reduces the latency by approximately 16.1% compared to the existing methods. Additionally, the proposed learning algorithm has low computational complexity and an effectively parallel operation; therefore, it is especially appropriate to be implemented in modern heterogeneous computing platforms.Entities:
Keywords: evolution strategies; fog computing; long-term latency minimization; real-time task assignment; reinforcement learning
Year: 2018 PMID: 30150577 PMCID: PMC6163362 DOI: 10.3390/s18092830
Source DB: PubMed Journal: Sensors (Basel) ISSN: 1424-8220 Impact factor: 3.576
Figure 1Real-time task assignment considering buffer status of fog servers.
Explanation of terms in the study.
| Term | Explanation | Unit |
|---|---|---|
| Fog( | ||
| Exp( | ||
| Capability (i.e., frequency) of Fog( | Number of cycles that Fog( | Hz |
| Size of a task | Number of bits in a task | bit |
| Complexity of a task | Number of cycles needed to solve a bit of the task | cycles/bit |
| Remaining tasks in a buffer | Tasks in the buffer at a given time | |
| Latency of Fog( | Computational latency of Fog( | second |
| System latency | Maximum latency among all fog servers | second |
Figure 2Task assignment overview.
An example of real-time task assignment.
| ( | |||||||
| Time | Task | Size | Complexity | Expected latency | Fog1 | Fog2 | System |
| 0 ms | 0 | 0 | 0 | ||||
| Task1 | 1 | 10 | 5 ms–10 ms | 5 ms | 0 | 5 ms | |
| 2 ms | 3 ms | 0 | |||||
| Task2 | 1 | 7 | 3.5 ms–7 ms | 6.5 ms | 0 | ||
| Task3 | 1 | 8 | 4 ms–8 ms | 6.5 ms | 8 ms | 8 ms | |
| ( | |||||||
| Time | Task | Size | Complexity | Expected latency | Fog1 | Fog2 | System |
| 0 ms | 0 | 0 | 0 | ||||
| Task1 | 1 | 10 | 5 ms–10 ms | 5 ms | 0 | 5 ms | |
| 2 ms | 3 ms | 0 | |||||
| Task2 | 1 | 7 | 3.5 ms–7 ms | 3 ms | 7 ms | ||
| Task3 | 1 | 8 | 4 ms–8 ms | 7 ms | 7 ms | 7 ms | |
Figure 3An example of a state.
Figure 4Neural network in reinforcement learning.
Figure 5Training and testing process in the experiments.
Simulation parameters.
| Parameter | Experiment | Initial |
|---|---|---|
| # of Fog servers | 5, 10 | 5 |
| # of IoT nodes | 100, 200 | 100 |
| # of training tasks | 50, 100, 150, 200 | 100 |
| Learning rate | 0.002 | Fixed |
| # of children | 5, 10, 15, 20 | 10 |
| Deviation of children | 0.2 | Fixed |
| # of hidden nodes in NN | 256, 512, 1024, 4096 | 1024 |
Experiments.
| Experiment | # of | # of IoT | # of | # of | # of Hidden | Our | Greedy | Improvement | Average |
|---|---|---|---|---|---|---|---|---|---|
| 1 |
|
| 100 | 10 | 1024 | 357.305 | 309.867 | 15.309 | 1.496 |
| 2 |
|
| 100 | 10 | 1024 | 346.509 | 298.455 | 16.101 | 1.667 |
| 3 | 5 | 100 |
| 10 | 1024 | 353.208 | 309.867 | 13.989 | 1.369 |
| 1 | 5 | 100 |
| 10 | 1024 | 357.305 | 309.867 | 15.309 | 1.496 |
| 4 | 5 | 100 |
| 10 | 1024 | 356.030 | 309.867 | 14.898 | 1.662 |
| 5 | 5 | 100 |
| 10 | 1024 | 357.2822 | 309.867 | 15.302 | 1.941 |
| 6 | 5 | 100 | 100 |
| 1024 | 352.169 | 309.867 | 13.652 | 1.345 |
| 1 | 5 | 100 | 100 |
| 1024 | 357.305 | 309.867 | 15.309 | 1.496 |
| 7 | 5 | 100 | 100 |
| 1024 | 359.002 | 309.867 | 15.857 | 1.659 |
| 8 | 5 | 100 | 100 |
| 1024 | 357.031 | 309.867 | 15.221 | 1.838 |
| 9 | 5 | 100 | 100 | 10 |
| 356.107 | 309.867 | 14.923 | 1.494 |
| 10 | 5 | 100 | 100 | 10 |
| 354.732 | 309.867 | 14.479 | 1.493 |
| 1 | 5 | 100 | 100 | 10 |
| 357.305 | 309.867 | 15.309 | 1.496 |
| 11 | 5 | 100 | 100 | 10 |
| 351.781 | 309.867 | 13.526 | 1.663 |
Figure 6Reward with 100 IoT devices and five fog servers.
Figure 7Exploring efficiency with number of fog servers.
Figure 8Exploring efficiency with a number of training tasks.
Figure 9Exploring efficiency with number of children.
Figure 10Exploring efficiency with the number of hidden nodes in NN.