Skip to main content
Log in

Demand-aware network designs of bounded degree

  • Published:
Distributed Computing Aims and scope Submit manuscript

Abstract

Traditionally, networks such as datacenter interconnects are designed to optimize worst-case performance under arbitrary traffic patterns. Such network designs can however be far from optimal when considering the actual workloads and traffic patterns which they serve. This insight led to the development of demand-aware datacenter interconnects which can be reconfigured depending on the workload. Motivated by these trends, this paper initiates the algorithmic study of demand-aware networks, and in particular the design of bounded-degree networks. The inputs to the network design problem are a discrete communication request distribution, \({{\mathcal {D}}}\), defined over communicating pairs from the node set V, and a bound, \({\varDelta }\), on the maximum degree. In turn, our objective is to design an (undirected) demand-aware network \(N=(V,E)\) of bounded-degree \({\varDelta }\), which provides short routing paths between frequently communicating nodes distributed across \(N\). In particular, the designed network should minimize the expected path length on \(N\) (with respect to \({{\mathcal {D}}}\)), which is a basic measure of the efficiency of the network. We derive a general lower bound based on the entropy of the communication pattern \({{\mathcal {D}}}\), and present asymptotically optimal demand-aware network design algorithms for important distribution families, such as sparse distributions and distributions of locally bounded doubling dimensions.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2

Similar content being viewed by others

Notes

  1. To be precise, a spanner with constant average distortion will be sufficient (see “Appendix” for details). However, for simplicity, we leave it as a constant spanner.

  2. In this case the constant in the O notation depends linearly on c.

References

  1. Aingworth, D., Chekuri, C., Indyk, P., Motwani, R.: Fast estimation of diameter and shortest paths (without matrix multiplication). SIAM J. Comput. 28(4), 1167–1181 (1999)

    Article  MathSciNet  Google Scholar 

  2. Avin, C., Borokhovich, M., Haeupler, B., Lotker, Z.: Self-adjusting grid networks to minimize expected path length. Theor. Comput. Sci. 584, 91–102 (2015). Special Issue on Structural Information and Communication Complexity

  3. Avin, C., Borokhovich, M., Schmid, S.: OBST: a self-adjusting peer-to-peer overlay based on multiple BSTs. In: Proceedings of the 13th IEEE International Conference on Peer-to-Peer Computing (P2P) (2013)

  4. Avin, C., Hercules, A., Loukas, A., Schmid, S.: rDAN: toward robust demand-aware network designs. Inf. Process. Lett. (IPL) 133, 5–9 (2018)

    Article  MathSciNet  Google Scholar 

  5. Avin, C., Mondal, K., Schmid, S.: Demand-aware network designs of bounded degree. In: Proceedings of the International Symposium on Distributed Computing (DISC) (2017)

  6. Avin, C., Mondal, K., Schmid, S.: Demand-aware network design with minimal congestion and route lengths. In: Proceedings of the IEEINFOCOM (2019)

  7. Avin, C., Schmid, S.: Toward demand-aware networking: a theory for self-adjusting networks. In: ACM SIGCOMM Computer Communication Review (CCR) (2018)

  8. Baswana, S., Kavitha, T., Mehlhorn, K., Pettie, S.: Additive spanners and (alpha, beta)-spanners. ACM Trans. Algorithms 7(1), 5:1–5:26 (2010)

    Article  Google Scholar 

  9. Chan, H., Dinitz, M., Gupta, A.: Spanners with slack. In: Proceedings of the European Symposium on Algorithms (ESA) (2006)

  10. Chan, T.-H.H., Gupta, A.: Small hop-diameter sparse spanners for doubling metrics. Discrete Comput. Geom. 41(1), 28–44 (2009)

    Article  MathSciNet  Google Scholar 

  11. Chan, T.-H.H., Gupta, A., Maggs, B.M., Zhou, S.: On hierarchical routing in doubling metrics. ACM Trans. Algorithms 4, 55:1–55:22 (2016)

    MathSciNet  MATH  Google Scholar 

  12. Charikar, M., Hajiaghayi, M.T., Karloff, H.J., Rao, S.: \(\text{ l }_{\text{2 }}{}^{\text{2 }}\) spreading metrics for vertex ordering problems. Algorithmica 56(4), 577–604 (2010)

    Article  MathSciNet  Google Scholar 

  13. Chen, C., Vitenberg, R., Jacobsen, H.A.: Scaling construction of low fan-out overlays for topic-based publish/subscribe systems. In: 2011 31st International Conference on Distributed Computing Systems, pp. 225–236 (2011)

  14. Chung, F.R.K., Mumford, D.: Chordal completions of planar graphs. J. Comb. Theory Ser. B 62(1), 96–106 (1994)

    Article  MathSciNet  Google Scholar 

  15. Coppersmith, D., Elkin, M.: Sparse sourcewise and pairwise distance preservers. SIAM J. Discrete Math. 20(2), 463–501 (2006)

    Article  MathSciNet  Google Scholar 

  16. Cormen, T.H., Leiserson, C.E., Rivest, R.L., Stein, C.: Introduction to Algorithms, 3rd edn. The MIT Press, Cambridge (2009)

    MATH  Google Scholar 

  17. Cover, T.M., Thomas, J.A.: Elements of Information Theory. Wiley, New York (2012)

    MATH  Google Scholar 

  18. Dehmer, M., Mowshowitz, A.: A history of graph entropy measures. Inf. Sci. 181(1), 57–78 (2011)

    Article  MathSciNet  Google Scholar 

  19. Demaine, E.D., Harmon, D., Iacono, J., Kane, D., Patraşcu, M.: The geometry of binary search trees. In: Proceedings of the Twentieth Annual ACM-SIAM Symposium on Discrete Algorithms, pp. 496–505. SIAM, Philadelphia (2009)

  20. Demaine, E.D., Harmon, D., Iacono, J., Patrascu, M.: Dynamic optimality—almost. SIAM J. Comput. 37(1), 240–251 (2007)

    Article  MathSciNet  Google Scholar 

  21. Elkin, M., Peleg, D.: \((1 + \epsilon,\beta )\)-spanner constructions for general graphs. SIAM J. Comput. 33(3), 608–631 (2004)

    Article  MathSciNet  Google Scholar 

  22. Feige, U., Lee, J.R.: An improved approximation ratio for the minimum linear arrangement problem. Inf. Process. Lett. 101(1), 26–29 (2007)

    Article  MathSciNet  Google Scholar 

  23. Fraigniaud, P., Lebhar, E., Lotker, Z.: A doubling dimension threshold \(\theta \) (log log n) for augmented graph navigability. In: ESA, pp. 376–386. Springer, Berlin (2006)

  24. Ghobadi, M., et al.: Projector: Agile reconfigurable data center interconnect. In: Proceedings of the ACM SIGCOMM, pp. 216–229 (2016)

  25. Gupta, A., Krauthgamer, R., Lee, J.R.: Bounded geometries, fractals, and low-distortion embeddings. In: Proceedings of the IEEE FOCS, pp. 534–543 (2003)

  26. Har-Peled, S., Mendel, M.: Fast construction of nets in low-dimensional metrics and their applications. SIAM J. Comput. 35(5), 1148–1184 (2006)

    Article  MathSciNet  Google Scholar 

  27. Harper, L.H.: Optimal assignments of numbers to vertices. J. Soc. Ind. Appl. Math. 12(1), 131–135 (1964)

    Article  MathSciNet  Google Scholar 

  28. Heun, V., Mayr, E.W.: Embedding graphs with bounded treewidth into their optimal hypercubes. J. Algorithms 43(1), 17–50 (2002)

    Article  MathSciNet  Google Scholar 

  29. Huq, S., Ghosh, S.: Locally self-adjusting skip graphs. In: 37th IEEE International Conference on Distributed Computing Systems, ICDCS 2017, Atlanta, GA, USA, June 5–8, pp. 805–815 (2017)

  30. Jia, S., Jin, X., Ghasemiesfeh, G., Ding, J., Gao, J.: Competitive analysis for online scheduling in software-defined optical WAN. In: Proceedings of the IEEE INFOCOM (2017)

  31. Johnson, D.S., Lenstra, J.K., Kan, A.H.G.R.: The complexity of the network design problem. Networks 8(4), 279–285 (1978)

    Article  MathSciNet  Google Scholar 

  32. Mehlhorn, K.: Nearly optimal binary search trees. Acta Inf. 5, 287–295 (1975)

    Article  MathSciNet  Google Scholar 

  33. Meyerson, A., Tagiku, B.: Minimizing average shortest path distances via shortcut edge addition. In: Proceedings of the APPROX/RANDOM, pp. 272–285. Berlin (2009)

  34. Onus, M., Richa, A.W.: Minimum maximum-degree publish-subscribe overlay network design. IEEE/ACM Trans. Netw. 19(5), 1331–1343 (2011)

    Article  Google Scholar 

  35. Onus, M., Richa, A.W.: Parameterized maximum and average degree approximation in topic-based publish-subscribe overlay network design. Comput. Netw. 94, 307–317 (2016)

    Article  Google Scholar 

  36. Peleg, D., Schäffer, A.A.: Graph spanners. J. Graph Theory 13(1), 99–116 (1989)

    Article  MathSciNet  Google Scholar 

  37. Peleg, D., Ullman, J.D.: An optimal synchronizer for the hypercube. SIAM J. Comput. 18(4), 740–747 (1989)

    Article  MathSciNet  Google Scholar 

  38. Peres, B., Souza, O., Goussevskaia, O., Schmid, S., Avin, C.: Distributed self-adjusting tree networks. In: Proceedings of the IEE INFOCOM (2019)

  39. Pettie, S.: Low distortion spanners. ACM Trans. Algorithms 6(1), 7:1–7:22 (2009)

    Article  MathSciNet  Google Scholar 

  40. Roy, A., Zeng, H., Bagga, J., Porter, G., Snoeren, A.C.: Inside the social network’s (datacenter) network. Comput. Commun. Rev. 45(5), 123–137 (2015)

    Article  Google Scholar 

  41. Schmid, S., Avin, C., Scheideler, C., Borokhovich, M., Haeupler, B., Lotker, Z.: Splaynet: towards locally self-adjusting networks. IEEE/ACM Trans. Netw. 24(3), 1421–1433 (2016)

    Article  Google Scholar 

  42. Singla, A.: Fat-free topologies. In: Proceedings of the 15th ACM Workshop on Hot Topics in Networks (HotNets), pp. 64–70 (2016)

  43. Singla, A., Godfrey, P.B., Kolla, A.: High throughput data center topology design. In: NSDI, pp. 29–41 (2014)

  44. Sleator, D.D., Tarjan, R.E.: Self-adjusting binary search trees. J. ACM 32(3), 652–686 (1985)

    Article  MathSciNet  Google Scholar 

  45. Spielman, D.A., Teng, S.-H.: Nearly-linear time algorithms for graph partitioning, graph sparsification, and solving linear systems. In: Proceedings of the ACM STOC, pp. 81–90 (2004)

  46. Thorup, M., Zwick, U.: Spanners and emulators with sublinear distance errors. In: Proceedings of the Seventeenth Annual ACM-SIAM Symposium on Discrete Algorithm, SODA ’06, pp. 802–809. Society for Industrial and Applied Mathematics, Philadelphia (2006)

  47. Wang, C.C., Derryberry, J., Sleator, D.D.: O(log log n)-competitive dynamic binary search trees. In: Proceedings of the Seventeenth Annual ACM-SIAM Symposium on Discrete Algorithm, SODA ’06, pp. 374–383. Society for Industrial and Applied Mathematics, Philadelphia (2006)

  48. Wu, A.Y.: Embedding of tree networks into hypercubes. J. Parallel Distrib. Comput. 2(3), 238–249 (1985)

    Article  Google Scholar 

Download references

Acknowledgements

This work was supported by the German-Israeli Foundation for Scientific Research (GIF) Grant I-1245-407.6/2014. We would like to thank Michael Elkin for many inputs and discussions and also the anonymous reviewers whose comments helped us to improve this manuscript.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Stefan Schmid.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Appendices

Appendix

We first discuss different types of distortions on spanners and then show that actually Theorem 5 requires a weaker condition than having a constant sparse spanner.

Notions of distortion

In the spanner problem, the goal is to find a sparse subgraph \(S=(V,E')\) of G, i.e., \(E'\subseteq E\) with \(|E'|\le O(n)\) which approximately preserves the distances of G despite having less edges. Usually, the following notion of average distortion [9] is considered and referred to as the all-pairs distortion:

Definition 4

(All-pairs distortion (\(\mathrm {APD}\))) The average all-pairs distortion on a spanner \(S\) of a graph G is

$$\begin{aligned} \mathrm {APD}(G,S) =\frac{1}{\left( {\begin{array}{c}n\\ 2\end{array}}\right) } \sum _{\{u,v\}\in \left( {\begin{array}{c}V\\ 2\end{array}}\right) } \frac{d_{S}(u,v)}{d_G(u,v)}. \end{aligned}$$

We in this paper are only interested in preserving distances between communicating neighbors in G, henceforth defined as the neighborhood distortion:

Definition 5

(Neighborhood distortion (\(\mathrm {ND}\))) The average neighborhood distortion on a spanner \(S\) of a graph G (with m edges) is,

$$\begin{aligned} \mathrm {ND}(G,S)= & {} \frac{1}{|E(G) |} \sum _{\{u,v\}\in E(G)} \frac{d_{S}(u,v)}{d_G(u,v)} \\= & {} \frac{1}{m} \sum _{\{u,v\}\in E(G)} d_{S}(u,v). \end{aligned}$$

Next we claim that these two notions of distortion are indeed different, that is, low all-pairs distortion does not imply a low neighborhood distortion; and vice versa.

Claim

There is a family of graphs \(G_n\) and a corresponding family of spanners \(S_n\) (where n is the size of the graph and \(S_n\) is a spanner of \(G_n\)) where

$$\begin{aligned} \lim _{n \rightarrow \infty } \frac{\mathrm {APD}(G_n, S_n)}{\mathrm {ND}(G_n, S_n)} = \infty . \end{aligned}$$
(19)

Claim

There is a family of graphs \(G_n\) and a corresponding family of spanners \(S_n\) (where n is the size of the graph and \(S_n\) is a spanner of \(G_n\)) where

$$\begin{aligned} \lim _{n \rightarrow \infty } \frac{\mathrm {ND}(G_n, S_n)}{\mathrm {APD}(G_n, S_n)} = \infty . \end{aligned}$$
(20)
Fig. 3
figure 3

a Different distortions on tree spanner w.r.t. different definitions, b different distortion on tree network design (with auxiliary edges) w.r.t. different definitions

We will show this by examples. First consider Fig. 3a. There is a \({\varTheta }(\sqrt{n})\)-sized clique in the center, and each of those clique nodes is associated with a line containing \({\varTheta }(\sqrt{n})\) nodes. To compute the optimal tree spanner with maximum degree \({\varDelta }\), we turn the clique nodes into a \({\varDelta }\)-regular tree of diameter \({\varTheta }(\log _{\varDelta }{\sqrt{n}})=O(\log _{\varDelta }{n})\). The nodes remain connected with the corresponding lines. The asymptotic distortion w.r.t. Definition 5 is:

$$\begin{aligned} \frac{n \cdot \log _{\varDelta }{n}+n \cdot 1}{n}={\varTheta }(\log _{\varDelta }{n}). \end{aligned}$$

Now we discuss all-pair distortion on the same spanner for this graph. Consider any two nodes which belong to different lines, but are also a member of the clique. Their distance in the spanner may become \(\log \sqrt{n}\). So, according to Definition 4, \(d_{S}(u,v)/d_G(u,v)\) is equal to \(\frac{1}{2}\log n\). Now we provide an upper bound on the number of such pairs \(\varphi \) whose distance can be up to \(O(\log n)\) times their earlier distance. Consider all the nodes on all the lines which are within distance \(\log n\) from the corresponding clique node. On the original graph, distances between any two such nodes were in the range \([1,2\log n +1]\). The number of such node pairs is \(n \log ^2 n\). Clearly, \(\varphi < n\log ^2 n\). Now consider any node on a line which is at least at a distance \((1+\log n)\) from the corresponding clique node on the line. The distance from this node to any other node on any other line was at least \((2+\log n)\). On the spanner, this distance can be at most \(1+2\log n\). So, for all such node pairs, \(d_{S}(u,v)/d_G(u,v)<2\). Hence, according to Definition 4, all pair distortion becomes constant, as stated in the following expression.

$$\begin{aligned} \frac{n \log ^2 n\cdot \log n + (n^2-n \log ^2 n)\cdot 2}{n^2}={\varTheta }(1). \end{aligned}$$

Now look at Fig. 3b. There is a star of size \(n/\log {n}\) in the center, and each of the \(n/\log {n}\) nodes is associated with a clique of size \(\log {n}\). Thus, in total, there are \(n\log {n}\) edges. To compute a tree spanner of degree \({\varDelta }=\log {n}\), we replace the cliques consisting of \(\log {n}\) nodes with stars of size \(\log {n}\) nodes; the star of \(n/\log {n}\) nodes in the center is transformed into a \({\varDelta }\)-regular tree whose diameter is \({\varTheta }(\log {n}/\log {\log {n}})\). Then each tree node is associated with the root of the star corresponding to its associated clique. This tree spanner contains auxiliary edges too. Then, the asymptotic distortion w.r.t. Definition 5 is:

$$\begin{aligned} \frac{\frac{n}{\log n}\log ^2n+\frac{n}{\log n}\cdot \frac{\log n}{\log \log n}}{n\log n}=O(1). \end{aligned}$$

In contrast, the distortion w.r.t. Definition 4 is \({\varOmega }(\log n/\log \log n)\) since all pairs from the two different cliques now suffer a distortion of \({\varTheta }(\log n/\log \log n)\), and there are \(O(n^2)\) such pairs.

Corollary 2

Theorem 5 holds even if there exists a sparse spanner \(S\) with constant neighborhood distortion instead of having a constant spanner.

Proof

If the request distribution \({{\mathcal {D}}}\) is uniform, i.e., \(p(i,j)=1/m\) for all the m non-zero entries of the matrix \(M_{{{\mathcal {D}}}}~\), then from Definition 5 and from our objective function,

$$\begin{aligned} \mathrm {EPL}({{\mathcal {D}}}, S) = \mathrm {ND}(G, S). \end{aligned}$$

Hence \(\mathrm {ND}(G,S)\) is constant, which implies that \(\mathrm {EPL}({{\mathcal {D}}}, S)\) is also constant i.e., Eq. 16 holds if \(\mathrm {ND}(G,S)\) is constant. \(\square \)

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Avin, C., Mondal, K. & Schmid, S. Demand-aware network designs of bounded degree. Distrib. Comput. 33, 311–325 (2020). https://doi.org/10.1007/s00446-019-00351-5

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00446-019-00351-5

Navigation