|
Algorithm 2 An iterative algorithm for solving timeout setting problem with multiple parallel paths. |
Input:
One physical path set, );
One logic path set that contains physical path in P, ;
The bandwidth of physical path , ;
The bandwidth of , ;
The total flow number, N;
The number of flows mapping to when ideal load balancing effect is achieved, ;
The probabilities of and is chosen as the routing path for newly triggered flowlet, p and q;
The m-th minimum value which must be less then , ;
Output: The maximum value of , ;
-
1:
for m from 1 to M-1 do
-
2:
← pick the first physical path in P;
-
3:
← () and ← P - ;
-
4:
and ;
-
5:
;
-
6:
;
-
7:
According to (7), we get the ;
-
8:
N ← N-μ;
-
9:
Remove from physical path set P;
-
10:
end for
-
11:
← max
-
12:
return
;
|