• Keine Ergebnisse gefunden

5 Routing in Networks with IEEE 802.1Qbv Extensions

5.3.2 Routing Heuristics

We mainly present two ILP-based routing approaches, the rst optimizes the routes of the time-triggered trac based on the resulting MSTL only, while the second one additionally considers the number of hops over which the ows are routed.

MSTL Based Routing

In this heuristic, we solely base the routing decision on the resulting MSTL.

The inputs for this ILP are:

(a) Network topology, G,

(b) Set of time-triggered ows to be scheduled,F ≡ {f1, f2, . . . fn}. The variables used for this ILP are:

(a) Route allocation, Routes ≡ {ri,j} ∀i∈F, j ∈E.

Here, ri,j = 1, if owiis routed over link j, else 0. The values of these variables, basically, determine the routes for the ows,

(b) Maximum scheduled trac load, MSTL. This variable is used in the objective function. It must be noted that we do not set a value for the MSTL upfront, instead we allow the solver to route the ows while minimizing it,

(c) Destination counters, DC ≡ {di,j}, ∀i∈F, j ∈E.

Here, dci,j = number of destinations of ow i reachable over link j, if ow i is routed over link j, else 0. These are auxiliary variables for handling multicast time-triggered ows.

The objective of this ILP is, thus, to minimize MSTL, subject to:

(a) The route for each ow starts at its source and ends at its destination(s). i.e., the number of destinations reachable over the outgoing links of the source host is equal to the number of destinations of the ow, while the number of destinations reachable over the incoming links of the destination hosts is 1. For all the other nodes in graph G, the sum of destinations reachable over incoming links is equal to the sum of destinations reachable over outgoing links. The below constraints are applicable for all ows, i.e., ∀i∈F.

X

jin(srci)

dci,j = 0 X

jout(srci)

dci,j =|dsti| (5.1) X

jin(n)

dci,j = 1 X

jout(n)

dci,j = 0 ∀n ∈dsti (5.2)

58

5.3 ILP Based Routing Algorithms

X

jin(n)

dci,j =X

jout(n)

dci,j ∀n ∈V \({srci} ∪dsti) (5.3)

Here, the in() and out() functions return the incoming edges and outgoing edges of the node passed as parameter, respectively.

(b) The ows must be routed such that no switch port is transmitting more scheduled trac than stipulated by MSTL (which is being minimized in the objective).

X

∀iF

ri,j·sizei· Tcycle periodi

≤MSTL ∀ j ∈ E (5.4)

Though NW-PSP restricts the periods of the ows to be integral multiples ofTbp, in practice, the scheduling algorithm schedules all the ows assuming that their period is equal to Tbp. Thus, for NW-PSP this constraint simplies to consider the size of the ow only, as Tcycle =Tbp for an NW-PSP instance. Nonetheless, we account for the time-periods of the ows to enable the usage of this ILP formulation for the SMT-based scheduling approaches also.

With minor modications to the constant terms in the constraint, it can be extended to also account for the dierences in the data-rates of dierent links in the network.

(c) As an auxiliary constraint, it is required that the routing variables are inline with the destination counter. These variables must be related as follows.

ri,j· |dsti| ≥dci,j ∀ i∈F, ∀ j ∈E (5.5) After solving this ILP, the routes for the time-triggered ows can be derived from the values of the ILP variable, Routes. It must be noted that the computed routes for the ows may have loops resulting from links that handle scheduled trac much lower than the MSTL. These loops can be removed by means of post processing the routes or adding constraints to the objective function to constrain the solver from routing ows over paths with loops. However, our evaluations show that such modications to the ILP lead to a signicant increase in the execution runtimes. Hence, we chose to post process the ILP solution to remove any loops in the nal routes. The post processing of the solution in no way alters the resulting MSTL, as it is already minimized by the solver.

MSTL+Hops Based Routing

Routing of time-triggered trac minimizing the MSTL only, may result in some ows being routed over longer paths. In some cases, this may lead to an increase in the

5 Routing in Networks with IEEE 802.1Qbv Extensions

owspan, as a few ows in the NW-PSP instance would now have an increased number of forwarding operations due to the longer routing of the ows. Hence, we now extend the aforementioned ILP to compute routes for time-triggered trac, while optimizing the number of hops along with the resulting MSTL.

For this, we modify the objective of the aforementioned ILP as follows.

Minimize:

MSTL 1 + P

∀iFsizei

+ P

∀iF

P

∀jE

ri,j

1 + (|F| · |E|) (5.6)

The rst term of the objective is, basically, minimizing the MSTL, while the second term minimizes the cumulative number of hops over which all the ows are routed.

Both these terms are normalized to limit their contribution to the objective function to less than 1, so that the ILP solver does not prioritize one over the other.

Our evaluations show that the presented algorithms do, indeed, reduce the owspan for the schedules computed using NW-PSP.

5.3.3 Extension for Incremental Scheduling

We have so far considered the problem of routing time-triggered ows when their specications are known in advance, i.e., the static case. In the dynamic scenario, the routes of the already scheduled ows cannot be altered while computing the routes for the new ows.

The presented ILP-based formulations can be extended for incremental routing of time-triggered ows with a minor modication to the constraint 5.4. The modied constraint considers the load of the scheduled trac already routed over each of the link. The modication mainly includes addition of a constant term to the constraint, and hence, does not aect the time complexity of the problem.

X

∀iF

ri,j ·sizei· Tcycle periodi

+loadj ≤MSTL ∀ j ∈ E (5.7)

With this modication, the ILP formulations can route multiple ows in a batch while considering the routes of all the previously scheduled ows. However, it must be noted that the resulting MSTL on account of the routing may be sub-optimal, primarily due to the inability to modify the routes of the ows already scheduled.

60