scieee AI-readable full text Open interactive document viewer

Buffer architecture for Dragonfly topologies

Cano, Alejandro,Camarero, Cristóbal,Martínez, Carmen,Beivide, Ramón

Abstract

An interconnection network comprises routers, links, and servers, and the arrangement of these elements is known as network topology. Various network topologies have been employed for supercomputers, including Dragonfly [1], Dragonfly+, Fat-tree, etc. Each topology presents advantages and disadvantages in terms of performance, cost, and scalability, with different routing mechanisms employed for each one. The Dragonfly topology is composed of a global complete graph connecting super-nodes or groups of switches, which, in turn, are connected by means of local complete graphs. Thus, it is a two-level hierarchical network with diameter three, or the distance between any pair of switches is three. A small instance of a Dragonfly topology is showed in Figure 1. The Frontier supercomputer, currently number one in the TOP500 list, employs a Dragonfly of this type. Apart from the topology, another crucial part in the design of interconnection networks is the routing mechanism. Usually, adaptive routing is employed so a packet can choose between following a minimal route, minimizing the number of hops of a packet over the network, or a non-minimal route, which usually follows the Valiant routing scheme. Specifically, in Dragonfly, minimal paths are of type local-global-local (hereinafter referred to as lgl). These paths start with a local link inside the source group, then a global link to achieve the destination group, and finally a local link to arrive to the destination switch; with any of the links being possibly omitted depending on the relative locations of the source and destination switches. For non-minimal routes, initially, a Valiant routing variant was proposed. This variant selects an intermediate group of the Dragonfly to pass through before approaching the destination switch, making lg-lgl routes. However, it was discovered that Valiant routes should select a switch of the network instead of a group, due to over-subscription of the local links in some patterns, and therefore lgl-lgl routes should be used, composing Valiant routes of two equal phases [2]. Also, the routing mechanism should be designed to not to introduce cyclic buffer dependencies in the network, which could lead to packet-deadlock. Therefore, a buffer architecture should be employed to avoid this phenomenon, which is responsible for assigning a buffer (or Virtual Channel, VC) to each packet at each hop across the network.

Full text

Buffer architecture for Dragonfly topologies Alejandro Cano∗, Crist´ obal Camarero∗, Carmen Mart´ ınez∗, Ram´ on Beivide ∗, ∗Universidad de Cantabria, Santander, Spain E-mail: {canoca, cristobal.camarero, carmen.martinez, ramon.beivide}@unican.es Keywords—Interconnection networks, buffer architecture, routing, Dragonfly topology I. EXTENDED ABSTRACT An interconnection network comprises routers, links, and servers, and the arrangement of these elements is known as network topology. Various network topologies have been employed for supercomputers, including Dragonfly [1], Dragonfly+, Fat-tree, etc. Each topology presents advantages and disadvantages in terms of performance, cost, and scalability, with different routing mechanisms employed for each one. The Dragonfly topology is composed of a global complete graph connecting super-nodes or groups of switches, which, in turn, are connected by means of local complete graphs. Thus, it is a two-level hierarchical network with diameter three, or the distance between any pair of switches is three. A small instance of a Dragonfly topology is showed in Figure 1. The Frontier supercomputer, currently number one in the TOP500 list, employs a Dragonfly of this type. Apart from the topology, another crucial part in the design of interconnection networks is the routing mechanism. Usually, adaptive routing is employed so a packet can choose between following a minimal route, minimizing the number of hops of a packet over the network, or a non-minimal route, which usually follows the Valiant routing scheme. Specifically, in Dragonfly, minimal paths are of type local-global-local (hereinafter referred to as lgl). These paths start with a local link inside the source group, then a global link to achieve the destination group, and finally a local link to arrive to the destination switch; with any of the links being possibly omitted depending on the relative locations of the source and destination switches. For non-minimal routes, initially, a Valiant routing variant was proposed. This variant selects an intermediate group of the Dragonfly to pass through before approaching the destination switch, making lg-lgl routes. However, it was discovered that Valiant routes should select a switch of the network instead of a group, due to over-subscription of the local links in some patterns, and therefore lgl-lgl routes should be used, composing Valiant routes of two equal phases [2]. Also, the routing mechanism should be designed to not to introduce cyclic buffer dependencies in the network, which could lead to packet-deadlock. Therefore, a buffer architecture should be employed to avoid this phenomenon, which is responsible for assigning a buffer (or Virtual Channel, VC) to each packet at each hop across the network. Group 0 Group 1 Group 2 Group 3 Group 4 Group 5 Group 6 Group 7 Group 8 Local link: Global link: Router: Node: Group: Fig. 1. Small instance of a Dragonfly topology. A. Motivation In a high-loaded lossless interconnection network, a highly demanded portion of the network can propagate its congestion to the entire system, leading to instabilities in throughput, and poor performance. Network congestion appears due to existing unfairness between network flows, and HoLB (Head of Line Blocking). This unfairness, leaves some servers in starvation, while others get a big portion of the capacity of the network. Some mechanisms, act when these scenarios appear by typically notify sources to reduce injection rates, thereby leading to a decrease in load at bottlenecks. However, both unfairness and HoLB are directly related to the buffer architecture employed in the network, so buffer architecture can be studied to avoid the appearance of network congestion without the need of throttling the injection rate of the sources. B. Buffer Architecture In Dragonfly networks, minimal paths (lgl) necessitate 2 VCs on local ports, visited in order, and 1 VC on global ports to prevent deadlock. To support nonminimal Valiant routing in Dragonfly (DF) topology, two mechanisms could be distinguished: Two Phases and Ladder. A Valiant routed packet firstly go to a random intermediate switch of the network, and then from the intermediate switch to the destination switch, composing its route of two segments of minimal routes: lgl -lgl. Therefore, 2 local VCs and 1 global VC Valiant 2-phases Valiant Ladder 0 0.5 1 0 0.1 0.2 0.3 0.4 0.5 offered load accepted load a) DF ADVr +h 0 0.5 1 0 0.1 0.2 0.3 0.4 0.5 offered load accepted load b) DF ADV +h Fig. 2. Performance evaluation of Dragonfly (DF) topology, under ADV +h and ADVr +h traffic patterns. It shows the average accepted load for an offered load, both measured in phits cycle . Results are averaged over ten runs. are employed per segment, making a total of 4 and 2 VCs, for local and global ports, respectively. The ladder is an old method which order VCs to break deadlock, and the strategy is to increase the order of the visited VC with each link traversed by the packet [3]. With the Ladder scheme, independently of the routing, the ith-hop of a packet goes through the V Ciof a certain port of a certain switch in the network. In case of a DF network with Valiant routing, a packet could take up to six hops, requiring six VCs in the Ladder. C. Methodology and Results The presented buffer architectures are analyzed in a Dragonfly network. To conduct experiments, CAMINOS [4] network simulator is employed. The most typical synthetic traffic patterns utilized for DF networks are the ADV +i patterns, where each server at group gsends traffic to the server located at the same relative position at the g+igroup. Also, the ADVr +i pattern, that do the same but the specific server in the destination group is randomized. Specifically, the ADVr +h, and ADV +h1patterns are used in this work, because they have been object of study in previous works [2]. In the simulations included, the accepted load (throughput) per server is showed for a specific offered load or injection rate per server. Both accepted and injected load are measured in phits cycle . The performance results for the traffic patterns introduced are depicted in Figure I-C. In the case of the ADVr +h pattern, it can be observed that 2-phases maintains a stable performance above 0.4 of accepted load the entire simulation. Also, the Ladder shows a stable performance with an accepted load around 0.4, but slightly below 2-phases performance. For the ADV +h traffic pattern, it can be observed that 2-phases mechanism experience congestion problems when injecting traffic above saturation (≥0.5 of offered load), and the accepted load becomes unstable. In contrast, the Ladder exhibits an accepted load of 0.4 the entire simulation, without instabilities. 1h is a topological parameter of the DF network, which in the DF tested is h=6. Therefore, the ADV +6 and ADVr +6 patterns are simulated D. Conclusions and future work In conclusion, the evaluation of buffer architectures in the DF network, when dealing with the ADVr +h and ADV +h traffic patterns, revealed distinct performance characteristics. While 2-phases mechanism proved stable performance in ADVr +h, its performance dropped for the ADV +h pattern. In contrast, the Ladder mechanism exhibited stable and high performance under both traffic patterns. These findings suggest that buffer architecture have significant impact on performance, and should be considered when designing interconnection networks. Further study showed us that the impact of buffer architecture depend on a lot of factors, as the routing algorithm, traffic, topology, etc. Future work focus on analyzing its impact in other realistic scenarios, and how it can prevent network congestion or low performance. For instance, an analysis could be carried out in the presence of more complex traffic patterns based on real applications. Aspects like job allocation, task placement and job scheduling of several applications in the network should be taken into account. Furthermore, other routing algorithms should be considered in the evaluation, like a source adaptive routing such as UGAL. Lastly, with a general view, there are possibilities of proposing a generalized or specific buffer architecture which improves traditional mechanisms like the ones presented here, in a wide range of realistic scenarios. II. ACKNOWLEDGMENT This work bas been published in proceedings of the SBAC-PAD 2023 [5]. REFERENCES [1] J. Kim, W. J. Dally, S. Scott, and D. Abts, “Technology-driven, highly-scalable dragonfly topology,” in Proceedings of the 35th Annual International Symposium on Computer Architecture. IEEE Computer Society, 2008, pp. 77–88. [2] M. Garc´ ıa, “Routing mechanisms for dragonfly interconnection networks,” Ph.D. dissertation, University of Cantabria, 2014. [3] K. D. G¨ unther, “Prevention of deadlocks in packet-switched data transport systems,” IEEE Transactions on Communications, vol. 29, no. 4, pp. 512–524, 1981. [4] “CAMINOS,” https://crates.io/crates/caminos. [5] A. Cano, C. Camarero, C. Mart´ ınez, and R. Beivide, “Analysing mechanisms for virtual channel management in low-diameter networks,” in 2023 IEEE 35th International Symposium on Computer Architecture and High Performance Computing (SBAC-PAD), 2023, pp. 12–22. Alejandro Cano received his BSc and MSc in Computer Science at the University of Cantabria, in Spain. Now, he is a PhD student at the Computer Architecture group in the same university.