scieee AI-readable full text Open interactive document viewer

E-EON : Energy-Efficient and Optimized Networks for Hadoop

Fischer e Silva, Renan

Abstract

Energy efficiency and performance improvements have been two of the major concerns of current Data Centers. With the advent of Big Data, more information is generated year after year, and even the most aggressive predictions of the largest network equipment manufacturer have been surpassed due to the non-stop growing network traffic generated by current Big Data frameworks. As, currently, one of the most famous and discussed frameworks designed to store, retrieve and process the information that is being consistently generated by users and machines, Hadoop has gained a lot of attention from the industry in recent years and presently its name describes a whole ecosystem designed to tackle the most varied requirements of today’s cloud applications. This thesis relates to Hadoop clusters, mainly focused on their interconnects, which is commonly considered to be the bottleneck of such ecosystem. We conducted research focusing on energy efficiency and also on performance optimizations as improvements on cluster throughput and network latency. Regarding the energy consumption, a significant proportion of a data center's energy consumption is caused by the network, which stands for 12% of the total system power at full load. With the non-stop growing network traffic, it is desired by industry and academic community that network energy consumption should be proportional to its utilization. Considering cluster performance, although Hadoop is a network throughput-sensitive workload with less stringent requirements for network latency, there is an increasing interest in running batch and interactive workloads concurrently on the same cluster. Doing so maximizes system utilization, to obtain the greatest benefits from the capital and operational expenditures. For this to happen, cluster throughput should not be impacted when network latency is minimized. The two biggest challenges faced during the development of this thesis were related to achieving near proportional energy consumption for the interconnects and also improving the network latency found on Hadoop clusters, while having virtually no loss on cluster throughput. Such challenges led to comparable sized opportunity: proposing new techniques that must solve such problems from the current generation of Hadoop clusters. We named E-EON the set of techniques presented in this work, which stands for Energy Efficient and Optimized Networks for Hadoop. E-EON can be used to reduce the network energy consumption and yet, to reduce network latency while cluster throughput is improved at the same time. Furthermore, such techniques are not exclusive to Hadoop and they are also expected to have similar benefits if applied to any other Big Data framework infrastructure that fits the problem characterization we presented throughout this thesis. With E-EON we were able to reduce the energy consumption by up to 80% compared to the state-of-the art technique. We were also able to reduce network latency by up to 85% and in some cases, even improve cluster throughput by 10%. Although these were the two major accomplishment from this thesis, we also present minor benefits which translate to easier configuration compared to the stat-of-the-art techniques. Finally, we enrich the discussions found in this thesis with recommendations targeting network administrators and network equipment manufacturers.

Full text

E-EON: Energy-Efficient and Optimized Networks for Hadoop Renan Fischer e Silva ADVERTIMENT La consulta d’aquesta tesi queda condicionada a l’acceptació de les següents condicions d'ús: La difusió d’aquesta tesi per mitjà del repositori institucional UPCommons (http://upcommons.upc.edu/tesis) i el repositori cooperatiu TDX (http://www.tdx.cat/) ha estat autoritzada pels titulars dels drets de propietat intel·lectual únicament per a usos privats emmarcats en activitats d’investigació i docència. No s’autoritza la seva reproducció amb finalitats de lucre ni la seva difusió i posada a disposició des d’un lloc aliè al servei UPCommons o TDX. No s’autoritza la presentació del seu contingut en una finestra o marc aliè a UPCommons (framing). Aquesta reserva de drets afecta tant al resum de presentació de la tesi com als seus continguts. En la utilització o cita de parts de la tesi és obligat indicar el nom de la persona autora. ADVERTENCIA La consulta de esta tesis queda condicionada a la aceptación de las siguientes condiciones de uso: La difusión de esta tesis por medio del repositorio institucional UPCommons (http://upcommons.upc.edu/tesis) y el repositorio cooperativo TDR (http://www.tdx.cat/?localeattribute=es) ha sido autorizada por los titulares de los derechos de propiedad intelectual únicamente para usos privados enmarcados en actividades de investigación y docencia. No se autoriza su reproducción con finalidades de lucro ni su difusión y puesta a disposición desde un sitio ajeno al servicio UPCommons No se autoriza la presentación de su contenido en una ventana o marco ajeno a UPCommons (framing). Esta reserva de derechos afecta tanto al resumen de presentación de la tesis como a sus contenidos. En la utilización o cita de partes de la tesis es obligado indicar el nombre de la persona autora. WARNING On having consulted this thesis you’re accepting the following use conditions: Spreading this thesis by the institutional repository UPCommons (http://upcommons.upc.edu/tesis) and the cooperative repository TDX (http://www.tdx.cat/?localeattribute=en) has been authorized by the titular of the intellectual property rights only for private uses placed in investigation and teaching activities. Reproduction with lucrative aims is not authorized neither its spreading nor availability from a site foreign to the UPCommons service. Introducing its content in a window or frame foreign to the UPCommons service is not authorized (framing). These rights affect to the presentation summary of the thesis as well as to its contents. In the using or citation of parts of the thesis it’s obliged to indicate the name of the author. E-EON: Energy-Efficient and Optimized Networks for Hadoop RENAN FISCHER E SILVA Barcelona, Spring 2018 E-EON: Energy-Efficient and Optimized Networks for Hadoop by RENAN FISCHER E SILVA Departament d’Arquitectura de Computadors A thesis submitted in fulfillment of the requirements for the degree of Doctor of Philosophy in Computer Architecture Departament d’ Arquitectura de Computadors (DAC) Universitat Polit`ecnica de Catalunya (UPC) Barcelona, Spain PhD Supervisor Tutor Dr. Paul M. Carpenter Dra. Rosa M. Bad´ıa Spring 2018 iii This page has been intentionally left blank. iv Have the courage to follow your heart and intuition. They somehow already know what you truly want to become. . . Steve Jobs Abstract E-EON: Energy-Efficient and Optimized Networks for Hadoop by Renan Fischer e Silva Energy efficiency and performance improvements have been two of the major concerns of current Data Centers. With the advent of Big Data, more information is generated year after year, and even the most aggressive predictions of the largest network equipment manufacturer have been surpassed due to the non-stop growing network traffic generated by current Big Data frameworks. As, currently, one of the most famous and discussed frameworks designed to store, retrieve and process the information that is being consistently generated by users and machines, Hadoop has gained a lot of attention from the industry in recent years and presently its name describes a whole ecosystem designed to tackle the most varied requirements of today’s cloud applications. This thesis relates to Hadoop clusters, mainly focused on their interconnects, which is commonly considered to be the bottleneck of such ecosystem. We conducted research focusing on energy efficiency and also on performance optimizations as improvements on cluster throughput and network latency. Regarding the energy consumption, a significant proportion of a data center’s energy consumption is caused by the network, which stands for 12% of the total system power at full load. With the non-stop growing network traffic, it is desired by industry and academic community that network energy consumption should be proportional to its utilization. Considering cluster performance, although Hadoop is a network throughput-sensitive workload with less stringent requirements for network latency, there is an increasing interest in running batch and interactive workloads concurrently on the same cluster. Doing so maximizes system utilization, to obtain the greatest benefits from the capital and operational expenditures. For this to happen, cluster throughput should not be impacted when network latency is minimized. The two biggest challenges faced during the development of this thesis were related to achieving near proportional energy consumption for the interconnects and also improving the network latency found on Hadoop clusters, while having virtually no loss on cluster throughput. Such challenges led to comparable sized opportunity: proposing new techniques that must solve such problems from the current generation of Hadoop clusters. We named E-EON the set of techniques presented in this work, which stands for Energy Efficient and Optimized Networks for Hadoop. E-EON can be used to reduce the network energy consumption and yet, to reduce network latency while cluster throughput is vi improved at the same time. Furthermore, such techniques are not exclusive to Hadoop and they are also expected to have similar benefits if applied to any other Big Data framework infrastructure that fits the problem characterization we presented throughout this thesis. With E-EON we were able to reduce the energy consumption by up to 80% compared to the state-of-the art technique. We were also able to reduce network latency by up to 85% and in some cases, even improve cluster throughput by 10%. Although these were the two major accomplishment from this thesis, we also present minor benefits which translate to easier configuration compared to the stat-of-the-art techniques. Finally, we enrich the discussions found in this thesis with recommendations targeting network administrators and network equipment manufacturers. Acknowledgements I start by thanking God for all the endeavors listed below in this Acknowledgment. I also thank Him for the health and capacity to start pursuing the Ph.D. degree and specially, for being able to successfully reach the end of this writing. Iwant to express my deepest gratitude to my mentor, my boss and also my thesis advisor Paul, for having selected me for this project. Paul allowed me to have an incredible freedom in the way I decided to conduct my research. Yet, he was always there to discuss a new idea and for understanding my unorganized thoughts which would finally lead to presentable results. For his generosity granting his time on tight deadlines. Without him, this thesis wouldn’t have half of the quality it has now. To Barcelona Supercomputing Center, its director Prof. Mateo Valero and also to all its employees which somehow supported the development of this thesis, my most sincere Acknowledgment. Having its financial support allowed me to have an worry-free employment time and to focus on what really matters. To my friends made in Barcelona. Thanks to all of you, I had a memorable time. It would be very hard to translate in these words the importance you had during these four years, but I guarantee I will always remember all the memories lived, stories, trips and fun time we shared. Thanks to all these experiences, I felt like these four years were a real sabbatical period in my life. The real support of all this work is my family. I am lucky to be part of a family with beautiful values, which they always taught me and made me the man I am today. Their visits warmed my heart every single time and I thank my mom, dad and twin brother for just being there during these years. It would be much more difficult without felling you all always around. To the pre-defense committee and specially to the external reviewers of this thesis, which helped me to improve the quality of this manuscript providing me constructive and detailed comments. Finally, my Ph.D. adventure in Barcelona ends with the writing of this Acknowledgment. I am very grateful for all the personal, professional and academic growth and for all the experiences I was able to live during this season. I consider myself a grateful lucky man... Author vii viii The research leading to this thesis has received funding from the European Union’s Seventh Framework Programme (FP7/2007–2013) under grant agreement number 610456 (Euroserver). The research was also supported by the Ministry of Economy and Competitiveness of Spain under the contracts TIN2012-34557 and TIN2015-65316-P, Generalitat de Catalunya (contracts 2014-SGR-1051 and 2014-SGR-1272), HiPEAC-3 Network of Excellence (ICT- 287759), and the Severo Ochoa Program (SEV-2011-00067) of the Spanish Government. To my loved parents. . . xv Chapter 1 Introduction In the last two years more data was created than the previous 5,000 years of humanity. It is also believed that in 2017, more data will be created in one year alone [1]. As a consequence, the significance of data is expanding across a wide-range of industries: biotech, energy, IoT, healthcare, automotive, space and deep sea explorations, cybersecurity, social media, telecom, consumer electronics, manufacturing, gaming and entertainment [1]. Such an enormous amount of generated data brings up a challenge on how to design effective infrastructures that are able to store and retrieve data correctly and within an expected time and yet to process and analyse all this data in a way that business and science can take advantage of it. This phenomenon started about a decade ago and presents a non-stop growing scale on both velocity and size. It is commonly referred as Big Data. As, currently, one of the most famous and discussed frameworks designed to store, retrieve and process the information that is being consistently generated by users and machines, Hadoop has gained a lot of attention from the industry in recent years and currently its name describes a whole ecosystem designed to tackle the most varied requirements of today’s cloud applications. Given its importance, the scope of this thesis relates to Hadoop clusters, mainly focused on their interconnects, which is commonly considered to be the system bottleneck. We conducted research focusing on energy efficiency and also on performance optimizations as improvements on cluster throughput and network latency. As a starting point, looking to the past may help when trying to predict the trends for the future. In the next section we discuss the past and also the future predictions for the network traffic generated on Data Centers which shows how significant cloud computing traffic has become and its distribution on global Data Centers. 1 Chapter 1 Introduction 2 1.1 Cloud Computing Traffic This thesis was started in early 2014, and back then we had access to Cisco’s Global Index forecast encompassing the period between 2013 and 2018 [2]. As seen in Figure 1.1a, the trend was clear; Cloud Computing traffic had already became dominating on Data Centers and in comparison to traditional Data Center traffic, it already represented 60% of the total Data Center traffic in 2014, with predictions indicating that it would reach more than 3/4 of the total global traffic by the year of 2018. Cloud Computing traffic is associated with cloud consumer and business applications; e.g. Gmail. On the other hand, traditional Data Center traffic is associated with noncloud consumer and business applications such as the traditional email servers which are considered nowadays obsolete. (a) Between 2013-2018 (b) Between 2015-2020 Figure 1.1: Traditional vs. Cloud Data Center Traffic Distribution Currently, looking to Cisco’s latest prediction [3], Data Center traffic has already grown at a faster rate than previously expected. The same happened with Cloud Computing traffic. As seen in Figure 1.1b, by 2015 Cloud Computing traffic already represented more than 80% of the Data Center traffic, and the predictions point it will have reached more than 90% by 2020. Another traffic characterization from Cisco relates to the source and destination of Data Center traffics. It can be one of 3 types; Data Center-to-user, Data Center-to-Data Center and finally Within Data Center. Examples from the type of services are: •Data Center-to-User: Such traffic is generated by services offered to users such as web, email and Video on Demand (VOD). •Data Center-to-Data Center: Inter Data Center traffic is generated by tasks such as replication, Content Delivery Networks (CDN) and intercloud links. Chapter 1 Introduction 3 •Within Data Center: Consists in storage, production and development data. Big Data is a significant driver of its traffic. It is also defined as east-west traffic, which is traffic among servers inside the same data center. As illustrated in Figure 1.2, the north-south traffic which, on the contrary to the eastwest traffic, is network traffic that leaves the Data Center, corresponds to only a small fraction of global generated traffic. As seen in Figure 1.3a, only 1/4 of the global generated traffic actually leaves the Data Center and by the latest report, as seen in Figure 1.3b, the Data Center traffic distribution is likely to remain equal for the next years. Figure 1.2: North-South and East-West traffics on a graphical representation sample (reproduced from [4]) (a) Between 2013-2018 (b) Between 2015-2020 Figure 1.3: Global Data Center Traffic Distribution by Destination It is important to mention that intra-rack traffic is not accounted by Cisco for such traffic distribution. If intra-rack traffic was considered, traffic within Data Center would account for more than 90% of the Global Data Center Traffic distribution [3]. Hadoop, Chapter 1 Introduction 4 which is the considered workload on this thesis, schedules its tasks regarding where data resides. If the task is small enough to be executed by servers residing within the same rack, inter-rack communication will not be necessary. Therefore, this workload generates a considerable amount of intra-rack and inter-rack traffic which fits with the current trends and give us the opportunity to make a significant contribution to improve figures related to energy consumption and performance optimization of this ecosystem. 1.1.1 A Brief Story About the Hadoop Ecosystem As told by Marko Bonaci [5], the story about how Hadoop emerged can be defined as a quest to make the entire Internet searchable. The origin has two important moments. The start of the Lucene project and a paper published by Google which described their solution for processing large data sets on large clusters. The Lucene project started in 1997 by the Yahoo! employee Doug Cutting when he created a full text search library. By the year of 2001, the project was already moved to Apache Software Foundation, having a thriving Apache Lucene community by the end of the same year. Still in 2001, a subproject of Lucene named Apache Nutch was created by Mike Cafarella, in an effort to index the entire Web. The problem with Apache Nutch is that it was not scalable, basically because it was running on 4 machines and data interchange between them had to be done manually. Any attempt to increase the number of machines would have resulted in an exponential rise of complexity. An underlying cluster management platform was made extremely necessary so the core problem of indexing the Web could be tackled again. A couple of years after, more precisely in October 2003, Google published a paper presenting the Google File System [6]. It took some time but Cutting and Cafarella were able to follow Google’s blueprints and after what was considered a remarkable job, Nutch Distributed File System (NDFS) was available bringing some key features as hiding operational complexity from users and that it could be built out of inexpensive commodity hardware components. After having solved the operational problems to have a fully distributed file system, Cutting and Carafella started exploring various data processing models trying to reach the highest level of parallelism. Again, Google came up with the idea to do so and in December 2004 they published the now famous MapReduce: Simplified Data Processing on Large Clusters [7]. The framework was designed with the goal of processing large data sets in a reduced amount of time. Google’s MapReduce algorithm solved 3 problems in 2004: parallelization, distribution and fault-tolerance. Chapter 1 Introduction 5 By February 2006, Cutting removed the implemented code from GFS and MapReduce out of the Nutch code base and created a new project under the Lucene project which was named Hadoop. It consisted of Hadoop Common core and libraries, the HDFS (finally with the popular Hadoop File System name) and the MapReduce workload. After that, its adoption was a matter of time with companies as Yahoo!, Facebook, Twitter, LinkedIn and many others performing very serious work with Hadoop and contributing back to its open source ecosystem. By 2012, Yahoo!’s Hadoop cluster was already composed with 42000 nodes and the number of Hadoop contributors reached 1200. If in its early age Hadoop was originally designed for batch-processing, after almost a decade evolving the plataform to fit industry requirements, Hadoop is today capable of online processing which can help reducing the demand from SQL-on-Hadoop gap and also enabling IoT to finally spur Hadoop’s case. Deeper details from the framework are covered on the next Chapter where we present the background and related work. 1.2 The Energy Consumption Problem One of the greatest concerns in the design of data centers is the need to reduce energy consumption. In recent years, the number of data centers has multiplied, and worldwide, they are now responsible for a significant proportion of global electricity consumption [8]. Recently, in 2014, U.S. data centers were responsible for 1.8% of total U.S. electricity consumption. At an average cost of 10 cents per kWh, the annual energy cost of U.S. data centers is about $7 billion per year [9]. Another study even showed that the cost of energy of current data centers had exceeded the cost of the hardware [10]. A significant proportion of a data center’s energy consumption is caused by the network. D. Abts et al. [11] recently showed that a typical data center network consumes 12% of the total system power at full load, and even more when the CPU and memory are not fully utilized, which is common in data centers. Another study put the total energy consumption for network switches at 30% [12], divided among top of rack switches (15%), which typically use 1GbE links; and aggregation switches (10%) and core switches (5%), both typically employing 10GbE links. The proportion of energy consumed by the network is likely to increase, as processors and other components continue to improve in energy efficiency and energy proportionality.1There is still opportunity to reduce network energy consumption through energy proportionality, since interconnect links, which consume up to 65% of the total network power [13], always consume full power, 1The term “energy proportional” means that a component’s energy consumption should be proportional to its utilization. Chapter 1 Introduction 6 even when the link is idle [14]. Broadcom estimates that it could translate into a reduction of CO2emissions by up to 2.85 million metric tons per year only in U.S [15]. The Energy Efficient Ethernet (EEE) standard, approved by IEEE in 2010, improves Ethernet energy proportionality by defining a link sleep mode known as Low Power Idle (LPI). Although the standard defines the low-level mechanisms for entering and leaving LPI mode, its designers chose to promote competition between vendors by not defining how to decide when to enter and leave sleep mode. EEE was initially analysed for Small Office/Home Office (SOHO) environments, but ongoing efforts are analysing its deployment for data center applications, including video streaming [16] and scientific computing [17]. Since EEE can incur significant performance overheads, many system vendors still advise their customers to disable it in production use [18–20], at least until its impact on real applications is better understood. MapReduce[7] presents a specific traffic pattern, including all-to-all communication in the shuffle phase, between mappers and reducers. As mentioned before, more than 75% of the total traffic nowadays remains inside the data center [2]. Therefore there is still opportunity to reduce network energy consumption through energy proportionality, since interconnect links, which consume up to 65% of the total network power [13], always consume full power, even when the link is idle [14]. 1.3 Opportunity for Performance Optimization With the advent of Big Data, data center applications are processing multi-terabyte datasets, in parallel on large clusters, across hundreds to thousands of nodes. Big data workloads based on Hadoop or similar frameworks generate significant communication among servers within the same data center. In particular, as explained below, the shuffle phase of MapReduce involves an all-to-all communication, which presents a stressful load on the network. Although Hadoop is a network throughput-sensitive workload with less stringent requirements for network latency, there is an increasing interest in running batch and interactive workloads concurrently on the same cluster. Doing so maximizes system utilization, to obtain the greatest benefits from the capital and operational expenditures. Recent studies have analysed how to reduce latency on systems with high-throughput workloads to enable heterogeneous classes of workloads to run concurrently on the same cluster [21]. Also, numerous Hadoop distributions are appearing with the aim of providing low-latency services, which may in future share the same infrastructure as MapReduce workloads on a heterogeneous cluster with controlled latency [22]. As recently Chapter 1 Introduction 7 pointed out, 46% of IoT applications have low latency requirements on seconds, or even on milliseconds [23]. Current network switches offer much higher buffer density due the employment of SDRAM memory. Many new solutions are targeting expensive equipment with deep buffers, in comparison with what was offered a few years ago. For example, not so long ago, a switch offering 1 MB of buffer density per port would be considered a deep buffer switch [24]. New products are arising and with them, a buffer density per port 10× bigger [25]. All this can make the Bufferbloat problem [26] even worse, with latency on these networks reaching up to tens of milliseconds for certain classes of workloads. 1.4 Thesis Contributions This thesis discusses two major problems of Hadoop clusters. Our research focused on energy consumption and performance optimization at the interconnect level (on network switches and server NICs). To do so, we faced several challenges throughout the thesis development which led us to reach a deeper level of knowledge so we became able to analyse, characterize and propose changes to state-of-the-art techniques that if adopted by the industry and network equipment manufacturers, they will push for the improvement of Hadoop’s network performance while also reducing its energy footprint. As it refers to the title of this work, E-EON stands for Energy Efficient and Optimized Networks for Hadoop. We selected E-EON to reference the set of techniques presented on this work which can be used to reduce the network energy consumption and yet, to reduce network latency while cluster throughput is improved at the same time. Also, such techniques are not exclusive to Hadoop and they are also expected to have similar benefits if applied to any other Big Data workload and cluster that fits the problem characterization we presented throughout this thesis. We provide more details from the contributions bellow: 1. We were the first to evaluate Energy Efficient Ethernet on Hadoop clusters. We found that good energy savings can be obtained by leaf interconnects, but at the aggregation level packet coalescing is necessary to reduce the energy footprint to near ideal level. Our study produced two publications; the first was a best paper nominee [27] and the second a journal extension [28]. 2. Our second contribution stands for the first analysis of Active Queue Management and TCP protocol extensions that enable the use of ECN such as ECN standalone and DCTCP. We were able to reduce Hadoop’s network latency to 85% while Chapter 1 Introduction 8 maintaining cluster throughput on 95% from the baseline. Yet, we concluded that it is not a trivial task to configure such queues. This study was awarded one publication [29]. 3. The third contribution from this Thesis comes from a deeper study to understand why AQMs are so difficult to configure on Hadoop clusters. We identified the reasons for that and we characterized the traffic pattern for it to happen. Later on we suggested modifications on how switch queues handle ECN marked packets. We were able to reduce network latency while on some cases even improving throughput by 10%. We also solved the configuration problem providing effortless configuration. Any other Big Data workload that follows the same traffic pattern will benefit from this study, which carried on one publication [30] and has another work currently under review and for publication during the year of 2018. 4. Finally, our last contribution resides on identifying the right conditions to combine Energy Efficient Ethernet using Packet Coalescing together with Active Queue Management. From such work is possible to achieve very low energy consumption combined with very low latency networks. Such study yielded a conference paper [31]. Below are publications list related to the contributions of this thesis. •[LCN15] Renan Fischer e Silva and Paul M. Carpenter, Exploring Interconnect Energy Savings Under East-West Traffic Pattern of MapReduce Clusters. on the 40th IEEE Conference on Local Computer Networks 2015, best paper nominee [27]. •[LCN16] Renan Fischer e Silva and Paul M. Carpenter, Controlling Network Latency in Mixed Hadoop Clusters: Do We Need Active Queue Management? on the 41st IEEE Conference on Local Computer Networks 2016 [29]. •[CLUSTER17] Renan Fischer e Silva and Paul M. Carpenter, High Throughput and Low Latency on Hadoop Clusters using Explicit Congestion Notification: The Untold Truth on the 19th IEEE International Conference on Cluster Computing 2017 [30]. •[LCN17] Renan Fischer e Silva and Paul M. Carpenter, Interconnect Energy Savings and Lower Latency Networks in Hadoop Clusters: The Missing Link on the 42nd IEEE Conference on Local Computer Networks 2017 [31]. •[Transactions on Networking] Renan Fischer e Silva and Paul M. Carpenter, Energy Efficient Ethernet on MapReduce Clusters: Packet Coalescing To Improve 10GbE Links on the IEEE/ACM Transactions on Networking, October 2017 [28]. •[- 2018] Renan Fischer e Silva and Paul M. Carpenter, TCP Proactive Congestion Control Revamped: the Marking Threshold, under review. Chapter 1 Introduction 9 1.5 Thesis Organization The rest of this thesis is organized as follows. The next chapter presents background and literature, which discusses the necessary background to follow this thesis work. Chapter 3 presents the general methodology used during our experimentations. Chapters 4, 5, 6 and 7 discuss the four contributions of this thesis as presented above. Finally Chapter 8 concludes this thesis. Chapter 2 Background and Related Work 16 2.4 Controlling latency and buffer occupancy This sections presents the mechanisms studied here to control network latency and buffer occupancy. 2.4.1 Active Queue Management AQM schemes have been proposed to manage buffer occupancy to keep the average latency of the buffers below a determined threshold. The goal is eliminate the problem found on DropTail queues that tend to penalize bursty flows and also introduce high latency into the network. Bursty flows are penalized when TCP global synchronization happens. Instead, an AQM scheme aims to keep the delay controlled by providing feedback to the end points through appropriately dropping packets. Another goal of these smarter queues is to support the use of Explicit Congestion Notifications, found on TCP network protocol, that allow end points to react before congestion happens. On this thesis we selected two AQMs to compare, Random Early Detection (RED) [42] and Controlled Delay (CoDel) [43]. Random Early Detection (RED) was proposed in 1993 [42] and since then, it has been widely studied and adopted. Implementations of RED are found on Linux, Solaris, and FreeBSD [44]. It is also implemented by network equipment vendors including Cisco [45] and Juniper Networks [46]. RED uses configurable thresholds to decide when to mark packets if combined with ECN, and drops packets based on a probability that grows with the queue occupancy. Controlled Delay (CoDel) was proposed in 2012 and since then, it has gained more attention. Its usage is recommended by the Bufferbloat initiative [26] [47]. It promises to be easier to configure than RED, which has several parameters and variants to be configured. CoDel claims it has no parameters to set at all, but still, the user needs to configure the target delay, which is the tolerable delay per-packet when queued until it is transmitted, and the interval how often the delay per packet of transmitted packets within the interval is evaluated. If any packet has a delay grater that the target, the interval is shortened, otherwise it is reset at the end of its cycle. 2.4.2 Explicit Congestion Notifications ECN are helpful to indicate a pre-state of congestion on the network and allow senders to proactively react before it happens. Instead of waiting for the buffer to drop packets and trigger the fast recovery state of TCP, which can lead to a RTO timeout and causes Chapter 2 Background and Related Work 17 TCP to reset to its slow start state, the sender reduces its congestion window by the number of marked packets, alleviating the pressure under the buffer that signalized the congestion, which helps to reduce latency and specially jitter. Therefore, proactive congestion control is helpful for two reasons. First, the default value of 200 ms is not suitable for low–latency networks. Finally, even if the RTO is configured to a much smaller value on these networks (typically 1 ms) RTO timeouts lead to the slow start phase which can temporally decrease throughput. Yet, on data center networks, using proactive congestion control by enabling ECN was found to reduce throughput of applications while keeping the latency and buffer occupancy low, which may not be desired on frameworks with high throughput requirements. As an alternate solution, DCTCP has been proposed which involves some modifications on the TCP network protocol to specifically fit data center network requirements: high throughput and small latency. 2.4.3 Data Center TCP DCTCP is an extension to the TCP network protocol proposed by Microsoft Research Center as an alternate solution to specifically reduce the latency on data center networks without affecting throughput. In comparison with ECN, DCTCP extends the ECN processing to estimate the fraction of bytes that encounter congestion, rather than simply detecting that some congestion has occurred. In short, while ECN reduces the congestion window by the number of ACK packets echoed to the source, DCTCP modifies how the source handles the received ACKs to estimate a more gentle reduction on the congestion window, which is more suitable for low–latency networks. DCTCP then scales the TCP congestion window based on this estimate. This method achieves high burst tolerance, low latency, and high throughput with shallow-buffered switches [40]. On its evaluation using commodity switches, DCTCP was able to deliver even better performance than ECN itself. Currently, network equipment manufactures are iterating into their lineup and recommending the usage of deep buffer switches for Big Data frameworks, specially Hadoop, which demands more analyses of how DCTCP performs on such type of workloads and using these new network equipments. The next section presents related work to specific network traffic patterns using Energy Efficient Ethernet followed by the related work to controlling latency mechanisms found on Data Center networks. Chapter 2 Background and Related Work 18 2.5 Related Work 2.5.1 EEE Under Specific Network Traffic Patterns De la Oliva et al. conducted a study of the effect of Energy Efficient Ethernet on a video streaming service using UDP traffic [16]. Their simulation results showed that UDP video streaming could achieve good energy savings without the need for advanced techniques such as packet coalescing. They mention, however, that using TCP rather than UDP would have led to lower energy savings, due to TCP acknowledgements and TCP congestion control mechanisms. In the field of High-Performance Computing (HPC), Saravanan et al. established that although scientific applications have high peak communication demand and therefore need a high-performance interconnect, the average traffic is usually low [17]. This work led to an adaptive control mechanism for Energy Efficient Ethernet that maximises energy savings subject to a bound on the percentage increase in execution time [48]. Dickov et al. presented an analysis of data compression for InfiniBand network energy savings [49]. They also introduced a novel power reduction software manager for InfiniBand links [50, 51]. Both techniques of Dickov et al. are implemented in the MPI software layer, so they are only applicable to workloads written using MPI. There are several differences between our approach and the above related work in HPC. Firstly, HPC workloads have complex dependencies and require low latency, leading to the conclusion that packet coalescing would not be useful [17]. Both Dickov and Saravanan use high-level simulation models that abstract away fine-grain details, whereas we use a detailed packet-level simulator. We found that in our context, especially with switches with shallow buffers, packet-level phenomena, such as Ethernet packet loss and TCP/IP congestion avoidance, have a critical effect on both performance and energy. Accurate quantitative results could therefore only be obtained using a packet-level simulator, described on our Methodology on the next chapter. 2.5.2 Controlling latency and Buffer Occupancy on Data Center networks Heterogeneous clusters are becoming relatively more common on modern data centers as an attempt to reduce cost and avail the built infrastructure. As an example, Apache Myriad is a open source project that enables Apache Hadoop to run side-by-side with other type of applications, dynamically sharing cluster resources [52]. Chapter 2 Background and Related Work 19 Several vendors are positioning themselves for the Big Data market and have introduced network equipment with the promise of increased performance for Big Data applications. Arista Networks is marketing their new 7048T, 7280E and 7500R switch series with large buffers as recommended solutions for optimum performance for Hadoop [24]. Cisco published a study that found that network latency has little impact on job completion time, among other factors such as availability and resiliency, burst handling queuing, over-subscription ratio and data node network speed [53]. In the same study, burst handling queuing capability was considered as the second most important factor that affects job completion time. A lot of attention so far has focused on RED, which is widely used as a baseline for the evaluation of new AQMs. Also it has based versions implemented by network vendors as Cisco [45] and Juniper Networks [46]. The CoDel IETF draft [54] suggests that CoDel would be useful in environments other than the normal Internet, including in data center switches, particularly for MapReduce clusters. As described, a CoDel queue tuned for such an environment promises to minimize packet drops, while keeping throughput high and latency low. DCTCP was presented before CoDel, reason why we believe an evaluation using CoDel was not considered at that moment. Its evaluation used only a variant of the RED queue, with recommended values of the minimum and maximum thresholds both equal to 65 packets. When DCTCP was compared to RED, it was suggested that although RED combined with ECN would dramatically reduce network throughput in data centers, DCTCP would maintain high throughput (while providing low queue occupancy and low delay). The explanation was that, instead of dramatically cutting the TCP congestion window by the number of marked acknowledges, DCTCP reduces the window gently to maintain high throughput. Wu et al. presented a comprehensive study on the tuning of ECN for data center networks, which they described as ECN* [55]. Their new approach performs as well as DCTCP, but it requires modifications to the ECN marking scheme in the network switches (the transport protocol and end points are not modified). They proposed marking packets when they leave the network queue (“dequeue marking”) instead of when they enter the network queue (classical “enqueue marking”, as used in RED). Dequeue marking seems to deliver similar results to DCTCP’s gentle congestion control. This proposal also came before the introduction of CoDel, which also marks packets when dequeue occurs, suggesting that CoDel would also deliver better performance than RED. Big Data workloads or deep buffer switches were not considered, missing a more profound analysis of the scenarios that typically present bufferbloat phenomena. When specifically compared using NS–2 simulations with synthetically generated traffic with Chapter 2 Background and Related Work 20 a Pareto distribution, CoDel delivered lower latency than RED but the latter was still considered as a good candidate for an AQM [56]. Incast was shown to have little significant impact on the performance of Hadoop, assuming a well-tuned Hadoop cluster. Incast is characterized by many-to-one communication where the buffer on the receiver pipe is heavily pressured so packets are lost. But its effect is specially devastating on partition/aggregation workloads which perform small queries, because the default RTO (Retransmission Timeout) penalty of 200 ms represents a big overhead on the overall performance. Hadoop presents many-to-one network communication in its shuffle phase, but on a well-configured system there is not significant overhead caused by incast. Also, buffers of network equipments are highly used, especially during the shuffle and write phases [57]. As we demonstrate in our results, Hadoop is highly throughput-sensitive. Therefore, in contrast to the recommendation to use a smaller minRTO in data centers, specially when using big buffer equipments which tolerate more bursty communication, reducing the RTO from 200 ms to 1 ms can impact on a fake RTO penalty. For example, an in-flight packet could still be queued in a buffer and since on bufferbloat scenarios the average latency per packet can be higher than such small RTO, TCP would trigger its timeout even if the packet is not dropped. For this reason our simulations use the default TCP minRTO of 200 ms and the overall results can be verified on the next chapters. Next chapter covers the methodology used to obtain the results presented on this thesis. Chapter 3 Methodology This chapter presents the overall methodology used throughout the development of this thesis to generate the necessary results so we could carry on with our deeper analisis and either confirm previous insights or even obtain new findings based on results which came to be contrary to the naive assumption. 3.1 Simulation Environment and Workloads We evaluate the impact of Energy Efficient Ethernet as a function of the network topology, workload, and control algorithm, using the NS–2 packet-level network simulator [58]. This simulator has been extended with a model of Energy Efficient Ethernet [59], which has been previously validated [14] and used extensively in previous work [60]. The network simulator is driven by the MRPerf MapReduce simulator [61], which allows researchers to carry experiments on the MapReduce framework while using NS–2 to simulate the underlying networks. MRPerf was presented not so long ago as an option for researchers which desire to use the already consolidated NS–2 to carry research on this well-known and trusted packet level simulator. MRPerf was recently extensively evaluated [62], and although it has limitations in precisely measuring some steps from the MapReduce framework, MRPerf is still recognized to achieve high accuracy for the simulation of the impact of network topologies and also for simulating the behaviors related to underlying networks. Our main contributions from this work is not related to the computation phase of MapReduce, but to its shuffle phase, which is when data is moved across the cluster. Therefore the improvements on TCP throughput measured here can be translated to a production environment. The real gain on the MapReduce runtime will depend on how much is the extent of each workload regarding the proportion of computation and communication. 21 Chapter 3 Methodology 22 We also evaluated control delay mechanisms as a function of the network topology, hardware configuration, and transport protocol, using the NS-2 packet-level network simulator [58]. The simulator has also been extended with CoDel [63] and DCTCP [64] implementations. Extensive evaluation has been done with RED, CoDel and DCTCP using NS-2 which brings us to a fair comparison with our results. NS–2, MRPerf, CoDel and DCTCP are open source and EEE module can be obtained contacting referenced authors [59], so using the parameters described in this chapter and also in each specific methodology from each of the next chapters, our simulation methodology has the advantage that it can be reproduced and future work can be carried out on it. We could not use real hardware because the EEE control algorithm is implemented in NIC and switch firmware, and no hardware was available for which we were able to change the packet coalescing settings. 3.2 Hardware configuration An important question is the power consumption of the 1GbE and 10GbE links. 1GbE (1000BASE-T) cards were originally expected to consume about 1 W, but current NICs using 110 nm silicon technology require just 0.5 W [65]. On the other hand, 10GbE (10GBASE-T) NICs are still considered to be power hungry. The previous generation, at 40 nm, consumed about 5 W, while the current generation at 28 nm is expected to consume between 2 W and 4 W [66]. Our main contributions are related to energy savings in the 10GbE links, so we conservatively chose relatively power efficient 10GbE links. In summary, we assume 0.5 W per port for 1GbE and 2.5 W per port for 10GbE. On real hardware, numbers can still vary depending on the vendor’s to be considered. We restricted the power consumption to the NICs as considering power consumption for the servers could translate to an even wider range of values and great imprecision since different architectures and solutions could be adopted (going from low end commodity servers to high end more expensive ones). Therefore we reduced the scope of this work to estimate the energy consumption of the links themselves, which can be verified on the next chapters. We provide results for both commodity and more expensive switches. Hadoop clusters often use inexpensive commodity switches, which have small (shallow) buffers. Small buffers can cause excessive packet loss, leading to the incast and outcast problems described in Chapter 2. These problems can be alleviated using expensive switches with larger (deep) buffers. The over-subscription ratio on the 10GbE links is never higher than 4:1. Specifically in the following chapter we explored multiples network over-subscription as 1.2:1, 2.5:1 or Chapter 3 Methodology 23 4:1. For the rest of the thesis we considered fixed network over-subscription after we understood its impact in Chapter 4. Selecting a network over-subscription not higher than 4:1 matches Cisco’s recommendation that MapReduce clusters should be deployed with an over-subscription ratio of 4:1 or lower at the access layer [53]. 3.3 Topology Figure 3.1: Leaf-spine Cluster Topology The data center architecture selected for this work was the leaf-spine architecture [67], as seen in Figure 3.1. Contrary to the traditional hierarchical three–layer network, which is recommended for north-south traffic, the leaf-spine architecture is the recommended architecture for warehouse scale computers [68] when focusing on east-west traffic among servers of the same cluster [69]. The topology brings spine and leafs switches similar to the access and aggregation switches found on the classical k-ary fat tree [70]. The advantage of leaf-spine when compared to the k-ary fat free is its full mesh connectivity between leaf and spine switches, yet it follows indeed a two-tier clos architecture. Each leaf switch, also known as top-of-rack (ToR) switch, is connected to the spine switch, regularly named aggregation switch on the fat tree model, using a single 10GbE link. It can ”scale out” to a fairly large numbers of servers by adding more switches, although it also brings a concern to the amount of cables and the cost of the network equipment required, once each leaf switch must be connected to each spine switch [69]. It is also important to mention that the leaf-spine topology can also be categorized as a 2-level fat-tree topology, i.e. without the aggregation layer between the edge and the core layer, and it is not organized in pods [71] [72]. Since the focus of this work was to analyze MapReduce workloads in depth we decided to consider only the leaf-spine topology for Chapter 3 Methodology 24 this thesis, which seems to be recommended for Hadoop, as seen in various references for cluster design [24] [73] [68]. Also, the NS-2 simulator has scalability problems due to its packet-level nature and therefore, considering the addition of the super-spine layer on top of the spine layer would require many more nodes to be added so we could organize the cluster on a larger folded clos topology (organized in three tiers). Such extra layer would require the addition of many more nodes to justify the larger topology and therefore we limited the cluster size on our experiments. Nevertheless, from the results obtained on this work we expect similar phenomena in many other distributed applications that are throughput sensitive and use the 2–layer fat-tree topology, which is comparable to the leaf-spine topology, or either use the more traditional 3–layer fat-tree topology, typically employed on large clusters. On our cluster we used the multiPath option from NS-2 that simulates the equal cost multi-path routing through two equal cost routes. Equal Cost Multi Path (ECMP) feature is essential for a representative analysis of this cluster topology, which offers multiple routes and loaded over-subscription. Recent work [74] shows the benefit of using multipath TCP achieving improved network utilization and better reliability. Since multipath TCP is not yet commonly adopted in the mainstream and we want to specifically investigate the impact of latency control mechanisms and DCTCP on Hadoop we decided to bound the scope of this work using only ECMP feature. Regarding differences in topology seen in the next chapters, we evaluated different cluster sizes throughout the development of this work. The Energy Efficient Ethernet module available for NS-2 is implemented in a different layer than the duplex-links used with AQMs. During the development of this work we found that the EEE implementation available for NS-2 does not support multiple routes and therefore, it was not possible to conduct experiments with EEE and simulating larger cluster topologies. The simulation of large topologies is a task that is only possible when the ECMP feature is available and this way it translates into the multiple paths being fully utilized. For such reason, in Chapter 4 and in Chapter 7 we simulated a smaller cluster with 2-racks and 1 aggregation switch. We understand it could be considered a limitation so we compensated it by analyzing three different network over-subscription ratios as mentioned before. Therefore, we strongly believe we were able to obtain realistic figures for the results related to Energy Efficient Ethernet. In Chapter 5 and in Chapter 6 we utilized the full cluster as seen in Figure 3.1. Chapter 4 Energy Efficient Ethernet on MapReduce Clusters This chapter presents the first analysis from Energy Efficient Ethernet on MapReduce clusters. 4.1 Summary This chapter estimate the suitability of EEE for applications that follow the MapReduce programming model, in terms of both performance and energy. As mentioned in Chapter 1, EEE was initially analysed for Small Office/Home Office (SOHO) environments, but ongoing efforts are analysing its deployment for data center applications, including video streaming [16] and scientific computing [17]. Since EEE can incur significant performance overheads, many system vendors still advise their customers to disable it in production use [18–20], at least until its impact on real applications is better understood. Yet, there is still opportunity to reduce network energy consumption through energy proportionality, since interconnect links, which consume up to 65% of the total network power [13], always consume full power, even when the link is idle [14]. With this study we found optimum energy savings for 10GbE links only when packet coalescing is enabled. With packet coalescing, switches intentionally delay outgoing packets while the link is in LPI mode, so that they can be transmitted back-to-back with subsequent packets. The packet coalescing settings, however, must be carefully chosen to avoid an excessive loss in performance. This chapter also presents the discussion to evaluate how to adjust the static packet aggregation settings as a function of the traffic load. At low load, packet aggregation 25 Chapter 4 Energy Efficient Ethernet on MapReduce Clusters 32 Figure 4.3: Runtime vs. stall time without packet coalescing (small tasks) from scheduling and other noise. We therefore use the simple control algorithm without packet aggregation (nopa), which we refer to as Standard EEE. 4.3.2 Standard EEE and stall timer Figure 4.4: Average energy per port vs. stall time without packet coalescing (small tasks) Figure 4.5 compares the energy consumption of legacy Ethernet (without EEE) and Standard EEE. It also shows the ideal case, which has instantaneous zero energy sleep Chapter 4 Energy Efficient Ethernet on MapReduce Clusters 33 and wake transitions. In this figure and in the next subsection, energy consumption is always normalized to the current state of the art, which is Standard EEE (without packet coalescing). In Figure 4.5, standard EEE reduces the energy consumption by a factor between five and eight, depending on the workload and network over-subscription ratio. The ideal results, which are closely matched using packet coalescing, show a further factor of two improvement. Figure 4.5: Average energy consumption (comparison with legacy Ethernet) 4.3.3 Optimum Energy Savings on MapReduce Cluster This section investigates the optimum settings for EEE across the whole network. The results show that, in contrast to previous recommendations for the deployment of EEE [14, 33], packet coalescing should be enabled for the 10GbE links, but it is necessary to carefully choose the packet coalescing parameters and TCP settings. All results in this section were normalized to the standard Energy Efficient Ethernet (without packet coalescing). 4.3.3.1 Uniform EEE settings The broad results in more detail are shown in Figure 4.6. Figure 4.7 displays more details as it brings the same results zoomed-in. Results are given for the five packet aggregation settings from Table 4.3, with default or optimised TCP buffers, and shallow or deep switch buffers. The main conclusion is that, with shallow buffer switches, with 64 KB per connection, the 1ms1000 and 10ms1000 settings have unacceptably large overheads. Chapter 4 Energy Efficient Ethernet on MapReduce Clusters 34 The same results are summarized in Figure 4.8, which shows the performance and energy results averaged across all six scenarios (workloads and over-subscription ratios). Figure 4.6: All runtimes and energy consumption of workloads using different settings Figure 4.7: All runtimes and energy consumption of workloads using different settings (Zoomed-in) Chapter 4 Energy Efficient Ethernet on MapReduce Clusters 35 Figure 4.8: Average Runtime and Energy Consumption of MapReduce jobs Regarding performance first, the 12us10 and 120us100 settings have overheads of less than 5%, for all six scenarios, with little variation among the scenarios. With deep buffer switches, of 1 MB per connection, the 1ms1000 setting is also acceptable for batch workloads, with or without tuned TCP settings. Batch workloads fully utilise the network during the shuffle phase, and the resulting congestion means that full throughput can be achieved using a relatively small TCP congestion window. This traffic is, in fact, sufficient to usually trigger the 1000-packet threshold without waiting for the timeout, giving lower additional latency and also a similar runtime for 1ms1000 and 10ms1000. In contrast, with small tasks, the shuffle phases of different jobs happen at different times, so network utilization is spread out in time and there is less network congestion. For small tasks, the additional latency introduced by aggressive packet coalescing therefore requires a tuned TCP congestion window. The average runtime follows the same pattern as total runtime, except for deep buffer switches and default TCP using 10ms1000 setting. Surprisingly, we see that scenarios with more servers show a slightly lower performance degradation than scenarios with fewer servers. In other words, lower over-subscription ratios lead to greater performance Chapter 4 Energy Efficient Ethernet on MapReduce Clusters 36 degradation, contrary to what would be naively expected and also to what is seen on the rest of the results. On such situation switch buffers are not the bottleneck of the system, and having more servers offers the scheduler the possibility to achieve better average runtime, even if the same is not verified on total runtime. Turning to the energy results in Figure 4.8, it is clear that the best packet aggregation settings depend on the context. With deep buffers and tuned TCP settings, the best energy savings are obtained using 1ms1000: the energy consumption was reduced to 55% at an overhead of less than 2%. With shallow buffers, the same settings would increase the total runtime by an unacceptable 25%. The best settings for shallow buffers are 12us10 and 120us100, which increase runtime by less than 1% but reduce energy to 75% and 60% of Standard EEE, respectively. The next experiment consists in using 1ms1000 for the 10GbE NICs, and 12us10 or 120us100 for 1GbE links. We expect to save additional energy and get closer to the ideal model. 4.3.3.2 Non-uniform EEE settings In Section 4.3.3.1, the packet aggregation settings were uniform across all switches in the network. This section investigates the benefit of non-uniform packet aggregation settings. Specifically, the new settings, 12us10+ and 120us100+ are the same as 12us10 and 120us1000, respectively, for the 1GbE links, but they use 1ms1000 on the 10GbE links. Figure 4.9: Energy consumption (optimized configuration) [runtime remains about the same] As shown in Figure 4.9, using different settings of packet aggregation for different NICs improved the energy savings. The aggregation switch has better energy savings using 1ms1000, since 12us10 and 120us100 present good savings for a moderate load but not for high load. Under high load, 1ms1000 gets closer to ideal savings for 10GbE links (12us10+ and 120us100+). Chapter 4 Energy Efficient Ethernet on MapReduce Clusters 37 4.3.3.3 Analysis by link type Whereas Figure 4.9 showed the average energy consumption across all the network links, Figure 4.10 shows separate energy consumption results for (a) the 10GbE links and (b) the 1GbE links. As before, values are normalized in comparison with Standard EEE. The greatest savings are obtained for the 10GbE links, which benefit most from packet coalescing, as shown in Figure 4.10a. In contrast, Figure 4.10b shows little benefit from packet coalescing for the 1GbE links in comparison with Standard EEE. Considering the complexity and the cost for new 1GbE interfaces that would deploy packet coalescing for almost negligible benefits, the adoption of packet coalescing technique on edge interfaces is not necessary. For this reason, our last experiment (see the following results) focus on using packet coalescing technique only on 10GbE link (aggregation layer). 1 GbE links remain with Standard EEE, which means no packet aggregation on edge links. (a) 10GbE (b) 1GbE Figure 4.10: Detailed energy consumption by NICs Chapter 4 Energy Efficient Ethernet on MapReduce Clusters 38 4.3.3.4 Load impact on coalescing settings Packet coalescing settings were previously evaluated for a fixed typical cluster utilization of 40%, measured by the CPU load. This section extends the evaluation to consider to what extent the conclusions depend on the CPU load. It complements previous work [14] discussed in Section 2.5, which explored the relationship between network utilization and power for Poisson arrivals. For workloads like MapReduce, the connection between cluster utilization and energy is more complicated, due to the non-linear relationships between cluster utilization, measured using the CPU load, and both network utilization and runtime. Figure 4.11: Total runtime as CPU load is varied (Terasort) We concentrated on Terasort jobs on switches with shallow buffers, and varied the CPU load between 5% to 55%. Figure 4.11 shows the runtime results. The differences between ideal, standard EEE, 12us10 and 120us100 are small, whereas 1ms1000 has a large overhead below 40% utilization, rising to a performance degradation of 20% at 5% utilization. The extra delays of up to 1 ms, caused by packet coalescing, require a larger Bandwidth–Delay Product (BDP), and more in-flight packets to compensate for the extra latency. Switches with shallow buffers cannot accommodate the Incast congestion that happens on the link connecting the Top-of-Rack switch to the reduce node (see Chapter 2.5). It is therefore impossible to increase the BDP, even using optimized TCP settings, because congestion limits the number of packets in flight. Note that this problem does not happen with deep buffer switches. Turning to the energy consumption, shown in Figure 4.12, the lowest energy consumption is always achieved using 1ms1000. As previously mentioned, however, below about 40% Chapter 4 Energy Efficient Ethernet on MapReduce Clusters 39 utilization, the increase in runtime, visible in Figure 4.11, becomes too large, so the best option, with small difference in energy, would be 120us100. Figure 4.12: Energy consumption as CPU load is varied (Terasort) Figure 4.13: Energy–delay product as CPU load is varied (Terasort) Finally, Figure 4.13 combines performance and power into a single metric, which shows the normalized energy–delay product. When cluster utilization is higher than 10%, the energy–delay metric in fact indicates a better trade-off for the 1ms1000 setting. On the other hand, when the cluster utilization is lower than 10%, the 120us100 setting has a better trade-off. Back to 1ms1000, it is important to notice that even with better results from the energy–delay metric, from 10% to 40% of cluster utilization, the better energy savings are achieved at the cost of a performance penalty previously mentioned. Chapter 4 Energy Efficient Ethernet on MapReduce Clusters 40 This therefore has to be taken into account when choosing the proper packet coalescing setting. 4.4 Discussion and Recommendations Recent switches that implement Energy Efficient Ethernet (EEE) already have support for energy proportionality, but until a good understanding of the impact on real application performance has been reached, these features are likely to remain switched off in practice, unnecessarily increasing the energy consumption. This chapter contributes to the necessary understanding by analysing this tradeoff in detail for MapReduce workloads, which are representative of modern applications dominated by east–west traffic. The recommendations in this section have been divided into a) recommendations for system administrators, and b) recommendations for equipment vendors. Recommendations for system administrators: The first finding of this chapter is that the “standard” Energy Efficient Ethernet algorithm, which turns the link off immediately when it becomes idle, and that doesn’t use packet coalescing, obtains significant energy savings with negligible performance overhead. This is in contrast to previous work in the context of HPC, which found that a Power Down Threshold timer was needed to limit the performance overhead of repeated link wakeups [17]. The result is that system administrators should not be afraid to enable EEE, even when the general guidelines from the system integrator are to disable it. Recommendations for equipment vendors: The limited configurability of existing switches mean that the remaining recommendations are currently targeted at equipment vendors. We show that the standard algorithm is, in fact, sufficient for 1GbE edge links. An ideal model, that sets EEE overheads to zero, gives an upper bound energy consumption of 20% below that of EEE. Our investigation of packet coalescing settings, however, found a maximum benefit of just 5%. For 10GbE, however, packet coalescing delivers further energy savings, reducing the energy consumption to half or less. For this reason, equipment vendors should certainly implement packet coalescing, especially for 10GbE links. We were able to find packet coalescing settings, for all evaluated loads and workloads, that save between 35% to 75% more energy, in comparison with standard EEE, and that reach close to the ideal case (Figure 4.12). Chapter 4 Energy Efficient Ethernet on MapReduce Clusters 41 We found, however, that the energy–performance tradeoff is strongly affected by the packet coalescing settings. Coalescing packets does not simply introduce a delay on links. It also increases the burstiness, which, especially on shallow buffers, leads to packet loss, ultimately impacting performance. This is especially true for workloads like MapReduce that have a many-to-one communication pattern. We extended our previous analysis [27] by investigating the effect of cluster utilization. When utilization is low, the best setting was 120us100, which provided good energy savings without hurting performance. When utilization is high, a more aggressive setting of 1ms1000 obtained better energy savings with little performance loss. Some server NIC vendors implement a technique known as interrupt coalescing, which amortises the overhead of interrupting the CPU, by generating a single interrupt to process multiple received or transmitted packets [83]. Interrupt coalescing is most commonly deployed on the receiver side, in which case it has no effect on how packets are presented on the network links, and it is therefore not directly relevant to this study of Ethernet energy efficiency. When deployed on the transmitting side, interrupt coalescing may be an effective means of implementing packet coalescing on the outgoing edge links. Higher-bandwidth network links would still need packet coalescing to be implemented in the switches. We did not model interrupt coalescing in this study, but our results indicate that relatively aggressive interrupt coalescing, on both transmit and receive, would not be expected to significantly impact Hadoop performance. We investigated the effect of over-subscription on these findings, as shown in Figure 4.9. Generally speaking, the larger over-subscription ratios use a smaller number of 10GbE links, so the energy savings in these links have lower effect on the total network energy consumption. Nevertheless, even with the largest over-subscription factor of 4:1, packet coalescing reduced the energy consumption by 20%. The benchmarks with small tasks distributed network utilization over longer periods of time, during which the utilization was lower, leading to a greater benefit from packet coalescing. How buffering and burstiness really affect Hadoop: The results presented here are aligned with a study presented on the next chapter, which investigated the impact of using DCTCP and also AQM queues combined with ECN to reduce buffer occupancy on Data Centers. The best performance on batch workloads is achieved using deep buffers switches without Active Queue Management on the network buffers. Contrary to the naive assumption, TCP works well under congestion and burstiness scenarios as long as there is enough buffer to accommodate the bursty traffic. Limiting buffer utilization can also degrade performance of batch workloads such as Hadoop [29]. Chapter 5 Controlling Delay Mechanisms on MapReduce Clusters 48 average latency of the network [86]. Reducing queue utilization and average latency is the first step towards the employment of new applications to run in parallel while sharing the same network resources on Hadoop clusters. We consider that a proper study focused on reducing the network tail latency is an important requirement that should be carried on, specially when scaling up the cluster size. We also point it as future work to be derived from this thesis as seen on Chapter 8. 5.3 Results This section presents the quantitative results, giving the runtime, throughput and latency for Hadoop using control delay mechanisms. 5.3.1 Random Early Detection (RED) The default implementation of Random Early Detection queue needed to be adapted for the high-speed networks found on data centers. RED is typically implemented using the average queue length for decisions of marking or drop of packets. We tried to use the average queue length on our experimentation but our results were too similar to the DropTail queue. Therefore, to allow simplification we do not include them. Instead, we used the instant queue length on all our simulations with RED queue. We don’t claim novel on this as previous works already demonstrated that instant queue length fits better for high speed networks as within the data center, we just confirmed and emphasize what was already demonstrated on previous evaluation [40]. RED offers an auto configuration setting that needs only one parameter: the target delay [44]. Such feature takes in consideration the speed of the network interface card and based on the ”packet time constant”, which is the maximum number of average sized packets that can be transmitted per second. If the network interface is fast enough and the target delay is also big enough, the thresholds will not be useful and the queue will behave as a DropTail queue. We couldn’t find any references on literature so we performed a sweep using different values as found in Table 5.2. Results are found in Figure 5.2. We also considered different values found on previous publications and also proposed new values. Our considered values for RED are found in Table 5.3. Results for fixed settings are found in Figure 5.3. It is easy to verify that RED auto configuration feature shows a clear tradeoff between latency and throughput. It seems to simplify the process of tuning the queue as we can Chapter 5 Controlling Delay Mechanisms on MapReduce Clusters 49 Figure 5.2: Normalized Results for Auto RED Queue Table 5.2: Auto Random Early Detection Settings Target delay 1 GbE thresholds 10 GbE thresholds 100 µ s 12.5 -37.5 125 - 375 250 µ s 31.25 - 93.75 312.5 - 937 500 µ s 62.5 - 187.5 625 - 1875 1 ms 125 - 375 NO AQM 2 ms 250 - 750 NO AQM 4 ms 500 - 1500 NO AQM Figure 5.3: Normalized Results for Random Early Detection Queue Table 5.3: Random Early Detection Settings Min Th. Max Th. Reference Config 1 70 70 [40] Config 2 25 51 [87] Config 3 25 75 Proposal 1 Config 4 50 150 Proposal 2 Chapter 5 Controlling Delay Mechanisms on MapReduce Clusters 50 clearly see that small values as 100 µ s will drop the performance by unacceptable 30%. As the values increase, we can see the average delay also increasing. To compare with the other values proposed on literature we decided to use 1 ms as it was able to reduce the latency by 85% on bufferbloat scenario while still keeping a improvement of 5% on execution time. When analyzing the fixed settings we can see that the first three configurations (config 1, config 2 and config 3) didn’t perform well for RED, increasing the runtime in 10%. Configuration 4 was able to maintain the same execution time and still reduce latency by up to 90%. 5.3.2 Controlled Delay (CoDel) For Controlled Delay queue we used the available implementation without any modification. CoDel is considered a parameterless queue, but the network administrator still has to provide two values, target and interval as described on Related Work (see Chapter 2.5). For our evaluation we considered values found on previous publications and we also proposed new values as well to tolerate a bigger delay on bufferbloat scenarios. The used values on our simulations can be found in Table 5.4. Still, we couldn’t find many references specifically related to tune CoDel for data center networks. We can list the values found on Bufferbloat project [47] which recommends the use of 500 µ s for target and 20 ms for interval. Another short paper [87] tested different range of values for CoDel recommending 300 µ s for target and the much smaller 750 µ s for interval. We also proposed 400 µ s and 1 ms; and 800 µ s and 1.5 ms for target and interval respectively as found in Table 5.4. Results can be found in Figure 5.4. Figure 5.4: Normalized Results for Controlled Delay Queue Starting by the results with shallow buffers, CoDel was able to reduce the average delay per packet by half using our second proposal (config 4) with virtually no loss on throughput. When using the settings recommended by the Bufferbloat project (config 1) the Chapter 5 Controlling Delay Mechanisms on MapReduce Clusters 51 Table 5.4: Controlled Delay Settings Target delay Interval Reference Config 1 500 µ s 20 ms [47] Config 2 300 µ s 0.75 µ s [87] Config 3 400 µ s 1 ms Proposal 1 Config 4 800 µ s 1.5 ms Proposal 2 delay dropped about 25% when combined with classical TCP. For all configurations, the smaller delay was achieved with standalone CoDel, followed by CoDel + ECN and at last, DCTCP showed the higher delay. On bufferbloat scenarios, we see that configurations that tolerate a higher delay also offer similar higher throughput. The settings recommended by Bufferbloat project were able to reduce the latency by 35% and still keep about 10% improvement on execution time. As the baseline for such scenarios has an average delay per packet of about 6 ms, for latency sensitive applications the configurations using CoDel stand alone were able to reduce latency to less than 700 µ s with config 4 and even less than 400 µ s using config 2. As a downside, specially configurations 2 and 3 were too aggressive reducing the congestion window and throughput was severely impacted. On the next subsection we compare the best values observed on CoDel and on RED. 5.3.3 CoDel x RED Figure 5.5: Normalized Results for CoDel x RED Queues Figure 5.5 compares the best settings of each queue side-by-side. When comparing CoDel and RED side-by-side we selected the two best values of each. The first pair are the settings that offer the best throughput but do not have a considerable cut on latency. The last pair are the settings which offer the best reduction on delay while still Chapter 5 Controlling Delay Mechanisms on MapReduce Clusters 52 maintain some gain on throughput. We can see that even though CoDel and RED use values that are more or less at the same scale (800 µ s vs. 1 ms), RED tend to achieve smaller latency than CoDel. On the other hand, CoDel was able to achieve the best runtime. One explanation for such difference is that RED is using the instant queue length, which turns out to be more responsive than the dynamic calculation performed by CoDel. Also, CoDel feature of marking packets on dequeuing, when combined with DCTCP, seems to be too conservative on reducing the congestion window and therefore does not reduce the latency as much as standalone CoDel or CoDel combined with ECN. By choosing other settings as 2 ms or 4 ms from RED auto configuration we would be able to match CoDel’s performance but latency would be increased as well. 5.4 Discussion and Recommendations As mentioned in the introduction, data center networks are starting to employ a new generation of switches with larger buffers, in order to accommodate bursty communications and deliver better application performance. A major portion of applications currently use TCP as the transmission protocol, so they will suffer from large packet latency, due to TCP’s tendency to fully utilize the available buffering. Recent switches that implement AQM already support ECN, but until a good understanding of the impact of congestion control on real application performance has been reached, these features are likely to remain switched off, unnecessarily forgoing a feature that could significantly reduce latency. This chapter contributes to the necessary understanding by analyzing the tradeoff in detail for MapReduce workloads, which are representative of modern big data applications in modern data centers. When congestion happens at an AQM queue, if combined with ECN, it will tell the sender proactively. The naive assumption would be to think that packet loss is always destructive, but an equally naive assumption is to believe that something even more destructive would be the reduction in the size of the congestion window. As seen in the results section, CoDel combined with DCTCP can be too conservative on reducing the congestion window. Therefore the delay is not reduced as much as it was on standalone CoDel or CoDel combined with ECN while the throughput remained about the same. Surprisingly, with standalone RED or RED combined with ECN, we were able to considerably reduce the latency on bufferbloat scenarios by 85%, and still maintain performance gains from larger buffers within 5%. Using instantaneous queue length instead of the average queue length was extremely necessary to obtaining these results. It also Chapter 5 Controlling Delay Mechanisms on MapReduce Clusters 53 open discussions whether CoDel should have faster converging mode, once its interval, even smaller than 1 ms, seems to deliver much higher latency on similar bases as RED, specially when it is combined with DCTCP. Finally we finish with recommendations for system administrators. We observed that DCTCP could not achieve the best cuts on latency. That can be explained because DCTCP had not been yet analyzed on scenarios with deep buffers. In deep buffer scenarios, the baseline for latency is considerably higher and the original recommendation as a minimum 65 of packets, which was presented in DCTCP’s evaluation, does not suit for such scenarios. Also, as we mention previously, it may not perform well with just any AQM, as it was the case with CoDel. Therefore we recommend careful consideration before deploying DCTCP on bufferbloat scenarios. In summary, our observations and recommendations are threefold: 1. Contrary to what could be expected, both RED and CoDel queues may perform better standalone than combined with ECN or DCTCP. 2. For high-speed networks, using instant queue length on RED turned it more responsive than CoDel and its dynamic evaluation. 3. DCTCP delivered the highest latency per set of configuration on both RED and CoDel, but it was not translated on considerable gains on throughput to justify its usage. 5.5 Conclusions A new challenge for modern data centers is to reduce latency caused by large buffers in the network equipment. Specific efforts to reduce latency are related to the requirements of particular workloads. Such actions, however, should not be considered trivial, because the choice of congestion control has a significant effect on throughput and performance, and should not be adopted in practice until the effects on workload performance are well understood. This chapter presented our new work investigating the effects of latency control mechanisms on a Hadoop cluster. We demonstrated how throughput and burst tolerance play important roles for such big data workloads. We evaluated the performance impact on execution time, throughput and latency, when using RED or CoDel, both combined with and without ECN and at last DCTCP as the transport protocol, and found that the MapReduce programming model is not sensitive to the latency but it is sensitive to Chapter 5 Controlling Delay Mechanisms on MapReduce Clusters 54 even small reductions in the network throughput. We demonstrated that in some cases with poorly-chosen AQM configuration the execution time increases by an unacceptable 20%. We also identified good AQM configurations that were able to maintain Hadoop execution time gains from larger buffer to within 5%, while reducing packet latency caused by bufferbloat by 85%. Therefore we suggest that cluster administrators carefully consider whether to adopt such techniques, depending on the cluster design and its utilization. For a heterogeneous cluster also running latency-sensitive workloads concurrently, it is important to reduce latency and buffer occupancy caused by larger buffers. In contrast, clusters used only for batch big data processing can neglect the latency, and benefit from the lowest execution time. Chapter 6 High Throughput and Low Latency on Hadoop Clusters This chapter presents a solution for the difficulty in configuration of Active Queue Management in Hadoop clusters. 6.1 Summary Once large data center operators have ownership of their network, they can optimize their end-to-end network connections. Doing so offers the potential to reduce latency, without degrading throughput. Over time, multiple such solutions have been proposed, for example the well-known DCTCP [40], an extension of the TCP protocol that reduces network latency and buffer utilization, without degrading throughput. In general, DCTCP is considered to be particularly promising, and the details of its deployment in production environments are being extensively discussed [88]. As presented in the previous chapter, in certain settings however, recent studies have found that attempts to reduce latency often cause a degradation in throughput or performance [21, 29]. In particular, workloads with fully-distributed traffic, long-lived flows and high throughput requirements tend to fill up the buffers of the network equipment. Attempts to control buffer utilization have been found to reduce overall performance [21, 29]. This chapter investigates why, and it proposes a solution. Figure 6.1 demonstrates how Hadoop job execution time is affected when network latency is controlled using classical TCP extended with either ECN or DCTCP, both relying on Active Queue Management (AQM) to mark ECT-capable packets (”how it is”). It also shows how the performance ”should be” if congestion control were performed by marking 55 Chapter 6 High Throughput and Low Latency on Hadoop Clusters 56 ECT-capable packets using a true marking scheme, as proposed in this chapter. This figure was generated using the methodology of Section 6.3. Figure 6.1: Hadoop job execution time affected by Active Queue Management The shuffle phase of Hadoop, which involves an all-to-all communication among servers, presents a stressful load on the network. Recent tracers from Facebook show that in some cases the shuffle time can even be responsible for more than 70% of the total runtime in the worst cases [84]. Less computation and more communication leads to the network infrastructure constantly being the bottleneck to develop new type of solutions. In parallel with the increase in the capability of network switches, Hadoop also has evolved from a batch oriented workload to a more responsive and interactive type of framework. Currently it presents many different flavors and distributions, and reducing its latency has become of interest to the industry to allow new types of workloads that would benefit from the analysis capability of Hadoop and much more interactive solutions [21, 29]. For that, the network latency on current Hadoop clusters has to be decreased. This work provides recommendations to network equipment manufacturers and network administrators on how to reduce network latency on Hadoop clusters without degrading performance. We expect to make it easy to understand the problem and wish to open new discussions and promote research towards new solutions. We present experimental results in terms of cluster throughput and network latency. Aligned with the study presented on the previous chapter, we show the impact on Hadoop job execution time. In short, our main contributions are: 1. We analyse why extensions of TCP intended to reduce latency, e.g. ECN and DCTCP, fail to provide robust performance and effortless configuration. Chapter 6 High Throughput and Low Latency on Hadoop Clusters 57 2. We characterize the scenarios that provoke this problem and propose a small change to the way that non-ECT-capable packets are handled in the network switches. 3. We evaluate the proposed solution in terms of cluster throughput and network latency, as well as its expected impact on Hadoop job execution time. 4. We provide a set of recommendations to network equipment manufacturers and cluster administrators in order to benefit from this work. The rest of this chapter is organized as follows. Section II describes the problem and its solution. Section III describes our infrastructure and methodology and Section IV presents the evaluation and results. Based on these results, Section V distills the most important recommendations. Section VI compares our approach with related work. Finally, Section VII concludes the chapter. 6.2 The Problem and Motivation Network transport protocols, such as TCP, traditionally signal congestion to the sender by dropping packets. This mechanism is simple, but it reduces throughput due to potential timeouts and the need to re-transmit packets. Recent extensions, such as Explicit Congestion Notification (ECN) and Data Center TCP (DCTCP) avoid these overheads by indicating imminent congestion using marked packets (as explained below in Section 6.2.1). Such congestion control based on proactive signaling was conceived with the premise that it was better to identify congestion before dropping packets and waiting for the sender to react [40]. And the idea was not wrong! When DCTCP was originally proposed, it was evaluated using a simple marking scheme. Although the marking scheme was, we believe, one of the key points of DCTCP, it was considered to be a straightforward aspect of DCTCP, and it was not debated enough. The authors claimed that the simple marking scheme could be easily mimicked on existing network switches that supported Random Early Discard (RED)[42]. RED is an Active Queue Management (AQM) scheme typically implemented by switch manufacturers. They recommended setting the RED minimum and maximum intervals both to the same value of 65 packets, which they found to be necessary and sufficient to reach the full throughput of a 10 Gbps link. The authors believed that this approach would be able to mimic the behavior of a marking scheme on ECN-capable switches. Chapter 6 High Throughput and Low Latency on Hadoop Clusters 64 •ECE-bit which protects ECT-capable packets and packets which have ECE-bit set on their TCP header (SYN, SYN-ACK and a proportion of ACKs). •ACK + SYN which protects ECT-capable, SYN, SYN-ACKs, and finally all ACK packets, irrespective of whether or not they have the ECE-bit set in their TCP header. At last the three performance metrics considered are: the runtime which is the total time needed to finish the Terasort workload, which is inversely proportional to the effective throughput of the cluster; the average throughput per node and the average end-to-end latency per packet. Therefore the improvements on TCP throughput measured here can be translated to a production environment. The real gain on the MapReduce runtime will depend on how much is the extent of each workload regarding the proportion of computation and communication. 6.4 Results This section presents the quantitative results in terms of the runtime, throughput and latency for Hadoop using the methodology described in the previous section. Results are shown for both RED and CoDel, in order to demonstrate that the approach advocated in this chapter is independent of the precise AQM mechanism. All results are normalized relative to an ordinary DropTail queue. In the case of runtime and throughput, results are always normalized with respect to DropTail with shallow buffers. For these results, the dashed line on the deep buffer plots indicates the (better) runtime or throughput obtained using DropTail with deep buffers. In order to analyse the bufferbloat problem separately for deep and shallow switches, network latency is normalized to the latency of DropTail with the same buffer lengths. On the deep buffer results, we indicate with a dashed line the (much lower) latency obtained using shallow buffer switches. 6.4.1 Random Early Detection (RED) We start by presenting the effect of configuring the target delay of RED and how its different thresholds (see the previous section) affect Hadoop runtime for switches with shallow buffers. Figure 6.3a shows the runtime for shallow buffers and that for shallow buffers the best runtime is achieved either at a moderate target delay of 500 µ s for both ECE-bit and ACK+SYN with ECN, or also using more aggressive settings to achieve Chapter 6 High Throughput and Low Latency on Hadoop Clusters 65 the same with DCTCP. Comparing with Figure 6.4a we see how ACK+SYN was in terms of throughput, which increases by about 10% when target delay settings become aggressive. It shows that senders are able to control congestion if it is signalled soon enough. The best results and robustness of throughput is also translated to a network latency never lower than 50% compared to the baseline, as confirmed on Figure 6.5a. (a) Shallow Buffers (b) Deep Buffers Figure 6.3: Hadoop Runtime - RED (a) Shallow Buffers (b) Deep Buffers Figure 6.4: Cluster Throughput - RED (a) Shallow Buffers (b) Deep Buffers Figure 6.5: Network Latency - RED Chapter 6 High Throughput and Low Latency on Hadoop Clusters 66 For deep buffers, we start with Figure 6.4b. We can clearly see that as any congestion control is performed using ECE-bit or ACK+SYN cluster throughput achieves its maximum values using loose settings. As seen in Figure 6.5b, although the network latency was reduced by almost 60%, it is still about three times higher than the latency found on the DropTail queue of shallow buffer switches. The values to be considered should be the ones starting on 500 µ s. Finally, Figure 6.3b shows Hadoop runtime reaching a robust 10% speed-up, which is about the same performance reached by the DropTail queue from deep buffer switches. Now we analyze the results using the modified CoDel. 6.4.2 Controlled Delay (CoDel) Using a modified CoDel enabled us to verify that regarding how logic of the queue to decide when marking and dropping packets also influence on the results obtained. Although there is some variation in comparison to what was obtained using RED, we also verified the robustness of both solutions using CoDel. We start again by presenting the effect of delay control applied to CoDel as regarding the aggressiveness of the settings described on previous section. Figure 6.6a shows that ACK+SYN for ECN achieved he fastest Hadoop runtime, about 8% faster than the DropTail baseline. Cluster throughput was also stable as verified in Figure 6.7a, even used the most aggressive settings it remained above 5% improvements for both proposed solutions and all the flows. Analysing Figure 6.8a shows CoDel reduced its latency by half of what RED achieved, which translate on a network latency reduced by 40%. (a) Shallow Buffers (b) Deep Buffers Figure 6.6: Hadoop Runtime - CoDel As seen in Figure 6.6b, CoDel also has impacts on Hadoop runtime when more aggressive settings are used. The dashed line shows the best results which were from the larger DropTail queue and the proposals had a slightly performance degradation. The small drop on cluster throughput is also verified in Figure 6.7b. At last, the small reduction in throughput was compensated for by a reduction in network latency of about 80%, Chapter 6 High Throughput and Low Latency on Hadoop Clusters 67 (a) Shallow Buffers (b) Deep Buffers Figure 6.7: Cluster Throughput - CoDel (a) Shallow Buffers (b) Deep Buffers Figure 6.8: Network Latency - CoDel almost reaching the same network latency found on shallow buffer switches (pointed by the dashed line) in Figure 6.8b. Specially for CoDel, ECN solutions had much lower network latency than DCTCP solutions, which matches with results related by previous work (see related work). 6.4.3 Summary of Results From the results described here we could verify that RED is much more sensitive to aggressive settings. It was translated to an increase in Hadoop runtime of about 35%, which was much higher than CoDel’s worst performance loss of about 10%. Still, the performance degradation was importantly reproduced so we could also verify that independently from the egress queue logic utilized, the problem resides on the disproportional number of ACK packets which are early dropped. For CoDel, ECE-bit proposal is enough to achieve near the best results on terms of Hadoop runtime, cluster throughput and network latency. For RED, the implementation of a true marking scheme, which Chapter 6 High Throughput and Low Latency on Hadoop Clusters 68 on our simulations was reproduced by protecting the packets that caused the performance loss (described on previous section), allow the network administrator to choose between the former mentioned ECE-bit, which is a really low latency solution that still early drops some ACK packet that do not have ECE-bit on their header; or the true marking scheme which offers a more conservative reduction on network latency, with no early drops. For commodity clusters particularly employing shallow buffer switches, it translates by expressive gains on cluster throughput and Hadoop runtime. Finally, for clusters employing deep buffer switches which already present improved throughput as their baseline performance, the task of configuring switches egress queues as an attempt to reduce network latency becomes much easier with no throughput degradation on miss-configured AQMs. Next section presents discussions and recommendations regarding our results. 6.5 Discussion and Recommendations The results presented in this chapter show that Hadoop can tremendously benefit from a true simple marking scheme. These results are not exclusive to Hadoop, but are expected to be reproduced on other types of workload that present the following characteristics: •Use of ECN: ECN configured on TCP flows (either TCP-ECN or DCTCP) and switch queues configured to mark ECT-capable packets. •East–west traffic pattern, which implies that data and ACK packets are often present in the same egress queue. •Long-lived TCP flows with bursty communication. Previous work pointed that classical TCP and DCTCP flows should never coexist on the same infrastructure. We identified a worse problem when a controlled infrastructure having only ECN configured flows (either TCP-ECN or DCTCP) will collapse, due to a disproportional drop of ACKs. Redesigning the topology and organization of the cluster on a way that egress queues would never be shared between data and ACK packets can make the problem disappear. The cluster topology and workload organization plays an important part on reproducing the problem described here. Hence why previous work failed on reproducing or identifying it. On the other hand, MapReduce workloads were designed on a way where a big portion of the cluster, it not the whole of it, will be engaged on a fully distributed computation. To do so, a many-to-many communication between servers is required and the network will be consistently congested on such phase. Chapter 6 High Throughput and Low Latency on Hadoop Clusters 69 DCTCP has a strong premises which is to maintain latency low while delivering really high throughput, even higher than classical TCP itself. It was demonstrated on previous evaluation and these results still hold for the circumstances on how it was evaluated. A workload composed by short TCP flows will benefit from a more gentle cut on the congestion window. TCP takes one round trip to double its congestion window. When a more aggressive congestion window cut happens on a short-lived flow, it might not have another round trip to return to a satisfactory congestion window to achieve full throughput. Therefore, DCTCP is necessary on workloads that follow the OLTP model (OnLine Transactions per Second), where it is basically composed by short-lived TCP flows such as queries messages (flows typically shorter than 1 MB). Since TCP-ECN cuts the congestion window by half, it can degrade throughput on such type of workloads. For long lived flows, as more than 1 MB, on DCTCP evaluation itself, there was no virtual difference on performance when it was compared against TCP-ECN. We verified that for Hadoop, where the network will be constantly congested, TCP-ECN will benefit from a more aggressive cut on the congestion window, offering a lower latency comparing to DCTCP. A true simple marking schema simplifies the difficult task of configuring and tuning AQMs to work on MapReduce workloads. Yet, we identify different approaches that fit better for shallow or deep buffer switches. For shallow buffers switches, the more aggressive settings are useful to signalize congestion as soon as possible. As the buffer density per port is limited, signal the congestion before drops happen will be translated on TCP throughput gains. For deep buffers switches, using settings with moderated aggressiveness allow more data to be persistent on egress queues while they can still proactively signalize congestion to the senders, which finally translates to an improved TCP throughput. We now distill our most important recommendations. Recommendations for equipment vendors: The limited configurability of existing switches egress queues which do not allow the network administrator to disable drops mean that if AQMs are combined with ECN flows, the best results on terms of throughput and network latency for the shuffle phase of a Hadoop infrastructure cannot be fully achieved. An operational mode where egress queues only mark ECT-capable packets using a simple marking threshold while avoid drops from the non-ECT-capable traffic will improve the performance of workloads as Hadoop and it could be achieved with a firmware update. It should be offered to commodity switches as well, even if the switch offers a buffer density per port lower than 1 MB, as our results demonstrate how it can tune performance of legacy switches with a buffer density per port no higher than Chapter 6 High Throughput and Low Latency on Hadoop Clusters 70 300 KB. For Hadoop, ECN flows (TCP-ECN or DCTCP) will benefit from this operational mode where no packets are dropped until the egress queue limit and congestion control is fully performed by TCP endpoints. Recommendations for network administrators: Until a true simple marking scheme is implemented on network switches, we recommend the following two solutions: Some high-end switches offer the option to forward non-ECT-capable traffic on the egress queue instead of dropping them as we discuss in the next section (related work). Unfortunately, this option is only available on top-of-the-line switches which offer very high buffer density per port. Although this solution will perform equally great on terms of throughput and network latency as the results obtained on this work, it is unlikely to lead to a low cost solution. As a solution for switches which do not offer the option to forward non-ECT-capable traffic, the network latency can be reduced to optimum level at the cost of performance loss on throughput. The performance of the standalone queue was out from the scope of this work as it was already covered by previous work, related on the following section. Therefore, for commodity or legacy switches which offer AQM and ECN features, as an immediate low latency solution, we recommend the utilization of the standalone AQM queue, completely disabling ECN from TCP flows and from the queue configuration. The next section covers the related work, which enrich our recommendations presented here. 6.6 Related Work The original DCTCP paper [40] suggested that a simple marking scheme could be mimicked using switches that already support RED and ECN. More recent studies, such as a comprehensive study of tuning of ECN for data center networks [55] also recommended that switches would be easier to configure if they had one threshold instead of the two found on RED. They also recommended to use the instantaneous rather than averaged queue length. They also pointed out the problem with SYN packets not being ECT-capable, but the problem with disproportional dropping of ACKs was not mentioned. Another recent study, which extensively discussed common deployment issues for DCTCP [88] pointed to the same problem that happens on a saturated egress queue when trying to open new connections. A recent and promising method to perform congestion control on TCP endpoints obtained better results than DCTCP for data center networks, by implementing a new Chapter 6 High Throughput and Low Latency on Hadoop Clusters 71 congestion control technique based on the logistic growth function [89]. To perform their evaluation, the authors used a simple marking scheme that starts to mark packets using a tight threshold, which was set to only one packet. The authors, following the same approach as in previous work, claim that RED could mimic it, which is why they considered that the method would not require any changes in hardware. None of these previous studies considered the use of a class of workload, such as Hadoop, that involves multiple long-lived TCP flows in multiple directions. Such workloads cause the same egress queue to contain large numbers of both data and ACK packets. As previously explained, on Hadoop, data is transferred across the whole cluster during its shuffle phase and that was why they were not able to identify the problem described on this work. The performance of TCP-ECN and DCTCP on Hadoop clusters was recently investigated. Grosvenor et al. [21] evaluated the ability of TCP-ECN and DCTCP to reduce Hadoop’s latency while running latency-sensitive services in the background. The goal of their work was to present a new method to classify the network traffic, for which the queue utilization was important, so some packets could jump the queues. In that work, TCP-ECN was considered to have a performance degradation of more than 2×the baseline. DCTCP achieved better results, but they still showed a performance degradation of 20% with respect to the baseline. We believe that the reason for such a difference between TCP-ECN and DCTCP was the fact that for TCP-ECN they set a much lower marking threshold using RED, equal to 40 packets, while for DCTCP they maintained it on 65 packets as recommended in DCTCP’s original paper [40]. We believe the basis for comparison between TCP-ECN and DCTCP should be the same marking threshold, as DCTCP already reduces its congestion window more gently. A more recent study [29], which compared TCP-ECN and DCTCP using identical thresholds of 70 packets, also showed a performance degradation of about 20%, with respect to the baseline, which used deep buffer switches. In that study TCP-ECN was considered to achieve a lower latency than DCTCP, showing that in a congested environment with long-lived TCP flows, both TCP-ECN and DCTCP can achieve similar throughputs, but the more aggressive cut in the congestion window in the case of TCP-ECN leads to a lower-latency solution. A new feature is being offered on modern high-end switches which offer the possibility to forward non-ECT-capable traffic while having AQM configured to use ECN. This feature allows the non-ECT-capable traffic to bypass the AQM thresholds and grow until the egress queue limit [90]. Yet, this feature is only available on new high-end switches, which for example, have a buffer density per port near 10 MB. From the results presented in this work, we showed the benefits from a true simple marking scheme Chapter 6 High Throughput and Low Latency on Hadoop Clusters 72 using the instantaneous queue length being implemented on switches with much lower buffer density per port. Once current network equipment receive such update it could translate to improvements in both throughput/performance and network latency, with an affordable solution achieved through a simple firmware update. 6.7 Conclusions In this chapter, we presented a novel analysis on how to reduce network latency on MapReduce clusters without degrading TCP throughput performance. We characterized the problem which previous work failed to identify. We demonstrated why it is inadvisable to use Active Queue Management to mark ECT-capable packets on MapReduce workloads. We presented comparable results with recent works that tried to reduce the network latency found on MapReduce clusters, and which failed to identify the real problem when DCTCP or TCP-ECN flows rely on AQMs to mark ECT-capable packets. We also demonstrate that a true simple marking scheme not only simplifies the configuration of marking ECT-capable packets, but it also translates to a more robust solution. Doing so, we were able to avoid the 20% loss in throughput reported by previous work, and we even achieved a boost in TCP performance of 10%, in comparison to a DropTail queue. Yet, our gains in throughput were accompanied with a reduction in latency of about 85%. The results presented in this chapter are not exclusive but can also expected to be reproduced on other type of workloads that present the characteristics described in our problem characterization. Finally, we showed that a true simple marking scheme should not only be supported in deep buffer switches. Commodity switches, as typically employed in MapReduce clusters, could also achieve promising results in terms of throughput and network latency. The results in this chapter can help reduce Hadoop runtime and allow low-latency services to run concurrently on the same infrastructure. Chapter 7 Energy Savings and Lower Latency Networks This chapter analyses the impact of Packet Coalescing in the context of network latency. Then, combining Packet Coalescing with Active Queue Management, we investigate how to design and configure interconnects to provide the maximum energy savings without degrading cluster throughput performance or network latency. 7.1 Summary An important challenge of modern data centres is to minimise energy consumption, a significant proportion of which is due to the network. Network energy savings are possible using Energy Efficient Ethernet (EEE) IEEE 802.3az, which is already supported by a large number of NICs and switches. In the Chapter 4 we presented the first study from the impact of Energy Efficient Ethernet on MapReduce workloads [27]. Overall, we found that although substantial energy savings are available, the packet coalescing settings must be carefully configured to avoid a substantial loss in performance [27]. Meanwhile, network switches are steadily increasing their per-port buffer capacities. New SDRAM-based products are being launched with per-port buffer densities of up to ten times larger [25]. Large buffers increase throughput, but they can exacerbate the Bufferbloat problem [26], with network latencies reaching tens of milliseconds for certain classes of workloads. 73 Chapter 7 Energy Savings and Lower Latency Networks 80 Figure 7.3: Packet coalescing impact on runtime and throughput considering different buffer sizes Finally, we analyse Figure 7.4. The values are normalized to the ideal energy consumption, which means zero energy for sleep and wake operations. On our benchmark we verify that the 10GbE links consumed more than five times the energy consumption per NIC. We zoomed-in the bars to obtain a clearer comparison for the other settings. Energy Efficient Ethernet is able to significantly reduce the energy consumption but it is still almost 80% from ideal. It was therefore possible to obtain considerable gains with Packet Coalescing. The best gains were obtained using 1ms1000 with deep buffers, reaching near only 5% more energy than the ideal model, while 120us100 was near 10% from that and 500us500 in between these two settings. Figure 7.4: Packet Coalescing impact on energy consumption of 10GbE considering different buffer sizes We move on with the next set of experiments, which consist of: enabling ECN on the TCP end-points, enabling ECN’s marking feature on each RED egress buffer, and using the configuration described in Section 7.3. We expect to not only reduce network Chapter 7 Energy Savings and Lower Latency Networks 81 latency but also maintain cluster throughput and specially maximize the energy savings for the 10GbE links, obtained with Packet Coalescing. Figure 7.5 shows the impact of congestion control on network latency for deep buffers, which will be the baseline for the results in the next set of results. Figure 7.5: Congestion control impact on network latency on deep buffers 7.4.2 Combining Packet Coalescing with ECN/AQM/RED Figure 7.6: Runtime, Latency, Throughput and Energy values for Packet Coalescing combined with RED and ECN Figure 7.6 brings the detailed results considering our four metrics described on Section 7.3. Starting by Hadoop performance, we can see that the two more agressive settings decreased cluster throughput, which also impacted on a larger execution time. While 500us500 impacted on approximately 25% performance degradation, the more aggressive Packet Coalescing 1ms1000 inflicted a loss on performance that was higher than 50%. Proactive congestion control limits the buffering required to keep throughput performance compared to the baseline. The larger latency inflicted by larger coalescing times increases the Bandwidth-Delay Product (BDP), so maximizing throughput Chapter 7 Energy Savings and Lower Latency Networks 82 requires a greater number of packets in flight and therefore more buffering, which is restrained by the employed proactive congestion control. Analyzing the energy consumption, we also see that the two more aggressive Packet Coalescing settings no longer provide the best energy savings. The increase on execution time was responsible for losing all the greatness on energy savings we verified when Packet Coalescing is used stand-alone. Finally, we verified an overall reduction on network latency as expected. Considering the Packet Coalescing settings, the network latency suffered an increment of almost 50% for shallow buffers when using the more aggressive Packet Coalescing settings. For deep buffers the extra latency was responsible for a smaller increment of 10%. Still, when combining our metrics together, we can no longer verify any benefit of utilizing 1ms1000 or even 500us500. 7.4.3 Summary of Results Figure 7.7: Runtime, Latency, Throughput and Energy values for Packet Coalescing combined with RED and ECN Figure 7.7 brings the big picture with all the four metrics combined. We included a star to highlight the best combination which includes latency compared to the baseline, energy near 10% the ideal model and finally no verified loss on performance and cluster throughput. Considering 120us100 packets, we demonstrate it is possible to achieve a much lower network latency while still maintaining the interconnect energy savings obtained by utilizing Packet Coalescing. Chapter 7 Energy Savings and Lower Latency Networks 83 7.5 Discussion and Recommendations The results presented in this chapter show that Hadoop clusters can significantly benefit from packet coalescing combined with proactive congestion control mechanisms. The results presented here are not exclusive to Hadoop, but are expected to be reproduced on other types of workload that present the following three characteristics: •East–west traffic patterns and long-lived TCP flows with bursty communication. •TCP flows configured to use ECN, either as TCP–ECN or DCTCP, and switches configured to mark packets. •NICs and switches that implement Energy Efficient Ethernet with the option to coalesce packets. We now distill our most important recommendations. Recommendations for equipment vendors: Due to the potential energy savings, equipment vendors should consider implementing Packet Coalescing in their NICs and switches. It is important, however, to offer some reconfigurability, since depending on the workload, more aggressive settings may be desired while for other classes of workloads, less aggressive settings may already provide good energy savings. As a pratical example, some vendors implement coalescing on the receiver side, which is typically named Interrupt Coalescing. Interrupt Coalescing is a related feature that is typically implemented with the possibility for configuration by the network administrator. Our simulations with packet coalescing for EEE explicitly implements it on both sender and receiver sides, which can be useful at the servers layer (NIC’s can aggregate more packets from different flows before transmitting it), and also on switches layer where many flows from different ingress ports are being redirected to the same egress (output) port. Another difference to Interrupt Coalescing is that it is typically recommended to use lower values as extra latency could decrease the performance of latency-sensitive workloads [83]. Currently available Energy Efficient Ethernet NICs still don’t have option to configure the packet coalescing settings. We believe that as the Interrupt Coalescing, Packet Coalescing will also be implemented as a configurable feature by network manufactures in the near future. Recommendations for network administrators: Energy Efficient Ethernet NICs do not currently offer the possibility to adjust the configuration of the Packet Coalescing settings. We argue that EEE NICs should in future offer such flexibility. If this does Chapter 7 Energy Savings and Lower Latency Networks 84 finally happen, we recommend this work as a guideline to obtain maximum energy savings without degrading Hadoop performance or network latency. For batch workloads where latency is not a concern, we recommend the more aggressive settings which have its extra latency compensated with more buffering and packets in-flight. If reducing network latency is the major concern, we recommend the utilization of some congestion control mechanism as ECN or DCTCP without discarding the utilization of Packet Coalescing. We demonstrated it is feasible and possible to combine both techniques with no loss on the four metrics considered on this work. 7.6 Conclusions This chapter has presented a novel analysis of the impact of Energy Efficient Ethernet (EEE) and Packet Coalescing on network latency for Hadoop Clusters. Combining Packet Coalescing with ECN plus AQM, which is already found on network switches, delivers network latencies comparable to that found for ideal on/off links, without EEE’s sleep and wake overheads. We were also able to reduce the energy consumption from 10GbE links by 70%, compared to default EEE, which does not use Packet Coalescing. In summary, we suggest that equipment vendors implement Packet Coalescing and also provide the ability for operators to modify the Packet Coalescing configuration settings. In turn, we suggest that network administrators use the recommendations in this chapter together with knowledge of their application’s network latency requirements. Doing so will provide the best possible energy savings without compromising performance or latency requirements. Chapter 8 Conclusion and Future Work Big Data workloads have emerged in the recent past and have undergone a constant evolution to fit application requirements which aim to satisfy users needs from a universe of currently available online services. As we previously showed a major portion, corresponding to more than 3/4 of total global traffic, resides inside the Data Center. This traffic has all the sources and destinations being the servers themselves, within the Data Center infrastructure and the Big Data workloads are considered responsible for such generated traffic. The Hadoop ecosystem, which has been adopted by the biggest Internet companies these days is one of the most famous Big Data frameworks, responsible for processing huge data sets on distributed clusters. Such development has been supported by the same companies that require its utilization and with such enormous support the platform has evolved from a batch-oriented processing workload to a more responsive platform providing real time and online processing services. As the platform evolves, investments and improvements in infrastructure are made necessary. First, it is desired to keep up with the generated traffic while also reducing its energy footprint; and second to improve responsiveness from the infrastructure itself, allowing designers and users to benefit from new classes of applications. The network is commonly described as the bottleneck present of Hadoop infrastructure. Reasons relate to the fact that Data Centers face a distinct class of problems regarding the Local Area Network traffic. For example, most Data Center applications are written using TCP as the transport protocol. TCP was originally designed for Wide Area Networks. Therefore some problems that would never happen on a WAN arise on LANs, mainly related to the difference of latency and to the distributed nature of Data Center networks. While WANs will have their traffic latency measured in hundreds 85 Chapter 8 Conclusion and Future Work 86 of milliseconds, LANs will operate on a much lower magnitude, typically hundreds of microseconds. Before applying Energy Efficient Ethernet to reduce interconnect energy consumption, we took into consideration the phenomenona described in Chapter 2. We did the same when we applied AQM and congestion control (ECN) to improve performance and reduce network latency. Yet, the task of dealing with each of these major challenges was rewarded with other several minor problems that we had to solve, which after being tackled will help to improve current generation of interconnects for clusters running Big Data frameworks. At this point, we believe the problems solved in this thesis can help to improve not only Hadoop clusters but also any Big Data workload that fits the problem and characterization we described throughout the development of this thesis. Specifically mentioning the energy problem, we concluded that for Hadoop clusters, state-of-the-art Energy Efficient Ethernet can be drastically improved if it starts to support Packet Coalescing. Although EEE can already be used and contrary to what we expected it can provide virtually no loss in performance, the Packet Coalescing technique should also be implemented, offering some option for reconfigurability to the network administrators, as depending on the workload and cluster configuration, it can incur on extra latency. Yet, for aggregation links, it could translate into an energy consumption reduced by almost 80%. Considering the performance problem, we achieved the understanding as to why AQMs are not easy to configure on such type of workloads and even in some cases it can decrease throughput performance by unacceptable 20%. We proposed two solutions to modify how switch egress queues handle ECN marked packets. The greatest benefit would be for shallow buffer switches which can offer great benefit to cluster throughput with its performance increased by 10% while also reducing latency by 40%. On deep buffer switches, our proposed solution can reduce network latency by 85% while maintaining virtually the same performance for cluster throughput. At last, we verified that our solution offer robustness configuration, while the state-of-the-art requires a big effort to achieve similar, yet inferior performance. We conclude this chapter presenting what in our vision can be carried out on future work to derive from our thesis. 8.1 Future work Regarding cluster design and topology, during the development of our thesis we followed the guidelines provided by the two major companies that offer custom solutions Chapter 8 Conclusion and Future Work 87 and deployments of Hadoop clusters. Cloudera and Hortonworks are today the two biggest players in number of deployments so we believe our virtual clusters were carefully designed taking in account their considerations so we could obtain more realistic figures for the results presented in this thesis. Mid-sized Haddop clusters are recommended to be organized on a Leaf-Spine topology for its focus on east-west traffic among servers of the same cluster. Yet, the Leaf-Spine topology is indeed organized in a two-tier clos architecture. It can ”scale out” to a fairly large numbers of servers by adding more switches although it also brings a concern to the amount of cables and the cost of the network equipment required, once each leaf switch must be connected to each spine switch [69]. We believe the results seen on this work to remain similar when deployed on a cluster organized on a traditional hierarchical fat-tree with three layer network, which is more suitable for north-south traffic but similarly to the Leaf-Spine topology, is also categorized as a clos architecture. Regarding hardware specifications and configurations, Hadoop is still targeting commodity hardware and Hortonworks recommends to not spend more than 20% of the available budget on network equipment including NICs from the servers [75]. Therefore, the starting point for any Hadoop cluster is the configuration of 1GbE on servers and Top of Rack switches, and 10GbE on the aggregation level. This was a solid configuration in 2014 when we started this work and it is still a starting point for small clusters today [91] [75]. Yet, the industry is starting to push faster NICs to the servers and aggregation switches. As a higher performance solution, 10GbE NICs are being considered for servers while 40GbE NICs are being considered for the aggregation level. We believe that, as a future work to be carried out from this thesis, one could follow the industry trend of pushing for higher performance network equipments. Considering that, it would be of a great value to reproduce our experiments using these faster NICs. Applying 10/40GbE NICs instead of 1/10GbE would require new analysis on Energy Efficient Ethernet as the energy profile might change. Also, since there is a big improvement on the network capabilities which leads to expected transmitting packets on a faster pace, it could lead to different buffer utilization profiles and therefore, some new findings might be obtained from Packet Coalescing and AQMs. Finally, we believe that if the industry follows our suggestions to implement Packet Coalescing in EEE NICs and also implements a true marking scheme on network switches, an evaluation on real hardware should be performed to confirm our findings from this work. Regarding performance improvements, Luiz Andre Barroso, distinguished Google fellow researcher recently shared his view from two of the three most important problems in the Data Center to achieve big amount of data processed in little amount of time (”big data, little time”): Energy Proportionality and Tail latency [92]. Our work can be used Chapter 8 Conclusion and Future Work 88 to achieve energy proportionality for Hadoop cluster networks and we consider to have given the first step towards the direction of reducing the tail latency as we successfully reduced the average network latency found on these clusters from a few milliseconds to hundreds of microseconds. The techniques analysed on this work focused on reducing the average network latency [86], therefore we believe that reducing tail latency will require a different methodology to implement techniques not covered throughout the development of this thesis. Regarding other frameworks, workloads and benchmarks, we believe the results from this work can be successfully reproduced in workloads that follow similar characterization as we presented as discussions on the previous chapters. As a framework that could benefit from this work, Apache Spark executes in-memory computations to eliminate disk spills found on MapReduce framework which therefore, reduces the data processing time and makes this framework more suitable for real time data analytics [93]. As a matter of fact, for non batch-oriented benchmarks, Spark can be from ten to a hundred times faster than MapReduce. Deploying Energy Efficient Ethernet on these clusters could likely help with achieving better energy proportionality on network link although packet coalescing may not be suitable to be deployed on a Spark infrastructure, as it could increase the network latency of real time applications. On the other hand, with the purpose of reducing network latency, the proactive congestion control techniques presented on this thesis could nicely fit this real time latency-sensitive framework. Another benchmark to be studied on future work, Graph500 is a benchmark that is typically run in HPC clusters to rank these computing systems and their capacity to run Big Data applications [94]. HPC applications are typically written using Message Passing Interface (MPI) library, which under the hood can be implemented using either Stream Control Transmission Protocol (SCTP) or TCP as the transport protocol [95]. Both SCTP and TCP support ECN [96], so proactive congestion control could also improve latency on these clusters when running Big Data applications. On the other hand, these clusters also run heterogenous class of applications with low latency restringments and Energy Efficient Ethernet was found to impact application performance, even without packet coalescing due to collective dependent aggregation messages from MPI parallel programming paradigm [17]. These suggestions conclude our thoughts for future work. We conclude this thesis with the publication list related to the contributions obtained from this work. Chapter 8 Conclusion and Future Work 89 8.2 List of Publications •[LCN15] Renan Fischer e Silva and Paul M. Carpenter, Exploring Interconnect Energy Savings Under East-West Traffic Pattern of MapReduce Clusters. on the 40th IEEE Conference on Local Computer Networks 2015 [27]. 3Nominated for The Best Paper Award (top 3 best papers). •[LCN16] Renan Fischer e Silva and Paul M. Carpenter, Controlling Network Latency in Mixed Hadoop Clusters: Do We Need Active Queue Management? on the 41st IEEE Conference on Local Computer Networks 2016 [29]. •[CLUSTER17] Renan Fischer e Silva and Paul M. Carpenter, High Throughput and Low Latency on Hadoop Clusters using Explicit Congestion Notification: The Untold Truth on the 19th IEEE International Conference on Cluster Computing 2017 [30]. •[LCN17] Renan Fischer e Silva and Paul M. Carpenter, Interconnect Energy Savings and Lower Latency Networks in Hadoop Clusters: The Missing Link on the 42nd IEEE Conference on Local Computer Networks 2017 [31]. •[Transactions on Networking] Renan Fischer e Silva and Paul M. Carpenter, Energy Efficient Ethernet on MapReduce Clusters: Packet Coalescing To Improve 10GbE Links on the IEEE/ACM Transactions on Networking, October 2017 [28]. •[- 2018] Renan Fischer e Silva and Paul M. Carpenter, TCP Proactive Congestion Control Revamped: the Marking Threshold, under review. Bibliography 96 [70] A. Vahdat, M. Al-Fares, and A. Loukissas, “Scalable commodity data center network architecture,” July 9 2013. US Patent 8,483,096. [71] F. Testa and L. Pavesi, Optical Switching in Next Generation Data Centers. Springer, 2018. [72] “Fat-tree design — clusterdesign.org.” http://clusterdesign.org/fat-trees/. Accessed: 2018-02-27. [73] E. Networks, “Extreme networks: Big data a solutions guide,” tech. rep., 2014. [74] C. Raiciu, S. Barre, C. Pluntke, A. Greenhalgh, D. Wischik, and M. Handley, “Improving datacenter performance and robustness with multipath tcp,” in Proceedings of the ACM SIGCOMM 2011 Conference, SIGCOMM ’11, (New York, NY, USA), pp. 266–277, ACM, 2011. [75] Hortonworks, “Cluster planning guide.” http://docs.hortonworks. com/HDPDocuments/HDP2/HDP-2.6.4/bk_cluster-planning/content/ hardware-for-slave.1.html. Accessed: 2018-02-27. [76] “Uscs: Packet buffers.” http://people.ucsc.edu/~warner/buffer.html. Accessed: 2018-02-27. [77] Y. Chen, A. Ganapathi, R. Griffith, and R. Katz, “The case for evaluating MapReduce performance using workload suites,” in 2011 19th International Symposium on Modeling, Analysis Simulation of Computer and Telecommunication Systems (MASCOTS), pp. 390–399, IEEE, July 2011. [78] Y. Chen, S. Alspaugh, and R. Katz, “Interactive analytical processing in big data systems: A cross-industry study of MapReduce workloads,” Proc. VLDB Endow., vol. 5, pp. 1802–1813, Aug. 2012. [79] P. S. Center, “Pittsburgh supercomputing center: Enabling high performance data transfers.” http://www.psc.edu/index.php/networking/641-tcp-tune# options. Accessed: 2018-02-27. [80] N. Tiwari, S. Sarkar, U. Bellur, and M. Indrawan, “Classification framework of mapreduce scheduling algorithms,” ACM Comput. Surv., vol. 47, pp. 49:1–49:38, Apr. 2015. [81] G. Wang, A. Butt, H. Monti, and K. Gupta, “Towards synthesizing realistic workload traces for studying the hadoop ecosystem,” in Modeling, Analysis Simulation of Computer and Telecommunication Systems, 2011 IEEE 19th International Symposium on, pp. 400–408, July 2011. Bibliography 97 [82] M. Isard, V. Prabhakaran, J. Currey, U. Wieder, K. Talwar, and A. Goldberg, “Quincy: fair scheduling for distributed computing clusters,” in Proceedings of the ACM SIGOPS 22nd symposium on Operating systems principles, pp. 261–276, ACM, 2009. [83] “Ibm knowledge center: Interrupt coalescing.” http://www.ibm.com/support/ knowledgecenter/ssw_aix_61/com.ibm.aix.performance/interrupt_coal. htm. Accessed: 2018-02-27. [84] M. Chowdhury, M. Zaharia, J. Ma, M. I. Jordan, and I. Stoica, “Managing data transfers in computer clusters with orchestra,” in Proceedings of the ACM SIGCOMM 2011 Conference, SIGCOMM ’11, (New York, NY, USA), pp. 98–109, ACM, 2011. [85] T. White, Hadoop: The definitive guide. ” O’Reilly Media, Inc.”, 2012. [86] S. Liu, H. Xu, and Z. Cai, “Low latency datacenter networking: A short survey,” CoRR, vol. abs/1312.3455, 2013. [87] S. N. Ismail, H. A. Pirzada, and I. A. Qazi, “On the effectiveness of codel in data centers,” tech. rep. [88] G. Judd, “Attaining the promise and avoiding the pitfalls of tcp in the datacenter,” in 12th USENIX Symposium on Networked Systems Design and Implementation (NSDI 15), (Oakland, CA), pp. 145–157, USENIX Association, 2015. [89] P. Teymoori, D. Hayes, M. Welzl, and S. Gjessing, “Even lower latency, even better fairness: Logistic growth congestion control in datacenters,” in 2016 IEEE 41st Conference on Local Computer Networks (LCN), pp. 10–18, Nov 2016. [90] Cisco, “Cisco Nexus 9000 Series NX-OS Quality of Service Configuration Guide, Release 6.x.” [91] “How-to: Select the right hardware for your new hadoop cluster.” https://blog.cloudera.com/blog/2013/08/ how-to-select-the-right-hardware-for-your-new-hadoop-cluster/. Accessed: 2018-02-27. [92] L. A. Barroso, “Landheld computing,” in International Solid-State Circuits Conference 2014, ISCCC ’14, 2014. [93] “Apache spark - lightning-fast cluster computing.” https://spark.apache.org/. Accessed: 2018-02-27. Bibliography 98 [94] P. Fuentes, J. L. Bosque, R. Beivide, M. Valero, and C. Minkenberg, “Characterizing the communication demands of the graph500 benchmark on a commodity cluster,” in 2014 IEEE/ACM International Symposium on Big Data Computing, pp. 83–89, Dec 2014. [95] “Mpi-sctp.” http://www.cs.ubc.ca/labs/dsg/mpi-sctp/. Accessed: 2018-02-27. [96] “Why is sctp needed given tcp and udp are widely available?.” http://www.isoc. org/briefings/017/index.shtml. Accessed: 2018-02-27.