Research Article

Edge Server Placement for Service Offloading in Internet of Things

Algorithm 1

Task transmission path confirmation algorithm.
Inputs: Sensor S, Edge server ES, Task threshold of ES
Output: Determined task transmission path
(1)for n = 1 to N do
(2)  Find the nearest edge server esm
(3)  if the number of task of edge server esm task threshold of ES then
(4)   Delete esm from ES
(5)   Go to step 2
(6)  else
(7)   Confirm that the sensor sn will transmit the task to the edge server esm
(8)   Number of tasks of edge server esm + 1
(9)  end if
(10) end for
(11)return Determined task transmission path