Skip to main content
. 2018 Sep 12;18(9):3060. doi: 10.3390/s18093060
Algorithm 2 An iterative algorithm for solving timeout setting problem with multiple parallel paths.
Input:
  • One physical path set, P(P1,P2,,Pi,PM)(2iM);

  • One logic path set that contains physical path in P, Pk(k=1or2);

  • The bandwidth of physical path Pi, Ci;

  • The bandwidth of Pk, Ck(k=1or2);

  • The total flow number, N;

  • The number of flows mapping to P1 when ideal load balancing effect is achieved, μ;

  • The probabilities of P1 and P2 is chosen as the routing path for newly triggered flowlet, p and q;

  • The m-th minimum value which must be less then δ, δm(1mM1);

Output:
   The maximum value of δm, δmin;
  • 1:

    for m from 1 to M-1 do

  • 2:

       Pp ← pick the first physical path in P;

  • 3:

       P1 ← (Pp) and P2← P - P1;

  • 4:

       C1PiP1Ci and C2PiP2Ci;

  • 5:

       μC1C1+C2×N;

  • 6:

       p1M+1mandqMmM+1m;

  • 7:

       According to (7), we get the δm;

  • 8:

       N ← N-μ;

  • 9:

       Remove Pp from physical path set P;

  • 10:

    end for

  • 11:

    δmin max(δm)(1mM1);

  • 12:

    return δmin;