Algorithm 1 Dynamic QoS Algorithm. |
Input: current queue query in SQL table
-
1:
if queue entry does not exist in SQL table then
-
2:
if queue entry does not exist on switches then
-
3:
do nothing
-
4:
else
-
5:
delete proactive flows on switches
-
6:
delete queues on switches
-
7:
end if
-
8:
else
-
9:
if queue entry does not exist on switches then
-
10:
add queues on switches
-
11:
add proactive flows on switches
-
12:
else
-
13:
if current query result ≠ previous query result then
-
14:
modify queues on switches
-
15:
end if
-
16:
end if
-
17:
end if
|