Research Article
An Architecture of IoT Service Delegation and Resource Allocation Based on Collaboration between Fog and Cloud Computing
Algorithm 4
Determining the allocation strategy.
Input: | (1) , // rate of arrival | (2) // rate of service | (3) SLA1, SLA2 | (4) // processing time expectation | Output: | (5) SA, RA //shared and reserved allocation strategy | (6) Function determineAllocStrategy (, , SLA1, SLA2, , ) | (7) Calculate SLA difference | (8) Get the corresponding angle α from the SLA difference table | (9) If () && ) | (10) If () | (11) Return RA // reserved allocation | (12) Else | (13) Return SA // shared allocation | (14) Else | (15) Return false |
|