Manuscript Offprint
arXiv:2610.39564Constant-Factor Approximation for Non-Splitting Coflow Scheduling in Heterogeneous Parallel Networks via Iterative Relaxation
Abstract
Coflows capture the collective communication requirements of data-parallel applications, and scheduling them well is essential to the performance of modern data centers. We study non-splitting coflow scheduling in a heterogeneous parallel network whose network cores may be Electronic Packet Switches (EPS), not-all-stop Optical Circuit Switches (OCS), or all-stop OCS, where every flow must be transmitted entirely through a single core. Previous approximation algorithms for this setting have guarantees that grow linearly with the number of cores or with the maximum flow degree of a port, and therefore become weak as data centers deploy more cores. The source of this dependence is the rounding step: rounding each flow to the core holding its largest fractional value can inflate the load of a port by a factor of . We replace this step with an iterative relaxation rounding scheme that handles the input-port and output-port capacity constraints simultaneously. For minimizing the makespan, this yields approximation ratios of , , and for pure EPS, pure not-all-stop OCS, and pure all-stop OCS networks, respectively. For minimizing the total weighted coflow completion time, we obtain approximation ratios of , , and for the same three architectures. In a hybrid network, the guarantee is governed by the weakest architecture present, so the overall ratios are at most and , respectively. Unlike all previous guarantees for non-splitting coflow scheduling in heterogeneous parallel networks, these bounds are absolute constants that do not grow with the number of cores or with the flow degree . We also show that the integrality gap of the underlying linear program is at least 2.
Key words: Scheduling algorithms, approximation algorithms, coflow, iterative relaxation, datacenter network, heterogeneous parallel network.
1 Introduction
In data-parallel frameworks such as MapReduce [13], Hadoop [27, 3], Dryad [16], and Spark [32], a computation stage produces a large amount of intermediate data that must be shuffled between two groups of machines before the next stage can begin. The coflow abstraction [8] groups the parallel flows of such a communication stage into a single unit. Because the next stage cannot start until all of its input has arrived, the quantity that matters to the application is the completion time of the last flow of the coflow [8, 25], and a number of systems have shown that scheduling the network at the granularity of coflows yields substantial gains [11, 9, 34, 1].
The switching fabric of data centers is also becoming increasingly heterogeneous. An Electronic Packet Switch (EPS) multiplexes packets of many flows on a link and allows flows to be preempted. An Optical Circuit Switch (OCS) [35, 28, 21] offers much higher bandwidth at lower energy cost, but each of its ports can maintain only one circuit at any moment, and every change of the circuit configuration costs a reconfiguration delay [35]. Depending on how reconfiguration is carried out, an OCS is either all-stop, in which case all circuits pause during a reconfiguration, or not-all-stop, in which case only the ports being reconfigured are interrupted. A realistic data center therefore contains several network cores of different types and speeds, and a coflow scheduler must decide both which core carries each flow and when the flow is transmitted.
We consider a set of coflows, each described by a demand matrix , that must be transmitted through heterogeneous network cores, where core has link rate . Flows are not allowed to be split: every flow is carried entirely by one core, although different flows of the same coflow may use different cores. Splitting a flow across fabrics causes packet reordering and other overhead that is undesirable in practice [7]. We study two objectives: the makespan and the total weighted coflow completion time , where and denote the completion time and the weight of coflow .
Table 1: Comparison of related works (adapted and extended from [29, 30, 7]).
| Works | EPS | OCS | No. of cores | Performance guarantee | Ratio independent of and | |
|---|---|---|---|---|---|---|
| all-stop | not-all-stop | |||||
| [10, 11, 9, 34, 36] | ✓ | ✕ | ✕ | 1 | ✕ | – |
| [24, 18, 25, 20] | ✓ | ✕ | ✕ | 1 | ✓ | – |
| [31] | ✕ | ✓ | ✕ | 1 | ✕ | – |
| [33, 28] | ✕ | ✓ | ✕ | 1 | ✓ | – |
| [14, 35] | ✕ | ✕ | ✓ | 1 | ✓ | – |
| [21, 17] | ✓ | ✕ | ✓ | 2 | ✕ | – |
| [22] | ✓ | ✓ | ✕ | 2 | ✕ | – |
| [29] | ✓ | ✓ | ✕ | 2 | ✓ | – |
| [30] | ✓ | ✓ | ✓ | 2 | ✓ | – |
| [4, 6, 5, 15] | ✓ | ✕ | ✕ | ✓ | – | |
| [7] | ✓ | ✓ | ✓ | ✓ | ✕ | |
| This work | ✓ | ✓ | ✓ | ✓ | ✓ | |
1.1.1 EPS-based networks
For the total weighted coflow completion time on a single EPS core, a sequence of works [24, 2, 18, 25] improved the approximation ratio from to 4 when all release times are zero, and from to 5 for arbitrary release times. On identical parallel networks, Chen [6] obtained ratios of and .
for arbitrary and zero release times, and later extended the approach to coflows with precedence constraints, achieving an -approximation [5], where is the number of coflows on the longest path of the precedence graph. On heterogeneous parallel networks, Huang et al. [15] gave an -approximation for the makespan of a single coflow, which Chen [4] improved to ; the same bound was also obtained for the total weighted completion time [4].
1.1.2 OCS-based networks
For all-stop OCS, Tan et al. [28] designed Reco-Sin and obtained a 2-approximation for a single coflow and an 8K-approximation for K coflows. Wang et al. [29] gave approximation guarantees for a hybrid-switched network consisting of one EPS and one all-stop OCS. For not-all-stop OCS, Huang et al. [14] proposed Sunflow, which is a constant-factor approximation for a single coflow, and Zhang et al. [35] gave a 4-approximation for multiple coflows. For hybrid electrical-optical fabrics, Li and Shen [21] and Jiang et al. [17] proposed heuristics, and the work in [30] provided guarantees for two cores including both types of OCS. All of the hybrid results with guarantees [29, 30] are restricted to m = 2 cores and rely on splitting flows across the fabrics.
1.1.3 Non-splitting scheduling on heterogeneous parallel networks
The work most closely related to ours is [7], which gave the first approximation algorithms with provable guarantees for non-splitting coflow scheduling in a hybrid network with an arbitrary number of EPS, not-all-stop OCS, and all-stop OCS cores. The algorithms in [7] first solve a linear programming relaxation of the flow-to-core assignment and then round each flow to the core with the largest fractional value. Let be the maximum number of flows incident to a single port. For the makespan, the resulting ratios are , , and in pure EPS, pure not-all-stop OCS, and pure all-stop OCS networks, respectively; for the total weighted coflow completion time, they are , , and [7]. In a hybrid network, the guarantee is determined by the weakest architecture present.
Every one of these ratios grows linearly in m or , so they lose their meaning precisely when the number of cores is large. The reason is inherent to the rounding step. The largest of the m fractional values of a flow is only guaranteed to be at least , and if many flows of a port are spread evenly over all cores by the linear program and then rounded onto the same core, the load of that port grows by a factor of m. Rounding methods based on bipartite matching [26] control the load of one side, but every assignment variable belongs to both an input-port constraint and an output-port constraint, so matching on the input side alone gives no control on the output side [7]. The goal of this paper is to remove the factors m and from the approximation ratios of [7].
1.2 Our Contributions
We keep the linear programming relaxations of [7] and replace their rounding step by an iterative relaxation scheme in the spirit of Lau, Ravi, and Singh [19]. Our contributions are as follows.
- Iterative relaxation rounding for two families of capacity constraints. In the assignment linear program, each variable appears in exactly one assignment constraint and in exactly two capacity constraints, one for its input port and one for its output port. We show that every extreme point of the residual linear program either contains an integral variable or contains a capacity constraint whose total fractional deficiency is at most 2, and that dropping such a constraint costs at most twice the largest transmission time. Consequently,
the load of every port on every core after rounding is at most , where is the smallest value for which the relaxation is feasible. The previous bound was [7].
• Makespan. We obtain approximation ratios of
– in a pure EPS network,
– in a pure not-all-stop OCS network, and
– in a pure all-stop OCS network.
For all-stop OCS, we also remove the additive dependence on caused by the reconfiguration delays by bounding the number of reconfigurations at a port through the port load itself.
• Total weighted coflow completion time. Applying the new rounding inside each time interval of the interval-indexed relaxation of [7], we obtain approximation ratios of
– in a pure EPS network,
– in a pure not-all-stop OCS network, and
– in a pure all-stop OCS network.
• Hybrid networks and limits of the relaxation. In a hybrid network, the overall guarantee equals that of the weakest architecture present; hence the makespan ratio is at most 12 and the weighted completion time ratio is at most 128, independently of m and . We further show that the integrality gap of the makespan relaxation is at least 2, so any analysis based on this relaxation cannot bound the port loads by less than .
1.3 Organization
Section 2 describes the model and the notation. Section 3 presents the iterative relaxation rounding and the algorithm for minimizing the makespan. Section 4 extends the approach to the total weighted coflow completion time. Section 5 concludes the paper. For completeness, the Birkhoff-von Neumann based schedule for a single EPS core is reviewed in the appendix.
2 Notation and Preliminaries
We adopt the network and traffic model of [7]; Table 2 lists the notation used throughout the paper.
2.1 Network Model
The network consists of a set of non-blocking switches, called network cores, partitioned as with , where contains EPS cores, contains all-stop OCS cores, and contains not-all-stop OCS cores. Every core has the same input ports, attached to the source servers , and the same output ports, attached to the destination servers ; thus each source-destination pair is connected by parallel links, one through each core, and each core can be viewed as a bipartite graph between and . All links of core have rate .
An EPS core multiplexes packets of different flows on a port. An OCS core is subject to the port constraint: at any time, each input port and each output port takes part in at most one circuit. Changing the circuit configuration of an OCS core q takes a fixed reconfiguration delay . In an all-stop OCS, all transmissions of the core are suspended during a reconfiguration; in a not-all-stop OCS, only the ports whose circuits change are interrupted.
Table 2: Notation and terminology.
| Number of input ports (and of output ports) of each core. | |
|---|---|
| Set of network cores and its size. | |
| Sets of EPS cores, all-stop OCS cores, and not-all-stop OCS cores. | |
| Sets of source servers (input ports) and destination servers (output ports). | |
| Set of coflows. | |
| Number of flows. | |
| Demand matrix of coflow ; size of the flow of coflow from input to output . | |
| Set of all flows; flows with source ; flows with destination . | |
| Link rate of core ; reconfiguration delay of an OCS core . | |
| Transmission time of flow on core . | |
| Maximum flow degree of a port, . | |
| Release time, weight, and completion time of coflow . | |
| Completion time of flow . | |
| Interval end point for . |
2.2 Traffic Model
Coflow is described by a demand matrix , where is the amount of data that coflow sends from input to output . The triple with is called a flow, and as in [24] all flows of a coflow are released together at time . We write
and let . Flows are indivisible: every flow must be transmitted entirely through one core, whereas different flows of the same coflow may use different cores.
The transmission time of flow on core is
that is, on an OCS core every flow is charged one reconfiguration delay for setting up its circuit. Without loss of generality, we scale time so that for all flows and cores. For a set of flows assigned to core , the load of a port on core is the sum of the transmission times on core of the assigned flows incident to that port.
2.3 Objectives
For the makespan, all coflows arrive at a common time , and, with denoting the time at which flow finishes, we minimize
For the second objective, coflow is released at time , its completion time is the completion time of its last flow, and we minimize .
3 Approximation Algorithm for Minimizing the Makespan
Like the algorithms of [7], our algorithm works in two stages. The first stage assigns every flow to a core by rounding a fractional solution of a linear program, and the second stage schedules, independently on each core, the flows that were assigned to it. The second stage is the same as in [7]; the novelty lies in the rounding of the first stage.
3.1 The Assignment Relaxation and the Bisection Procedure of [7]
For a flow and a core , let indicate whether the flow is transmitted through core . For a target makespan , the following linear program, introduced in [7], relaxes the assignment problem:
LP(T):
(1)
Constraint (1a) assigns each flow to one core, constraints (1b) and (1c) limit the load of every input port and every output port on every core to T, and constraint (1e) forbids a core on which the flow alone would take longer than T. In any feasible non-splitting schedule with makespan T, the load of every port on every core is at most T and every flow is carried by a core on which it takes at most T time units, so the schedule induces an integral solution of LP(T). Hence LP(T) is feasible for T = OPT, the optimal makespan.
Because constraint (1e) depends on T, the smallest feasible T is not computed by a single linear program. Following [7], we use bisection (Algorithm 1). The initial upper bound u is the largest port load obtained when every flow uses its slowest core, for which is clearly feasible, and the initial lower bound l is the largest port demand divided by the total rate of all cores. In each step, the feasibility of is tested for the midpoint d, and the interval is halved accordingly. We denote by the value returned by the procedure. Since is feasible, we have
A core with cannot carry any flow in and is discarded. Thus, we may assume for every remaining OCS core.
In [7], a fractional solution of is rounded by sending every flow to the core . Since , the load of a port grows by at most a factor of , which gives the bound . The example in which the flows of a port are spread evenly over the cores and then all rounded onto one core shows that this analysis cannot be improved. We now describe a rounding procedure that avoids this loss.
Algorithm 1 Bisection procedure [7]
1:
2:
3:
4: while do
5:
6: if LP(d) is feasible then
7:
8: else
9:
10: end if
11: end while
12: return
3.2 Iterative Relaxation Rounding
It is convenient to describe the rounding for a general assignment polytope, since the same procedure will be used again in Section 4. Let be a set of flows, let , and let be a set of admissible flow-core pairs such that
We call a pair an edge, write and , and say that belongs to flow . For every input port and core , there is a capacity constraint , and for every output port and core , there is a capacity constraint . An edge belongs to exactly two capacity constraints, namely and . Let be the set of all 2Nm capacity constraints. The polytope
is exactly the feasible region of LP(T) when and .
The procedure (Algorithm 2) maintains a set of unassigned flows, a set of edges still available to them, a set of capacity constraints still enforced, and, for each , a residual capacity , which equals minus the load already placed on . The residual linear program is
RLP:
For a constraint , let and . In each iteration, the algorithm computes an extreme point solution of RLP and deletes the edges whose value is zero. If some edge has value one, the corresponding flow is fixed to that core. Otherwise, the algorithm drops a capacity constraint whose total fractional deficiency is at most 2; Lemma 3.2 below shows that such a constraint always exists. This mirrors the iterative relaxation technique for the generalized assignment problem [19], with the difference that each of our variables appears in two capacity constraints instead of one.
Algorithm 2 Iterative relaxation rounding
Input: , and such that and (3) holds
1: , and for every
2: while do
3: Compute an extreme point solution of RLP
4:
5: if there is an edge with then
6: Assign flow to core , i.e.,
7: and remove from all edges of flow
8: For each , set
9: else
10: Find with and
11:
12: end if
13: end while
14: return
We first show that RLP remains feasible, so that every iteration is well defined.
Lemma 3.1. At the beginning of every iteration of Algorithm 2, RLP is feasible and bounded.
Proof. Initially, RLP is the system defining , which is nonempty by assumption. Suppose is the extreme point computed in some iteration. Deleting the edges with does not affect the feasibility of . If an edge with is fixed, then all other edges of flow have value zero by (5a), and the restriction of to the remaining edges satisfies (5a) for the remaining flows and (5b) with the reduced capacities . If a capacity constraint is dropped, remains feasible. Hence RLP is feasible in the next iteration. It is bounded because (5a) and (5c) imply for every edge.
The next lemma is the heart of the analysis.
Lemma 3.2. Let be an extreme point solution of RLP with for every , and suppose . Then there exists a constraint with and .
Proof. Let be the number of variables and let . Since no variable equals 1 and the variables of each flow in sum to 1, every flow in has at least two edges, and hence
By the rank lemma [19], an extreme point of RLP is the unique solution of V linearly independent constraints of RLP that are tight at . No nonnegativity constraint is tight, and a capacity constraint with has a zero left-hand side, so these V constraints are assignment constraints (5a) or capacity constraints in . Therefore,
If , then (6) and (7) give , which contradicts ; thus . Each edge belongs to at most two constraints of , and the values of the edges sum to by (5a). Using (7), we obtain
Hence the average of over is at most 2, and some satisfies the claim.
Theorem 3.3. Suppose and (3) holds. Then Algorithm 2 runs in polynomial time and assigns every flow of to exactly one core with . Moreover, let , so that by (3). Then, for every core , the load of every input port and every output port on is at most .
Proof. By Lemma 3.1, every iteration computes an extreme point of a feasible and bounded linear program, which can be done in polynomial time. If no edge has value one, Lemma 3.2 guarantees that a constraint can be dropped. Hence each iteration either assigns a flow or drops a constraint, and the algorithm stops after at most iterations. Every flow is assigned through an edge of , and once assigned, it is removed from , so it is assigned exactly once.
Fix a capacity constraint , and let denote the total transmission time of the flows assigned to so far. As long as , we have , and the feasibility of RLP implies . If is never dropped, its final load is at most . Otherwise, consider the iteration in which is dropped, with extreme point and current load . Since edges are only deleted and never added, every flow that is assigned to afterwards is assigned through an edge of the set at that moment. Hence the final load of is at most . We split this quantity into a fractional part and a deficiency part:
Since when is computed, constraint (5b) gives , so the first part is at most . Since and for every , and since satisfies the condition in Line 11, the second part is at most
Therefore the final load of c is at most , which is at most 3T because .
The bound separates the role of the capacity from that of the largest transmission time . For , the two coincide up to , and we obtain . In Section 4, however, the capacity of a group will be twice as large as the transmission times allowed in it, and the finer bound will give a better constant.
We now apply Algorithm 2 to , that is, with , , and . Let and denote the load of input port and output port on a core after rounding; the index of the core is omitted since the bound is the same for all cores.
Lemma 3.4. After applying Algorithm 2 to , we have for every core, every , and every .
Proof. By the definition of the bisection procedure, is feasible, and (3) holds with by the choice of . Theorem 3.3 gives . In addition, at most flows are incident to any port, and each of them is assigned through an edge of , so its transmission time on the chosen core is at most . Hence as well.
Lemma 3.4 replaces the bound of [7] by a bound that does not depend on m.
3.3 Scheduling on Each Core
After the assignment, each core schedules its own flows independently (Algorithm 3). As in [7], an EPS core uses the Birkhoff-von Neumann decomposition [23, 24], a not-all-stop OCS core uses Sunflow [14], and an all-stop OCS core uses Reco-Sin [28].
Algorithm 3 Scheduling for minimizing the makespan
1: Run Algorithm 1 to obtain 2: Run Algorithm 2 with , , and to obtain 3: for each in parallel do 4: if then 5: Schedule the flows assigned to q by the Birkhoff-von Neumann decomposition [23, 24] 6: else if then 7: Schedule the flows assigned to q by Sunflow [14] 8: else 9: Schedule the flows assigned to q by Reco-Sin [28] 10: end if 11: end for
3.4 Analysis
Let denote the makespan of the schedule produced by Algorithm 3, and let be the time at which core finishes its flows, so that . For a core , let be the largest load of a port on after rounding. By Lemma 3.4,
Lemma 3.5. If , then .
Proof. By Theorem A.2 in the appendix, the Birkhoff-von Neumann based schedule finishes the flows of an EPS core within the largest port load of that core. Hence , and the claim follows from (8).
Lemma 3.6. If , then .
Proof. By the analysis of Sunflow [14] (see also [7]), the flow that finishes last on , say from input to output , finishes no later than the sum of the loads of and on . Hence , and the claim follows from (8).
For an all-stop OCS core, the schedule length consists of a transmission part and a reconfiguration part. For a core , let be the largest amount of data that a single port of has to send or receive, and let be the largest number of flows assigned to q that are incident to a single port. The analysis of Reco-Sin [28], as applied in [7], shows that
that is, at most twice the data transmission time of the busiest port plus the reconfiguration delay multiplied by the largest number of flows at an input or output port. In [7], the second term was bounded by , which introduces an additive dependence on . The following lemma shows that both terms are dominated by the port loads.
Lemma 3.7. For every , we have and . Consequently, , .
Proof. Let v be a port of q that sends or receives units of data, and let be the set of flows assigned to q that are incident to v. Then
Similarly, let be a port of q with incident flows assigned to q, and let be the set of these flows. Since every flow on an OCS core is charged one reconfiguration delay,
The last statement follows from (8).
Lemma 3.8. If , then .
Proof. Combining (9) with Lemma 3.7 gives .
Since and , Lemmas 3.5, 3.6, and 3.8 yield the following theorem.
Theorem 3.9. Algorithm 3 is a polynomial-time algorithm. Depending on the network architecture, its approximation ratio for the makespan is as follows:
• if all cores are EPS, the ratio is ;
• if all cores are not-all-stop OCS, the ratio is ;
• if all cores are all-stop OCS, the ratio is .
In a hybrid network, the ratio is the largest of the ratios of the architectures that are present. In particular, it is when the network contains only EPS and not-all-stop OCS cores, and it is whenever at least one all-stop OCS core is present.
Remark 3.10. The bounds of Theorem 3.9 do not depend on m, whereas the bounds of [7] grow with m. The case is trivial: no two flows share a port, so sending every flow to a core on which its transmission time is smallest and starting all flows at time 0 yields an optimal makespan (on an all-stop OCS core, all circuits are set up in a single reconfiguration). For and small m or , the bounds of [7] can still be smaller. For example, when and , the bounds of [7] are 2 and 4 for EPS and not-all-stop OCS, compared with our 3 and 6; and for all-stop OCS with , the bound is smaller than for . Running both algorithms and returning the schedule with the smaller makespan achieves the minimum of the two guarantees in every architecture.
3.5 A Lower Bound on the Integrality Gap
The bound of Theorem 3.3 cannot be improved below by any rounding of , as the following example shows.
Proposition 3.11. For every , there is an instance with EPS cores for which . Hence the integrality gap of is at least 2.
Proof. Consider EPS cores of rate 1 and a single input port with flows of size , each to a different output port. Setting for every flow and every core gives a load of at port on every core, and every output port has load 1 on every core; hence is feasible and . In any non-splitting assignment, two of the flows share a core, so the load of port on that core is at least , and therefore . The ratio tends to 2 as grows.
4 Approximation Algorithm for Minimizing the Total Weighted Completion Time
We now turn to the total weighted coflow completion time. We first review the interval-indexed approach of [7], which is inspired by Chudak and Shmoys [12], and then explain how the rounding inside each interval is replaced by Algorithm 2.
4.1 The Interval-Indexed Relaxation of [7]
As in [7], let be an integer, polynomial in the input size, such that the horizon is long enough to contain an optimal schedule. The time horizon is divided into the geometrically increasing intervals [1, 2], (2, 4], ..., (2, 2], and we set for . The variable indicates that flow is transmitted through core and completes within the -th interval . The relaxation of [7] is
min
s.t.
Constraint (10a) assigns every flow to one core and one interval; (10b) and (10e) are two lower bounds on the completion time of a flow, namely its release time plus its transmission time and the left end point of its interval; (10c) and (10d) state that the flows completing by time load each port of each core by at most ; (10f) says that a coflow completes no earlier than any of its flows; and (10h) excludes completions that are impossible because of the release time and the transmission time. Every non-splitting schedule induces a feasible solution with the same objective value [7], so the optimal value of (10) is a lower bound on the optimum. Throughout this section, (x, C) denotes an optimal solution of (10), and , refer to its values.
As in [7], every flow is assigned to the group , where
Let . In [7], every flow is sent to the core that maximizes ; since this maximum is only guaranteed to be a fraction of the total, the port loads of a group were bounded by , which is the origin of the factor in the ratios of [7]. We instead round each group by Algorithm 2.
4.2 Rounding Each Group by Iterative Relaxation
For a group and a flow , define
and let .
Lemma 4.1. For every group , the vector restricted to belongs to . Moreover, for every .
Proof. Fix . Since , the denominator in (11) is at least , so is well defined and . If , then for some , and (10h) gives ; hence is supported on , and on . Finally, for an input port and a core , constraint (10c) with yields
The same argument with (10d) applies to every output port.
For each group , we run Algorithm 2 with , , and ; by Lemma 4.1, the input requirements are satisfied. Let be the set of flows of that are assigned to core . The overall procedure is summarized in Algorithm 4. The groups are processed one after another on every core, and group is started on core when both core has finished group and time has been reached. Since every flow in is admissible only on cores with , all flows of group have been released when the group starts.
Algorithm 4 Scheduling for minimizing the total weighted completion time
1: Solve the linear program (10) to obtain (x, C) 2: for each flow do 3: Compute and add to 4: end for 5: for each group with do 6: Compute y by (11) and run Algorithm 2 with , , and 7: Let be the flows of assigned to core , for each 8: end for 9: for each in parallel do 10: for do 11: Wait until core has finished and the current time is at least 12: if then 13: Schedule by the Birkhoff-von Neumann decomposition [23, 24] 14: else if then 15: Schedule by Sunflow [14] 16: else 17: Schedule by Reco-Sin [28] 18: end if 19: end for 20: end for
4.3 Analysis
Let and denote the load of input port and output port on a core caused by the flows of group assigned to that core; again, the index of the core is omitted.
Lemma 4.2. For every group , every core, every , and every , we have .
Proof. We present the argument for an input port on a core ; the argument for an output port is identical. Fix a group and let .
The bound . By Lemma 4.1, the restriction of to belongs to , so the input requirement of Algorithm 2 is met with ; condition (3) also holds since for every . The quantity of Theorem 3.3 therefore satisfies
We stress that this bound on is half of the capacity : the capacity is doubled because each flow of carries only a fraction of at least of its assignment within the first intervals, but an admissible edge must still satisfy . Applying Theorem 3.3 to the run of Algorithm 2 for group , the load of caused by the flows of is at most
In more detail, if is never dropped during the run for group , its load is at most . Otherwise, let be the extreme point at the iteration in which is dropped and the load of at that moment. As in the proof of Theorem 3.3,
where the first part is bounded by the residual capacity constraint (5b) with right-hand side , and the second part uses and .
The bound . At most flows are incident to port . Each flow of that is assigned to core is assigned through an edge of , so its transmission time on is at most . Hence .
Combining the two bounds gives .
Note that applying only the coarser bound 3T of Theorem 3.3 with would give ; the improvement to comes from the fact that the deficiency part is charged at the transmission time rather than at the capacity .
Let denote the largest time that a core spends on the flows of group , measured from the moment the group is started on that core. For a core , let be the largest load of a port on caused by the flows of . By Lemma 4.2,
Lemma 4.3. For every group g,
• if the cores are EPS, then ;
• if the cores are not-all-stop OCS, then ;
• if the cores are all-stop OCS, then .
Proof. Fix a group and a core . Once group is started on , the core schedules exactly the flows of , all of which have been released (Algorithm 4), and no flow of another group is transmitted on until is finished. Hence the time spent on group is the makespan of the schedule computed for the flow set alone, and we may apply the single-core analyses of Section 3 to this flow set, with replaced by .
EPS cores. By Theorem A.2, the Birkhoff-von Neumann based schedule completes within the largest port load, so the time spent is at most by (12).
Not-all-stop OCS cores. By the analysis of Sunflow [14], the last flow of , say from input i to output j, finishes no later than the sum of the loads of i and j caused by . Hence the time spent is at most .
All-stop OCS cores. Let be the largest amount of data that a port of sends or receives in , and let be the largest number of flows of incident to one port. By (9) applied to , the time spent is at most . The proof of Lemma 3.7 applies verbatim to the flow set : if is a port that sends or receives units of data and is the set of flows of incident to , then
and if is a port with incident flows of , forming the set , then, since each of these flows is charged one reconfiguration delay,
Therefore the time spent is at most .
Taking the maximum over all cores of the respective type proves the lemma.
Let be the factor appearing in Lemma 4.3, i.e., , , and for EPS, not-all-stop OCS, and all-stop OCS, respectively. Note that .
Lemma 4.4. On every core, all flows of groups 1, ..., g are completed by time .
Proof. Let be the time at which the core finishes group , with . By Algorithm 4 and Lemma 4.3, . We show by induction on . For , because . For , the induction hypothesis gives , so and .
Let denote the completion time of coflow k in the schedule produced by Algorithm 4.
Theorem 4.5. Algorithm 4 is a polynomial-time algorithm, and for every coflow k,
• if all cores are EPS, then ;
• if all cores are not-all-stop OCS, then ;
• if all cores are all-stop OCS, then .
Consequently, the approximation ratio for the total weighted coflow completion time is , , and in these three architectures, respectively. In a hybrid network, the ratio is the largest of the ratios of the architectures that are present, and hence at most .
Proof. The linear program (10) has polynomially many variables and constraints, since L is polynomial in the input size, and Algorithm 2 runs in polynomial time by Theorem 3.3.
Fix a coflow , and let be a flow of with the largest group index . By Lemma 4.4, every flow of is completed by time , so . We now show and distinguish two cases.
Case 1: . If , then , since by (10a) and (10b). Otherwise, the minimality of gives , and hence .
Case 2: . By the minimality of , , and therefore by (10a). Using (10e), we obtain
so .
In both cases by (10f), and thus . Substituting the three values of proves the per-coflow bounds. Multiplying by and summing over gives , and the right-hand side is at most times the optimum, because (10) is a relaxation. In a hybrid network, each core satisfies Lemma 4.3 with the factor of its own architecture; taking as the largest factor among the architectures present, Lemma 4.4 and the argument above hold verbatim.
As in Remark 3.10, the guarantees of Theorem 4.5 and those of [7] can be combined by computing both schedules and keeping the one with the smaller total weighted completion time.
5 Concluding Remarks
This paper revisited non-splitting coflow scheduling in heterogeneous parallel networks composed of EPS, not-all-stop OCS, and all-stop OCS cores. The previous algorithms for this problem [7] have approximation ratios that grow linearly with the number of cores m or with the maximum flow degree , because rounding each flow to its largest fractional core may multiply the load of a port by m. We replaced this step by an iterative relaxation rounding that controls the input-port and the output-port capacity constraints at the same time, and we proved that the load of every port on every core is at most . For all-stop OCS, we additionally showed that the number of reconfigurations at a port is controlled by its load, which removes the additive term caused by reconfiguration delays. For minimizing the makespan, the resulting approximation ratios are , , and for pure EPS, pure not-all-stop OCS, and pure all-stop OCS networks. For minimizing the total weighted coflow completion time, applying the same rounding within every interval of the interval-indexed relaxation yields approximation ratios of , , and . In a hybrid network, the guarantee is determined by the weakest architecture present, so the overall ratios are at most 12 and 128, respectively. To the best of our knowledge, these are the first approximation ratios for non-splitting coflow scheduling in heterogeneous parallel networks that do not depend on the number of network cores.
Several questions remain open. First, Proposition 3.11 shows that the integrality gap of LP(T) is at least 2, while our rounding achieves a port-load bound of ; closing this gap, for example with a refined rule for dropping constraints or with a strengthened relaxation, would directly improve all of our ratios. Second, the constants for the total weighted completion time come from several sources, including the group threshold , the geometric interval length, and the factor 2 in the capacity of each group, and it would be interesting to reduce them, for example by randomizing the interval boundaries. Third, the schedules on individual OCS cores lose a factor of 2 or 4 relative to the port loads; designing assignment and scheduling procedures that are analyzed jointly may reduce this loss. Finally, extending the results to online settings and to coflows with precedence constraints is a natural direction for future work.
Appendix: Birkhoff-von Neumann Decomposition
This appendix recalls why the flows assigned to a single EPS core can be completed within the largest port load of that core. Since only one core is involved, we drop the core index and describe the assigned flows by an matrix of transmission times, and we define its load as
The procedure relies on the classical theorem of Birkhoff and von Neumann [23].
Theorem A.1. [23] (Birkhoff-von Neumann) Every doubly stochastic matrix can be written as , where each is a permutation matrix, , , and .
Algorithm 5, due to Qiu et al. [24], works in two phases. The first phase repeatedly increases an entry lying in a row and a column whose sums are below , until every row sum and every column sum of the resulting matrix equals . Then is doubly stochastic, and by Theorem A.1, for permutation matrices and positive coefficients with . The second phase extracts these permutation matrices one at a time: it finds a perfect matching in the bipartite graph formed by the positive entries of , transmits along the matched input-output pairs for the smallest matched entry time units, and subtracts times the matching from .
Algorithm 5 Birkhoff-von Neumann based schedule [24]
1: 2: while some row sum or column sum of is smaller than do 3: Let be a row with the smallest row sum and a column with the smallest column sum of 4: 5: 6: end while 7: while do 8: Find a perfect matching in the bipartite graph with an edge whenever 9: 10: Transmit from to for time units for every with remaining demand 11: for every 12: end while
In each iteration of the first loop, at least one row or column reaches the sum , and in each iteration of the second loop, at least one positive entry becomes zero; hence both loops terminate after polynomially many iterations. The total transmission time equals , which gives the following theorem.
Theorem A.2. Algorithm 5 runs in polynomial time and completes all flows described by within time units.
References
[1] S. Agarwal, S. Rajakrishnan, A. Narayan, R. Agarwal, D. Shmoys, and A. Vahdat, “Sincronia: Near-optimal network design for coflows,” in Proceedings of the 2018 ACM Conference on SIGCOMM, ser. SIGCOMM '18. New York, NY, USA: Association for Computing Machinery, 2018, p. 16–29.
[2] S. Ahmadi, S. Khuller, M. Purohit, and S. Yang, "On scheduling coflows," Algorithmica, vol. 82, no. 12, pp. 3604–3629, 2020.
[3] D. Borthakur, “The hadoop distributed file system: Architecture and design,” Hadoop Project Website, vol. 11, no. 2007, p. 21, 2007.
[4] C.-Y. Chen, “Scheduling coflows for minimizing the total weighted completion time in heterogeneous parallel networks,” Journal of Parallel and Distributed Computing, vol. 182, p. 104752, 2023.
[5] C.-Y. Chen, “Efficient approximation algorithms for scheduling coflows with precedence constraints in identical parallel networks to minimize weighted completion time,” IEEE Transactions on Services Computing, 2024.
[6] C.-Y. Chen, “Efficient approximation algorithms for scheduling coflows with total weighted completion time in identical parallel networks,” IEEE Transactions on Cloud Computing, 2024.
[7] C.-Y. Chen, “Non-splitting coflow scheduling with provable guarantees in heterogeneous parallel networks,” arXiv preprint arXiv:2501.09293, 2025. [Online]. Available: https://arxiv.org/abs/2501.09293
[8] M. Chowdhury and I. Stoica, “Coflow: A networking abstraction for cluster applications,” in Proceedings of the 11th ACM Workshop on Hot Topics in Networks, ser. HotNets-XI. New York, NY, USA: Association for Computing Machinery, 2012, p. 31–36.
[9] M. Chowdhury and I. Stoica, “Efficient coflow scheduling without prior knowledge,” in Proceedings of the 2015 ACM Conference on SIGCOMM, ser. SIGCOMM '15. New York, NY, USA: Association for Computing Machinery, 2015, p. 393–406.
[10] M. Chowdhury, M. Zaharia, J. Ma, M. I. Jordan, and I. Stoica, “Managing data transfers in computer clusters with orchestra,” ACM SIGCOMM computer communication review, vol. 41, no. 4, pp. 98–109, 2011.
[11] M. Chowdhury, Y. Zhong, and I. Stoica, “Efficient coflow scheduling with varys,” in Proceedings of the 2014 ACM Conference on SIGCOMM, ser. SIGCOMM '14. New York, NY, USA: Association for Computing Machinery, 2014, p. 443–454.
[12] F. A. Chudak and D. B. Shmoys, “Approximation algorithms for precedence-constrained scheduling problems on parallel machines that run at different speeds,” Journal of Algorithms, vol. 30, no. 2, pp. 323–343, 1999.
[13] J. Dean and S. Ghemawat, “Mapreduce: Simplified data processing on large clusters,” Communications of the ACM, vol. 51, no. 1, p. 107–113, jan 2008.
[14] X. S. Huang, X. S. Sun, and T. E. Ng, “Sunflow: Efficient optical circuit scheduling for coflows,” in Proceedings of the 12th International on Conference on emerging Networking Experiments and Technologies, 2016, pp. 297–311.
[15] X. S. Huang, Y. Xia, and T. S. E. Ng, “Weaver: Efficient coflow scheduling in heterogeneous parallel networks,” in 2020 IEEE International Parallel and Distributed Processing Symposium (IPDPS), 2020, pp. 1071–1081.
[16] M. Isard, M. Budiu, Y. Yu, A. Birrell, and D. Fetterly, “Dryad: distributed data-parallel programs from sequential building blocks,” in Proceedings of the 2nd ACM SIGOPS/EuroSys European Conference on Computer Systems 2007, 2007, pp. 59–72.
[17] R. Jiang, T. Zhang, and C. Yi, “Effective coflow scheduling in hybrid circuit and packet switching networks,” in 2023 IEEE Symposium on Computers and Communications (ISCC), 2023, pp. 1156–1161.
[18] S. Khuller and M. Purohit, “Brief announcement: Improved approximation algorithms for scheduling co-flows,” in Proceedings of the 28th ACM Symposium on Parallelism in Algorithms and Architectures, 2016, pp. 239–240.
[19] L. C. Lau, R. Ravi, and M. Singh, Iterative Methods in Combinatorial Optimization. Cambridge, U.K.: Cambridge University Press, 2011.
[20] Y. Li, S. H.-C. Jiang, H. Tan, C. Zhang, G. Chen, J. Zhou, and F. C. M. Lau, “Efficient online coflow routing and scheduling,” in Proceedings of the 17th ACM International Symposium on Mobile Ad Hoc Networking and Computing, ser. MobiHoc '16. New York, NY, USA: Association for Computing Machinery, 2016, p. 161–170.
[21] Z. Li and H. Shen, “Co-scheduler: A coflow-aware data-parallel job scheduler in hybrid electrical/optical datacenter networks,” IEEE/ACM Transactions on Networking, vol. 30, no. 4, pp. 1599–1612, 2022.
[22] H. Liu, M. K. Mukerjee, C. Li, N. Feltman, G. Papen, S. Savage, S. Seshan, G. M. Voelker, D. G. Andersen, M. Kaminsky, G. Porter, and A. C. Snoeren, “Scheduling techniques for hybrid circuit/packet networks,” in Proceedings of the 11th ACM Conference on Emerging Networking Experiments and Technologies, ser. CoNEXT '15. New York, NY, USA: Association for Computing Machinery, 2015.
[23] M. Marcus and R. Ree, “Diagonals of doubly stochastic matrices,” The Quarterly Journal of Mathematics, vol. 10, no. 1, p. 296–302, 1959.
[24] Z. Qiu, C. Stein, and Y. Zhong, “Minimizing the total weighted completion time of coflows in datacenter networks,” in Proceedings of the 27th ACM Symposium on Parallelism in Algorithms and Architectures, ser. SPAA '15. New York, NY, USA: Association for Computing Machinery, 2015, p. 294–303.
[25] M. Shafiee and J. Ghaderi, “An improved bound for minimizing the total weighted completion time of coflows in datacenters,” IEEE/ACM Transactions on Networking, vol. 26, no. 4, pp. 1674–1687, 2018.
[26] D. B. Shmoys and É. Tardos, “An approximation algorithm for the generalized assignment problem,” Mathematical programming, vol. 62, no. 1, pp. 461–474, 1993.
[27] K. Shvachko, H. Kuang, S. Radia, and R. Chansler, “The hadoop distributed file system,” in 2010 IEEE 26th Symposium on Mass Storage Systems and Technologies (MSST), 2010, pp. 1–10.
[28] H. Tan, C. Zhang, C. Xu, Y. Li, Z. Han, and X.-Y. Li, “Regularization-based coflow scheduling in optical circuit switches,” IEEE/ACM Transactions on Networking, vol. 29, no. 3, pp. 1280–1293, 2021.
[29] X. Wang, H. Shen, and H. Tian, “Scheduling coflows in hybrid optical-circuit and electrical-packet switches with performance guarantee,” IEEE/ACM Transactions on Networking, vol. 32, no. 3, pp. 2299–2314, 2024.
[30] X. Wang, H. Shen, and H. Tian, “Optimal partitioning of traffic demand for coflow scheduling in hybrid switches,” IEEE Transactions on Network and Service Management, vol. 22, no. 6, pp. 5972–5986, 2025.
[31] C. Xu, H. Tan, J. Hou, C. Zhang, and X.-Y. Li, “Omco: Online multiple coflow scheduling in optical circuit switch,” in 2018 IEEE International Conference on Communications (ICC), 2018, pp. 1–6.
[32] M. Zaharia, M. Chowdhury, M. J. Franklin, S. Shenker, and I. Stoica, “Spark: Cluster computing with working sets,” in 2nd USENIX Workshop on Hot Topics in Cloud Computing (HotCloud 10), 2010.
[33] C. Zhang, H. Tan, C. Xu, X.-Y. Li, S. Tang, and Y. Li, “Reco: Efficient regularization-based coflow scheduling in optical circuit switches,” in 2019 IEEE 39th International Conference on Distributed Computing Systems (ICDCS), 2019, pp. 111–121.
[34] H. Zhang, L. Chen, B. Yi, K. Chen, M. Chowdhury, and Y. Geng, “Coda: Toward automatically identifying and scheduling coflows in the dark,” in Proceedings of the 2016 ACM Conference on SIGCOMM, ser. SIGCOMM '16. New York, NY, USA: Association for Computing Machinery, 2016, p. 160–173.
[35] T. Zhang, F. Ren, J. Bao, R. Shu, and W. Cheng, “Minimizing coflow completion time in optical circuit switched networks,” IEEE Transactions on Parallel and Distributed Systems, vol. 32, no. 2, pp. 457–469, 2021.
[36] Y. Zhao, K. Chen, W. Bai, M. Yu, C. Tian, Y. Geng, Y. Zhang, D. Li, and S. Wang, “Rapier: Integrating routing and scheduling for coflow-aware data center networks,” in 2015 IEEE Conference on Computer Communications (INFOCOM). IEEE, 2015, pp. 424–432.