scieee AI-readable full text Open interactive document viewer

Incentives for sharing heterogeneous resources in distributed systems : a participatory approach

Vega d'Aurelio, Davide

Abstract

Contributory and volunteer computing ecosystems built around a community of participants need, like any other common-pool resources, an adaptive governance mechanism to guarantee the sustainability of the ecosystem. Reciprocity incentive mechanisms based on economic principles have been proved efficient solutions to regulate the resource sharing and allocation in large computing architectures, guaranteeing a direct retribution for each individual contribution even in presence of misbehaving users. However, while these mechanisms preserve the macro-equilibrium of the computational shared resources (e.g., CPU or memory), participants with fewer resources face problems competing for the attention of other members with more resources to cooperate with; making it difficult to apply such principles in practice. Additionally, active members of the community contributingin other aspects (e.g., doing administrative tasks or developing software) are not contemplated in traditional schemes although their time and effort are also part of the common-pool resource and hence, should be retributed somehow. The aim of this thesis is to revisit some of the architectural aspects of current systems and propose a framework to govern contributory and volunteer computing ecosystems in a fairer way based on principles of participatory economics. Our main contributions in this thesis are threefold. First, we examine the mechanisms ruling the resource sharing and propose a new reciprocal incentive mechanism that measures participants¿ effort on sharing resources instead of their direct contribution, so it increases the collaboration opportunities of users with fewer resources in heterogeneous scenarios. Second, we propose a regulation mechanism for allocating new computational devices and distribute new resources within them, with the objective of increasing their impact in the common-pool resources when the demand of resources is supplied by the community. Third, we propose new methods to detect and analyze the social positions and roles of the community members, enabling the governance mechanism to be adapted taking into account members' effort on several tasks not considered otherwise. The main contributions of this thesis conform a single framework that has been tested experimentally, using simulations, in a resource-sharing environment with non-strategic participants. Potentially, the mechanisms developed in this thesis will open new opportunities to apply political-economic and social ideas to the new generation of volunteer, contributory or grid computing systems; as well as other commonpool resources scenarios.

Full text

Incentives for sharing heterogeneous resources in distributed systems: a participatory approach DAVIDE VEGA D’AURELIO UNIVERSITAT POLITÈCNICA DE CATALUNYA Departament of Computer Architecture Incentives for sharing heterogeneous resources in distributed systems: a participatory approach BY DAVIDE VEGA D’AURELIO November 2015 ADVISORS DR. FELIX FREITAG DR. ROC MESEGUER COMPUTER NETWORKS AND DISTRIBUTED SYSTEMS GROUP DEPARTAMENT OF COMPUTER ARCHITECTURE UNIVERSITAT POLITÈCNICA DE CATALUNYA CASTELLDEFELS SPAIN Dissertation for the degree of Doctor of Philosophy at Universitat Politècnica de Catalunya in Computer Architecture with specialization in Communication Networks and Distributed Systems 2015 Incentives for sharing heterogeneous resources in distributed systems: a participatory approach.November 2015. Davide Vega D’Aurelio dve[email protected] Computer Networks and Distributed Systems Group Universitat Politècnica de Catalunya Esteve Terradas, 7 08860 - Castelldefels (Spain) This dissertation is available on-line at the Theses and Dissertations On-line (TDX) repository, which is coordinated by the Consortium of Academic Libraries of Catalonia (CBUC) and the Supercomputing Centre of Catalonia Consortium (CESCA), by the Catalan Ministry of Universities, Research and the Information Society. The TDX repository is a member of the Networked Digital Library of Theses and Dissertations (NDLTD) which is an international organization dedicated to promoting the adoption, creation, use, dissemination and preservation of electronic analogues to the traditional paper-based theses and dissertations This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/ by-sa/4.0/ or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA. Alla mammma Abstract CONTRIBUTORY and volunteer computing ecosystems built around a community of participants need, like any other common-pool resources, an adaptive governance mechanism to guarantee the sustainability of the ecosystem. Reciprocity incentive mechanisms based on economic principles have been proved efficient solutions to regulate the resource sharing and allocation in large computing architectures, guaranteeing a direct retribution for each individual contribution even in presence of misbehaving users. However, while these mechanisms preserve the macro-equilibrium of the computational shared resources (e.g., CPU or memory), participants with fewer resources face problems competing for the attention of other members with more resources to cooperate with; making it difficult to apply such principles in practice. Additionally, active members of the community contributing in other aspects (e.g., doing administrative tasks or developing software) are not contemplated in traditional schemes although their time and effort are also part of the common-pool resource and hence, should be retributed somehow. The aim of this thesis is to revisit some of the architectural aspects of current systems and propose a framework to govern contributory and volunteer computing ecosystems in a fairer way based on principles of participatory economics. Our main contributions in this thesis are threefold. First, we examine the mechanisms ruling the resource sharing and propose a new reciprocal incentive mechanism that measures participants’ effort on sharing resources instead of their direct contribution, so it increases the collaboration opportunities of users with fewer resources in heterogeneous scenarios. Second, we propose a regulation mechanism for allocating new computational devices and distribute new resources within them, with the objective of increasing their impact in the common-pool resources when the demand of resources is supplied by the community. Third, we propose new methods to detect and analyze the social positions and roles of the community members, enabling the governance mechanism to be adapted taking into account members’ effort on several tasks not considered otherwise. The main contributions of this thesis conform a single framework that has been tested experimentally, using simulations, in a resource-sharing environment with non-strategic participants. Potentially, the mechanisms developed in this thesis will open new opportunities to apply political-economic and social ideas to the new generation of volunteer, contributory or grid computing systems; as well as other commonpool resources scenarios. vii Resum ELS sistemes de computació voluntària o contributiva construïts al voltant de comunitats de participants necessiten, com qualsevol altre common-pool resource, mecanismes de govern adaptatius que garanteixin la sostenibilitat de l’ecosistema. Els incentius recíprocs basats en principis econòmics han demostrat ser solucions eficients per regular la compartició i assignació de recursos en arquitectures de gran escala, garantint una retribució directa per cada contribució, inclús en presència d’usuaris maliciosos. No obstant això, mentre aquests mecanismes preserven el macro equilibri dels recursos compartits (p. ex., CPU o memòria), els participants amb menys recursos tenen problemes per competir per l’atenció dels altres membres amb més recursos quan volen cooperar amb ells; fent difícil en la pràctica aplicar aquests principis. A més a més, els membres actius de la comunitat contribuint en altres aspectes (p. ex., realitzant tasques administratives, o desenvolupant software) no es torben contemplats en els esquemes tradicions tot i que el seu temps i esforç també son part del common-pool resource i, per tant, haurien de ser compensats. L’objectiu d’aquesta tesi és revisar alguns dels aspectes d’arquitectura que fan que aquestes estratègies no funcionin i proposar un framework per governar ecosistemes de computació voluntària o contributiva d’una manera més justa utilitzant principis de participació econòmica. Primer, examinem els mecanismes que controlen la compartició de recursos i proposem un nou mecanisme d’incentiu recíproc que mesura l’esforç dels participants mentre comparteixen recursos en comptes de la seva contribució directa, de manera que les oportunitats per cooperar incrementen pels usuaris amb menys recursos. En segon lloc, proposem un mecanisme per regular l’assignació de noves màquines de computació i recursos, amb l’objectiu de millorar el seu impacte en escenaris amb common-pool resource quan la demanda de recursos ha de ser subministrada col·lectivament. Tercer, proposem nous mètodes per detectar i analitzar els rols i posicions socials dels membres de la comunitat, permetent que els mecanismes de govern es puguin adaptar tenint en compte l’esforç dels participants en altres tipus de tasques prèviament no contemplades. Les principals contribucions d’aquesta tesi formen un únic framework que ha estat provat experimentalment, utilitzant simulacions, en un escenari de compartició de recursos amb participants no estratègics. Potencialment, els mecanismes desenvolupats en aquesta tesi obriran noves oportunitats per aplicar idees politicoeconòmiques i socials a la nova generació de sistemes de computació voluntària, cooperativa o grid, així com escenaris common-pool resource. viii Preface List of Papers As the main author, I took responsibility for the work in all the papers. Ideas and results have been discussed with my second advisor and occasionally with the first one and, when necessary, with the other authors involved. [P1] Vega, D., Meseguer, R., Freitag, F., and Ochoa, S. F. Understanding Collaboration in Volunteer Computing Systems. Journal of Universal Computer Science, 20(13):1738–1765, November 2014. DOI:10.3217/jucs-020-13-1738 Short summary This paper presents a complete study aimed to understand the impact of adopting a particular attitude to contribute with local hardware resources in a distributed shared environment. Credits The work was planned with my second advisor. I built the simulator, gathered the data and did the data analysis. Results were discussed and written with my second advisor and the fourth author. Assessment Q4 JCR-Science Edition (2013). [P2] Vega, D., Meseguer, R., Freitag, F., and Ochoa, S. F. Effort-based incentives for resource sharing in collaborative volunteer applications. In Proc. of IEEE 17th International Conference on Computer Supported Cooperative Work in Design. Whistler, BC, Canada, IEEE, 2013, pages 37–42. DOI:10.1109/CSCWD.2013. 6580936 Short summary This paper explores and analyzes a new set of reciprocity incentives, based on participatory economics principles for sharing hardware resources in a distributed shared environment. Credits The idea was proposed by my first advisor, while the work was planned with my second advisor. I built the simulator, gathered the data and did the data analysis. Results were discussed and written with my second advisor and the fourth author. ix Co-authors Felix Freitag. Associate Professor at the Computer Architecture Department, Universitat Politècnica de Catalunya (UPC). His background includes performance evaluation of distributed systems, integration of visualization, and mechanisms for resource allocation in distributed systems. Currently, he is leading the EU funded project Clommunity. Esunly Medina. PhD Candidate at the Computer Architecture Department, Universitat Politècnica de Catalunya (UPC). Her main research activities have been focused on ad hoc networks and routing protocols, mobile collaborative applications, context awareness, resource sharing in mobile collaboration, information visualization and distributed displays. Roc Meseguer. Associate Professor at the Computer Architecture Department, Universitat Politècnica de Catalunya (UPC). His background include resources allocation for large-scale systems, decentralized systems applied to ambient intelligent, computer-supported cooperative work (CSCW) and learning (CSCL) and community networks based on bottom-up initiatives. Matteo Magnani. Senior Lecturer at the Department of Information Technology, Uppsala Universitet. His main research interests span database and information management systems, specifically uncertain information management and multidimensional database queries, network science and social computing. Sergio F. Ochoa. Associate Professor at the Computer Science Department, University of Chile. His background include mobile/ubiquitous/social computing, collaborative systems applied to urban emergencies and disaster relief efforts and software engineering. Currently, he is the Head of the Computer Science Department, University of Chile. José A. Pino. Full Professor at the Computer Science Department, University of Chile. His background includes computer-supported cooperative work (CSCW), human computer interaction (HCI) and educational computing. Currently, he is the Head of the Collaborative Applications Research Laboratory, University of Chile. Dolors Royo. Associate Professor at the Computer Architecture Department, Universitat Politècnica de Catalunya (UPC). His background include mobile computing, software applications and augmented reality. xvi xvii Research environment The Distributed Systems Group performs research on distributed systems in the areas of models, algorithms and software elements supporting large, complex and dynamic applications. The ultimate motivation for our research is to empower individual people and collectives with distributed computing services, programming models and systems that mask the complexity of the myriad of interrelated software, computing and communication elements and their complex interactions in a large, diverse and changing environment. The group is currently working on large scale and centralized community networks and community clouds, economics oriented distributed systems, particularly on resource allocation mechanisms for Grid and Peer-to-Peer, on decentralized systems applied to Ambient Networks, and on applications supporting cooperative learning (CSCL). My PhD has been supported and funded by two European projects, CONFINE and Clommunity. Most of the contributions in this work have been evaluated and designed for these scenarios. Community Networks Testbed for the Future Internet (CONFINE) Integrated Project (IP) within the 7th European Framework Programme. Universitat Politècnica de Catalunya (UPC). Code: FP7 — 288535. Oct. 2011 - Oct. 2015. The main objective of the project was to build an experimental facility to support experimentally-driven research on Community-owned Open Local IP Networks. My participation in the project gave me access to several Wireless Community Networks — communities built around a common-pool resources with the objective to built, share and maintain network connectivity solutions —, their experimental facilities and open data. It has been extremely useful for giving context and test our theories. A Community networking Cloud in a box (Clommunity).Small or mediumscale focused research project (STREP). Universitat Politècnica de Catalunya (UPC). Code: FP7 — 317879. Jan. 2013 - June 2015. The project aims at addressing the obstacles for communities of citizens in bootstrap- ping, running and expanding community-owned networks that provide community services organized as community clouds. In my research I have focused on developing regulation mechanisms based on collective participation. Additionally, most of the services organized are based on a contributory computing model in which the other contributions of this work are applicable. xviii Outline This thesis consists on three parts. The first part describes the context of the research, the second part presents and analyzes the three main contributions of my work, and the last part discusses how to integrate the different proposals in a real context. The context part aims to provide a general and rich picture of the research objectives of this thesis. The Chapter 1 introduces the research statement and the problem to be addressed. The Chapter 2 introduces each of the research questions, emphasizing how and why they relate with the main research objectives of this thesis. The Chapter 3 reviews the foundation of most of the work presented, while the Chapter 4 describes the specific methodologies, methods and tools used. The second part contains Chapters 5, 6, 7 which describes in detail the main contributions of the present work as isolated problems that need to be addressed to fulfill our ultimate goal. These three chapters are mostly based on the publications list presented above. Thought they are connected with the same context, they should be readable independently and in a different order, provided that the reader is familiar with the corresponding methodologies, methods and tools described in Section I. The final part consists on two chapters. Chapter 8 describes how the different mechanisms proposed in Section II can be used together in a single framework and how to generalize most of the previous results. The Chapter 9 discusses the limitations, implications and potential future directions of this thesis. xix Contents List of Figures xxv List of Tables xxix List of Algorithms xxxi I Context 1 1 Introduction 3 2 Research statements 7 3 Foundations 15 3.1 Computational network architectures for cooperative applications . . . . . . . . . . . . . . . . . . . . . . . 16 3.2 Regulation mechanisms . . . . . . . . . . . . . . . . . . . . . . . . 20 3.3 The study of complex networks . . . . . . . . . . . . . . . . . . . . 23 4 Methodologies and methods 31 4.1 Methodologies ............................ 32 xxi xxii 4.2 Methodsandtools........................... 33 II Contributions 43 5 Effort-based incentives for resource sharing in cooperative applications 45 5.1 Introduction.............................. 46 5.2 Relatedwork ............................. 47 5.3 SystemModel............................. 50 5.4 Experimentalresults ......................... 54 5.5 Designing Effort-based Systems . . . . . . . . . . . . . . . . . . . 64 5.6 Conclusions.............................. 69 6 Compensating locality impact on resource-sharing scenarios 71 6.1 Introduction.............................. 72 6.2 Motivation and problem definition . . . . . . . . . . . . . . . . . . 73 6.3 Relatedwork ............................. 75 6.4 Systemmodel............................. 76 6.5 Hotspot Device Placement Algorithm . . . . . . . . . . . . . . . . 78 6.6 Experimentalresults ......................... 79 6.7 Improving nodes’ placement . . . . . . . . . . . . . . . . . . . . . 91 6.8 Conclusions.............................. 95 7 Social effort on incentives 97 7.1 Introduction.............................. 98 7.2 Motivation and problem definition . . . . . . . . . . . . . . . . . . 99 xxiii 7.3 Relatedwork ............................. 104 7.4 Social positions and roles revisited . . . . . . . . . . . . . . . . . . 106 7.5 Extended blockmodeling framework . . . . . . . . . . . . . . . . . 110 7.6 Results................................. 117 7.7 Conclusions.............................. 125 III Discussion 127 8 Community based incentives for cooperative applications 129 8.1 Introduction.............................. 130 8.2 Graph generation from supporting activities . . . . . . . . . . . . . 131 8.3 Acompleteframework ........................ 135 8.4 Generalizing the incentive mechanism . . . . . . . . . . . . . . . . 146 9 Conclusions 149 List of Figures 1.1 Aggregate amount of uploaded data in a Peer-to-Peer experiment . . 5 3.1 Padgett’s business family network . . . . . . . . . . . . . . . . . . 27 3.2 Multiplexnetwork........................... 28 4.1 Blockmodeling example . . . . . . . . . . . . . . . . . . . . . . . 42 5.1 Average cooperation coefficient per round . . . . . . . . . . . . . . 55 5.2 Cooperation Coefficient for torus and small-world networks . . . . 56 5.3 Node Success Percentage for torus and small-world networks . . . . 57 5.4 CDF of Node Success Percentage in scenarios with resource scarcity (dashed line) and abundance (continuous line) . . . . . . . . . . . . 58 5.5 NSP vs. Resources per node (R)................... 59 5.6 Envy-fairness in a resource scarcity scenario with torus topology . . 60 5.7 Envy-fairness vs. resource per node (R) in a resource scarcity scenario 61 5.8 Histograms of average CPU slots requested, own, shared and free on different scenarios involving a torus topology . . . . . . . . . . . . 63 5.9 Cooperation coefficient and NSP mixing collaboration strategies . . 65 5.10 Results of study of uncertainty in the estimation of number of slots . 66 xxv Part I Context 1 Chapter 1 Introduction Advances in computing and networking technologies improve everyday. The cost reduction of powerful computing devices — including mobile devices — and network connections make them accessible to most people, opening new opportunities for developing distributed architectures aimed to share computational resources. Different computing paradigms appeared to model how resources are shared and/or aggregated and what roles are assigned to the users of the system. In this thesis we focus our attention in computing architectures for cooperative systems, in which the pool of resources is owned and shared by the users themselves — who will act simultaneously as providers and consumers —, like volunteer and contributory computing. In volunteer computing [1, 2] architectures, for example, users combine dedicated and non-dedicated resources to perform complex computational tasks split in smaller jobs run independently on each device. In contributory computing [3], however, jobs run on top of long-lived decentralized services distributed within the users’ computational resources. Despite the differences on how jobs are assigned to each device, in both models the participating users are engaged 3 4 in a cooperative 1process. In both architectures, from the point of view of users, running tasks or deploying services has no apparent cost. The extra resources needed are temporally borrowed from other users transparently by the middleware software, giving them the false sensation of unlimited access to an unbounded amount of resources. In reality, there is a competitive component as the number of aggregated resources is actually limited by the total amount contributed by all users and the dynamics of the system. This cooperative model — where a set of non-excludable goods are used in a competitive environment — has been named as a common-pool resource. Hardin [5] argued that the unrestricted access to a common-pool resource leads to a saturation point, where the individuals demand of resources is higher than the overall provision. The same problem has been found in other distributed schemas, like Peer-to-Peer file-sharing networks, where some users — called free-riders — intend to improve their bandwidth usage by downloading content from the network without contributing with their own content. This problem, formally known as the tragedy of the commons has been subject of research in the fields of economics, sociology and computer science. Contributory-based incentives have been proposed as a regulation mechanism for common-pool resources in decentralized computing architectures. The general idea behind these mechanisms is to distribute the computational resources (e.g., CPU or memory) according to the users past contributions. They have been proved good solutions to maximize the fairness (in terms of resources consumption and contribution) for each user locally. Although these mechanisms guarantee a sustainable computing system, in practice they punish users with fewer resources in highly heterogeneous scenarios. To briefly recall the problem, consider the Figure 1.1 matrix of uploaded traffic between each pair of peers — averaged over all runs — in a Peer-to-Peer experiment performed by Legout et.al. [84]. Darker squares represent more data (bytes). Peers 1 to 13 have a lower upload limit, peers 14 to 27 have a medium one and peers 28 to 40 have a higher upload limit. In the experiment, the common-pool resource — bandwidth — is regulated by a contributory 1 Cooperative in the context of this thesis means that the “interaction is characterized by positive goal interdependence with individual accountability” [4] 5 Figure 1.1: Aggregate amount of uploaded data in a Peer-to-Peer experiment mechanism, that enforces each node to download data proportionally to how much it uploads. While it prevents the collapse of the Peer-to-Peer system, we can observe that, as a consequence, nodes with larger resources tend to cooperate only among them, because otherwise they will see their download ratio limited. Therefore, nodes with fewer resources are constrained to upload and download data only among them too. It results in a cooperative divided scenario, that punishes particularly nodes with fewer resources. Problem statement In computational systems with heterogeneous resources, the cooperation clustering problem might prevent punished nodes from getting enough resources to start their own jobs. Therefore, users will not see any reason to remain in the ecosystem, eventually causing a lack of resources and leading it to its saturation point. The aim of this thesis is to revisit some of the architectural aspects of current systems and propose a framework to govern contributory and volunteer computing ecosystems in a fairer way based on principles of participatory economics. Participatory economics [7] is an economic system based on decision-making, where the rights — the ability of decide of some individual — is proportional 6 to their actions — how much he had made for the community. Therefore, the economic system is based on policies that compensate the effort or sacrifice rather than absolute contributions. Proposed solution Our working hypothesis is that effort-based incentives will achieve higher cooperation than contributory-based incentives and will be more inclusive with those users with fewer resources, provided that the incentives are enforced by some external entity — the community of practitioners. As we will demonstrate, effort-based incentives will normalize the cooperation opportunities of each participant, canceling the negative effects of the heterogeneity. While these strategies are strictly equitable, it is true that nodes with more resources could increase their individual outcome — in detrimental of the overall welfare — by using traditional strategies instead. Therefore, our mechanisms require enforcing its adoption. Ostrom [6] observed that in many common-pool resources (e.g., farming fields) this task is managed successfully as a collective action, instead of lying on some external ruler. Following the same principle, in this thesis we explore the idea of using the community of user of the cooperative applications to enforce our resource sharing mechanism. This solution, however, requires an active participation of users — who will need to devote part of their time and effort to this task. Therefore, our framework also includes a mechanism to encourage users’ participation in supporting tasks by compensating them with extra resources in the common pool. Chapter 2 Research statements The purpose of this research is to guide system designers for cooperative applications and members of common-pool resources on developing government mechanisms more inclusive, by providing fairer collaboration ratios among their members. To that end, in this thesis we propose and evaluate a new framework for regulating resource sharing inside cooperative applications’ communities. To accomplish the above objective this research focuses on designing and understanding new incentives capable of measure, compare and use the effort (e.g., time, computational resources) devoted by the members of communities built around cooperative applications’ to improve the welfare of the community, and use them to increase the overall collaboration. While the specific contributions of this thesis are presented in detail in chapters 5, 6 7 and 8; in this chapter the main research questions and results are introduced. 7 8 Encouraging resource-sharing efforts In cooperative applications, substituting traditional reciprocity-based incentives for others based on participatory economic principles will increase the collaboration opportunities of the poorest participants (in terms of resources)? Assuming that this is true, Does the new incentive guarantee a larger percentage of successful jobs? As we have introduced, the free and unrestricted access to common resources might lead to an unsustainable situation, where the overall demand for computational resources exceeds the current provision. It is a consequence of the selfish behaviour of most users, who believing that their increment of demand would not be noticed they try to increase their profit by consuming more resources than other users. Reciprocity-based incentives [8] has been proved good solutions to regulate how to acces shared resources. By construction, in reciprocity-based incentives the consumption of resources is proportional to some evaluation function, measured directly or indirectly by peers. Almost all reciprocal incentives are also contributory-based, meaning that the evaluation function is proportional to the amount of resources the requesting user had contributed previously with. As an example, in bitTorrent file-sharing system [9] the amount of downloading traffic allowed to an user is, in average, equal to its upload traffic multiplied by a constant. One key advantage of contributory systems 1 is that encourage users’ participation by rewarding their good will, instead of punishing those not participating. Following our example of bitTorrent, the only way users can get more resources from the network is by increasing their contribution and being connected with users with higher cooperation willingness. As a result, users are rearranged by sharing capabilities and willingness into clusters of similarity. Therefore, users with fewer resources are in unfavorably positions when they compete for possible resources, although they are more willing to cooperate than other users with larger amounts of resources. We believe that if users’ reciprocity would be measured in relative terms rather 1 In this thesis we use the term contributory-based incentive as a synonymous of “reciprocal and contributory incentives” 9 than in absolute values, then any participant will have the same opportunities to cooperate. Chapter 5 introduces a series of reciprocity-based incentives inspired by the same principles of participatory economics, which uses indirect and direct relative evaluation functions. We show that these mechanisms lead to scenarios where poorest participants (in terms of resources) achieve higher cooperation ratios than in traditional incentives. It has a positive effect on the sharing architecture, increasing the overall number of jobs fully satisfied. However, as the new mechanisms have been designed to encourage the participation of a small fraction of the population, it could rise concerns in other users with larger amount of resources. Is this incentive observed fair for nodes with larger amount of resources? What are the practical implementation issues? Answering the first question required an extensive analysis of the resources distribution, which shown that our mechanism not only increases the overall cooperation willingness; but also increases the utilitarism of the computational resources. The second question has been addressed by analyzing the robustness of the mechanism in the presence of liers nodes — those misreporting their maximum sharing capacities — and uncertainty in the evaluation function. The main results presented in Chapter 5 related with this contribution were originally reported in [P1, P2]. Provisioning resources in scarcity scenarios In higher heterogeneous architectures for cooperative applications, under which conditions devices with fewer resources are able to cooperate with others? What additional resources are needed to encourage collaboration among them? Is there an ideal ratio between nodes with few and many resources that maximizes the overall cooperation willingness? Lack of computational resources in highly dense overlay topologies might slow down the growth of the community of users, making hard for users to get enough resources for running complex computational jobs without bypass some of its peers. In a direct reciprocity scenario, for example, two connected users 16 3.1 Computational network architectures for cooperative applications The first computational network architecture known for sharing resources dates back to the later 90’s, when the computational capabilities of personal computers became insufficient for the research ongoing in academic institutions. As a solution, in 1994 Foster et.al. [17] created the first network-based computing architecture, based on the aggregation of distributed resources to perform a common tasks, later known as grid computing. The original work on grid architectures focused on creating protocols for the task execution, synchronizations and resource management [18]. Access and rights over the use of the infrastructure were controlled off-line, by the responsibles of the project and later on through a centralized web platform. The single restriction imposed to the use of the shared infrastructure was due the technological impediments to perform large batch tasks. A similar idea of aggregate computational resources was popularized some years later by telecommunication companies under the name of cloud computing. Clouds were created with the purpose of provide computational costly services — not only physical resources — to external users as an integrated service though the network. The governing model was then monetary, as users pay as they consume more services and infrastructure. Two main differences distinguish cloud and grids. Firstly, from the technological standpoint cloud infrastructures reallocate the tasks and jobs into virtual environments inside computational devices hosted by the cloud provider [19], allowing them to maximize the utility of hardware resources. In grid computing, instead, the jobs are executed on top of the operating system. This was one of the main reason of its success and economical viability. The second difference is the change of the sharing model implemented, as in cloud computing the providers and consumers are two different agents. In the cloud computing model, users are borrowing services at a market cost, that are held and managed by someone externally; while in grid computing users are at the same time consumers and producers. 17 3.1.1 Volunteer and contributory computing Volunteer and contributory computing are two different computational models for sharing resources and services in a Peer-to-Peer (P2P) model. P2P models [20] are computer distributed architectures traditionally used for sharing files between geographically disperse users over the network. They are known for enabling the direct exchange of information between end-users, creating a new model of computation where users act at the same time as servers — providing content — and clients — consuming content from other users. Two of the key challenges in P2P systems have been the self-organization of the content and its indexing over a large amount of interconnected computer devices. Overlay networks are an important component to accomplish these goals. They can be viewed as a virtual topology built on top of the real network, able to routing messages among nodes efficiently. Overlay networks have been used since then in multiple distributed systems like volunteer and contributory architectures. Volunteer and contributory computing use then similar network architectures, even if their computational model is different. Volunteer computing [1, 2] systems are intended for combining dedicated and non-dedicated resources to perform complex computational tasks. These tasks, are organized into small jobs — in a similar way as how grid computing divides its tasks into batches — which are then executed independently in multiple peers’ devices. Contributory computing [3] instead, divides splits and executes long-lived decentralized services (e.g., lookup, authentication) and provides an unified framework to access the platform and run complex tasks on top of them. In this thesis we will embrace both concepts, volunteer computing and contributory computing under the definition of cooperative applications because both systems are aimed to share computational resources using a similar approach — executing small jobs on P2P network architectures —, although with different philosophy. In both systems tasks are allocated — in long or short term — and executed over a set of peers connected though an overlay network at no apparent cost, giving users a false sensation of unlimited access to an unbounded amount of resources. The cooperative model of volunteer and distributed computing is very similar to the economical model of common-pool resource scenarios, where consumers 18 have unlimited access to a set of non-excludable goods — computational resources in our case — in a competitive environment. 3.1.2 Beyond the computer architecture: communities Nowadays, most open-source software (OSS) [21] projects have a growing community of users supporting them. In most cases this is due the lack of official support, which highlights the need for some forum where users can share experiences or discuss problems [13]. Additionally, new and easily usable collaborative and management tools, like distributed version control and webbased integration systems, are attracting new users with less experience in OSS that would not participate otherwise. This ecosystem is very similar to the communities of practice described by Wenger [22, 23], where the social aim of learning drives the growth of social ties among members interested in a common shared domain of interest. Some OSS communities have a regulation system to control the quality of the software contributed by its members. While some members feel that, in this context, the mechanism encourages good practices and coding, others feel that the mechanism is more exclusive than inclusive as it creates a barrier for users’ participation [24]. We believe that in cooperative software applications — like volunteer and contributory computing — members of the communities of practice can have a similar role as in open-source software projects governing and ruling the collaboration process between users implicitly. This scenario will have much more similitudes with the governing mechanisms observed by Ostrom [6] and therefore, it will open new opportunities for implementing more inclusive and fair regulation mechanisms in heterogeneous resource scenarios. Community networks Community networks are growing fast as a sustainable model for self-provisioned computer networking infrastructures [25], alternative to other service offerings. This has been accelerated by the reduction of the costs of WiFi and optic networking equipment, combined with the growing popularity of wireless devices, and the lower complexity of network setup. In recent years, a plethora of non-profit initiatives have flourished to create community networks providing, 19 among other services, Internet access. A few examples are guifi.net [26] and FunkFeuer [27]. A characteristic of these initiatives is that the network topology grows organically, without a planned deployment or any consideration other than connecting devices from new participants or locations by linking them to an existing one or improving the network service. Typically, the deployment and management tasks are performed by the community network members, mostly volunteers [28]. Beyond Internet access provision, the community networks’ physical infrastructure is sometimes used by some members to provide applications (e.g. web servers, monitoring systems). As a natural evolution, some community networks are looking for ways to implement higher level services [29], which would require mechanisms to regulate and normalize how their members interact with the computational resources [P3]. The feasibility of implementing such contributory systems is highly dependent on the network participants’ ability to rank and evaluate members’ participation. Community networks are, therefore, an example of common-pool resource [30]. They have a self-provisioned common good shared without barriers among the participants, while managed and governed by community agreements. We used guifi.net and other community networks for gathering and analyzing communities behaviour in a common-pool resource context. Contributory clouds During the last decade, a whole series of new computer network architectures have flourished as a cloud solutions for sharing resources incorporating some principles of the contributory model. One common aspect of these new architectures is their emphasis on the community aspect. As an example, Cloud@Home [31, 32, 33] project proposes an architecture to combine cloud and volunteer computing paradigms. Their model proposes a federated cloud architecture, composed by a set of autonomous clouds built with user-contributed resources and with the capability of consuming and lending resources from and to commercial clouds if needed. Therefore, communities are defined in their context as a computational and architectural entity — each of the autonomous clouds —, which have the control over the resources/services 20 placed on its devices according to a credit mechanism. The main focus of the project is, however, to achieve transparent interoperability among the different autonomous systems. A similar paradigm, named Community Cloud Computing (C3) [34, 35], appeared around the same time as a cloud infrastructure “with nodes potentially fulfilling all roles, consumer,producer, and most importantly coordinator”. In contrast with cloud@Home, C3 architectures are based on a distributed model where shared resources and server functionalities are provided by end-users. This model can empower small communities of users to deploy their own community cloud, based in a commons model. Communities are, in the context of C3 architectures, a social and economic entity which can actively interact with the shared infrastructure and services. In practice, and as far as we know, only the Clommunity [36] project implemented some of these ideas. As we said before, the main objective of the project was running and expanding community-owned networks that provide community services organized as community clouds. While the work developed in this thesis can be viewed as a first step towards incentive mechanisms for community cloud computing architectures, the volunteer and contributory computing models to which it is addressed are architecturally different. Firstly, our proposal is aimed to share computational resources instead of virtualized machines or containers, like in cloud computing architectures. Therefore, other aspects characteristics of cloud systems (e.g., VM migration) are not evaluated in this work. In second term, the sharing model proposed assumed that users participate with cooperative intentions — sharing resources on short-term — instead of being collaborative — with longterm common goals. This difference also holds for contributory architectures as the computational model is based on resources, despite the middleware manages services. 3.2 Regulation mechanisms Regulation mechanisms are a fundamental part of any distributed computing architecture, despite if it implements or not a descentralized model, or if the governing model is collective or individualist. The human being is selfish by nature, and hence it needs bounds (e.g., laws and rules) to enforce its behaviour 21 in a society. In this section we introduce the need of regulation in cooperative applications and review how most of the reciprocity-based incentives work. 3.2.1 The tragedy of the commons Two important characteristics differentiate common goods from other type of resources: rivalrousness and non-excludability. In economics, rivalrousness is a property of some goods which states that its consumption — temporal or definitive — by some individual, precludes its consumption from others. A good is non-excludable if it is not possible to prevent individuals have not paid for it to access it. The main problem is that individuals — potential consumers of the common pool — are aware of the first property (rivalrousness) and try to take advantage from the second one (non-excludability) without noticing that, in fact, the common good might not be infinite. While the access to common goods is unrestricted, users might be tempted to consume as many resources as they can, following the false idea that it will not impact negatively to the overall system. Given the rivalrousness of the system, other users might join them on this strategy until a point of saturation, where the individuals demand of goods is higher than the overall provision. This problem was described as the tragedy of the commons by the ecologist Garrett Hardin [5]. Most of the distributed resource sharing systems presented early on for sharing resources can be considered a common good. As an example, users in Peer- to-Peer file-sharing systems compete by the bandwidth capacity, which is a rivalrousness good — the bandwidth consumed to a user downloading a file cannot be consumed by anyone else — and non-excludable — once the users are logged into the Peer-to-Peer system there is not excludability on bandwidth consumption. To address the problem, most systems implement explicit governing mechanisms with a two-fold objective: (1) encourage users to contribute with more resources, and hence increasing the limit of consumption and (2) regulate how much each user can consume to avoid the tragedy of the commons. 22 3.2.2 Prisoners’ Dilemma framework The prisoner’s dilemma (PD) [37] is a well known framework based on game theory [38] to study the cooperation process between two individuals with opposed goals but common welfare. The game consists on two players who must decide individually — and without the possibility to negotiate — to cooperate (C) or defeat (D) the other co-player. The payoffs for the two actions are shown in Table 3.1. Table 3.1: Payoff matrix of Prisoner’s Game Player decision Co-player Cooperate Co-player Deflection Cooperate (a, a) (c, b) Defection (b, c) (ε, ε)→0 The relations between different possible payoffs follow the rule b > a > ε → 0 > c , which immediately poses the dilemma: if cooperation is costly for the individuals and it benefits only the interaction partners, then Darwinian selection should favor non-cooperating defectors and eliminate the cooperators. This leads to a highly inefficient outcome compared to the results obtained by two cooperators. We have chosen this game because it captures the relation between the commonpool and the local decisions taken by users in our scenario. The cooperation choice (C) represents the willingness of sharing computational resources with other users, which is rewarded in a competitive way: if the co-player(s) choose to share resources too the economy of the common pool will be sustainable and both are rewarded with higher payoffs. Each other choice based on one or more co-players not contributing will lead to an unsustainable system without many resources. 3.2.3 Contributory-based incentives The contributory-based incentives are defined by Rahman et.al. [39] as sharing strategies that only consider the past contributions performed by the co-player, when a player has to decide whether to cooperate or defeat with him. 23 In the Prisoners’ Dilemma game, a well-known strategy to maximize the payoff when using this approach is the Tit-For-Tat (TFT) strategy proposed by Axelrod et.al [40]. Players using this strategy always start their interaction with another co-player cooperating with him and, in the following interactions they replicate the answer of the co-player in the previous round. The success of BitTorrent protocol [41] is an example of a real application using Tit-For-Tat as a core strategy. Resulting from that decision, nodes contributing more resources should receive, in return, a better service than those that contribute less [9, 42]. However, the study and analysis in [43] shows that forgiveness is a necessary condition to achieve cooperation. Consider the example of a player that, for any reason, defeats his co-player one single rounds. If both players are using a TFT strategy, the next round the co-player will choose to defeat, while the previous defeating player will cooperate. From then on, players will switch roles each round between cooperation and defection. Even worst, if by mistake both players defeat the same round each other, then there is no turn back to a cooperation situation unless someone makes another mistake. In cooperative real applications forgiveness is implemented in order to speed-up cooperation reconstruction after single defections. Most BitTorrent clients use opportunistic unchoking to compensate nodes’ mutual defection caused when one peer’s chocking policy replaces one link [44]. 3.3 The study of complex networks It has been shown there are some topological patterns and graph characteristics promoting cooperation among the nodes in real world networks [45, 11]. This section provides a brief description of these models and the main characteristics evaluated during the evaluation of our contributions. For a more complete description of the content described in this section we refer the reader to [46, 15]. 3.3.1 Network models Different network models have been used during the evaluation of this thesis to describe social structures (e.g., interactions among members of a community) and communication networks (e.g., the overlay topologies used by some 24 cooperative applications). Next, there is a summary of the different models used. •Torus : An n-dimensional torus is defined as the Cartesian product of n rings. Symmetric torus networks are built from rings of the same length. A constraint is that the number of nodes must be Dn , where D is the number of nodes in the ring. Under uniform traffic circumstances, torus topologies have the advantage of providing a balanced use of the network resources. A symmetric torus improves the mesh by connecting the head node with the tail node in each row and column. Thus this topology eliminates the edge effect. •Erdős–Rényi (ER) random graph [47] : is a static random model where each link has an independent probability of being formed p . Therefore, in the or G ( n, p )model the probability of any node n having k links is binomial: P(d(i) = k) = n−1 kpk(1 −p)n−k−1(3.1) ER random graphs are considered the most simple random probabilistic networks and are of great interest for comparative analysis. •Waxman random graph : The Waxman’s probability model for interconnecting nodes [48] was used to build a random network topology based on ER model, constrain to some 2D lattice L2 . Edges are introduced between pairs of nodes i, j with a probability that depends on the distance between them: P({i, j}) = αe −d(i,j) βL (3.2) where d ( i, j )is the Euclidean distance from node i to j ; α is the probability of edges between any vertex in the graph and controls the average degree of the network, β is the ratio between long and short edges and L is the maximum distance between vertices. As nodes are distributed uniformly random along the surface, d ( u, v )is our random variable [0 , L ]. Thus, the Waxman model generates networks 25 with lower variability of nodes degree and smaller diameter size than other Internet topology generators [48]. The model also has an exponential clustering coefficient distribution, independent of the network size which is representative of most random graphs. •Watts–Strogatz (WS) [49] is a random graph model that produces network topologies with small-world properties by rewiring edges in a regular ring lattice. Compared with the ER model, the Watts–Strogatz presents a higher clustering coefficient and a power-law distribution of nodes degree as opposed as the Poison approximation shown by ER model. Our interest in this model is to compare how the clustering of certain nodes might influence the cooperation process. •Barabási–Albert (BA) model [50] : is a growing random network based on preferential attachment, which generates network topologies with a small number of nodes acting as hubs (nodes with larger degree), while most nodes have a low degree. According to the incremental growth of the nodes’ power degree, the network starts with an initial set of m0 connected nodes. Each new node is connected to m≤m0 existing nodes with a probability that is proportional to the number of links that the existing nodes already have. Hence, the probability of interconnecting a new node i with node j belonging to the network — the {i, j} edge probability — is given by: P({i, j}) = d(j) Pj∈Vd(j)(3.3) where d ( j )is the current degree of node j to which node i would be attached, V is the set of nodes which joined the network. The lower term is the sum of out-degrees of nodes that previously joined the network. 3.3.2 Properties of networks Table 3.2 summarizes the main characteristics of the network models that we discuss during the analysis and evaluation of our mechanisms: degree distribution, average path length scalability, and clustering coefficient scalability. 32 4.1 Methodologies 4.1.1 Data analysis Wireless community networks — and particularly guifi.net — have been an important source of information to understand the interactions among community members in a common-pool resource [P8]. The analysis of such scenarios required gathering, modeling and analyzing large sets of traces from different public and private sources which include: (1) network description files with topological information, (2) community databases describing the interactions of users on the community web portal, (3) period infrastructure and networking logs from computational devices and (4) all messages exchanged between users on the 43 mailing-lists. Each of the above sources required different analytical techniques for its analysis, based on the purpose of the experiment. In addition to the statistical modeling is worth mentioning fundamental methods of structural analysis (See 4.2.5) and machine learning (See 4.2.4). 4.1.2 Theoretical modeling Game theory and mechanism design have been used to model the competitive/cooperation processes occurring on our scenario. Game theory provides a mathematical framework to describe these processes with functions in terms of rules, possible strategies and/or outcomes. These representations are not intended to be a faithful reflection of reality, rather than a model to capture the main characteristics under the study. Mechanism design, otherwise, intends to make the inverse process: from a desired outcome and a set of possible strategies, tries to find a set of rules that impose the outcome no matter which strategy the actors decide to play — by forcing them to play a specific strategy. Section 4.2.1 provides the basic description of the game used in the simulations. Examples of mechanism design and evaluation can be viewed in Chapter 8. 4.1.3 Simulation evaluation The regulation mechanisms developed in this thesis are intended for regulating scenarios with several properties typical from complex systems. The resource- 33 sharing scenarios are composed by multiple free and non-trivial agents — nodes and resources —, sometimes interacting through multiple channels at once. Given the lack of access to a suitable common-pool resource to develop and implement our mechanisms, we used simulation tools to evaluate our proposals instead of a theoretical approach. Naturally, although many of the results presented are supported by theoretical studies, their whole evaluation is limited to scenarios captured by our simulation model. The specific details of the computational and simulation models are described in Section 4.2. 4.1.4 Social network analysis Social network analysis is considered a series of procedures and methodologies used to investigating social structures [15]. These structures are usually represented as graphs where vertices represent actors (e.g., companies, individuals) and edges represent relations between actors (e.g., friendship). The analytical methods developed have been used in mathematics and social science, but also in other research areas — like information systems [54] — where the structure under analysis can be represented as a network. In this thesis we have used and contributed with new methods for social network analysis. Besides the generic methods for graph analysis we focused on detecting social structures (See Sections 4.2 and Chapter 7). 4.2 Methods and tools 4.2.1 Computational model The theoretical analysis and simulations presented in this thesis are developed under several assumptions about the architecture of the nodes, their hardware resources and the software properties. This unified framework allows us to compare and combine the different solutions presented in the next chapters and to generalize most of the proposals. Our scenarios are composed by a non empty set of N users V = { 1 , 2 , 3 . . . N} , each one contributing with one computing device i (e.g., a handheld, desktop computer, router) with a fixed amount of resources available to be used by itself 34 and other nodes. The nodes can share their resources only with the neighboring nodes defined by the network topology G = ( V, E ), where E = V xV is a set of edges that connect pairs of nodes. The type of resources to be shared are any type of hardware that can be shared in a real situation (e.g., CPU, memory, network interfaces). Therefore, the total amount of resources’ slots available for a device i is represented by the non empty set Ri = {R1 i, R2 i, R3 i. . . RM i} . A slot is then, the minimum amount in which a normalized resource Rk i can be divided and it will be our unit of work. While this definition is enough complete to represent any architecture for cooperative applications, its complexity also makes difficult the analysis of the results. Hence, unless otherwise noted, for the purpose of this work we assume that there is only one type of resource to be shared among nodes, usually noted as Ri . How to generalize our findings to scenarios with more than one resource is discussed on Chapter 8. Applications, services or any other software that requires the use of resources is represented in our model indistinctly as a job. Each job has an associated minimum cost in terms of a set of resource’ slots W without which the job cannot be done. The computational model assumes that nodes are able to add multiple heterogeneous resources from different sources without any penalty to fulfill the requirements of a job. 4.2.2 Simulation model Most of the simulations in this thesis were performed with a non-cooperative game simulator [R12], a tool that allows us to configure a large number of complex scenarios based on the computational model described above. This simulator implements an iterative request-response model — similar to other n-players iterated games —, where nodes manage, ask and share resources according to our computational model. While each experiment has its own configuration (e.g., network topology, number of rounds, nodes’ strategies), the behavior of the nodes is always the same. At the beginning of each round, nodes are sorted randomly. Then, whenever a node needs to perform a job — decided with some random probability —, it first tries to use its own free resources rk i to complete it. If the node does not have enough free resources — meaning that Rk i< rk min —, then it asks 35 its connected nodes for the remaining slots needed to accomplish its job, as describes the Algorithm 1. Fro now on, we will omit the superscript k as our simulations only use one type of resource. Algorithm 1 Requesting procedure Require: G(V, E).Network graph Require: R . Set of resources Require: i . Requesting node Require: j . Answering node Require: rmin .Resource slots needed 1: rii ←min(rmin, Ri.free) 2: if rmin > rii then 3: Xi=brmin −riic 4: for all j|(i, j)∈Edo 5: requestResources(i, j, Xi) 6: end for 7: end if According the computational model described, the remaining slots needed Xi are asked to all neighbour nodes j simultaneously using the auxiliary function requestResources . As we discuss on Chapter 5 it makes the requesting nodes more agressive, but in return increases the probability to receive the minimum needed slots for performing the job. It is a common redundancy strategy in most computational distributed systems aimed to increase their robustness in front of node, network or task failures. As we said, this procedure implements a non-cooperative model — similar to the Prisoners’ Dilemma — which encourages the self preservation of resources over the cooperative actions. As the requirements for each potential job are in first hand supplied by the requester node i , it is probable that future sharing requests from other nodes will not succeed because nodes does not have much resources left. After each node had the chance to start a new job, each of the nodes j who received a resources’ request need to solve them using the answering procedure described in Algorithm 2. The procedure starts picking all the requests Xj received during the given round randomly and, for each of them, it decides to 36 cooperate or not with a probability P (lines 2:3). This probability is the result of playing a contributory strategy (See 3.2.3) or one of the effort strategies developed in this work (See Chapter 5). Algorithm 2 Answer procedure Require: G(V, E).Network graph Require: R . Set of resources Require: i . Requesting node Require: j . Answering node Require: rmin .Resource slots needed 1: positiveReplies ←0 2: for all Xj∈rand(j.requests)do 3: P←playStrategy(i, j, Xj) 4: for all x∈Xjdo 5: if P≤U(0,1) and Rj< positiveReplies + 1 then 6: positiveReplies ←positiveReplies + 1 7: allocateResource(i, j, x) 8: end if 9: end for 10: end for We want to emphasize that in our simulation model although resources are requested with the objective of accomplish a particular job, the decision of land or not those resources are taken slot by slot. It happens because despite that the probability P is calculated individually for each pair of nodes — taking into account the overall amount of slots Xj requested — the Cooperate or Defeat decision is taken for each slot x (lines 4:9), provided that the node has enough free resources (line 5). This allows us to design mechanisms with higher granularity, as we will discuss on Chapter 5. The auxiliary function allocateResource simply allocates resources for a given job, without running it. Then, if a node has achieved enough slots to perform the job, these slots will be blocked for the duration of the job. However, any excess in the lent resources will be released, as describes the Algorithm 2. 37 Algorithm 3 Confirmation procedure Require: G(V, E).Network graph Require: R . Set of resources Require: i . Requesting node Require: j . Answering node Require: rmin .Resource slots needed 1: rw=rii +Pd(i) j=1 rij 2: if rw< rmin then 3: freeResources(rw) 4: return 5: else 6: while rw> rmin do 7: if rii < rmin then 8: j←rand(j|rij ∈i.allocated) 9: rij ←rij −1 10: else 11: rii ←rii −1 12: end if 13: rw←rw−1 14: end while 15: end if 16: executeTask(rw) 17: return 38 The confirmation procedure is executed on each node that decided to run a job the current round, to check if it has received enough resources rmin to perform the job (line 2). Any exceeding resources allocated are, then, freed using a random selection process (lines 6:14). Finally, if the allocated resources r match the requirements for the job W , the auxiliary function executeTask blocks the resources — reducing the amount of free resources (R.free) — on all nodes involved in the task for a period of time t , after which the main bucle will free them. Notice that this model works under the assumption that users are not performing more than one task at a given time, which is not what one would expect in a real scenario. However, this design decision simplifies the analysis of the results and reduces the simulation time. 4.2.3 Stability of the models The non-cooperative game simulator described above had been tested during the analysis of one of the early works [P5], using simple network configurations — topologies with just 2 or 3 nodes —, where participants had played deterministic strategies (e.g., answering always positive or negative to other nodes’ requests). Additionally, the simulator code had been verified during its development using unit testing and internal assertions. Each simulation-based evaluation presented in this thesis, with a particular set of initial parameters, is the result from executing the simulation for 250 rounds, but discarding the first 50 ones. Our early tests had shown that after 50 rounds, the simulations using contributory-based strategies were stable, but not in equilibrium: despite that the difference between averaged results for the evaluated variables (e.g., the ratio of cooperators) was less than 1%, nodes continue changing behaviours. Some simulations up to 10,000 rounds shown exactly the same behaviour. In order to avoid random effects caused by the initial configuration of the simulated scenarios or the random variables used (e.g., the distribution of resources), each simulation had been repeated by default 100 times — and occasionally 1,000. Unless otherwise noted, when the results presented in this thesis as a distribution includes all the individual results in each of the simulations. In such cases that the results does not include a distribution, they 39 are calculated after averaging each of the 100 individual simulations. 4.2.4 Feature selection algorithms Features selection is an important step when datasets have many variables and correlated data. For an efficient identification of structures with data mining techniques, it is needed to evaluate and determine the variables in the data set that contain valuable information [55]. Determining subsets of a reduced number of features (e.g., with machine learning techniques) is another way to identify efficiently properties in data sets. The feature subset selection in particular is a method for enhancing the performance of data mining algorithms by reducing the variables search space [56]. With this analysis we intend to: (1) identify a short list of features to understand resource-sharing processes in collaborative scenarios, and (2) evaluate each feature algorithmically using some well-known feature ranking algorithms. Two well-known feature selection algorithms were used at some point: (1) Correlation-based Features Subset Selection (CFS), an algorithm that evaluates the feature subsets, and (2) ReliefF, an algorithm that evaluates individual features. We have chosen these algorithms because they provide reliable feature sets, they are able to process continuous variables (e.g., ratios representing successful or unsuccessful process), and they let us understand the resourcesharing processes. Other algorithms can provide similar or even better results, but the underlying process is more complex to understand [55]. We briefly review these algorithms below. •Correlation-based Features Subset Selection (CFS) [57] : CFS evaluates the usefulness of a subset of features by considering the individual predictive capability of each feature, along with their degree of redundancy. The algorithm selects subsets of features that are highly correlated with the class, but having low correlation between them. •ReliefF [58] : This algorithm evaluates the usefulness of a feature by repeatedly sampling an instance and considering the value of the given feature for the nearest instance of the same and different classes. We have chosen it because it is noise-tolerant and unaffected by feature interaction. However, ReliefF searches for all the relevant features, even if they are 40 redundant. This algorithm assigns a “relevance” weight to each feature. In our analysis, we selected features with a relevance ranking above 0. Instead of implementing these algorithms, for the analysis and evaluation of this thesis we used the Weka machine learning framework [59], which provided the implementation of these algorithms. 4.2.5 Community detection algorithms Social relations in a group of participants can form a community if they are more willing to interact among them than with other members of the network. This is a well-known phenomena — called communities structure — that arises in most complex networks. The community’s size, structure or even members’ interactions outside and inside the communities are a good source of information to study the roles of the network users. The community detection problem has been studied for a long time, and there are different algorithms and methods that can be applied, depending on the properties of the network and the properties of the targeted communities. In this thesis we apply two different methods, the clique percolation method and the Louvain method to detect two different community structures, and discuss the differences and the role of their members. In practical terms, the difference is that while the percolation method is based on the detection and aggregation of k-clique disjoints sets inside the graph — which will have maximum connectivity among their members —, the Louvain method is an optimized algorithm to find partitions providing that the modularity (the relationship between average degrees inside the community and intra communities) is minimized. •Clique percolation method [60] : The clique percolation method is based on the detection and aggregation of k-clique disjoints sets inside the graph, which will have maximum connectivity among their members. As the optimization is done locally, some members could be part of more than one community. Additionally, communities sub-graph are disjoint. •Louvain method [61] : The Louvain method is an optimized algorithm to find partitions of large scale networks very fast, providing that the 41 modularity (the relationship between average degrees inside the community and intra communities) is minimized. As a result, we have a graph partition where all nodes are forced to belong to one and only one community. 4.2.6 Centrality measures Centrality measures aim to identify the most important vertices in a network. The list of all possible centrality measures is too long to reproduce it below. However, next we provide the definitions of those centrality measures used in this work. •Closeness centrality : Closeness centrality for a connected graph is defined as the inverse of the average distance to all other nodes (defined by their shortest path). •HITS [62] : HITS is a ranking algorithm used in the past to exploit the web’s hyperlink structure. As a result, it obtains two measures for each node, the authority and hubs. The first one is a measure of individuals as a source of information, while the second one ranks higher those nodes with high quality out-links. 4.2.7 Blockmodeling Blockmodleing is an analysis method to reduce a large network to a smaller comprehensible structure. More specifically, according to Doreian [63], “blockmodeling tools were developed to partition network actors (units) into clusters, called positions, and, at the same time, to partition the set of ties into blocks that are defined by the positions”. Therefore, the objective of blockmodeling is to group or cluster the actors of a network by some meaningful definition of equivalence. As an example, structural equivalence [64] states that two nodes i and j are equivalent if they are both connected or not to the same other actors in the network, one by one. Then, the relations within actors in each cluster are used to build a simplified network graph, which is usually easier to analyze. Figure 3.2 shows an example extracted from [65]. 48 first property means that players cannot improve their utility by lying about its resources. The second one indicates that players cannot prefer to use the resources of a particular participant. In [78] the authors established that at least one mechanism exists that holds both properties for agents with heterogeneous capacities, if there are only two kinds of shared goods or if the individual goods’ values are binary. Another approach for providing fairness of effort-based strategies was proposed by Santos et. al. [79] who proposed the Quid Pro Quo (QPQ) mechanism to assign tasks on a self-organized and distributed scenario. QPQ also holds the envy-freeness property and the incentive-compatibility. However, as the previous theoretical models, it implicitly assumes that each participant scrupulously follows the specification of these mechanisms. The practical approaches to address fair cooperation are mainly based on the proposal of BitTorrent [80]; a popular P2P protocol for file distribution. A key for the BitTorrent success lies in its Tit-For-Tat strategy, a reciprocity based mechanism, which works reasonably well to foster cooperation among downloading peers. In this scenario, some studies argue that nodes contributing more resources should receive in return better service than those that contribute less [9, 42]. These contribution-based mechanisms are simple and efficient in most cases; however they are unfair [81, 82], because some nodes end up contributing much more than they download. In [9] the authors present a general heterogeneous model to evaluate the tradeoff between performance and fairness in BitTorrent systems. This work shows that the current protocol used in BitTorrent is only one of many possible solutions; in this case, the fairness metric is used to indicate incentive compatibility. The work also proposes three rate assignment strategies to optimize respectively one of the following variables: average downloading time, perfect fairness or max-min allocation. They also present a simple design knob that helps designers analyze the possible tradeoffs (in terms of performance) that the use of a certain rate assignment strategy has on the collaboration space. The performance is quantified in terms of both, average downloading time and fairness. A performance evaluation is finally conducted to show the merits and properties of BitTorrent-like protocols. Similarly, the proposal in [83] focuses on the performance analysis of different policies using Tit-For-Tat. These authors introduce a model that characterizes the relationship between a peer’s performance and the design parameters of 49 the BitTorrent protocol. These parameters determine the effectiveness of the incentive mechanism for the nodes. This model is then used to determine how the incentive mechanism can be adjusted to enhance reciprocity or reduce inequity in the collaboration scenario. However, it has been demonstrated that when we apply contribution-based mechanisms in heterogeneous scenarios, the nodes tend to share and cooperate only between equals – in terms of resources [84]. Hence, nodes with scarce resources suffer discrimination because they do not have enough resources to contribute. While these works focus on a particular strategy, we analyze the performance of different collaboration incentives from a higher level. Recently, a new practical scenario, named private BitTorrent communities, has appeared [85]. Such a proposal aims to motivate the resource uploading in P2P networks. Community administrators specify a minimum uploading threshold that must be addressed by the community members. In this way, it is guaranteed that each peer provides a certain level of contribution to the community. This mechanism, known as Sharing Ratio Enforcement (SRE), is very effective in increasing supply [86]. However, [87] show that SRE has two undesired negative effects: (1) peers are forced to seed for long times and (2) SRE discriminates against peers with low bandwidth capacity. Although most of the BitTorrent incentives are contribution based, Rahman et al. [39] show that these systems can also be used with effort-based incentives. The use of such a strategy showed a greater utilization of the available resources and a reduction of the download times in slow peers. In this work we apply the concept of effort-based in a different architecture, aimed for distributed computing instead of file-sharing. It means that the shared resources are not being transfered between users, only occupied — and blocked — for a fixed time. In bitTorrent applications, however, the files are transfered among users and the heterogeneous resources — bandwidth capabilities — are limited by both, the sender and the receiver. 50 5.3 System Model 5.3.1 Modeling Resources and Nodes Behavior All the experiments performed in this chapter follow the computational and simulation model described early in Section 4.2. In this particular case, the resource requirements to perform a given job are randomly determined using a discrete normal distribution, originally with a mean of six slots and a variance of two slots — truncated to a minimum of one slot. The number of rounds nodes need to perform every job is also randomly determined using a discrete uniform probability distribution, with a minimum value of one and a maximum of three rounds. 5.3.2 Resource Sharing Strategies The request-response model implemented could be viewed as any iterative two-players game in the literature, like the Iterated Prisoner’s Dilemma. In this game, two players are involved in a potential collaboration process choosing between cooperation and defection. The decision to choose one action or another can be based on the trust in others and their reciprocity. The consequences of the participants’ choices have a different impact on the global community and also on their own probability to obtain resources from other nodes. This study evaluates these impacts when the decision is based on two approaches: contribution-based and effort-based collaboration strategies. Next, we briefly describe the concrete implementation of the collaboration strategies used in these experiments, that we have used as a baseline. •Contribution-based Incentive : This approach is implemented following the simple Tit-For-Tat strategy: a certain node i always responds to each slot request of a node j by making the same decision (i.e., cooperation or defection) made by jduring the last request from i. •Contribution-based Incentive with Forgiveness : To avoid the infinite cycle of mutual defection problem inherent in the TFT incentives, we decided to implement a second version where participants forgive a neighbor after a fixed number consecutive defeats. Particularly, when a 51 node j has defeated node i during a consecutive number of rounds, the node iconsiders it as an unknown node. We defined the Effort-based Incentive as a reciprocity incentive mechanisms that measure the relative contribution between nodes. In the simplest form, in this strategy the node contribution is defined as the percentage of available resources that a node shares with others. Hence, in our implementation a certain node i responds to the request of a node j , assigning to each requested slot a probability of cooperation P . The probability P is calculated as the ratio between the amount of slots that j shared with i in the last request, and the total amount of slots that jowns. That is: P(W, t) = rji(t−1) Rj (5.1) where W is the number of slots required for some job. Symbols t and t−1 stands for the current and last interaction between nodes iand j. The metric is inspired by the work of Rahman et al. [39] in which authors rank and prioritize BitTorrent chunk requests from another peer, by using the percentage of bandwidth devoted to the other participant during a slicing windows of time. We adapted such proposal because in our scenario each slot is not transferable — in contrast of a BitTorrent schema where chunks (equivalent to our resource slots), could be obtained from multiple sources —. Hence, we have used jobs’ slots instead of bandwidth to calculate the ratio between shared resources and the total amount of resources. In our strategy the ratio represents as a probability to cooperate instead of a ranking metric and the slicing window is just one interaction round. The strategy implementation, however, assumes that nodes’ effort have to be computed with high granularity — slots — instead of jobs. System designers could be tempted to simplify the metric to compute just jobs instead. Next strategies are variants of the first one to explore these effects. •Task Effort-based Incentive (one-by-one) : This variation of the Effort-incentive measures contributions at job level, instead of CPU slot. It was inspired by the work of Santos et al. [79], where the authors discuss 52 — evaluating complete jobs instead of slots — how the granularity of their incentive affects the performance of the sharing strategy. In this case, the probability P is now calculated as the ratio between the mutual accepted jobs and the maximum of expected jobs that j could run. The mutual accepted jobs represents the sum of jobs that j accepted during last round from both node i and internal requests. The maximum of expected jobs is the number of j slots divided by the simulation average cost of jobs (in slots). That is: P(W, t) = Wji(t−1) + Wjj(t−1) Rj(mod T)(5.2) where Trepresents the average number of slots in the simulation. Note that in this strategy we included the equivalent effort devoted to nodes themselves in the calculation of the mutual accepted jobs. It increases the diversity of probabilities P , avoids binary evaluations, and aims to maintain a reciprocity policy. •Task Effort-based Incentive (local) : This variation instead of evaluating just the effort perceived by a particular node, evaluates the effort noticed by a sub-network cluster. Hence, the probability P is calculated as the ratio between the amount of jobs that j accepted from its neighbors and the maximum expected jobs. P(W, t) = neigh(i) X j=1 Wji(t−1) Rj(mod T)(5.3) As a consequence, the direct reciprocity between requester node and the requested cannot be assured, only the local one. The implemented strategy is a variation from the Task Effort-based (one-by-one) strategy, inspired by some ideas from network exchange theory [88]. This theory discusses, among other things, how the participants’ outcome can be partly rooted in the structure of a (social) network, because they hold pivotal positions on the network, or in other case they are in a dependent position for responding to a request. 53 All unknown nodes, or those who have not met before (e.g., during the first round of the simulation), cooperates with a 50% probability. 5.3.3 Collaboration Scenarios To study the impact of the proposed incentives, we consider two types of collaboration scenarios. In scarcity scenarios, the amount of resources available is — in average — twice the amount requested per node and round. Instead, in resource abundance scenarios, the available resources are four times the requested amount of resources. Given the maximum amount of simultaneous jobs, the probability of having all resources occupied during a round is lower than 2% for an abundance scenario, and to 7% for a scarcity one. 5.3.4 Metrics The simulation results were assessed using several metrics. •Node Cooperation Coefficient : This metric is calculated as the ratio between the amount of requested slots by some node and the number of positive answers — slots — obtained during the simulation, regardless if the lent slots were used or not. It is, therefore a direct measure of the nodes’ willingness to collaborate with each other. •Node Success Percentage (NSP) : This value is the ratio between the number of jobs that a given node wants to perform during an experiment, and the number of completed ones. Therefore, it is a measure of the nodes’ satisfaction. •Envy-fairness : For a given node i with d ( i )neighbors, the envy-fairness metric is calculated as the difference between the success percentage of node i ( NSPi ) and the average node success percentage of its d ( i ) neighbors. Hence, it is a comparative measure of how envious a node is, considering its neighbors’ jobs success. It is commonly referred as node success correlation. Notice that this metric pretends to measure a deviation of NSP between a node and its closed neighbors, rather than a property of the incentive 54 mechanism — like envy-free —. However, we claim that while a positive envy-fairness of a single node does not imply envy-freeness, a negative one implies that the incentive mechanism will not be envy-free. In addition, all nodes using an incentive mechanism that is envy-free will have a non-negative envy-freeness by definition. •Tasks Fully Satisfied : This value represents the ratio between the number of jobs that all nodes want to perform during an experiment, and the number of jobs effectively completed. Therefore, it is a measure of how many jobs get the amount of resources needed for their completion (which takes into consideration the temporal status of the nodes too). •Utilization of CPU slots : We have here several sub-metrics related to the utilization of resources. The amount of used slots represents how many nodes assign to their own jobs. The shared slots indicates the slots devoted by a node to jobs of other nodes, and the number of free slots represents the slots that are not used. Finally, the requested slots show the amount of slots that nodes intend to obtain from other nodes. The first three were measured directly on each participating node, and the last two considered the whole network. 5.4 Experimental results In this section we provide a complete analysis of the experimental results to understand the impact of each incentive strategy (described in Section 6.4.2) in every collaborative scenario (i.e., in resource scarcity and abundance). According our models we considered only static network topologies — smallworld or torus — with 125 nodes and heterogeneous resources distribution. As an overview, Figure 5.1 shows the average cooperation coefficient — round by round — for contribution-based and effort-based strategies. We can see that all our mechanisms obtain more collaboration instances than the baseline ones. Otherwise noted simulations considered a resource scarcity scenario with a torus topology. Focusing on the contributory-based incentives, we can see that, as we predicted, without forgiveness (i.e., replying strictly and reciprocally) all nodes start to 55 Figure 5.1: Average cooperation coefficient per round reject requests of other nodes after the first 50 rounds. When a forgiveness variant is applied instead, the nodes are able to recover from this situation and cooperate between 17% and 11% of the time, depending on how many rounds they wait to forgive. The remaining chapter will focus on determining if these initial findings can also be found in other collaboration scenarios and what are the consequences of using effort-based incentives instead of contributory-based on them. 5.4.1 Analysis of the Cooperation Coefficient Figure 5.2 presents information about how heterogeneous is the cooperation coefficient of node in several scenarios — combining different topologies and resource availability. It shows high variations in the minimum and average values in all type of incentive, suggesting an explanation for the swings between periods with high and low cooperation shown before. The results indicate that in all scenarios and topologies, the effort-based incentives obtain a higher cooperation level than those implementing contributionbased incentives. In our simulation, the reduction of 50% of available resources — from abundance to scarcity scenarios — represented a significant reduction 56 Figure 5.2: Cooperation Coefficient for torus and small-world networks of positive responses; over 8%. According to that observation, in scenarios where nodes use effort-based incentives are more interested in cooperation than scenarios where the contribution-based incentives are implemented . However, it is also important to remember that the cooperation effort measures just a willingness, and not a tangible result. 5.4.2 Analysis of the Node Success In cooperative applications, the effort is a measure, but not the objective. If an increment on cooperation does not imply a large number of jobs done, there would be no impact on users’ satisfaction. Similar to that shown in Figure 5.2, Figure 5.3 shows the average, minimum and maximum values of the NSP. These results support our initial hypothesis that a participative measure of users contribution will lead to a higher cooperation, and therefore to a higher users’ satisfaction . This is a tendency observed by the average NSP, which is 6% over the satisfaction when nodes use a contribution-based strategy. Node Success Percentage and Cooperation Coefficient show that effort-based incentives measuring slots reaches the best scores in almost any 57 Figure 5.3: Node Success Percentage for torus and small-world networks scenario .The key element that allows us to understand this result is the granularity of the shared resources. While in the slot effort-based incentive every slot is requested and shared individually, in task effort-based incentives the requested or shared resources are those needed to accomplish the job (i.e., blocks with a variable number of slots are requested and shared among nodes as a single unit). This imposes additional restrictions to the collaboration process. Therefore, the collaboration process supported by effort-based strategies will be more effective and useful, when the resource being requested and shared is smaller. Figure 5.4 an Empirical Cumulative Distribution Function (CDF) plot for the NSP obtained by each participating nodes, with scarcity and abundance of resources, connected through a torus topology. We can see that nodes using effort-based strategies are involved in a fairer collaboration process; any percentile of population has higher NSP values, despite both kind of strategies accomplish the same number of jobs. Evaluating the differences between both collaboration scenarios, Figure 5.4 shows that the total amount of available resources has a significant impact on the node success distribution. In scarcity scenarios approximately 60% of nodes have an NSP below 25% using effort-based strategies, while it drops to 64 5.5 Designing Effort-based Systems The previous results allow us to understand the impact produced by the use of a particular collaboration strategy in a volunteer computing scenario. In this section we address some practical issues of the proposed incentives to guide mechanism designers. 5.5.1 Mixing Contribution-Based Strategies and Slot Effort- Based Incentives One of the problems pointed early (See Section 5.4.4) was the undesired inequality of envy-fairness. We argued that a strategy enforcement through the mechanism design would avoid the strategy switching, as it happens in commonpool resources — where mechanisms and governing policies are enforced by the community. However, in most volunteer computing scenarios system designers cannot guarantee that all nodes will use some particular collaboration strategy. Therefore, it is also important to understand the behavior of the cooperation coefficient when we have heterogeneity of collaboration strategies in the environment. Although that study is part of the future work, this section presents some preliminary results. Figure 5.9 shows the cooperation coefficient and NSP when the collaboration environment involves different percentages of nodes playing contribution-based and slot effort-based strategies. For example, 40% / 60% means that 40% of nodes are playing the former one and 60% are playing the other one. These results indicate that the minimal and average value of NSP tends to improve with the percentage of nodes playing an effort-based strategy. Particularly, the collaboration environment shows two different behaviors depending on whether the percentage of the nodes playing effort-based strategies is below or over 60%. If the percentage of nodes playing the effort-based incentive is at least 60% — indicated in Figure 5.9 as 40% / 60% or higher —, the cooperation coefficient and the NSP tend to be similar. In addition, these values are always over the same metrics but for the other observed segment. Although these results are still preliminary, they indicate that if the cooperative computing environment allows the use of heterogeneous strategies, the system designer should try to ensure that the environ- 65 Figure 5.9: Cooperation coefficient and NSP mixing collaboration strategies ment keeps at least 60% of nodes playing a slot effort-based strategy . That percentage seems to be the minimal threshold to ensure a good level of cooperation among nodes and also fairness of the cooperative computing environment. In a common-pool resources community, it also gives an idea about how much social pressure a misbehaving node could hold. 5.5.2 Analysis of Uncertainty on Effort-based Incentives In practical terms, one limitation of effort-based strategies is that participants must somehow know the maximum number of slots — Rj — or jobs — Rj ( mod T )— that other participants can perform in order to evaluate their effort ratio. Two basic approaches can be used to address this issue: •Direct or indirect measuring . This approach requires installing a specific program on peer computers to measure and report their maximum capabilities. However, this is costly in terms of processing time; therefore most systems use indirect measures to infer the capabilities of other nodes. The main problem with using inference is that such a process could be inaccurate [90], and therefore the system could promote the use of incentive mechanisms that are not suitable for such a scenario. 66 •Node self-reporting . In this technique, the nodes announce their maximum capabilities each time they make a new request for slots or jobs. Honesty is a key aspect here. Nodes with many resources could try to trick the incentive mechanism, announcing less resources than what they actually have, making the effort evaluation higher. Cooperation coefficient and nodes’ success percentage for effort-based strategies with a percentage of uncertainty — from 5% to 20% — in the measure are shown in Figure 5.10. By analyzing these results we can see small variations caused by the incorrect measure of nodes’ maximum resources; making no difference in nodes’ willingness to collaborate and the success of the collaboration process. Figure 5.10: Results of study of uncertainty in the estimation of number of slots The malicious behavior of some nodes, when they self-report their own limits, can be analyzed using the results shown as the NSP reported in Figure 5.11 and the envy-fairness of liar and trustworthy nodes in Table 5.1. During the experiment, we selected a percentage of nodes — from 5% to 20% —, named liars, which report less than their maximum CPU slots — from 1 to 3 in scarcity scenarios and from 1 to 6 in abundance — in order to be better evaluated by their partners. 67 Figure 5.11: Node success percentage for trustworthy and liar nodes Even if the liar nodes gain a better reputation during the first rounds, the results in Figure 5.11 show that there is no advantage for lying instead of truly reporting the node’s maximum resources. Although there is a small advantage to liar nodes when they are a clear minority, it decreases — until disappearing — when the percentage of liar nodes increases. When the number of liar nodes increase significantly (e.g., above 20%) both type of nodes have the same envy-fairness. Table 5.1: Envy-fairness of trustworthy and liar nodes Strategy Co-player Cooperate Co-player Deflection Min Max Avg Min Max Avg Slot Effort-based -0.43 0.63 0.00 - - - Slot-Effort based - 5% -0.50 0.65 0.00 0.00 0.56 68 5.5.3 Jobs management Some results from Section 5.4 pointed out that most nodes are poorly evaluated by its peers due an increment of their requests, while the number affirmative answers they got has not changed. Additionally, we found that the experiments’ design choices caused that all strategies — including contributive-based ones — have envy-fairness inequality. This experiment has been designed to test what happen when the amount of slots requested during the experiment decreases. We can do that in two forms: 1. Decreasing nodes’ aggressiveness : During the simulation, nodes are considered to be in two different states: active — meaning that the node has an own task running by himself — and waiting — when all own tasks has been finished. Each round, nodes that are in waiting status may decide to start a new own job with a default probability of 50%. We reduced this probability by half (25%). 2. Increasing jobs’ duration : Each job performed in the simulation has a uniform distributed random duration from 1 to 3 rounds. When a node has an own job running, is on active state and hence, he is not requesting for new jobs to its neighbors. We increased such duration by a factor of 2 (from 1 to 6 rounds). Interestingly, Figure 5.12 and Figure 5.13 show that increasing the duration of the jobs has no effect on the nodes’ cooperation willingness. As a consequence, in both scenarios the average utility — NSP — remains equal. On the other hand, a decrease of nodes’ aggressiveness — by requesting tasks less frequently — has a negative effect, specially on scarcity scenarios. As nodes have more resources available, because there are less requests for sharing, when they want to perform a job is more likely to use their own resources than others. We have seen this effect before, when we discussed the behavior of Contributory-based strategy without forgiveness. As a final remark that would need further study, we can observe in Figure 5.13 that Contributory-based strategy without forgiveness is not influenced by jobs aggressively in abundance scenarios. 69 Figure 5.12: Cooperation Coefficient and NSP in a resource scarcity scenario Figure 5.13: Cooperation Coefficient and NSP in as resource abundance scenario 5.6 Conclusions In this chapter we investigate how to encourage the exchange of resources in highly heterogeneous volunteer and contributory computing scenarios by 70 providing a set of new reciprocal incentive mechanisms. The mechanisms are based on participatory economics principles to compensate the effort or sacrifice, by measuring nodes contributions as a ratio between the shared resources and the total amount own. The analysis and comparisons presented in this chapter provides evidence, based on simulations, indicating that it is possible to generously share resources with others without putting at risk the local resources using effort-based incentives. As a consequence, nodes showed a higher willingness to collaborate regardless of the amount of resources that they have, increasing the global ratio of tasks successfully finished. Furthermore, it avoids the tendency of cooperating only within nodes with the same amount of resources shown by nodes using a contribution-based strategy. Looking at the results, we can conclude that the most benefited users from our proposal are the participants with scarce resources. It increases the envyfairness of powerful nodes — thus, increasing the global envy-freeness — despite they are also benefited from the increase in cooperation willingness. From the system designer point of view, we have evaluated the impact of envy-fairness when different strategies can be used, discussed the consequences of the uncertainty on the measurement or nodes’ reporting of resources and the impact of several requesting policies. While the mechanism is far to be complete designed, the experimental results will be of great use for future works. Summarizing, effort-based incentives are good strategies to be used in volunteer and contributive computing, since they help nodes with scarce resources to improve their satisfaction without harming powerful devices. However, it generates a feeling of envy among large contributors. Evaluating nodes’ effort or sacrifice in terms of number of jobs will further improve the number of satisfied tasks per node at expenses of generating even more inequity. Chapter 6 Compensating locality impact on resource-sharing scenarios Despite the cooperation willingness shown by the participants on a volunteer or contributory computing scenario, the resulting outcome may be highly limited by the amount of resources they have to access. In cooperative applications, where resources are accessed only among pairs of nodes directly connected, the topological properties and nodes placement will influence the overall outcome of the shared environment. Hence, adding extra resources without taking into account their locality and accessibility will limit the desired impact. In this chapter we first explore how much the global and local properties of networks affect the collaborative process after adding new resources into the system. The study outcomes indicate there is a short list of computing and network variables affecting positively or negatively the collaboration capability of the devices with less resources in such a heterogeneous scenario. Then, based on the lessons learned, we propose a heuristic to place extra resources in order to maximize the cooperation level in terms of resource sharing. 71 72 6.1 Introduction Given their nature, the exchange of resources in distributed computing architectures — like volunteer and contributory computing — happens between users or devices directly connected to each other through an overlay network. As a result, collaborative applications must be designed to assure that any lack of resources can always be supplied by borrowing them from their neighbors. Therefore, mechanisms — like incentive strategies — are designed to guarantee the supply of resources locally rather than globally. Some of the results shown in Chapter 5 suggest that, as a consequence, the local optimizations cause an inefficient use of resources in the absence of other regulation mechanisms. To solve the problem, most BitTorrent clients use opportunistic unchoking to compensate neighbors’ noncooperation or lack of resources to dynamically modify their links [44], seeking to be connected to nodes with higher capabilities. However, in scenarios with insufficient global resources the continuous reallocation of nodes and jobs in the topology will not only not solve the problem, but also will lead to more inefficient systems. One example of such scenarios are computer-supported mobile collaboration. This collaboration architecture involves nomad users with mobile devices and a software system to perform on-demand interactions [91]. For instance, the interactions among medical personnel at a hospital [92] or the incidents discussion conducted by construction inspectors after reviewing building facilities [68]. Typically small devices (e.g. cellphones) are well prepared to support tasks involving high mobility [93]; however they are the most critical resource in these scenarios. Alternatively, we propose combining traditional-resource computing paradigms [17, 19, 18] (e.g., cloud or grid computing) with the collaborative applications to create a decentralized collaboration network [94], where powerful devices can share part of their hardware resources (e.g. processing power) during small periods of time in exchange for a retribution afterwards. The resulting architecture would potentially have an increased heterogeneity, as cloud and grid computers have larger amount of resources compared with personal computers or cellphones devices. Hence, the location and distribution of these new resources will be crucial in order to improve both, the initial cooperation between devices, and the overall jobs successfully done. To that 73 end, overlay topologies would play an important role. After demonstrating the negative and positive effects of different network structures in the previous chapter, in this chapter we analyze how the locality of devices — their placement inside the network, compared with the other device — can improve or hinder the collaborative process. The main contribution of this chapter is the description of a new heuristic to distribute resources and allocate their host nodes to cover the demands from powerless nodes . The proposed heuristic will place devices with scarce resources in positions with easy access to the extra resources added, based on distancebased and local measurements. Next section describes the problem to address and the research questions of this study. Section 6.3 presents the related work. Section 6.4 describes the experimentation setting. Section 6.5 introduces the hotspot placing algorithm proposed. Section 6.6 presents the obtained results and its discussion. Section 6.7 provides guidelines to deal with resource-sharing issues affecting the collaboration process. Finally, Section 6.8 presents the conclusions. 6.2 Motivation and problem definition Finite resources and its heterogeneous distribution reduce the collaboration willingness of participants with less resources. In the previous chapter we have shown that this problem arises because small nodes — in terms of resources — cannot contribute with the same amount of resources to their neighbours. As an example, consider a resource-sharing architecture with two types of nodes, regular and powerful; the former ones having about five times less resources than the later ones. Using the simplest version of a contributorybased incentive — that is, the Tif-for-Tat model described in Chapter 4 — we expect powerful nodes act as self-served, leaving the regular nodes few chances of cooperation. For the sake of the demonstration, lets change the simulation model allowing nodes answer affirmatively as many slots requests as they want; without taking into account their resource limits. If then, we measure the nodes’ average willingness of cooperate we expect the cooperation coefficient be raised close to the 100%; but not the nodes’ success percentage, as the computation model 80 Algorithm 4 Powerful nodes’ placement Require: G(V, E).Network graph Require: S . Number of powerful devices to place 1: rankedPositions ←null 2: for all i∈Vdo 3: rankedPositions[i]←R(i, G.neigh(i)) 4: end for 5: 6: counter ←0 7: for all position ∈SORT(rankedPositions)do 8: if counter < S then 9: G[position].type ←R(POW ERF UL) 10: else 11: G[position].type ←R(SMALL) 12: end if 13: counter ←counter + 1 14: end for 15: return G 81 extra resources. We firstly study the impact of adding powerful devices to a lower-resources scenario. Then, assuming that we found an optimal ratio, we further investigate the effects of topology in such scenario. 6.6.1 Analysis of nodes distribution The bar plot (See Figure 6.2) describes quantitative the cooperation willingness of small participants in several resource-sharing scenarios after introducing new nodes with higher amount of resources. This result, has implications for distributing resources and selecting the most suitable network topology. The resource distribution is represented in the x-axis (See Figure 6.2) as the ratio between regular and powerful nodes. For example, the first dataset was obtained with a network of 1000 nodes that had 20% of regular nodes and 80% of powerful. Figure 6.2: Cooperation coefficient of regular devices using four network topologies and several ratios of powerful nodes We observe minor variations in the maximum cooperation coefficient due both, the addition of new resources and the overlay topological properties. However, Figure 6.2 shows how a small increment of resources in the scenario — from 0% to 20% — will increase the average cooperation coefficient in the 82 regular nodes around 32%. These results confirm our hypothesis, showing that the introduction of external resources improves the level of cooperation among regular nodes . Most importantly, the scenario is benefited independently of the topological properties of the overlay network. Increasing the ratio of powerful nodes from 20% until 60% will not affect the average cooperation, but it gradually increases the minimum cooperation until reaching the 43%. Adding more powerful resources beyond this point, however, does not grant any significant advantage to the regular nodes; but it will certainly increase the deployment costs. These results show it is possible to improve the cooperation coefficient of the handhelds in a resource-sharing scenario with scarce resources by introducing new ones in the network. We used standard statistical methods to compute the confidence interval and margin of error [105] of the values. The standard error of the mean values is at most 0.055. The relative margin of error for the mean is at most 12.02% for a 95% confidence level. Thus, we can consider the average values computed on this test set as valid. The ANOVA ( F (4 , 366) = 2 . 396, P= 2.49E−60) confirmed the significance of these findings. 6.6.2 Analysis of resources’ distribution Analyzing participants cooperation comparing different resources’ distribution allows us to gain insight into the importance of locality. Consider, as an example, the introduction of a single node holding all the extra computational resources; instead of distributing them into several nodes. From the economic point of view this would be cheaper, but only few nodes would be benefited from the extra resources. Therefore, we are interested on finding, if any, a ratio of resources per node that guarantees the maximum cooperation profit. Figure 6.3 shows the evolution of the cooperation coefficient in a Waxman network (see Section 3.3.1) when the amount of new resources is constant, but the distribution among the nodes changes from an initial ratio of 3% of new devices — with 112-128 extra resource slots each — to 33% — with 7-8 resource slots. It is important to notice that there exists a local optimal distribution of resources among the newly introduced nodes, that obtains a maximum cooperation coefficient — from 20% to 27% depending of the metric 83 Figure 6.3: Cooperation Coefficient (Av, Min) of regular devices vs resources distribution ratio among powerful nodes used (i.e. the average or the minimum values). The same experiment, repeated in other network models shown smaller cooperation differences, but maintains the maximum peak around the same ratios. 6.6.3 Cooperation reciprocity Figure 6.4 shows the reciprocity coefficient between each pair of devices (x-axis represents the requesting node iand y-axis the responding node j) in a scale from 0 to 10000 where the stronger colors represents the higher values in a simulation using a Barabási–Albert network. Values below 0 represents nodes not connected among them by the topology. As nodes have been ordered according to their node success percentage, we can easily observe that nodes with a higher cooperation —- on the right side of the matrix –– do not correspond with the nodes that have higher reciprocity coefficient. In other words, there is not a relation between how well a node is treated by their peers — the reciprocity — and the percentage of tasks he is able to finish at the end of the simulation ; which would be the expected result if participants are using a Tit-for-Tat 84 strategy. As a consequence, there should exist other better criteria (in terms of reciprocity and fairness) to place each device. Figure 6.4: Reciprocity coefficient matrix ordered by cooperation coefficient According to Figure 6.4, we can also observe that powerful devices are only focused on collaborating with a few number of neighbors between all the possible ones within the spectrum. To better understand this phenomena we need first to understand the role of the topology in the collaboration schema. 6.6.4 Impact of the network topology In order to understand the effects of the network model, we are going to start reviewing the results presented earlier in this section regarding the impact of introducing powerful devices in a resource scarcity scenario; but from the topological point of view. The simulation included 1000 nodes — 60% of them regular and 40% powerful — arranged in different networks, all of them with an average degree of 6 neighbors. Our measurement function is the Cumulative Distribution Function (CDF) of 85 the requests failure percentage of regular devices — those with few resources —. This CDF value represents the percentage of participants that keep a certain defection level when trying to collaborate with their neighbors. The x-axis in Figure 6.5 represents the percentage of requests that failed because the potential collaborator had no available resource slots for sharing. The simulation results using a Torus overlay topology show that all the participants have at least 40% of jobs failed because the lack of resources, while 60% of them only have a large NFP — around 78% or less —. Other networks, like Waxman, in which nodes are allowed to have different topological properties, shown a wider range of jobs’ failures. It decreases the ratio of failed jobs for some portion of the nodes by depriving some participants to perform any task; like we observe in static random models like Erdős–Rényi and Waxman networks, where between the 29% and 18% of the nodes cannot perform any task. Figure 6.5: CDF of the failure percentage of regular nodes. Participants distributed in topologies with a power law degree distribution and a smoother clustering coefficient (like Barabási–Albert models) have similar success and failure percentages as the ones participating in a Torus network . Furthermore, while its minimum failure percentage is not as good as the one observed on Waxman topologies, most 86 of their members below the 60th percentile have lower failure percentages than Torus networks, while the difference for the top 20th percentile is not as large. 6.6.5 Impact of the network size Most of the results presented in the previous and present chapters where analyzed in networks with an arbitrary number of nodes. However, we just show that the dynamics of the network may influence the cooperation between its members. One main cause can be the size of the network. Our first hypothesis was that if a node only interacts with its neighbors, modifying the network size without changing the average nodes degree — hence, altering only the clustering coefficient — should not change the nodes’ cooperation response. However, the analysis of the cooperation coefficient for regular nodes in several random networks with different sizes (See Figure 6.6) demonstrated that there exists a propagation effect between nodes that modifies their behavior proportional with the network size. While small networks assure a large percentage of satisfied jobs, nodes devices in large scenarios increase significantly their node success percentage; demonstrating that our initial hypothesis was false. If we now look at how resources are used by both types of devices (See Figure 6.7) in a small and large network with 125 and 1000 members respectively, we can observe that in the smaller network, both types of devices tries to get the fairest compensation for the shared resources because the Tit-for-Tat game strategy. As we have seen on Chapter 5, that is impossible for the regular nodes because they do not have enough resources compared with the powerful ones. However, when we increase the network size, devices with larger amount of resources are more willing to share their resources, dedicating less resources to their own tasks . That benefits indirectly the devices with few resources, because now they have more chances to cooperate and share their resources. As a consequence, regular nodes also devote less resources to their own jobs. 87 Figure 6.6: CDF vs. Node success percentage of handheld devices. It’s important to notice that in scenarios based on larger overlay networks, both types of devices tend to request less resources, as their probability of being not performing own jobs is higher than before. 6.6.6 Impact of the nodes’ degree If the resources needed for a given job cannot be obtained from the device itself, must be borrowed from their directly connected neighbors. Therefore, devices with higher degree would potentially have access to more resources, and will get a higher success percentage. Figure 6.8 shows the node success percentage of several large networks — with 5000 nodes each — with 60% of powerful nodes. Two average values for the network degree were used: 15 and 35. The results show that for each tested topology large clustering coefficients provide more collaboration opportunities and improve the overall satisfaction of the participants in terms of NSP. The results also highlights some other consequences of the collaborative dynamic implemented. Networks with larger nodes’ average degree contribute to trigger the “networks undergo phase transition” pointed in the analysis of the scenario 88 Figure 6.7: Histograms of average CPU slots requested, used, shared and free on Waxman topologies. (See Section 5.4.2), creating more clear divisions between highly successful nodes and those participants with a 50% success rate (Specially in the NSP range from 50% to 83%). Although being something positive, it also contributes to increase the envy-fairness of the architecture. 6.6.7 Impact of other components Understanding the collaborative process requires identifying if there exist any correlation between different features — the network properties analyzed and other components of the architecture. We have followed the steps and recommendations presented in [56] to choose the appropriate feature set and analyze it. Although there are techniques and algorithms to construct this feature set, we have created a set of “ad hoc” features because the data domain is already known to us. 89 Figure 6.8: CDF vs. node success percentage of handheld devices. •Topological features is the dataset that extends the previous topological properties studied. It includes (1.1) the network topology (torus, Waxman, Erdős–Rényi and Barabási–Albert models), (1.2) the network size in terms of number of nodes, (1.3) the local density of the nodes (Clustering coefficient) embedded in the network, (1.4) the nodes’degree of each node and (1.5) the sum of each Neighbors’ degree at one hop. •Device features is the dataset that represents the network participants and their behavior. It includes (2.1) the amount of available resources for each device, (2.2) the device type (powerful or regular), (2.3) the number of rounds in which a user has requested resources to other nodes and (2.4) the number of requested resources per job. •Proximity features represent the relationship among nodes in the dataset. It includes some network distance metrics such as (3.1) the number of powerful nodes at one hop, (3.2) the total amount of Neighbors’ resources per node at one hop and (3.3) the sum of Two-hops neighbors’ resources from each node. Note there are a couple of features that have higher correlation (i.e. similarity) between them. In that case it is enough for this analysis to use one of them. 96 aggressiveness of the regular devices — in the sense that they perform a high number of requests (See Chapter 5) — was one of the key factors. Considering the modeled scenarios, when the available resources are scarce, the collaborative applications should wait for a random time period before trying to submit new jobs. It addresses two situations: (1) to reduce the probability of collision of those requests and (2) to increase the utilization of shared resources. The new behavior will impact the Quality of Service (QoS) of users at short term, while will improve the network and computing efficiency. Then, we have seen that the cooperation coefficient and the percentage of jobs finally done depends on the topology of the overlay network. In some scenarios we argued that it would be impossible to control how this overlay is built, while some times it may be forced by software design. In such cases, the software designers will be interested on implementing distributed algorithms to form networks with Small-world properties. Kleinberg identified the problem of how to find shortest paths in a decentralized way, in the case of Barabási–Albert network with only local information [107], which is the underlying idea for the work of Wang and Nakao [108], who propose a scheme of evolutionary game theory for topology evolution to change any given overlay topology into the Small-world structure. Finally, the third component affecting the cooperation was the access to resources and its distribution among the different locations. On one hand, participants with fewer resources need in average more external resources than powerful ones. On the other hand, powerful devices are interested on cooperate in exchange for future favors. This is achieved by improving the connectivity of regular nodes and incrementing the amount of heterogeneous edges. We proved it experimentally, providing a hotspot placement heuristic that increments the percentage of successful jobs 8% under favored conditions (just 2% if the overlay topology has high density). Chapter 7 Social effort on incentives Many of the current most successful cooperative applications have been built around a community of practitioners and experts rather than by just private initiatives or stakeholders. However, the access to shared resources is still regulated by traditional incentive mechanisms, which are usually based on participants’ contributions or resource sharing ignoring other non-technical activities that members voluntarily perform to keep the community alive (e.g., administration and coordination of the tasks). Therefore, some community members’ who have played an active role in supporting the development, maintenance and growing of the ecosystem may feel unfairly treated and discouraged to continue contributing if their effort is not recognized somehow by the community. In this chapter we focus our attention on measuring the effort of community members in non-technically related tasks by analyzing their interactions in common social venues, like mailing lists. In practice, it required first a) to test some structural analysis methods and b) propose a new framework to detect positions and roles in more complex social structures, like multi-relational and multi-layer graphs. This chapter is our first step towards the design of incentive mechanisms rewarding non-technical contributions on cooperative applications. 97 98 7.1 Introduction Like most large scale and distributed systems aimed to share resources in a competitive environment, cooperative applications must be built upon a supporting architecture with governing mechanisms that guarantees they can operate efficiently. In the previous chapters we have discussed how to build mechanisms more inclusive by a) measuring nodes’ efforts instead of their direct contributions when they are sharing computational resources (Chapter 5) or b) by introducing new computational resources in specific locations to increase the cooperating opportunities of nodes with fewer resources (Chapter 6). Both previous mechanisms are intended for scenarios where users can share their superfluous computational resources, but they can also be easily adapted to other common-pool resources. One characteristic of such scenarios is that users are organized together as a community to guarantee that the ecosystem works properly, instead of depending on some single authority. Although the main purpose of the community is to share some good, the tasks of community members also include other supporting activities necessary for the growth and improvement of the ecosystem (e.g., coordinating meetings, accounting). As an example, in volunteer and contributory applications communities the main activity of the participants is to share computational resources in exchange for others, while the supporting activities might include developing or improving the software, helping new members or simply taking care of the website. Traditionally, the governing policies only paid attention to the time and effort devoted to the main task of the community members, without considering that the supporting activities are also very important. This difference of criteria can cause a detachment from users towards the collective, creating a lack of human resources which will lead to an inoperative common-pool resource. However, under participatory economic principles, users — and more specifically, their time and effort devoted to the community — are also important measurable and accountable resources. According to this idea, our framework will measure the supporting activities performed by each user and report them as a social effort, which will grant similar rewards as sharing resources with others (a retribution in form of resources by their peers). While the mechanism had created for compensating users already performing supporting tasks, it is 99 expected that other users will join them as now they have an incentive to do so. In this chapter we narrowed the social venues under analysis to just on-line participatory forums, which allows us to easily track users’ interactions. The utility of users’ participation has been measured, hence, as its influence across the graph of relations with their peers on the different participatory forums. Therefore, the main contribution of this chapter is the introduction of a new framework to find positions and roles using comparisons between actors and sets of actors instead of just using pairwise comparisons . In this way we enable the usage of many more measures of similarity inside position and role detection methods (e.g., based on distances, community structure, triangles and cliques). As a result, we can identify new types of easily interpretable positions in complex graph structures like hypergraphs or multiplex/multi-relational networks (which is needed to represent the interactions among users in their common social venues). We have evaluated our work on both synthetic and real data, using several existing and new similarity measures and providing both qualitative and quantitative evidence of the new possibilities enabled by our approach. The next section presents a preliminary study motivating the development of a new framework for identifying role and positions. Section 7.3 describes the state of the art on blockmodeling systems for multi-dimensional data, while Section 7.4 revisits the main concepts related with blockmodeling. Section 7.5 describes our extended framework. Section 7.6 shows and discusses the obtained results. Section 7.7 presents the conclusions and the future work. 7.2 Motivation and problem definition Creating a social effort measurement that reflects the users’ involvement and participation in community supporting activities is a challenging task. Almost any activity performed by some user that is related with the community could be — potentially — considered as a contribution. Nevertheless, not all the possible actions are an effort worth of being considered a useful contribution for the community or to be rewarded. Given the impossibility of defining and measuring something as subjective as 100 what useful contributions are, in this work we focus our attention on on-line social venues and participatory forums because their nature make easier to collect information, while provide a good representation of the relative influence of users. 7.2.1 Measuring users participation in supporting activities In order to have a brief idea about the challenges we need to address while measuring the participation of users in such a complex system, let’s study the differences between users’ participation in the main activity and supporting activities in another context similar to ours. Figure 7.1 shows the empirical cumulative distribution function (ECDF) plotted as the Lorenz curve, of users participation in guifi.net [26], the largest community network [P1] to the best of our knowledge. The participation is measured separately as the number of new devices created by users — one of the main technical activities of network communities — and the number of messages exchanged in one of its participatory mailing list — which is a reflection of social interactions among users with the aim to share knowledge or help other members. Figure 7.1: Gini coefficient of two participatory forums in guifi.net. The Gini coefficient [109], measured as the area between the line of equality and each of the curves, is close to the absolute inequality in both activities — 0.8358 101 in the devices creation and 0.8320 in the message exchange. Most importantly, the Lorenz distribution function also suggests that network members behave differently in terms of participation in the examined forums. It is not unusual that there exists more than just one social venue or participatory forum helping users to develop their supporting activities in the same community. In the context of community networks, users might have a mailing list to discuss general topics concerning the community and other ones more generics to discuss software development efforts. As individuals, the community members can show also different contribution patterns on each of the participatory forums. Figure 7.2 shows this effect by plotting the number of messages and devices created by each user identified in two key mailing lists: users-list and dev-list. Figure 7.2: Guifi.net users participation We observe that most of the users are selective and choose to collaborate only on one kind of activity (main or supportive), contributing with little or nothing to the other. For example, there is a high concentration of users participating in the development mailing list, but these are users which contributed only with one or two devices to the physical communication network. Except for a few members — founders or evangelists — users tend to choose to collaborate only in one task of the community either the main one or supporting ones. 102 Notice also that users have heterogeneous levels of involvement on each participatory forum too, making it harder to measure their effort in the overall community. 7.2.2 Ranking users’ participation in supporting activities The second important challenge we need to address is how cluster users with similar levels of contribution, effort or involvement based on the inferred measurements. As a first attempt, we conduct the analysis of interactions in each participatory forum separately. Therefore, we built a graph with vertices representing users and edges representing that two users had some relation (e.g., they had exchanged messages, or built a physical link between their wireless nodes) 1 . Then, we will study the community structure in each participatory forum separately. Community structure is a common characteristic shown by most complex networks, which allows us to discuss common properties among their members. We analyzed the existence or not of community structures in our example as a result of interactions between their members. Each boxplot in the Figure 7.3 summarizes the nodes composition of communities detected in our participatory forums — Comm., Dev. and Users refer to the communication, dev-list and users-list graphs — using the clique percolation and Louvain methods (See 4.2.5). Members of a layer which do not belong to any community are not represented. The structural differences observed in the formation of both types of communities is a consequence of measuring the participation of users individually on very different activities. In the main activity, for example, the amount of users belonging to one or more communities is too small to be used as part of the measurement. Users do not form strong bonds with their peers, because these interactions mostly occur during new and sporadic setups of hardware devices. The interactions on supporting forums — mailing lists in this case — have higher chances to last, and hence form strong bonds among the members of the community. As an example, the Louvain method detects communities representing the 14.4% and 7.11%, of the users, while the clique percolation method reveals another community structure, enclosed by a core group of 1 How to build these graphs from the interactions in a mailing-list is the topic of Chapter 8. 103 Figure 7.3: Number of nodes by community. members representing around the 86.24% of the participants in both supporting activities. We can conclude, hence, that communities’ structures either do not reveal clear patterns of participation in supporting activities or are too inclusive to properly distinguish between different relational patterns (I) . Most probably, the social value of a community member in the common-pool resource is more influenced by its connectivity and position towards the rest of the participants than on his or her individual contributions. For instance, if somebody sends a lot of messages to a single person, it does not imply that he or she is generating any social value. As an alternative, we measured the individual impact of the users inside the network as their closeness centrality, HITS authorities and hubs (See 4.2.6). Table 7.1. It revealed that there are only two users in common on all layers among the 10 higher ranked members, which are identified as the network founders. There are also two members in common in the mailing list which do not appear as top ranked in the main activity layer. This is consistent with several studies about the structure of community networks [R2, R4] where their members reported that only a small fraction 104 Table 7.1: Top leaders in multiple participatory forums user-id Ranking schema communication users-list dev-list 0 closeness coefficient X X X 0 HITS authorities X X X 1 HITS authorities X X X 126 closeness coefficient X X 126 HITS authorities X X 32 closeness coefficient X X of participants are interested on contributing to several facets of the resourcepool ecosystem. Usually, senior members well connected and integrated, who coordinate the different participatory forums. Thereby, the participation of users in different supporting activities must be analyzed as a single and complex structure (II). Roles and positional analysis might offer techniques to understand and group users according their influence in several graphs (solving problem I). However, as we show in Section 7.4 traditional methods are limited to measures of similarity based on pairwise comparisons, limiting the analysis to multi-layer or multi-relational structures (which are necessary to solve problem II). Thereby, the remaining chapter focus on describing a new framework to find positions and roles using comparisons between actors and sets of actors instead of just using pairwise comparisons. 7.3 Related work 7.3.1 Other related techniques to blockmodeling Some recent advancements on generalized blockmodeling [16] are related with the problem of finding roles — or positions — based on different relations rather than direct connectivity of actors. In [110] authors use machine learning techniques based on latent links detection to infer the possible features defining the actors in the network, and hence to cluster actors based on them. As most 105 direct approaches, the technique finds optimal or sub-optimal roles and clusters. However, as a notion of equivalence is not explicitly defined, the semantics of the identified blocks and which types of roles they represent requires an additional interpretation. The work of Doreian et.al. [111] instead, proposes a mechanism to find roles in two-mode networks that is similar to the algorithm used in our proposal to find generalized roles in a matrix with different dimensions. The solution is efficient and effective when the two modes are disjoint sets of information, but it has not been defined for matrices relating actors with sets of actors. Finally, to our knowledge, none of the proposals in the literature of generalized blockmodeling differentiate roles and positions as two structures under the same assumptions of equivalence. Several generalizations have been developed to find positions without perfect similarity/dissimilarity [112], to be used in weighted graphs [16], or even to find non-trivial equivalent positions [113]. While these approaches have proved useful to detect some kinds of positions, and are flexible enough to accommodate different kinds of similarity functions, they are also based on pairwise relationships. However, the general idea of finding approximate equivalences is also fundamental in our framework, because a strict check for equivalence would rarely identify any groups of similar actors in real social networks. In this work, instead of just using pairwise relations we present a new framework to find positions and roles using comparisons between actors and sets of actors. With this change of perception, it is possible to find more complex positions, or to study traditional ones in more complex network representations. 7.3.2 Positions and roles in multi-dimensional graphs A recent work published by Rossi and Ahmed [114] is the closest work to our idea of extended relations. In their proposal, the authors describe a new taxonomy for role discovery methods, which also introduces the idea of “featurebased role discovery”. According to their proposal, the similarity between nodes can be measured using a set of node-structural features (e.g. degree, distance, etc.), which can be any set of measures taken from the initial graph. Together, they create a new matrix containing all the measures related to the actors. 112 Figure 7.5: Padgett’s marriage family network and approximate positions. D(i, {k, q}) =    1if i∈short. path betw. k and q 0otherwise (7.4) we can see that both Albizzi and Guadagni are on a shortest path between them. If we check other pairs of nodes, we can see that this is true in several other cases (e.g., to efficiently go from Bischeri to Ginori we should also pass through both Albizzi and Guadagni). In summary, Albizzi and Guadagni are included according our framework and the new similarity function D in the same position because they share the same relationship with other pairs of nodes, instead of single individuals. Figure 7.6 shows the corresponding extended matrix M . Each cell in the matrix corresponds to one binary relation between an actor i and a set of two other actors ( k, q ). The rows and columns have been arranged in order to group together similar positional actors. 113 Figure 7.6: Extended relations matrix for the Padgett’s marriage family network. 7.5.2 Positions and role assignment for simple graphs After computing our extended comparison matrix, which associates each actor in the network with the subsets of actors used to measure the equivalence, the next step consists in partitioning the actors into βM = β1, β2,...βm similar positions and ρZ=ρ1, ρ2, ρ3,...ρzsimilar roles. While in traditional blockmodeling, only one of the partitions are calculated because both – roles and positions – are considered interchangeable concepts, determined uniquely by the definition of equivalence used; in our framework they are different concepts that can be measured from the extended relations matrix. Positions are computed by clustering the rows of the extended matrix and forming groups of actors whose relation with the same subsets are similar. In the literature there are many clustering algorithms that can be used to make the rows clustering assignment. In order to simplify the results, and for comparison purposes with other indirect blockmodeling methods, we decided to use hierarchical clustering. In concrete, we first generate a dissimilarity matrix by computing the euclidean distance between rows of our extended matrix M and then we generate a hierarchical clustering using the Ward [119] cluster similarity function. The same procedure can be also repeated for the columns in order to highlight to which subsets each block is related with — even though positions are only 114 identified as subsets of the rows given the asymmetry of the matrix. Finding the optimal number of clusters for the positions assignments is discussed in detail in Section 7.5.3. As an example of positional analysis, we used our method and depicted in Figure 7.5 the resulting assignment of actors that are being part of the shortest path that connects pairs of nodes into four positions. Table 7.3, instead, shows the corresponding roles detected using the same equivalence. Notice that the two assignments are not identical. While the Medici family, as an example, is the single member of a role and a position, Strozzi and Tornabuon, who play the same social role, are in fact in different positions —- because they are in the same number of shortest paths, but between different sets of actors. Under a strict check of equivalences between the rows of the extended matrix, positions would be finer partitions of the roles. However, this is not guaranteed when approximate clustering algorithms are used. Table 7.3: Roles identified in Padgett’s marriage families network. ρ1ρ2ρ3ρ4ρ5 ACCIAIUOL CASTELLAN BARBADORI ALBIZZI MEDICI GINORI PERUZZI BISCHERI GUADAGNI LAMBERTES SALVIATI PAZZI TORNABUON PUCCI RIDOLFI STROZZI 0 4, 7 11 - 17 26, 27 50 A similar procedure is followed to identify roles, using the same extended matrix M previously used to compute positions. However, instead of comparing their relations with each subset of actors, we use their patterns of relations — that is, some summary of the distribution of row values. Then, actors are grouped using any clustering algorithm. 115 7.5.3 Positions and roles uncertainty We have previously mentioned the possibility of using different degrees of freedom for each definition of equivalence, especially when the notion of structural equivalence is used. This is common practice in the blockmodeling literature: it is unlikely to find any meaningful structurally equivalent positions in networks with dense structures, like Padgett’s marriage families network ( Figure 7.5): the normal variability in connectivity prevents us from finding two nodes with many connections and connected with the exact same other nodes. As a result, every single actor in the network will be placed in a different position with only one member. To relax the definition, and find meaningful positions and roles using indirect approaches, it is sometimes necessary to utilize some knowledge about the social network under analysis, e.g., specifying the number of expected positions. Figure 7.7: Dendrogram representing the hierarchical clustering in Figure 7.6 As an alternative, we can measure how good different partitioning are by measuring the relative distance between the maximum height of the hierarchical clustering and the height of the cutting point in the dendrogram. In Figure 7.7 we show it for our working example. Ideally, cutting the dendrogram at height h = 0% we will find positions where all the blocks are either complete or zero. As we pull up the cutting point we will increase the uncertainty, but we will be able to group actors into fewer positions. This relaxation of the block 116 formation can be applied to all extended measures, and make them comparable in terms of uncertainty. In our experiments we refer to “minimum height ( hmin )” as the minimum percentage of h needed, for a particular clustering, to find at least one position with more than one actor. Having a higher or lower hmin does not imply that a particular solution is more or less correct, but we can make the hypothesis that if larger positions are present in the data and the adopted similarity measure is appropriate, these will be identified with less need for approximations — on the other side of the scale, with h = 100% uncertainty all actors would be included into one single position. 7.5.4 Extending the framework for complex graphs Following our initial motivation of detecting roles and positions in multidimensional structures, we need to extend the proposed methodology to capture this information. It requires incorporating multi-relational measures into the extended relations matrix (e.g., multi-relational versions of betweenness centrality) considering the cost of moving from one relation to the other. Figure 7.8 allows us to compare the traditional blockmodeling solutions explored early (7.8a) with the extended framework for complex graphs (7.8a). While the original matrix is a regular cube storing the k adjacency matrices of the complex network, the new structure is a non-regular structure where each cell represents the similarity value between a user i and a set Sj in layer kbased on a specific comparison function D. Then, instead of calculating positions individually, or using an aggregation matrix; in our framework they are computed using a multi-relational measure. As an example, we could reuse our comparison function 7.4 by simply redefinining the pair {k, q} as pairs of nodes not part of any component in any layer. Therefore, the comparison function D ( i, {k, q} )will represent if a particular node iis a bridge vertex connecting two disconnected vertices. 117 (a) Traditional blockmodeling strategies (b) Multi-relational framework Figure 7.8: Blockmodeling frameworks for multi-relational graphs 7.6 Results In order to evaluate our framework we built a library in R using the blockmodelingpackage [120] as a baseline. The library has been used to perform the experimental analysis, which included the detection of roles and positions with different combinations of simple graphs and equivalences. It simplifies the 118 comparison of the identified structures with other equivalences well established, assuming that the extension of the methodology to higher-dimensional structures will still be meaningful. 7.6.1 Datasets We evaluated our proposal using a set of real social networks, which are representative of the social structures that arise from the physical interactions among actors — like the Padgett’s dataset — and are well known in the literature. Additionally, we created a set of synthetic networks for comparison purposes. •Florentine families [51]: contains a two-relational graph describing the social relations among Renaissance Florentine families (person aggregates) collected by John Padgett from historical documents. Both relations — business ties and marriage alliances — were used as individual graphs. •AUCS [121]: contains a five-relational graph describing the social relations among employees of a Computer Science department. The five relations are: lunch, work, co-authorship, leisure and Facebook friendship. For the analysis we have flattened the network into a mono-relational graph. •Synthetic data : contains a set of networks built using the Erdos- Renyi [47] and Barabasi [50] models, with the same number of nodes as our real networks, but varying densities. These networks are good representations of random graphs and the scale-free model which has been used for comparison purposes. 7.6.2 Other extended relations as equivalences On previous sections we have described our framework using the example measure of being in the shortest path (BSP) , which intends to capture actors in positions of connectivity between the same other actors. Next we describe a set of easily interpretable measures, intended to demonstrate the possibilities of our framework, and how to build their corresponding matrix M . 119 •Clique connectivity (CC) : given the set of cliques in the network, the CC groups together actors with the same number of ties to the same cliques. Hence, the — valued — matrix M contains network cliques as columns and as values the sum of ties between each actor Ui and the members in each clique Sl. •Minimum Clique connectivity (MCC) : given the set of cliques in the network, the MCC groups together actors with at least one tie to the same cliques. Hence, the — binary — matrix M contains network cliques as columns and 1 if the row actor has at least one tie with some member of the clique, 0 otherwise. •Community connectivity (COMC) : groups together actors that are connected to the same maximum-modularity communities. Hence, the — valued — matrix M contains the communities as columns, and the percentage of ties to their members as a values. •Others community connectivity (OCOMC) : groups together actors that are connected to other communities. Hence, the valued matrix M contains the communities as a columns, and the percentage of ties to their members as a values, discarding ties to its own community. 7.6.3 Framework validation As any indirect blockmodeling methodology, the meaning and profitability of the findings reported by our framework are highly tied with the similarity measure used, which has to be chosen carefully. Potentially, any measure based on the topological structure of the social network — like distance-based measures — could be used as an equivalence. However, in practice, it is necessary to discard measures of equivalence that do not find any dissimilarity — meaning, all actors are always grouped together — or measures where the assignment of actors into either roles or positions is a consequence of some random phenomenon. While the first problem is more dependent on the network structure (e.g., by definition we cannot find more than one position or role in Torus networks), the later is mostly related with our framework and hence we need to address it. In order to verify the lack of randomness in our equivalences we tested the 120 framework by comparing the positions found in our real social network with those found in 6 different synthetic random graphs. Figure 7.9 shows the number of different positions found as the percentage of uncertainty ( h ) using the several extended similarity measures. Measures are grouped together by pattern: the first plot (7.9a) groups together results regarding communities extended similarities — COMC and OCOMC —, the second plot (7.9b) regarding distance-based measures and cliques and the third one (7.9b) plots measures regarding only the minimum clique connectivity (MCC). On each plot, synthetic networks noted as “ER-p” are built according to the Erdos-Renyi model with probability p , while the networks noted as “BA-p” are scale-free graphs according to the Barabasi-Albert model with exponent p . Each experiment has been repeated 10 times in order to avoid random effects caused by the network formation. The experiment identified three different patterns of positions. Figure 7.9 shows, for each category, the number of positions found as y-axis and the corresponding uncertainty level h (x-axis). Hence, the left-most value of h for each curve represents the minimum uncertainty found in the measure ( hmin ). We can observe that in all three patterns the “real social” network always finds positions with equal (Figure 7.9a) or less (Figure 7.9b and Figure 7.9c) uncertainty as the synthetic graphs, and hence, closer to the ideal clustering of actors based on the definition of similarity. In general, random graphs like the Erdos-Renyi networks present higher values of uncertainty hmin when our method is used. On the other hand, Barabasi networks are formed by a preferential attachment process, which is more similar to the interaction processes that form social networks, and hence is more likely that the positions found are capturing some social properties from the graph. However, as the number of nodes in a graph decreases it is more likely that structural differences become less evident. As said, the same experiment, repeated with the Padgett’s marriage network and the corresponding synthetic graphs with the same number of nodes reveal that all similarity measures have hmin = 0% and follow the same pattern shown in Figure 7.9a. 121 (a) Community based results (b) SE, BSP and CC results (c) MCC results Figure 7.9: Number of different positions found as the percentage of uncertainty. 7.6.4 Similarity measures analysis The different sizes of positions depicted in Figure 7.9a are related with the flexibility, in terms of measure, of each equivalence. More sub-settings of