|
Algorithm 1 Energy-Saving Traffic Scheduling |
-
Input:
The set of nodes V, the set of wireless chargers C, the set of flows F
-
Output:
The set of nodes in working state A
-
1:
Initialize: ;
-
2:
Find the MTE routes for each ;
-
3:
for each
do
-
4:
if
f is an SDN flow then
-
5:
, where n is the nodes on the MTE route from the source node to the first SDN node in flow f;
-
6:
Run optional paths search function to find the optional paths for flow f;
-
7:
else
-
8:
, where n is the nodes on the MTE route in flow f;
-
9:
;
-
10:
end if
-
11:
end for
-
12:
while
do
-
13:
for each
do
-
14:
if
then
-
15:
, where n is the nodes on the unique optional route of flow f;
-
16:
;
-
17:
end if
-
18:
end for
-
19:
Run optional path selection function to find an optional path for the corresponding flow f;
-
20:
, where n is the nodes on ;
-
21:
Update the size of flow f;
-
22:
if the size of flow f equals to 0 then
-
23:
;
-
24:
end if
-
25:
end while
-
26:
return
A.
|