scieee AI-readable full text Open interactive document viewer

P2P Strategies for the Safe Distribution of Rich Media Content

Hélder Fernandes de Castro

Full text

P2P Strategies for the Safe Distribution of Rich Media Content by Helder Fernandes de Castro Dissertation submitted to the Faculty of Engineering of the University of Porto for the degree of Doctor of Philosophy in the Doctoral Program in Electrical and Computers Engineering Supervisor Artur Pimenta Alves (PhD), Co-Supervisor Maria Teresa Andrade (PhD) 2012 iii Abstract The production, distribution, and consumption of information goods have faced various challenges over the years. Currently, the status-quo in this field is being shaken by the emergence of the Internet as the prime ground for information exchange. This powerful new information distribution medium, is very attractive for consumers, who find it much more comfortable. It is also appealing for distributors as it enables a near costless replication and distribution of information commodities. If the on-line medium is combined with P2P distribution, such costs are decreased even further. However, this near annulment of the mentioned costs, by the Internet, has enabled an explosion of free content exchange. Content scarcity has thus been virtually eliminated in the on-line environment, and is thus challenging age-old intellectual-property regimes Commercial players have begun adopting all-digital on-line distribution and P2P distribution technologies, inscribed within operations that are characterized by Business Models (BMs) which have simply been transposed from the “real world” onto the on-line environment. These BMs are, typically, very dependent on the scarcity of the delivered content, thus, to make up for its natural loss, in the on-line medium, said BMs generally require the employment of access restricting Digital Rights Management (DRM) technology to artificially recreate the lost scarcity. In spite of the potential of the Internet medium, attested by the successes of many information content distributing initiatives (legitimate or not), commercial initiatives have generally attained unremarkable results. DRM technologies have frequently been resented and circumvented by users and consequently abandoned by commercial players. P2P distribution technology has also been retreated from, in favour of more traditional ones. Finally, the overall obtained economic results have generally, been unimpressive. In this work, we set of to discover and identify the root causes of the lack of success of commercial online (specifically, P2P based) content distribution initiatives, and, of the associated, frequent failure of DRM (security) technologies. We discovered that such root causes are, fundamentally, not technical but mostly economic and are related to the enforcement of inadequate, information scarcity dependent BMs in a scarcity adverse environment. We then identified some BMs which we believe to be adequate for such an environment. The existing P2P content distribution tools, both in the commercial and non-commercial sectors, are either inadequate or suboptimal, to provide the necessary support for the identified BMs. We thus proceeded to conceive a P2P content distribution architecture, upon which such BMs can be securely implemented. v Resumo A produção, distribuição e consumo de bens informacionais têm enfrentado vários desafios ao longo dos tempos. Actualmente, o status-quo neste campo está a ser abalado pelo surgimento da Internet como o terreno privilegiado para a troca de informação. Este novo e poderoso meio de distribuição de informação, é muito atraente para os consumidores, que o consideram muito mais confortável que anteriores soluções. É atraente também para os distribuidores de conteúdos informacionais, pois permite uma enorme redução dos custos replicação e distribuição desses bens. Se o meio on-line for combinado com a distribuição P2P, esses custos são reduzidos ainda mais. No entanto, a quase anulação de custos permitida pela Internet, abriu caminho a um crescimento explosivo na troca livre de conteúdos media. A escassez (no sentido económico do termo), de conteúdo informacional, foi assim praticamente eliminada no ambiente on-line, o que coloca sérios desafios aos regimes de propriedade intelectual há muito estabelecidos. Vários operadores comerciais começaram já a adoptar a distribuição digital e on-line assim como tecnologias de distribuição P2P. Isto tem sido feito no contexto de operações comerciais caracterizadas por Modelos de Negócios (MNs), que foram simplesmente transpostos do "mundo real" para o ambiente on-line. Estes MNs são, normalmente, estritamente dependentes da escassez do conteúdo distribuído. Por essa razão, para compensar a perda natural dessa escassez no meio on-line, os referidos BMs requerem, tipicamente, o emprego de tecnologia de restrição de acesso ao conteúdo, para artificialmente recriar a escassez perdida. A tecnologia em questão é globalmente chamada de tecnologia de Digital Rights Management (DRM). Apesar do potencial do meio Internet, atestado pelos sucessos de variadas iniciativas (legítimas ou não), na área da distribuição livre de conteúdo informacional, as iniciativas de cariz comercial têm geralmente obtido resultados nada notáveis. As tecnologias de DRM têm-se revelado incómodas para os utilizadores e são frequentemente por eles contornadas. Consequentemente, isto tem resultado no seu abandono pelos operadores comerciais. O emprego de tecnologias P2P de distribuição tem também recuado, em favor de outras mais tradicionais. Por fim, os resultados económicos obtidos têm, em geral, sido inexpressivos. Neste trabalho, tratamos de investigar e identificar as causas da falta geral de sucesso das iniciativas comerciais de distribuição de conteúdo on-line, (com um enfoque especial naquelas que empregam distribuição P2P), assim como da falha frequente das tecnologias DRM associadas. Descobrimos que essas causas não são, fundamentalmente, de natureza técnica, mas principalmente económica e que estão relacionadas com o emprego de MNs desadequados por dependerem da preservação da escassez dos bens distribuídos num ambiente adverso a essa escassez. Em face do anterior, procedemos então à identificação de alguns MNs que acreditamos serem adequados para tal ambiente. As ferramentas, actualmente existentes, para a distribuição P2P de conteúdo, tanto no sector comercial como no não-comercial, são inadequadas ou insuficientes, para fornecer o suporte necessário para os MNs identificados. Para responder a essa necessidade, concebemos uma arquitectura P2P de distribuição de conteúdo, sobre o qual os MNs referidos podem ser implementados com segurança. vii Acknowledgements This Ph.D. study was undertaken in six years, starting in November 2006, within the context of the Ph.D. program in Electrical Engineering at the Faculdade de Engenharia da Universidade do Porto. It was supported by the Fundação para a Ciência e a Tecnologia (FCT), during four of those years, and hosted, for the entirety of that period, at INESC TEC under the supervision of professors Artur Pimenta Alves and Maria Teresa Andrade. I would hereby, like to express my appreciation to FCT, for their important financial support, and to INESC TEC for their welcoming attitude, for providing me with a workplace in a dynamic and fruitful research environment and for their understanding of the specific work conditionments under which a Ph.D. student is. I would especially like to thank professors Artur Pimenta Alves and Maria Teresa Andrade for their valuable and patient guidance and support throughout the course of these Ph.D. works. I sincerely thank, also, all the colleagues with whom I have worked and exchanged ideas, during this period, in the context of the elaboration of scientific papers and of my involvement in research projects. Collaborating with them has enabled me to acquire new skills and concepts and to achieve a better divulging of the work that I have developed throughout the Ph.D. Finally I thank my family, and friends, for their unconditional and ever-present support. ix Contents Abstract .............................................................................................................................. iii Resumo................................................................................................................................ v Acknowledgements .......................................................................................................... vii Contents ............................................................................................................................. ix List of Figures and Tables ................................................................................................ xv Symbols and Acronyms ................................................................................................. xvii I Introduction ............................................................................................................. 1 1 Context ...................................................................................................................... 1 2 Objectives ................................................................................................................. 1 3 Major Results ............................................................................................................ 1 4 Structure of the Dissertation ...................................................................................... 2 II P2P Content Delivery Survey ................................................................................. 5 1 Introduction ............................................................................................................... 5 2 P2P Technology Survey ............................................................................................ 5 2.1 Introduction ........................................................................................................ 5 2.2 Technical Panorama .......................................................................................... 8 2.2.1 Introduction .................................................................................................... 8 2.2.2 Basic P2P Taxonomy ..................................................................................... 9 2.2.3 Content Discovery and Location .................................................................. 12 2.2.3.1 In Unstructured Architectures ............................................................... 12 2.2.3.2 In Structured Architectures ................................................................... 13 2.2.4 Content Exchange/Retrieval ........................................................................ 13 2.2.5 Content Availability ...................................................................................... 14 2.2.6 Content Management .................................................................................. 15 2.2.7 Benevolent Use Enforcement ...................................................................... 16 2.2.7.1 Trust Based Incentive Mechanisms ...................................................... 17 2.2.7.2 Trade Based Incentive Mechanisms ..................................................... 19 2.2.7.2.1 Resource Trading Schemes (Barter Based) .................................... 19 2.2.7.2.2 Micro-payments Schemes (Bond Based) ........................................ 20 2.2.8 Security ........................................................................................................ 20 2.2.8.1 Introduction .......................................................................................... 20 2.2.8.2 Identity Security .................................................................................... 21 2.2.8.3 Communication Security ...................................................................... 22 2.2.8.3.1 Communication Confidentiality ........................................................ 22 2.2.8.3.2 Communication Integrity and Authenticity ....................................... 23 2.2.8.3.3 Communication Anonymity ............................................................. 23 2.2.8.4 Content Security ................................................................................... 26 2.2.8.4.1 Content Integrity ............................................................................. 26 2.2.8.4.2 Content Integrity and Availability ..................................................... 27 2.2.8.4.3 Content Authenticity ........................................................................ 27 2.3 Noteworthy Systems ........................................................................................ 28 2.3.1 Introduction .................................................................................................. 28 2.3.2 Gnutella ....................................................................................................... 28 2.3.3 BitTorrent ..................................................................................................... 30 2.3.4 eDonkey ...................................................................................................... 32 2.3.5 FastTrack ..................................................................................................... 33 2.4 Summary ......................................................................................................... 35 xvi Figure 52 – PLL Information Location Describing Object ................................................... 167 Figure 53 – UELSIFile Structure ....................................................................................... 168 Figure 54 – User Registration Certificate Structure ........................................................... 169 Figure 55 – User Hosting Certificate Structure .................................................................. 170 Figure 56 – SQRO Structure ............................................................................................. 171 Figure 57 – MOList Schema Depiction .............................................................................. 172 Figure 58 – UELILDO Structure ........................................................................................ 173 Figure 59 – MO Retrieval Permit Structure ........................................................................ 175 Figure 60 – MOTHFile Structure ....................................................................................... 176 Figure 61 – MOIHFILE Structure ....................................................................................... 177 Figure 62 – ERR Structure ................................................................................................ 179 Figure 63 – ER Structure .................................................................................................. 179 Figure 64 – Contribution Interrelations and Publications ................................................... 197 Figure 65 – IPCLMHFile Example ..................................................................................... 201 Figure 66 – PLLSIHFile Example ...................................................................................... 202 Figure 67 – PLLPSIHFile Example .................................................................................... 203 Figure 68 – PLLPSICTopFile Example .............................................................................. 205 Figure 70 – Peer Registration Certificate Example ............................................................ 207 Figure 71 – Peer Info Object Example .............................................................................. 209 Figure 72 – Peer Quarantine List Example ........................................................................ 210 Figure 73 – PLL Info Object Retrieval Permit Example ...................................................... 212 Figure 74 – UELSIFile Example ........................................................................................ 213 Figure 75 – User Registration Certificate Example ............................................................ 216 Figure 76 – User Hosting Certificate Example ................................................................... 217 Figure 77 – SQRO Example .............................................................................................. 220 Figure 78 – UELILDO Example ......................................................................................... 224 Figure 79 – UEL Info Retrieval Permit Example ................................................................ 225 Figure 80 – MOTHFile Example ........................................................................................ 227 Figure 81 – MOIHFile Example ......................................................................................... 229 Figure 82 – ERR DID Example ......................................................................................... 232 Figure 83 – ER DID Example ............................................................................................ 235 Figure 84 – Inquiry IO Example ......................................................................................... 238 Figure 85 – Inquiry Response IO Example ........................................................................ 241 Figure 86 – CAN Coordinate Space divided between 5 zones (left side image) and 6 zones (right side image) (adapted from [2]) ................................................................................. 243 Figure 87 – Chord identifier circle (m=3) (adapted from [2]) .............................................. 246 Figure 88 – Neighbour Map maintained by a Tapestry Node with ID 67493 (adapted from [2]) ......................................................................................................................................... 247 Figure 89 – Tapestry/Plaxton Mesh Routing Example using 5 digit long IDs (adapted from [2]) .................................................................................................................................... 247 Table 1 – Notation for Figure 22 .......................................................................................... 69 Table 2 – Requirements to Implications Mapping ................................................................ 87 Table 3 – Peer Responsibilities ........................................................................................... 96 Table 4 – Notation Definition ............................................................................................. 107 Table 5 – Publications ....................................................................................................... 195 xvii Symbols and Acronyms CDist – A Content Distributor is a commercially operating entity whose activity consists of the distribution of media content. BM – A Business Model is a conceptual construct which describes the rationale of how an organization creates, delivers, and captures value. IG – An Information Good is a commodity whose main market value is derived from the information it contains. If it is not bound to a fixed physical body, the Information Good is just the information itself. IO – An Information Object is the same thing as an information good. DRM – Digital Rights Management is an activity, developed by hardware or software access control technologies, on behalf of copyright holders and individuals, whose purpose is to protect the rights of such entities, by controlling or limiting the use of their digital property and devices after sale. PKI – A Public Key Infrastructure is a set of hardware, software, people, policies, and procedures which work together to create, manage, distribute, use, store, and revoke digital certificates. TTP – A Trusted Third Party is an entity which facilitates interactions between two parties who both trust it. P2P – Peer-to-Peer is a mode of computer networking, where each computer in the network can directly interact with other network computers either as client or as a server, for the sharing of various resources such as files, peripherals, sensors, etc. 1 I Introduction 1 Context The on-going Internet revolution is changing the way that we interact with informational content, and exponentiating the amount of such content at our reach. This new medium, and associated technologies, has greatly lowered the costs associated to information reproduction, distribution and access, hence, contributing to the democratization of those activities. It has thus been primarily used for the free exchange of content (legitimately and illegitimately). In this field, P2P computer interaction has played a key role, as it optimally exploits Internet’s distribution costs reducing capabilities. The commercial sector is trying to catch up. It has developed various initiatives aimed at exploiting online content distribution. In an initial stage the promoters of these activities have typically tried to do a direct transposition of pre-Internet BMs onto the on-line environment and employed complex and heavy DRM technology to try to enforce “artificial scarcity” onto that environment. Many such experiments (with different BMs and supporting tools) have occurred and, some of them, are still in operation, employing P2P distribution. However, overall, the field is still immature. Commercial initiatives are lagging behind, free or pirate ones, in terms of their overall popularity, acceptance by the public and overall social impact. Economic failure, altogether, is not uncommon as well. This problem deserves attention because a purely pirate distribution of content is not sustainable. If those activities grow incessantly they may undermine the production of the very goods that such systems deliver. Furthermore, the tackling of that problem must definitely include, and not refrain from, all-digital on-line delivery (Internet), as this is an extremely powerful medium, whose capabilities for information manipulation and distribution must inevitably be exploited to the fullest. Thus If we wish to maintain a rich and evolving cultural sphere, while employing the most powerful means at our disposal ever (the Internet), for the distribution of information content, than we need to find solutions to enable a secure and sustainable exploitation of that medium that can assure the rewarding of information content producers. 2 Objectives The purpose of this work is to contribute, with concepts and tools, to the maturing of secure and sustainable on-line content deliver, specifically, over P2P networks. Our objectives are to thoroughly identify the causes of the disappointing performance of commercial on-line delivering initiatives, (specifically those operating over P2P), and to find adequate solutions to overcome the identified problems. 3 Major Results In line with what is expressed in the previous sections we have identified the main issues that have delayed the progress of secure and sustainable on-line content delivery, to be primordially of an economic nature. I Introduction 2 We realized that the entities attempting to attain an economically sustainable online distribution of information content, have frequently failed to securely exploit that medium because they have not correctly assessed the full depth of the changes brought on by the Internet, such as the elimination of information scarcity that it has led to, and have thus been employing inadequate BMs. We thus performed our own in depth analysis of the present state of things and derived the necessary conclusions. Building on them we defined a set of possible BMs appropriate for a sustainable exploitation of on-line content distribution. As the tools to optimally support such BMs over a P2P operation mode are missing, we then defined a suitable P2P architecture which offers the necessary tools. We can thus state that the work conducted during the course of this dissertation has successfully arrived to the formulated objectives. Notably: • we identified of the main causes preventing a solid adoption of the on-line medium for commercial content distribution (specifically P2P); • we developed and formalized new BMs, specifically conceived for said on-line operation and, thus, optimally adapted to the new content access paradigm which that medium entails; • we conceived and designed, to a certain degree of detail, an appropriate technical support structure for those BMs, thus demonstrating the feasibility of sustainable and secure P2P content distribution; • additionally, we also developed some work on the field media object structuring and enrichment which resulted in an addition to the MPEG-21 international standard. Accordingly, based on the outcomes of this thesis, we can claim that it is indeed possible to implement successful on-line businesses, which employ P2P content distribution, while taking full advantage of the great potentialities and flexibility offered by the Internet for information content production, distribution and access. 4 Structure of the Dissertation Figure 1 presents a graphical depiction of the various parts of this dissertation, of their role in it and of their interrelations. In Figure 1, white boxes represent a chapter (or a section of it), grey boxes represent annexes, the gradient filled box represents the problem which is identified and addressed in this work, and the rounded corner boxes represent the relationships between the previous “entities”. Chapter II contains a description of the present state-of-the-art in the field of P2P content distribution, as well as in the associated fields of DRM technologies and P2P distribution employment in commercial initiatives. The contents of this chapter are complemented by those of Annex B. Chapter III presents our analysis of the above mentioned state-of-the-art. It thus performs the identification of the precise problem/shortcoming, afflicting the present P2P content distribution scenario. Chapter IV and V present the proposed solutions for the identified problem. The businessoriented component, of such solutions, is presented in chapter IV, whereas the technical component is presented in chapter V. The content of chapter IV is complemented by Annex C, and that of chapter V by Annex A and D. I Introduction 3 Figure 1 – Structure of the Dissertation In chapter VI we expose the comparative advantages of our solutions and their specific contributions to the advancement of the state of the art in the field of sustainable and safe distribution of media content over P2P. This chapter also presents the publications that were achieved in the scope of such contributions. Finally, in chapter VII, we present our concluding remarks and expose the main venues for the future continuation of the developed work. 5 II P2P Content Delivery Survey 1 Introduction This PhD work focuses on the development of safe solutions for the P2P distribution of media content. This safeness should be interpreted in a broad manner. It encompasses both reliability of content discovery and retrieval/distribution as well as more strictly security related aspects, such as communicational confidentiality, exchanged data integrity, authenticity and non-repudiability, as well as privacy and anonymity. The solutions, that are sought for are meant for legitimate P2P content distribution initiatives. These are, typically, commercial ones. Such initiatives involve various aspects, other than just the mere P2P distribution of content, which profoundly impact that distribution. The most relevant of such aspects are the copyright protecting DRM technologies, which are employed in parallel to P2P distribution, and the manner in which both these technologies are combined for the support of specific Business Models. These factors will, thus, guide and condition the present survey. The survey is divided into three parts. The first one, section 2, describes the state of the art in what regards P2P content distribution. The second, section 3, presents an overview of the current state of development of DRM technology and related initiatives. The third part, section 4, discusses the intersection of the technologies presented in the previous two sections, in the context of current commercial, P2P based, media content distribution initiatives. This last section is not limited to the discussion of technological issues as it includes a short discussion of some economic aspects 2 P2P Technology Survey 2.1 Introduction Peer-to-peer (P2P) is a communication model in which each of the intervenient parts has the same capabilities, and either party can initiate a communication session [1], as opposed to the Client-Server model, where each party (server or client) has a different and specific role assigned to it. A peer-to-peer computer network links its constituting nodes via ad hoc connections and relies mainly on the computing power and bandwidth of the network’s participants rather than concentrating it in a reduced number of central nodes (servers). In “pure” peer-to-peer networks, no clients or servers exist and all nodes present equal behaviour, simultaneously operating as both "clients" and "servers” (see Figure 2). In other cases, these systems may have a more hybrid operation, resorting to some centralization for some specific purposes, within the overall P2P operation. P2P computer networks are typically designed for the sharing of computer resources such as, content, storage and CPU cycles (among others), through direct exchange, rather than requiring the intermediation of a centralized server or entity [2]. The section of these systems devoted to the distribution/sharing of informational content on the Internet, is that which as, recently, received most of the growing, research and public attention surrounding P2P. It is mostly on this subset, of the possible applications of peer-to-peer computer interaction that this survey focuses on. II P2P Content Delivery Survey 6 Figure 2 – Pure P2P Interaction Overview Peer-to-peer is not entirely new. The term P2P in itself is relatively new, but basic P2P technology has existed for as long as USENET and FidoNet since the late 70s early 80s of the 20 th century [3]. USENET, was originally created in 1979 by two Duke University graduate students, for the distribution of e-mail-like messages (called "articles") to newsgroups. Files were distributed in batches over phone lines using a flooding algorithm. Consequently, there was no effective way to centralize the functioning of USENET. The resulting application was an extremely decentralized and distributed one [3]. FidoNet, such as USENET, is a decentralized and distributed application for the exchange of messages between users of different Bulletin Board System (BBSs). After experiencing an initial exponential growth and a later shrinking in size because of the closure of many BBSs, it remains in use today [3]. Recently, though, the interest for P2P networking has grown tremendously [4] [5], among Internet users and professionals, especially in the case of file-sharing applications. This renewed and globalized interest began growing in 1999 when an 18-year-old college student developed Napster, which combined the instant-messaging system of IRC, the file-sharing functions of Microsoft Windows and UNIX, and the advanced searching capabilities of various search engines for the facilitation of online digital music files swapping [6]. It became the fastest growing software online, of all time [6]. Such a rapid growth, though, was made possible by three factors which characterized that time [6]: • growing Internet access bandwidth; • growing desktop processor power; • decreasing prices for data storage units. Napster's facilitation of the transfer of copyrighted material led to its legal prosecution by copyright owners, which filed a law suit against it in December 1999 [7]. Napster was condemned, and after some further attempts for its maintenance online, it was finally terminated in 2002 [8]. II P2P Content Delivery Survey 7 Nonetheless, the open space left by Napster's demise was swiftly occupied by numerous other applications/networks, such as FastTrack and Gnutella, and the number of P2P technology users kept rising exponentially [6]. The post-Napster applications adopted a decentralised approach, which made them harder to police (and to target judicially), and have also gained an added range of capabilities. Distributed lists and searching procedures were developed and are offered by such networks as FastTrack and Gnutella [9]. Content can now be retrieved in separate blocs from different hosts simultaneously, minimizing the strain on their bandwidth, and increasing the availability of the specific content. Even the user’s privacy can now be preserved, (up to a certain point), by some systems, such as Freenet, which allows anonymous exchange of content [10]. Promising developments were also made in P2P look-up services based on distributed Dynamic Hash Tables (DHTs), which organize peers into structured overlay networks, assigning each data item to a specific peer, thus allowing much faster searches. Many promising applications (cooperative file systems, P2P caching, multicast, mobility management, denial-of-service protection, and presence detection), can potentially be built on top of these look-up services. Furthermore, with the advancement of P2P software and protocols, several of the developed systems, like Gnutella, Gnutella2, EDonkey Network [11], etc., are either interoperable and/or can be accessed through a single interface/application, thus maximizing their overall capacity and attractiveness. Even though the development of P2P technologies has had to face some legal obstacles, it was not stopped. Relatively recently, P2P technologies have even begun to be embraced by large and legitimate companies, either for the optimization of their inner data structures or to try to tap into its vast potential for the distribution of information rich content such as music or video. The embrace and development of P2P content distribution in the commercial and noncommercial sectors, has, nonetheless, been uneven. The development of P2P technologies and their employment in non-commercial content distribution initiatives (legitimate or copyright infringing), has proceeded tremendously fast. These solutions are typically developed in an open and cooperative manner, and are freely distributed. This contributes to an accelerated development pace, increased user receptivity and, thus, a reduced deployment time. In the commercial sector, that process has been much slower. Such initiatives, generally employ either proprietary P2P solutions or pre-existing ones. This sector has not invested a comparable amount of effort on the development of P2P solutions and the efforts that have, in fact been, made, were not done in an environment of openness and interoperability. The structure of the survey, of the P2P content delivery field, here presented, is composed by the following sub-sections: • section 2.2 presents the current status of the overall technical field of P2P content delivery; • section 2.3 presents the most relevant P2P content distribution systems, in existence, which embody the technical provisions described in section 2.2; • section 2.4 contains a summarizing analysis of the field in scope. Throughout the presented survey, a special emphasis is placed on the observation of security and reliability aspects of the approached P2P solutions and technologies. II P2P Content Delivery Survey 14 generally leads to a greater content availability and allows for a speedier download of content than its bulk exchange counterpart. Furthermore, fragmented multi-sourced content retrieval allows a more efficient application of bartering schemes, as is the case for the BitTorrent system. In the cases were the P2P protocol enforces a validation of the downloaded content, to combat pollution and data corruption, this content retrieval scheme is also more advantageous as it permits the immediate discarding of corrupted fragments eliminating the need to download the entire content before being able to assess its validity. 2.2.5 Content Availability The content delivered, by content distribution P2P systems, is distributed and stored through the system’s composing peers, which individually are not reliable. In order to ensure the persistence of content access, and to ease its diffusion, these systems resort to the replication of content on a varying number of nodes. This enhances their overall performance in terms of content accessibility and also in what regards resisting censorship attempts and sabotage [2]. Such content replication schemes can be divided into the following types [2]: • Passive Replication – The content is backed up and thus replicated in every peer which requests it and retrieves it form another peer. This way the content’s diffusion occurs in an unenforced way according to natural demand; • Cache-Based Replication – According to this scheme a specific content is not replicated only in the nodes which requested it but also in all the nodes which, somehow, come into contact with it. For instance, in Freenet [10], upon a successful search and location of a resource, it is transferred back to the requesting node through all the nodes which were initially traversed by the search request. The traversed nodes will all save a local copy of the resource thus increasing its overall availability; • Active Replication – In this type of scheme, active methods and mechanisms are employed to coordinate, or make more agile, the diffusion of content throughout the network so as to improve the resource’s locality and availability; • Other techniques – Some techniques, such as that used by OceanStore [26] (a project for a global persistent data store), resort to the observation of traffic and content demand to determine the content replication needs, and act upon that in order to satisfy demand. Data replication creates problems in the fields of data consistency and synchronization (making sure that all the copies of a resource are all equal and that, upon updating of the resource, that all the copies are equally updated), especially in P2P content distribution systems, which are built to permit the deletion and updating of the distributed/stored content. Many times some type of a trade-off must be accepted by maintaining an acceptable ratio between data consistency restrictions and data replication and thus availability [2]. Content replication presents greater problems to structured systems because of the stricter relationship between resource identifiers and locations that takes place in such systems. Nonetheless, solutions have been devised for this, which generally resort to the use of aliases, multiple hash functions, successor-lists or leaf-sets [27]. II P2P Content Delivery Survey 15 2.2.6 Content Management A typical P2P computer system’s operation is based upon the sharing of some type of resource between its constituting nodes. Such a resource may be information (typically stored in files), data storage space, data transmission capacity, processing capacity, etc. As in all systems were resource sharing between multiple independent entities occurs, it becomes necessary to employ some form of coordination, or management, of the access to those resources, and their consumption, so that it can occur in a rational and sustainable way, and so that the system may provide a reliable, efficient and constant service to the nodes which compose it. The resource management operations more frequently offered are those which permit content location and retrieval. Nonetheless, several other additional operations may be supplied, for instance, for the removal (or usage invalidation) of resources, for the updating of resources, for the creation and maintenance of different versions of a resource, or for the imposition of content consumption restrictions. It should be noted that the distributed nature of these networks, the unreliability of its composing nodes and the ease with which they can be infiltrated by nefarious peers, makes any task of global coordination difficult. Within the realm of content distributing P2P networks, the following resource management facilities and practical examples stand out: • Content Deletion and Update – The enforcing of global content deletion and updating, in a synchronized and coordinated fashion (P2P network wise), is not a simple goal to achieve. Still, some systems offer these, or similar, functionalities. For instance PAST [28], does not truly support delete functionality. Instead, the owner of a file may reclaim the storage space associated to it but it does not guarantee that the file will, globally, cease to be available. Another example is the Publius system. In it the files are published in association with password information, assuring that only the publisher can later delete or change the content. Still this system resorts to a predefined set of servers for content storage [29]; • Content Validity Expiration – Some systems provide mechanisms to allow the imposition of validity terms to the information which they distribute. The FreeHaven project enforces document expiration through the use of Rabin’s information dispersal algorithm, and the signing of the data shares which carry with them validity time-stamps; • Content Versioning – This functionality consists of permitting the insertion, and existence, of several different versions of the same content, simultaneously, in the system, in a controlled, organized and reliable way. OceanStore [26], for instance, offers such functionality by employing universal unique data object identifiers, data encoding and redundant and ring-structured distribution and document id lists maintenance; • Directory Structure – Some systems provide an abstraction layer, above content access, which works as a global directory structure. This way, they provide a mask, which hides the distributed nature of the network and of content location. Mnemosyne [30] is one such system. The WayFinder system also supports a distributed directory structure over a P2P infrastructure [31], by overlaying the individual peer’s directory structures on top of one another resorting to name or semantic proximity. Ivy [32], implements a multi- II P2P Content Delivery Survey 16 user read/write P2P file system. It employs a set of logs, (one log per participant), stored in a DHash distributed hash table. Data is located and retrieved by consulting all logs, yet data modification is achieved through the modification of only the log of the modifying peer; • Content Searching – Content discovery capabilities may also exist, in varying performance and efficiently levels. Unstructured P2P topologies (Gnutella, Kazaa), provide keyword based search functionalities whose use is intuitive but not efficiently scalable. Structured systems provide very efficient content discovery facilities, but these are based on rigid file identifiers. The development of mechanisms for the provision of keyword based search facilities operation, upon an exact-match query sub-layer is something that is still to be satisfactorily handled; • Data Storage and Bandwidth Management – This consists of the managing of data storage space and bandwidth usage by the peers. The amount of disk space that is to be contributed with, by each peer, is generally something that each one of them can specify independently. MojoNation allows users to donate data storage capacity in exchange for economic or other type or rewarding. The PAST system [28] employs a secure quota system. The system’s users are either attributed a fixed quota of data storage capacity, which they can consume, or alternatively they can take advantage of as much capacity as that which they contribute themselves, on their node. The PAST system also proposes an optional extension of itself, for the incorporation of reliable organizations, named brokers. These are able of trading storage capacity and of issuing smartcards to users, which control the storage capacity usage and supply, that a user can or must perform respectively. Besides the quota system, these schemes may employ additional methods to prevent or dissuade nefarious events, such as denial of service attacks. Publius, for instance, employs such methods. Its publishers are requested to perform computational work, solving a mathematical problem, before obtaining permission to publish content. The Kosha system, is a proposal for a P2P enhancement of network file systems. According to its operating scheme, the participating nodes are organized into a structured P2P overlay. It employs NFS facilities to make files available throughout the network assuring file location transparency [33]; 2.2.7 Benevolent Use Enforcement P2P systems are especially dependent on the voluntary and benign participation of their users and constituent nodes, in order to provide a reliable and efficient service. This makes it necessary to employ mechanisms which promote and stimulate a benign and cooperative behaviour, from the users and peers, as well as to provide some support for the accountability of actions performed and for the “punishing” of sabotaging or selfish behaviour [2]. Uncooperative behaviour, in P2P systems, generally consists of the so-called "free-rider" attitude, where users/nodes only consume the system’s resources and do not contribute back with any. Sabotaging behaviour, on the other hand, comprises a vas set of possible actions, like: • Poisoning and polluting attacks, where corrupted, or somehow altered content, which does not correspond to its description, is injected into the system thus rendering the search for desired assets more inefficient; • Insertion of viruses or malware into carried data; II P2P Content Delivery Survey 17 • Denial-of-service attacks where some portion of the network (or possibly all of it), is deliberately overwhelmed with inflowing information by other network peers which take advantage of their inside knowledge of the system; • Spamming, where unsolicited information is sent across the network; • Collusion attacks, where multiple nodes cooperate in order to, somehow, harm, elude or manipulate the network for their own selfish or sabotaging purposes. Such behaviour may be motivated by any number of reasons, such as: • the desire to manipulate the systems for some kind of inappropriate, individual gain; • vandalism; • the attaining of some gain, coming from the damaging of the network’s operability. P2P solutions lacking the referred mechanisms will most likely experience systemic problems ranging from significant degradation of performance to unreliable and untrustworthy availability of resources, or even to complete system inoperability. Still, it is technically very difficult to promote incentives for fair use and to provide accountability in peer-to-peer systems. The transient population of users/peers, the difficulty to perform peer identification and to maintain trustworthy records about peer’s past behaviour and the level of decentralization of these systems makes it so [2]. Two main types of solutions have been put forward for the enforcing of fair and benevolent use in P2P systems [2]: • Trust-based Incentive Mechanisms – These mechanisms use trust as the determining factor for the establishment of a P2P transaction. Users/peers will be prompted to maintain a posture which will earn them the confidence of the other peers and thus contribute to better servicing of their requests. The principal example of such mechanisms are the Reputation Management mechanisms; • Trade-based Incentive Mechanisms – When these mechanisms are employed, whenever a peer is sharing some resource, and thus servicing the system, it is immediately rewarded by the system, either directly or indirectly, and vice versa. This category is fundamentally composed by various micro-payment mechanisms and resource trading schemes such as Bartering Mechanisms. The next sub-sections focus on the main types of Trust-based Incentive Mechanisms (Reputation Mechanisms) and Trade-based Incentive Mechanisms. 2.2.7.1 Trust Based Incentive Mechanisms In trust based incentive mechanisms, a peer accedes to cooperate, or fulfil another peer’s request, if it trusts the requesting peer (or if its trusted peers trust it). In this way, the serviced peer is not compelled to explicitly reward the servicing peer. The service is performed because in that way the servicing node earns the trust of the serviced peer and of the community/network. That earned trust will later be beneficial to it when it seeks to be serviced by the community. Enabling of this type of incentive system requires the systematic evaluation of the behavioural history of the peers (or their reputation), by each other, and thus implies the existence of some reputation computation infrastructure or mechanism. These are called reputation management systems. Such systems operate as organized, inter-peer, information exchange networks, where the transacted data describes the perception, by the emitting peers, of the behaviour of the other such nodes, with which they interact. This is done in a way so as to permit that each node II P2P Content Delivery Survey 18 may obtain a notion of the reliability and trustworthiness of the surrounding mean (P2P system). These mechanisms can be implemented in a relatively easy and reliable way, when a trusted centralized entity exists, which can be resorted to for the coordination, monitoring and information delivering, concerning node behaviour. Still, this is not the case for the typical P2P systems. In most peer-to-peer networks, given their distributed nature and the difficulty in unequivocally identifying peers, no single, recognizable entity exits which is in a position to manage and distribute reputation information. Therefore such information must also be managed in a distribute way throughout the network. The main purpose of P2P reputation management systems is to perform or facilitate the aggregation of reputation information which is obtained by the individual peers, in the regular interaction with each other, and to it make available, throughout the entire network, in a safe and scalable way, thus permitting the formation of a global reputation rating for the system’s constituting peers. Several such mechanisms have been proposed and/or implemented [2]. A few examples are presented below: • The EigenTrust algorithm, which compiles global reputation data about peers based upon their history of uploads. This data is distributed through the network’s peers which they use in order to evaluate each other’s credibility before engaging in exchanges. Such global reputation values are calculated using the local reputation values which peers assign each other and weighing them by the global reputation of the assigning peers [34]; • A partially centralized mechanism has been put forward in [35]. This system uses central reputation computation agents and data encryption, in order to securely manage and locally store, reputation information. Two different ways were conceived for the calculation of reputation values, a credit/debit and a credit only scheme; • PeerTrust is a decentralized reputation mechanism presented in [36]. According to this scheme, a trust value for a peer is calculated based on: the level of satisfaction proportioned to other peers, by that peer; the total number of transactions in which the peer was involved; and a balancing factor to attenuate the effects of malicious reports. The reputation data is stored in the network in a distributed fashion; • Approaches based on the peer’s utility to the system, instead of on its cooperativeness and fairplay, have also been proposed. These mechanisms resort to the calculation of a peer’s utility, based on the amount and popularity of content stored and shared by the peer [37]; • Distributed auditing mechanisms have also been considered for the enforcement of fair and benevolent use. In such schemes, nodes will more or less randomly audit each other’s logs, comparing them with those of every node with which the audited node claims to have share a resource. This way, prevaricating nodes will be detected. This scheme implies some way to unambiguously and universally identify peers; • A proposal also exists for combined use of the reputations of peers and resources [38], which provides a finer grained picture of the credible assets in a P2P system. II P2P Content Delivery Survey 19 Just like other components of P2P architectures, reputation systems are also the target of attacks. The purpose of such attacks is not to directly affect the availability of resources, but mainly to hamper the system’s ability to provide accountability for malicious behaviour on the part of the participating peers. These attacks may be of multiple types. Some of the most relevant ones include: • a peer joins the system and behaves in a correct manner long enough to obtain a good reputation. It them starts behaving inappropriately; • groups of peers collude in order to provide each other undeserved positive reputations; • isolated peers, or groups of them, cooperate to damage the reputation of other peer(s), for instance through “ID stealth“ behaviour [38]; • the peer(s) exploit the use of pseudonyms, by P2P systems (given the lack of a central peer identifying entity), by creating and controlling multiple identities, in order to be able to discard the bad reputation earned into some of the identities, while leaving the reputation of the others untouched. 2.2.7.2 Trade Based Incentive Mechanisms In trade based incentive mechanisms, a peer accedes to cooperate, or fulfil, another peer’s request if it is explicitly rewarded for that. Such reward consists of a resource/service that the requesting peer supplies/performs for the cooperating/servicing peer, and in this way, both the peers obtain a gain from the transaction. While in trust based systems, confidence is earned throughout time and can be later profited from, whenever desired. In trade based incentive mechanisms, when a peer wishes to consume some resource from the system it must contribute with a resource of its own, more or less, immediately. Trade based incentive mechanisms can be classified as either providing immediate reward (barter trade based), or deferred reward (bond based). Generally the barter trade based mechanisms involve the immediate mutual exchange of resources (files), and thus, can be called resource trading schemes. The bond based schemes involve the exchange, between peers, of “bonds” in which the requesting peer promises an action in return to the servicing peer [31]. These can be considered micropayments schemes. 2.2.7.2.1 Resource Trading Schemes (Barter Based) This type of trading schemes, which, as previously explained, imply a direct mutual exchange of resources between the peers, are arguably the most appropriate for insuring the sustainability of peer-to-peer economies and communities/systems in their initial stages of existence [39]. Several such schemes have been proposed or implemented. One of the most notable, of such mechanisms, is that which is implemented in BitTorrent [40]. In the BitTorrent system the resources (files) are broken into several smaller pieces. Each peer, who desires to obtain the entire resource, must retrieve all the pieces from other peers, which already have them. In the process, the peers reciprocate by uploading the fractions of the resource, which they have, to peers which don’t have it, and which are uploading to them. In this way, the peers form bidirectional content delivering connections implementing the bartering system. II P2P Content Delivery Survey 20 In [41] a bartering system is presented, which proposes an extension to simple one-to-one exchanges, in order to permit transitive chains of peer exchanges, where n-way transactions take place between rings of peers. It also proposes an algorithm for the detection of the content exchange rings Another resource trading mechanism is proposed in [42], where peers acquire resources, from other peers in the network, by trading with their own resources. The main resource, in which the work is focused, is storage space/data. However, it also theorizes the extension of the tradable goods to processing cycles or even to abstract resources, as well as the trade of one type of resource for another. 2.2.7.2.2 Micro-payments Schemes (Bond Based) Several centralized and decentralized micro-payment (or bond), based incentive systems have been developed or proposed for P2P networks. Some possible examples are: • A decentralized bond based incentive mechanism is that which is employed by FreeHaven. The nodes which constitute this network establish contracts, to store each other's data, for a certain period of time. By honouring the established contracts, a node increases its reputation, and thus the chances of the other peers honouring its commitments to it [43]; • In [44] a bond based incentive system is presented, whose operation is based on the maintenance of a distributed list of the resource consumption and contribution of each participating peer. The accumulated credits of a node increase as it contributes with resources, and decrease as the node consumes resources; • A proposal for a peer-to-peer system where each peer is a software agent and where all the agents cooperate for mutual benefit is laid forth in [45]. Two pricing mechanisms are presented to motivate each agent to maintain a rational and selfadvantageous behaviour while at the same time safeguarding systemic efficiency; • In [46] a micropayment system, PPay, is presented, which takes advantage of the specific characteristics of P2P networks, to optimize its operation and assure security, guaranteeing that all fraud is detectable, traceable and unprofitable through the employment of the concepts of floating and self-managed currency. Micro-payment schemes fall under two main categories [47]: • Fungible – in these payment types, peers are paid with something redeemable, that may later be used in exchange with other peers; • Non-fungible - in these payment types, peers are paid with something that cannot be traded with other peers. 2.2.8 Security 2.2.8.1 Introduction P2P content distribution systems are voluntarily formed and have a distributed, open and autonomous nature. These networks are constituted by inherently selfish and unreliable nodes (or even non-benevolent nodes), whose behaviour is erratic and unpredictable. In such conditions it is hard, for such systems, to provide a secure peer interaction and content exchange environment. Some mechanisms must, thus, be put in place, so that P2P networks may achieve some operational security and reliability. The main concerns generally addressed by such mechanisms are [2]: II P2P Content Delivery Survey 21 • Identity security – these mechanisms are meant to enable the maintenance of identity verifiability for peers and users; • Communication security – these mechanisms are meant to enable the maintenance of communicational confidentiality, integrity, authenticity and anonymity; • Content security – these mechanisms are meant to enable the maintenance of content integrity, authenticity, availability, and access control; The security related mechanisms, of P2P systems, frequently involve cryptographic means [2]. These are based on either symmetric/secret key or asymmetric/public key schemes, or combinations of the two: • secret key schemes operate based on a common knowledge of a secret key by the sender and receiver/storer. The key is used for encryption and decryption of data and message authentication. These mechanisms require that the keys are separately and a priori distributed in an out of bound procedure [6]; • public key based mechanisms use asymmetric key pairs. One of the keys is publicly distributed, while the other is kept private. In these schemes no need for an out-of- band key distribution structure exists, nonetheless it is still necessary to assure the safe distribution of public keys [6]. 2.2.8.2 Identity Security Distributed systems, such as P2P networks, which have a very transient population, allow for a single physical entity, (peer or user), to participate in it, under several different identities. This fact poses a set of security challenges, related to access control, authentication (or verifiable identification), and reliability of identity management. These security issues may have an especially negative impact on P2P systems which employ content replication or fragmentation schemes, for the distribution of content, across multiple nodes, for security and availability. The use of multiple identities by a single physical entity for nefarious purposes or to engage in selfish behaviour is known as a “Sybil Attack". Given its relevance, this problem has received a fair deal of attention, and some solutions have been proposed. Some solutions are based on the consumption of identification challenges, for the deterrence of identity forging. These however are considered unrealistic and impractical [48], seen as they presuppose that: • all peers operate under nearly identical resource constraints; • all identities presented by peers are validated simultaneously by all the participating peers; • when accepting identities that are not directly validated, the required number of vouching peers exceeds the number of system wide failure. Other proposals exist, for enabling P2P systems to support peer registration (and subsequently, some anonymity provision, content authenticity verifiability and content availability), which are generally based on distributed algorithms, more or less independent from any fixed central entity. The most robust of such proposals employ some form of collective/mutual authentication between peers. Some of these are: • threshold cryptography [49], (which is not purely distributed as it requires a trusted third party); • PGP [50] (which requires human evaluation of trustworthiness); • “trusted peer group” based authentication [51]. Further solutions, yet, are proposed: II P2P Content Delivery Survey 22 • in [52] a proposal is made for a self-registration based mechanism, where nodes calculate their identifier based on their IP address and port, and register it in the P2P network itself, at already successfully registered nodes; • in [53] a method is proposed to deal with flooding and DoS attacks, and thus deter inappropriate access, which is based in the issuing of a resource consuming cryptographic puzzle to the requesting peer, when the contacted peer suspects that it is under attack, so that the attacker spends more resources than the victim. This technique can be used to defend against “Sybil Attacks” by overburdening an attacker; • in [54] a system is presented which provides access control enforcing such capabilities as reading and writing restricting to only authorized users, through the employment of data encryption and the provision of updated keys to authorized recipients. Systems or proposals such as those presented in [55] and [56] employ one form or another of a central authority for the assignment of identities. In private P2P networks, given their smaller dimensions and the fact that the involved users typically know each other, it is possible for users to safely exchange cryptographic keys and identifiers out-of-band. These parameters may then be employed to perform the mutual authentication of peers and users. Most of the above presented solutions (those which do not employ any trusted central authority for identity provision), however robust, still present considerable weaknesses in the face of sufficiently vast and sophisticated attacks, and (in the case of the collective/mutual authentication based ones) lead to a considerable operational overhead. In truth, it can be conclusively stated that an implicit, or explicit central certification or identification authority is inevitably necessary to assure that P2P systems are impervious to a “Sybil Attack", and thus provide access control, authentication and identity management [48]. 2.2.8.3 Communication Security Communicational security provisions mean to assure the confidentiality, integrity, authenticity and anonymity of information packages exchanged between peers. 2.2.8.3.1 Communication Confidentiality The confidentiality of inter-peer communications naturally implies some form of encoding of the exchanged messages, and this means that the communicating parties need to share some form of secret, so that the messages may be encoded and decoded. Different schemes exist to provide P2P systems with varying levels communicational confidentiality. Some of the most illustrative examples, of the current technical panorama in this area, are the following: • in [57] a “Trusted Computing” based solution is proposed, which employs tamper resistant security hardware. It presupposes the assistance of centralized provisions, be it the hardware provider or some other centralized trust providing entity; • in [58] a solution is proposed which employs a quorum based decentralized PKI, which is integrated in the P2P structure; • in private P2P networks, as users know one another, it is feasible for them to securely exchange cryptographic keys out-of-band. These keys may then be employed to cipher the exchanged messages. II P2P Content Delivery Survey 23 2.2.8.3.2 Communication Integrity and Authenticity The provision of communication integrity and authenticity, in P2P systems, is a similar question to assurance of content integrity (see section 2.2.8.4.1). As such the developed solutions are very much the same. Furthermore, such provision also involves secure routing techniques, and protocols. The purpose of the latter is to prevent malicious peers from corrupting, deleting, or denying access to the data stored by, or exchanged through P2P systems. According to [59], for the provision of secure routing, in a P2P system, the fundamental issues that must be addressed are: • Secure assignment of IDs to nodes – which can be robustly achieved through the use of a trusted central authority. It may also be performed through distributed algorithms, which employ collective/mutual authentication between peers (see section 2.2.8.2). This alternative, however is less robust; • Secure maintenance of routing tables – this can be achieved, with relative robustness, by imposing strong constraints, and demands, on the set of nodes which can be allowed into the routing table [59]; • Secure forwarding of messages – this can be achieved, with relative robustness by verifying the proper delivery of messages and resorting to the use of diverse and redundant routing. 2.2.8.3.3 Communication Anonymity Public interest in P2P anonymity has grown rapidly in the recent past. The main concern of P2P users/peers who wish to remain anonymous is not to be identifiable as a sender or receiver, of information. There are a variety of reasons for this, such as: • Preservation of privacy – The user does not wish for his activity to be tracked or for it to be known that he/she possesses or is looking for a specific informational content; • Censorship circumvention – The user wishes to evade local, organizational, or governmental censorship to the distribution or access to some information; • Avoiding social condemnation – The content that the user is distributing or searching for, is legal but it is socially condemned, embarrassing or unaccepted in the user’s social mean, workplace, religion, etc.; • Fear of reprisals – The user may which to distribute or consume content, which due to its nature, (activist, denunciatory, etc.), may lead to reprisals on the user if his identity is known. Anonymity, in P2P computing, is the network’s capability to hide the connection between an observable action (for instance, a query message traversing the network), and the identity of the entities involved in this action [60]. In such content distribution systems, anonymity can be of different types [60]: • Sender anonymity to any node or a global attacker; • Responder anonymity to any node or a global attacker; • Sender-responder anonymity to any node or a global attacker. Anonymity can also involve the identity of content storing nodes, details about content’s nature, and the specifics of queries. Furthermore the level of anonymity provided by a system can also vary between the following categories [60] [61]: II P2P Content Delivery Survey 30 If the serving peer is behind a firewall the procedure is altered. The serving peer is instructed to push the content to the content requiring peer. The protocol also supports simultaneous downloading from multiple sources [73]. The strategy employed by Gnutella for content replication throughout the system is that of passive replication. Only the peers who download a specific content become its distributors. The Gnutella system has no provisions or incentive mechanisms for the enforcement of fair use, on the part of the constituting peers. Requests are to be served in order of arrival, for as long as there are upload slots available at the serving peer. If a specific implementation (peer) is to behave in a systemically damaging selfish way, the system is not able to prevent such behaviour [73]. Gnutella allows for the checking of the validity of retrieved content, but only after download completion. This means that a corrupted chunk of the retrieved file will imply the downloading of the entire content again [73]. 2.3.3 BitTorrent BitTorrent [74] is a centralized P2P system. It employs central nodes called “trackers” for the managing of users' downloads. A tracker is contacted whenever a network node wishes to download a file. Trackers maintain and update an index of torrents. That is, they keep track of all the nodes which at a specific moment are participating in the downloading of each specific file (both partially and completely). They thus handle the facilitation of the connection between peers for the downloading and uploading of content. The main BitTorrent architecture is an unstructured one. Still with the evolution of its implementations (peers), trackerless torrents are now also supported through means which render the resulting system a structured one. Trackerless operation is supported through the employment of a Distributed Hash Table (DHT). This is a layer which is added on the top of the BitTorrent network. The strict BitTorrent network and its DHT enabled portion operate independently. Each DHT enabled node is responsible for indexing a certain percentage of hash files on the network thus building a distributed indexing system [73], where each peer behaves as a tracker. Azureus [75] [76], and the official BitTorrent client have been the first to add a DHT layer. Both employ the Kademlia [77] structured overlay, but the two resulting networks are not compatible [73]. For content retrieval, BitTorrent supports the simultaneous downloading from multiple sources of fractions of the same content, and also the sharing of partially downloaded files. BitTorrent peers can thus upload a file while still downloading it. The BitTorrent system divides files into fragments of fixed size (256 Kbytes), and the content of each peer is tracked on a block basis [17]. A peer distributing a data file, handles the file as a number of identically-sized blocks. The peer calculates a checksum for each of the blocks, using the SHA1 hashing algorithm. The calculated hashes are stored in a .torrent file. When another node, later retrieves a particular fragment, its checksum is computed and compared to the recorded one to test the fragment’s validity. A peer which provides an entire file is called a seeder, and that which delivers the initial copy is the initial seeder [74]. Torrent files are composed by: II P2P Content Delivery Survey 31 • "announce" section, specifying the URL of the tracker which is responsible for the tracking of the specific content’s diffusion throughout the system, that is, the Torrent; • "info" section, containing the file’s names, its length, the fragment size used, and a SHA-1 hash code for each of the fragments Torrent files are generally made available online (via websites for instance), and registered with a tracker (the tracker specified inside). The selected tracker maintains updated lists of the peers currently involved in the torrent. For content retrieval to take place users must somehow (browsing the web) obtain the torrent information for the desired content (the .torrent file). After it is downloaded and supplied to a BitTorrent client, it connects to the tracker(s) indicated in the torrent file. The tracker(s) delivers to the BitTorrent client a list of peers which are at that time transferring fractions of the file(s) specified in the torrent. The peer then proceeds to connect to those nodes to retrieve the various pieces. This content retrieval procedure is depicted in Figure 7. The group of peers participating in a torrent is called a swarm. If only the initial seeder is included in the swarm, further peers will directly connect to it and request pieces of the fragment from it. As the swarm increases, the new peers begin trading fragments with one another, instead of downloading them from the seeder. This digital content distribution system employs a strict reciprocity strategy for content diffusion. That way, a peer responds with the same action that its other collaborating peer performed previously. They upload to those peers who have uploaded to them and they download from those which have downloaded from them. This bartering scheme is a tradebased incentive mechanism designed to discourage free-riding, by making peers select other peers from which data has been previously received. Nodes with high upload capacity will most likely also be able to download content with a high speed and the average download capacity for a peer will be reduced if its upload speed is limited [17]. Figure 7 – BitTorrent Protocol Operation The bartering procedure also contributes to a better spreading of content among the peers thus improving reliability [17]. Given the implications of the reciprocity strategy employed by BitTorrent, its content replication scheme is quite efficient as it forces peers to participate in it for their own interests. Nonetheless it may be considered to be a form of passive content replication. II P2P Content Delivery Survey 32 A strict bartering policy may nonetheless have negative effects on the system (for instance newly joined peers would in many cases be unable to receive data because they do not possess any fragments yet to trade themselves). To compensate for such negative effects the protocol employs an “optimistic unchoking” mechanism. According to it, peers reserve a portion of their available bandwidth for sending content fragments to random peers (not only preferential partners, but also others). This allows for the discovery of more advantageous partners but also ensures that new nodes on the network have the opportunity to join in [74]. Choking is a temporary refusal from a peer to upload content. At that time content downloading may still occur and the connection does not need to be renegotiated when the choking terminates. A peer may perform choking for several reasons, such as to get a better congestion control or performing a more advantageous bartering scheme for content trading [17]. For optimal efficiency the choking algorithm should [17]: • reduce the number of simultaneous uploads for good TCP performance; • avoid fibrillation, which is a rapid choking and unchoking; • supply the download service to peers who supply (are supplying) it back; • periodically experiment unused connections to determine their possible usefulness. The BitTorrent protocol (through the official peer implementation) avoids fibrillation by only changing the chocked peer every ten seconds. It performs reciprocation and limits the number of uploads by unchoking the four peers with the best download rates. If a downloading peer possesses a complete file, it uses its upload rate rather than its download rate to decide which peer to unchoke. Peers which are optimistically unchoked change every 30 seconds [17]. BitTorrent employs “Info hashes” for the identification of files or portions of data. The .torrent files carry a list of such block hashes in order for the peers to be able to verify that the individual downloaded blocks of a file are not corrupted. Corrupted blocks must be redownloaded [73]. 2.3.4 eDonkey MetaMachine Inc. was the original developer of the eDonkey protocol and peer, the eDonkey 2000 (or ED2K). Still, their software was reverse engineered and several other clients were developed. In 2005, due to legal pressure from RIAA, MetaMachine discontinued the distribution of their software [78] [79]. This change, however, has had little impact on the overall network’s operationally. Alternative peers, such as the open source eMule, long before the distribution of the eD2K client was ceased, had already become common place in the network, and have continued operating and thus implementing, the eDonkey network. The network relies on highly capable central servers which are loosely connected and are run by users and the “community”. The servers perform the role of communication hubs and content indexes, allowing users to locate files within the network. Given the fact that the network is composed by two functionally different types of peers, (client and server), it is thus a hybrid decentralized P2P system. The central servers can be subject to heavy traffic and, thus are more vulnerable to attacks and constitute a potential bottleneck. To deal with this issue, the Overnet protocol was developed as an evolution of eDonkey. It employed a Kademlia [77] resource placement scheme. This Kademlia enabled part of the network is thus a structured decentralized P2P system. II P2P Content Delivery Survey 33 To initially connect to the network, a peer (client) must have a priori knowledge of the IP address, and port, of at least one other peer (of the server type) in the network. After connecting, a peer must register the content files, that it possesses, and that it is able of sharing, by providing the meta-data describing the files, to the server peer [17]. Content files, within the eDonkey system, are divided into blocks. A checksum is computed for each of the blocks and they are propagated between clients on demand. A checksum of all the checksums is employed by the system as the file identifier [80]. During content retrieval time, if a corrupted block is detected it is discharged and retransmitted [73]. Content may be located either by querying the servers with values that will be matched to the descriptive meta-data that the servers host, or by requesting a particular file through its unique network identifier. Servers deliver, to clients, the locations where the desired files may be obtained. The files are directly exchanged between client peers [17]. EDonkey queries support fields such as name, size, extension and bitrate [80]. Clients peers may also browse the listings of contents of other client peers [80]. The eDonkey network (the set of eD2K peers, more specifically), uses Multisource File Transmission Protocol (MFTP), to enable the simultaneous downloading from multiple sources, and the sharing of partially downloaded files. An eDonkey peer can thus upload a file while still downloading it [73]. This fact agilizes the overall distribution of large files. In what regards the enforcement of fair use, in the eDonkey system, the employed measures vary with the implementation of the protocol (peer). The official peer (ED2K) uses a basic queue system to attend to requests and employs the proprietary Horde system. Shareaza permits the users to specify their own criteria. The eMule’s peers employ a credit system where the more a peer uploads to another peer, the faster the first peer advances in the second’s waiting queue [73]. 2.3.5 FastTrack FastTrack [81] is a proprietary protocol. It appeared at the end of the first generation of P2P networks in 2001. In time it has forked into a number of different and mutually incompatible networks. The FastTrack protocol defines a semi-centralized P2P network. Its constituting peers fall under the category of ordinary nodes (ONs) or supernodes (SNs). The SNs occupy a more central position in the network, and handle a greater and more relevant set of tasks. They perform the role of temporary index servers. Any of the FastTrack’s nodes, with sufficient CPU capability and network connectivity, can become an SN. These central nodes are elected by the system through a decentralized process [73]. The fulfilment of the role is voluntary. When a FastTrack ON application is initiated it selects a parent SN, with which it establishes a semi-permanent TCP connection. The procedures employed, for the ON to know where to connect, are somewhat similar to those used by Gnutella. The FastTrack system is unstructured. Content discovery is performed through the employment of query diffusion. The SNs (also called super-peers) store the metadata about the contents, shared by the ONs under their responsibility, in an index. When a node wishes to obtain a specific content, a query is issued to its respective SN, containing the user defined keywords. After that, a, Gnutella like, broadcast based search is performed in a highly pruned overlay network of SNs. For each match at an SN database, the respective SN returns the IP address, server port number, and metadata corresponding to the match. II P2P Content Delivery Survey 34 Figure 8 presents a view of FastTracks’s architecture. Figure 8 – FastTrack Architecture FastTrack can still operate without the presence of SNs but its performance is degraded. The maintaining of the SNs’ indexes, and the broadcasting of queries between them, are, nonetheless bandwidth consuming [17] strategies. The indexes stored at the SNs are built from information received from the ONs. The information about the content files, that an ON is harbouring, which it shares with the SN includes [82]: • the file name; • the file size; • the ContentHash – a hash is calculated for every file, and it is used as its signature. The ContentHash is the only identifier used to identify a file in an HTTP download request. If a download, from a specific peer fails, the Content-Hash allows a FastTrack peer to automatically search for the specific file, without having to emit a new keyword query; • file descriptors (such as artist name, album name, and text entered by users). These are used for keyword matches during querying. The TCP traffic that FastTrack peers exchange, serves four main functional purposes [82]: • Signaling traffic – includes handshaking traffic for the establishment of connections between nodes, metadata uploaded from ONs to SNs, supernode lists and queries and replies. Signaling traffic is encrypted; • File transfer traffic (e.g., MP3s, videos, etc.) – takes place directly between the end peers without passing through intermediate SNs. File transfers are not encrypted and are sent within HTTP messages; • Commercial advertisements – sent over HTTP; • Instant messaging traffic – encoded as Base64. This protocol supports multi-source downloading, but not partial sharing of files [73]. The specific implementation of this protocol, done by the KaZaA client, employs unencrypted HTTP transfers for content retrieval. And all transfers, when using this peer technology, include KaZaA-specific HTTP headers [17]. II P2P Content Delivery Survey 35 The strategy employed by FastTrack for content replication throughout the system is similar to that employed by the Gnutella protocol. The Kazaa variant, of the FastTrack system, implements an incentives mechanism to reward fair use of the network’s resources. The mechanism involves the evaluation of the ”Participation Level” of peers, which relies only on a locally computed value. The formula used for its calculation, is proportional to the ratio of uploaded megabytes of data to the network, by a peer, over the downloaded megabytes from the network, by a peer. A maximum value for such level is also defined. The participation level value is sent to each peer that a given node wants to download from, where it determines its position in the remote node’s download queue. As the value of the participation level is calculated, and stored, locally, the incentives system defined by FastTrack is, obviously, of little robustness. It was eventually cracked and some clients were developed which present a modified participation level, which is constantly set at the maximum value [73]. The FastTrack protocol is not very resilient to polluting. This is so because the employed hashing algorithm performs only incomplete file hashes [73], and no other system wide provision exist to assure content validity. The hashing protocol has, nonetheless, been subjected to some recent improvements. 2.4 Summary As exposed in the previous sections, the technical landscape of P2P content distribution is a very diverse one. It encompasses a vast group of tools and proposals for a varied set of different purposes. The first notorious P2P system, of relatively recent times, was Napster. This system had a hybrid decentralized architecture (as explained in section 2.2.2 of the present chapter), and thus, a central coordinating entity. This entity granted it a good operational performance, but it was also a legally targetable point. Napster was, thus, targeted with lawsuits and, eventually, shut down. P2P systems then progressed in the direction of increasing decentralization. This was triggered by the desire to make P2P systems more independent and resilient to node failure and attack, but also, to eliminate provisions, of such systems, that where legally targetable (the central or coordinating ones). This evolution, however, brought scalability and islanding problems. Thus, in time, a return as occurred to more centrally coordinated modes of operation, (BitTorrent, FastTrack), in order to increase operational efficiency. Globally, the available technologies, for P2P content distribution, provide more or less robust means for: • In the context of operational reliability: o relatively robust content location – structured systems generally provide the means for a relatively efficient location, once a content object’s specific ID is known; o efficient content exchange – as peers, typically, exchange content directly, they eliminate the need for any central repository, and distribute the content delivery workload though the peer tissue. Protocols which enable a fragmented content exchange are more efficient as they enable the immediate discarding of corrupted fragments. Furthermore, protocols (e.g. II P2P Content Delivery Survey 36 BitTorrent), which have some form of coordination of the content exchange process are more efficient that those which do not; o relatively high resilience to the topological transience which characterizes P2P networks in the context of content availability – unstructured networks have the best performance, in this regard, as in such systems there is no mapping of content objects to peer. If some peer goes offline, its content may, generally, be obtained from other peers; o some effective fair use enforcement, through bartering – this is achieved by BitTorrent [40]; • In the context of security: o some content integrity validation – most of the predominant P2P systems enable the validation of the exchanged content objects’ integrity. These provisions are however of relative robustness as they generally depend on the safety of the communication channel, between peers, through which the content checksum is exchanged; However, the defined technologies, protocols and platforms, typical lack, or presuppose the absence, of any centrally coordinating or absolutely trusted provision. There is thus no point of ”high ground”, in such systems, which can: maintain a coherent global vision of the system; enforce some form of globally aware coordination or resource management; or be the source of ultimately and absolutely trustable information. Given the transience, and the inherent unreliability, of the tissue that composes P2P networks, the above mentioned characteristic, of the currently predominant P2P technologies, is at the root of most of said technology’s shortcomings. These are; • In the context of operational reliability: o content discovery and location – as, typically, no entity exists with a global and coherent view of the entire content object repository, the discovery and location of such content requires the execution of distributed algorithms. In unstructured networks said discovery is performed either by query diffusion though the network’s peers or by inquiring a super peer. The earlier alternative is inefficient, unscalable and prone to flooding the network. The latter is more scalable but still does not enable a search over the content in its entirety. In structured networks, content location is fairly robust if the exact identifier of the target content is known. This however means that said identifier must first be, somehow discovered. This is a pending problem of these networks as their supporting of keyword based searches is, at best, very fragile. Furthermore the coherence of the mapping of resources to peers, and consequently, content availability, is difficult to maintain, given the transience of the peer collective and the existence of malicious peers; o content exchange/retrieval – the way that content is distributed/diffused across P2P systems is generally efficient, in the sense that its exchange depends on no central server and the content distribution workload is diluted across the entire peer collective. However, there is still room for improvement in terms of the coordination of the exchanges, that is, in terms of determining which peers retrieve which object from which other peer and making sure that they all contribute. In this regard the BitTorrent protocol presents a higher efficiency. Nonetheless, if, in a P2P system, a global overseeing entity exists, it may enforce global content diffusion patterns, throughout said system, with optimal efficiency; II P2P Content Delivery Survey 37 o connectivity of the system’s tissue and content availability – given the decentralized and transient nature of P2P networks, the occurrence of islanding is frequent, especially in completely decentralized (with no super nodes) systems. This consists of sections of a same system (e.g. Gnutella), loosing contact with each other. This leads to the systemic behavioural variability and inconstant content availability; o content management - most P2P systems present little content management capabilities (e.g. deletion, update, validity expiration, versioning, etc) or none at all. When such capabilities are present they are generally not very reliable given the lack of overseeing provisions to guarantee their adequate enforcement; • In the context of security – all shortcomings in this field, ultimately, result from the typical lack of a central trusted entity. These basically consist of: o insecure identification of peers and users – the predominant proposals for the identification of peers and users, in P2P systems, avoid resorting to any central trust providing authority and, instead, employ distributed, frequently quorum based, algorithms [49] [50] [51]. These are vulnerable to vast and sophisticated attacks and imply a considerable operational overhead. These mechanisms are therefore not really reliable; o insecure communication – in line with the reality exposed in the above bullet, the predominant mechanisms for assuring communicational integrity authenticity and un-deniability are fragile at best. In terms of anonymity assurance, however, some of the developed schemes present some satisfactory robustness; o fragile media object integrity and authenticity assurance – the few integrity assuring measures enforced by the predominant P2P systems in operation, are very fragile as they depend on the security of the communication channel, (frequently inexistent) and on the honesty of peers. Authenticity assuring mechanisms are even more fragile and subjective; o generally inefficient enforcement of fair use – fair use is enforced either through the employment of peer reputation maintenance mechanisms, or through trade based mechanisms. The latter can further be divided into those which are resource trading based and those which are micro payment based. Resource trading based (or barter based) mechanisms are the most efficient and less prone to fraud. These, nonetheless, present some issues as they can have a negative impact on the efficiency and flexibility of content exchange, given their frequently rigid demands for reciprocity; o virtually absent rights management provisions. In light of the content above exposed, it can be concluded that the weak spot of P2P technologies are its security related aspects. II P2P Content Delivery Survey 38 3 DRM Technology Survey 3.1 Introduction The purpose of Digital Rights Management (DRM) solutions is to provide content producers/distributors with the capability to govern and administrate the usage of their information goods, throughout the entire on-line digital value chain. DRM is composed by all the activities and procedures involved in the electronic and informatics related management and marketing of usage rights over digital content. DRM tools may be embedded in physical support backed media as well as in digital goods which are distributed online, such as music files, e-books, games, videos, etc. The development of DRM solutions has been underway for some time and some solutions and practical implementations have been put forward. Still, this technological field has been characterized by some relatively difficult progress for technical reasons as well as for social, legal and economical ones. Thus, as a whole the field is yet in a state of maturing, and the existing systems are mostly proprietary and are generally unable to inter-operate, what many times renders their usage uncomfortable to consumers. The possibilities of DRM application, the scope of DRM concepts and their global implications, (technical, legal, etc), are very vast, rendering the elaboration of an allencompassing study unpractical. This overview will focus on the technological aspects of DRM, that is, on the management of usage rights over digital goods by control systems and on the most relevant of such systems. 3.2 Technological Description DRM systems consist of a set of information technology components and services, supported upon copyright related law, whose aim is to provide the necessary tools for the creation of a controlled environment for digital goods distribution and consumption. The core operation of on-line DRM technology consists of protecting and facilitating the selling of usage licenses for digital content. Such licenses are portions of digital data that express specific usage rules and rights over digital content. These rules can be crafted so as to implement various business models, such as rental, subscription, pay-per-use, etc [83]. DRM technology is generally divided into the two following operational areas [84]: • rights expression – includes the identification and expression of the rights pertaining to works and to the parties involved in their creation, distribution and consumption; • rights enforcement – includes the technical enforcement of usage restrictions due to the rights in context. The first operational area is generally dealt with through the employment of metadata tools. The second one is handled through the usage of encryption schemes and software or hardware provisions. 3.2.1 Main Logical Mechanisms 3.2.1.1 Content Identification Identification is the process by which a unique universal identifier is linked to a specific media object, allowing its unambiguous distinction from all its peers. If identifiers are not universal, their uniqueness and meaningfulness will only be assured within the context of their corresponding namespace (its naming authority and all entities which can interpret the II P2P Content Delivery Survey 39 naming protocol) [84]. For instance, the uniqueness of id “ISBN-13: 978-1587052576”, is assured by the entity managing the International Standard Book Number namespace. Some of the most relevant content identification standards are presented below in Figure 9 [85]. Figure 9 – Content Identification Schemes and Standards (data obtained from [85]) 3.2.1.2 Content Metadata Content metadata, in the present context, is information pertaining to digital content. It is, generally, not directly connected to the security provisions of DRM systems. It usually serves auxiliary, or user experience augmenting, purposes. Such content metadata may carry information about a variety of subjects such as: II P2P Content Delivery Survey 46 Figure 12 presents a graphical overview of the generic client architecture. The steps involved in the accessing of content typically include [89]: • The reception of the content in a protected form by the user/client, resorting to any of the methods of delivery supported by the content distribution system; • The accessing of the AAA server, by the user, to obtain authorization, authentication and access permission and/or to proceed to fee payment. The subsequent signalling, by the AAA server, of the License Server, so that the latter delivers the license to the user, and also authorizes the Key Distribution Server to deliver keys; • The delivery of keys by the Key Distribution Server so that the user (client side) may begin content consumption; • The decryption of content, its consumption and the related usage control at the client application. Figure 13 – Typical DRM Functional Architecture (adapted from [85]) From a functional perspective, the key functions of any DRM architecture are (as presented in Figure 13) [85]: • Content Creation and Capture: Managing the creation of content to optimize trading. This function of DRM systems includes provisions for: o Rights validation – to ensure that content developed from existing content includes is being generated in accordance with the appropriate rights to do so and that such rights are consistent; o Rights creation – to assign rights to new content; o Rights workflow – to process content for review and/or approval of rights. • Content Management – Managing and enabling the trade of content. This functional aspect of DRM systems should include provisions for: II P2P Content Delivery Survey 47 o Repository functions – to assure the access to content and its descriptive and rights related “metadata”; o Trading functions – assigning licenses to actors who fulfil the necessary conditions to have assigned onto them specific rights over content. • Content Usage – Managing the usage of content after access to it has been granted. This function of DRM systems includes provisions for: o Permissions management – enforcement of rights associated with the content; o Tracking management – content usage monitoring where such tracking is a requirement of the user’s agreement. 3.3 Specifications and Implementations 3.3.1 Specification Initiatives 3.3.1.1 OMA DRM The OMA DRM specification was created by the Open Mobile Alliance [103]. This DRM scheme, meant for use with mobile-centric content types, was developed to allow mobile content providers to add DRM to their products. OMA DRM 1.0 consisted of a basic DRM standard without strong protection measures. It manly defined three key methods: • Forward Lock – focuses on the delivery of digital goods that must not be forwarded. It frequently applies to subscription-based services, were the involved devices are allowed to play, display or execute, but cannot forward the media object [104]; • Combined Delivery (combined rights/media objects in the DRM message) – enables the setting of specific usage rights over the digital good. This method extends the Forward-lock method by allowing a more refined definition of rights, which can be restricted by using both time and count constraints [104]; • Separate Delivery (separated Rights Object (RO) + encrypted media object in the DRM message) – provides the necessary provision to protect higher value media and enable the superdistribution of digital goods, by permitting the client devices to forward the media, but not the associated rights. According to this method the media and rights are distributed via separate channels. The media is encrypted employing a symmetric cipher, while the rights hold the encryption/decryption key [104]. OMA DRM 2.0 is an extension of the 1.0 separate delivery mechanism. Each device taking part in an OMA DRM 2.0 system possesses an individual DRM PKI certificate with a public key, and the corresponding private key. Rights Objects, which carry the content decryption keys, are individually protected for a specific receiving device by encrypting them with the device’s public key. For a device to be eligible to receive a RO, it must first register with a Rights Issuer entity so that its certificate is validated. Devices known to be hacked can be impeded from accessing content. The overall operation of an OMA DRM compliant system is as follows [105]: II P2P Content Delivery Survey 48 • The content is packaged and protected from unauthorised access, by the Content Issuer, and the corresponding RO is produced by the Rights Issuer. Content and rights data is then inserted into the system; • The content is delivered to the terminal side under any means, but the rights data is distributed by the rights issuer in a safe and controlled fashion; • At the consumption device a trusted DRM Agent is installed which enforces the rights objects, which cryptographically are bound to it. The basic steps undertaken by the OMA DRM architecture to assure the secure distribution of content preventing unauthorized access are [105]: • Content packaging – content is packaged in a secure content container, and encrypted with a symmetric content encryption key (CEK); • DRM Agent authentication – DRM Agents have a unique private/public key pair and a certificate which allow their secure identification; • Rights Object generation – Rights Object are XML documents which express the permissions and constraints associated with the content’s usage. They carry the CEKs; • Rights Object protection – sensitive parts of the Rights Objects are encrypted before delivery (the CEK for instance), and the object itself is cryptographically linked to the target DRM Agent. Furthermore the Rights Issuer digitally signs the RO; • Delivery – the RO and protected content package, being inherently secure, can be delivered using any transport mechanism, either together or separately. OMA DRM employs its own rights expression language (OMA REL) for rights expression. This DRM specification has been implemented on numerous cell phones. Furthermore, multiple mobile operators (such as Vodafone [106], Vivo [107], etc) use OMA DRM for their content delivery services. Commercial suppliers of OMA DRM solutions include, for instance, Beep Science, CoreMedia DRM, Discretix, Mutable OMA DRM, SafeNet and Viaccess. 3.3.1.2 OpenSDRM OpenSDRM specification defines an adaptable DRM system which may be employed for various different business models and for the protection of different types of content. The adopted security architecture is based on the OPIMA [108] international specifications, on MPEG-4 IPMP Extensions, on MPEG-21 IPMP architecture and on some of the proposals for JPEG2000 standard Part 8 [85]. OpenSDRM was initially developed within the scope of the FP5 EC project MOSES. This project focused explicitly on the MPEG-4 file format for the protected content. Still this system was conceived so that it can handle all types of content and various business models (both for download, streaming or even broadcasting). Figure 14 presents a graphical overview of the OpenSDRM platform architecture. The components and actors that interact externally with the Open SDRM architecture are [85]: • User – human individual who wishes to consume some content. The user will interact with Open SDRM in order to, identify himself, acquire licenses and play multimedia; • IPMP Tools Provider – organization that creates tools for encryption, scrambling, watermarking, etc, for content protection and makes them available to the Open SDRM system. This supplying of tools implies the existence of business relationships between Content Provider and specific IPMP Tools Providers, since that producers II P2P Content Delivery Survey 49 and/or distributors of content will specify which type of protection the content will have and which tools can be applied to the content and from which supplier; • Content Provider – multimedia assets supplier that feeds Open SDRM with content and/or metadata; • Payment Infrastructure – structure which facilitates Open SDRM e-commerce features through the provision of services for handling electronic payments; • Certification Authority – entity which is responsible for the reception of requests for and issuing credentials to, other entities in the system. These credentials will be utilized by system entities to authenticate themselves before each other, enabling the establishment of secure and authenticated communication channels between them. The components in the Open SDRM architecture communicate with each other through the channel security provided by the SSL/TLS protocol. This Certification Authority can also be internal to Open SDRM, and thus entirely managed by some entity, or it may be an external commercial Certification. Figure 14 – OpenSDRM Solution Architecture (adapted from [85]) The internal components of the Open SDRM system include [85]: • Content Preparation server – this server side component handles content preparation. It receives raw content from a specified source or sources and encodes it on a specified format, adds metadata and protects it; II P2P Content Delivery Survey 50 • Commerce server – this component handles the trading of the content with the users; • Media Delivery server – this module handles the delivery of digital assets to the client. This Media Delivery server will implement a specific protocol (download (FTP, HTTP, or other), streaming (RTSP, other), broadcast) to exchange protected content with the client application; • Registration server – the role of this component within the system is to assign unique identifiers to content and to register metadata information for that specific content. The content identification scheme employed follows the MPEG-21 directives about Digital Item Identification (DII), using a reduced version of the MPEG-21 DII Digital Object Identifiers (DOI); • Authentication server – this module handles the authentication of all internal and external entities to the DRM system. It’s role is to validate the access rights of all the entities and components in the system working as a SSO point, registering and managing components and users on the system. It employs cryptographic XML credentials for the authentication of both components and users in order to authenticate the transactions exchanged between them (XML Encryption and XML Signatures); • License server – this component is responsible for house-keeping the rules associating a user, the content and his/her corresponding access rights. It accepts connections from authenticated client Media Players for downloading of licenses, which will be applied to the protected content through an appropriate IPMP tool. The licenses are XML formatted and employ Open Digital Rights Language, (and, in the future, possibly the Rights Expression Language by MPEG-21; • IPMP tools server – this server component handles the registration of new IPMP tools and the reception of the authenticated client Media Player requests for the downloading of specific IPMP tools. It is also a part of its role to make IPMP tools available to the Content Preparation Server to allow the protection of content; • Media Application – this represents the applications that will be utilized to consume the digital assets. This generic component is able to display/playback the appropriate content. It may work with one or several IPMP tools in order to control how the content is accessed by a particular user. 3.3.1.3 ISMA/DRM The Internet Streaming Media Alliance [109] is composed by companies from multiple areas. Its founding members are Apple Computer, Cisco, IBM, Kasenna, Philips and Sun Microsystems Inc [89]. ISMA's protocols are based on open specifications for media formats and transport of media content to the receiver over IP networks. This specification conforms to the ISO/IEC 14496 (MPEG-4) standards over Real Time Transport Protocol (RTP) [89]. ISMA has undertaken work to add DRM support to its provisions. ISMA/DRM preserves ISMA’s interoperability goals, employing standard encryption, authentication and integrity validation for ISMA conforming media and protocols. Figure 15 presents a succinct view of the interactions flow within the ISMA DRM architecture. II P2P Content Delivery Survey 51 Figure 15 – ISMA DRM Architecture (adapted from [110]) ISMA DRM’s components and their roles are [110]: • The Mastering entity handles content preparation and publication; • The Key/License Management entity manages and delivers the licensing and decryption data; • The Sender entity handles the delivery of the content to the ISMA Receiver via an open-standard protocol called ISMACryp; • The ISMA Receiver processes the ISMACryp encrypted streams, authenticated messages, and signalling. More recently ISMA has merged with MPEG Industry Forum (MPEGIF), under the name MPEGIF. Its assets (and thus ISMA DRM), passed to the control of MPEGIF [111]. 3.3.1.4 MPEG IPMP 3.3.1.4.1 MPEG IPMP Extensions Intellectual Property Management and Protection Extension (IPMP-X) is a DRM architecture developed by the MPEG working group. This architecture provides a normative framework to support requirements such as: renewability, secure communications, verification of trust, granular and flexible governance at well-defined points in the processing chain, etc. Two types of IPMP Extensions exist [85]: • MPEG-2 IPMP-X which is meant to be applied to MPEG-2 based systems; • MPEG-4 IPMP-X which is intended to be applied to MPEG-4 based systems. MPEG-4 IPMP Extension specifies five key elements [112]: • IPMP Tools – modules which handle (one or more) IPMP tasks such as authentication, decryption, watermarking, etc. A specific IPMP Tool may coordinate other IPMP Tools. Each such tool possesses a unique IPMP Tool ID that identifies it an unambiguous way, either at a presentation level or at a universal level; • IPMP Descriptors – subsection of the MPEG-4 object descriptors (OD) which describe how to access and decode an object. These Descriptors are used to describe the IPMP Tool that is used to protect the object. An independent registration authority (RA) is utilised so that any party may register its own IPMP Tool and identify this without conflicts; • IPMP Elementary Stream (ES) – transports IPMP specific data such as key and rights data. All MPEG objects are represented by elementary streams, which can II P2P Content Delivery Survey 52 reference each other. These special elementary streams may be employed to deliver IPMP specific data; • IPMP Tool List – this list carries information pertaining to the tools required by the terminal so that it can consume the content. It is conveyed in the Initial Object Descriptor (IOD) of the MPEG-4 system stream. Using this mechanism the terminal is able to select and manage the tools, or to retrieve them when they are missing; • Secure Messaging Framework – this framework does not specify functional interfaces. It is instead based on secure message communication and mutual authentication. Interaction between the terminal side and the IPMP Tools is performed through messages via a conceptual entity called “Message Router”. 3.3.1.4.2 MPEG-21 IPMP A key goal of the MPEG-21, multimedia framework is to enable transparent and augmented use of multimedia resources across a wide range of networks and devices. MPEG-21 Part-4 defines an interoperable framework for Intellectual Property Management and Protection (IPMP). This framework includes standardized provisions for: • retrieving IPMP tools from remote locations; • exchanging messages between IPMP tools and between these tools and the terminal; • authentication of IPMP tools; • integrating Rights Expressions according to the Rights Data Dictionary and the Rights Expression Language [113]. It does not, however, define protection measures, keys, key management, trust management, encryption algorithms, certification infrastructures or other components. This part of MPEG-21 defines how to include IPMP information and protected parts of Digital Items into a DIDL (MPEG-21 Digital Item Declaration) document. The IPMP DIDL encapsulates and protects a portion of the hierarchy of a Digital Item, and associates appropriate identification and protection information with it. MPEG-21 IPMP consists of two parts: • The IPMP Digital Item Declaration Language – provides the tools for a protected Representation of the DID model. It permits the expressing of an encrypted DID hierarchy which is digitally signed or otherwise governed to be included in a DID document in a schematically correct manner; • IPMP Information schemas – defines structures for the specification of information pertaining to the protection of content, including tools, mechanisms and licenses. 3.3.1.5 DMP DRM The Digital Media Project (DMP) was established with the purpose of promoting the deployment and use of Digital Media in ways that respect the rights of creators and rights holders to exploit their works [114]. In that regard it has performed the specification of a standard for “Interoperable DRM”. DMP DRM attends to the issue of DRM Interoperability through the specification of individual technologies (called Tools within DMP context) necessary for the implementation of, DMP termed, “Primitive Functions”. Such tools are to be “smaller” functions obtained by breaking down into atomic procedures the actions performed by value-chain users when they do interact between themselves. While more general functions may undergo substantial II P2P Content Delivery Survey 53 changes as a consequence of the evolution of the media business in the value-chain, these more “Primitive Functions” will remain more stable and be more easily augmented. Therefore, the DMP DRM is not meant as a universal “DRM standard”. This project specifies tools for enabling Primitive Functions [115]. Its development is a progressive process which is opened to exterior contribution. In that regard, calls for proposals for additional necessary tools to support new primitive functions or additional functionalities of existing tools are periodically issued. 3.3.2 Implementation Initiatives 3.3.2.1 Windows Media DRM Microsoft’s Windows Media DRM (WMDRM), is a Digital Rights Management service for the Windows Media platform. It is based on a Microsoft proprietary specification which was designed to provide safe delivery of audio and/or video content over an IP network to PCs or other devices, enabling distributors to control content usage. 3.3.2.1.1 WMDRM Operational Overview Figure 16 presents an overview of the architecture of the Windows Media DRM system (more specifically the Windows Media Rights Manager part of WMDRM). It also highlights the main differences of that architecture when compared to the typical one presented in chapter 3.2.2. Digital goods protected by the WMRM system, are distributed, over the Internet, in a protected and encrypted file format. The characteristic WMDRM action flow is as follows [116]: • Packaging – The media content files are encrypted with a key. That key is stored in an encrypted license, which is distributed separately. The media file also carries other information such as the location (URL), where its respective license can be purchased; • Content Distribution – The packaged files may be distributed by whatever means available, because their protection scheme assures that (in principle) no illegitimate access take place; • Establishing a License Server – A License Clearing House (LCH) is selected by the content provider (or content owner). The LCH will store the specific rights or rules associated with the licenses and implement the WMDRM license services. The LCH is responsible for the authentication of consumer's requests for licenses. In Figure 16 the LCH is represented as the association between License Server and Key Distribution Server; • License Acquisition – For the consumption of a WMRM protected digital good to take place, the consumer must first obtain the appropriate license key to unlock the file and access its media content. For the license acquisition process to take place the WMDRM system sends the consumer to a registration page (AAA Server) where information is requested or payment is required, or "silently" retrieves a license from a clearing house; • Playing the Media File – WMDRM protected files must be rendered by a WMDRM supporting media player. Employing such tools, the consumer can access the media II P2P Content Delivery Survey 54 content according to the specific rules or rights that are included in the respective license. Licenses are not transferable. They are valid for a single PC, or device. Figure 16 - Windows Media Rights Manager Architecture (adapted from [89]) Content usage rights are associated with devices instead of users. Still, moving content to a mobile device is possible, but there is no general support for multiple devices. 3.3.2.1.2 WMDRM Content Protection Scheme The content producer (and packager) packages the media content into a key protected (encrypted) file. The encoding is performed using Windows Media Encoder [85]. In order to be able to use Windows Media Encoder, a content owner must possess a DRM profile obtained at a LCH. That profile allows a content owner to generate keys for content encryption as well as to define the terms for the protected content’s usage. During the content protection process, a key is generated. That key is employed in the content ciphering operations. The key is produced using a specific algorithm which employs a license key seed (which is conveyed to the content owner and packager by the mentioned DRM profile) and a key ID. This way, the license key seed is shared between the content owner and the LCH. The key ID is generated by the content owner and it is included in the header of the protected file/stream. Furthermore the content header also carries other information such as [85]: • The URL of the LCH; • A unique content ID which identifies the content, and content related information (for instance artist name, date of recording, etc.); • The version of the individualized DRM component; • Attributes of type “name-value” defined by the content owner to carry other necessary information. II P2P Content Delivery Survey 55 Additionally, the header, of the protected content, is digitally signed, using a public/private key par, in order to ensure the legitimacy of the header and its information. To issue licenses for specific contents, the LCH, regenerates the appropriate key by retrieving the key ID from the packaged file and the key seed and performing the previously mentioned algorithm. The key is then included in the license file sent to the consumer's computer. Using the key enclosed in the license, the WMDRM compliant player on the consumer's PC may then access the protected digital goods. When protected content consumption is attempted, via Windows Media Player for instance, this application will search the local PC for a valid license. If the latter isn’t available, the player analyses the content header in order to retrieve the URL of the responsible LCH and the key ID. Using these two values the client application obtains a valid license containing the decryption key. Still, if the content is to be paid, the end-user will first be directed to a virtual location where he must proceed to purchase the license [85]. Once a valid license is available, the terminal device rendering software can them render the content, but in accordance to the rights and permissions defined in the license. 3.3.2.1.3 WMRM Licenses Licenses contain the keys to unlock the Windows Media files. Furthermore the licenses are the vehicles which convey the rights, or rules information related the governing of content usage, from the content owner side to the consumer side. The WMDRM system can support licenses describing a wide variety of different usage rules, such as: • the number of times a digital good can be consumed; • the devices which can render or process a content; • the time at which the user can start accessing the file and it expiration date; • if the file can be transferred to a CD recorder; • if the user can back up and restore the license; • the security level required to have on the client to access the Windows Media file; • etc. 3.3.2.2 Helix DRM Helix DRM (formerly RealSystem Media Commerce Suite) is a DRM system developed by RealNetworks. This system adds DRM functionality to a number of other RealNetworks media components, such as Real player and Real streamer. Figure 17 presents an overview of this system’s architecture. It also highlights the main differences of that architecture when compared to the typical architecture of a DRM system as presented in chapter 3.2.2. This DRM system consists of the following main components [89]: • Packager – handles the content packaging and encryption measures. It receives as input data the unprotected media files, the public key of the License Server at stake and the URL for the Retail Server. It produces the encryption keys, unique content IDs and delivers the packaged and secured media files. The secured files include, besides the encrypted media, the relevant media related metadata such as the retailer URL and content ID generated by the packager [89]. No usage rules are included into the protected media file by the packager. The public key of the License Server is used for the secure transmission of the content encryption key [89]; II P2P Content Delivery Survey 62 • Media Player tool – This tool is used to playback OpenIPMP protected content. It deals with all the communication aspects with the server side components for license acquisition and also enforces usage rights; • User Registration service – It is through this service that new users are registered in the system. When the registration process is successfully finished, the user is given its credentials which uniquely identify him and grant access to system resources; • Content Management service – This service supplies registered users with the necessary tools to manage their contents. Upon completion of the content registration processes, a digital good is under the protection of the system. All communications between the OpenIPMP client side components and the Content Management Service take place through a safe communication channel; • Rights Authorization service – Registered users resort to this service to define all the permissions for their registered contents; • License Management service – This service handles all license requests from registered clients and deliver the respective authorizations; • Administration tool – This tool allows an administrator to configure the system according to an organization’s specific needs. 3.3.2.6 AXMEDIS DRM The "Automating Production of Cross Media Content for Multi-channel Distribution" (AXMEDIS) [120] initiative is a research project, partially supported by the European Commission. Besides other tools, AXMEDIS also delivers a multifaceted and interoperable DRM solution for employment with both B2B and B2C scenarios through traditional and P2P distribution structures. This DRM solution focuses on the protection and management of rights for a vast set of different types of content, such as single files or complex cross media and multimedia, distributed on different channels to different kinds of terminal devices [121]. AXMEDIS DRM employs and extends the MPEG-21 framework in order to enable [121]: • the protection of content of various formats and types; • the controlling of the exploitation of rights of the above contents, using formal metadata licenses expressed in the MPEG-21 REL standard; • the collecting and reporting of information about consumption of rights for accounting, billing and/or statistical analysis; The DRM system delivers [121]: • tools for content packaging and protection (simple manual tools, GRID technology based automated tools, AXMEDIS Content Processing); • DRM servers for: o controlling the exploitation of rights of protected content; o data gathering on the exploitation of rights; o interacting with an intellectual property ontology to ease the production and verification of licenses. • players for protected content rendering on PC, PDA, STB/PVR, and AXMEDIS Java based Mobile. AXMEDIS players can be customized and hosted in WEB pages; • tools for manual and automated production of licenses. For integration of AXMEDIS DRM premises into a system, that system’s content usage licenses are required to be supplied to the AXMEDIS DRM Servers via a Web Service call. Alternatively the system may delegate the license production activities to the AXCP GRID. II P2P Content Delivery Survey 63 AXMEDIS content packages (also called AXMEDIS Objects), contain a variety of simple and complex media objects (or references to them) containing various forms of metadata and dynamic scripts. These may be produced with the employment of AXMEDIS Editor tools for MPEG-21 and AXMEDIS authoring (SMIL, HTML, MPEG-4, or any other kinds of digital resources), DRM, licensing, protection, packaging, workflow, playing, etc [121]. 3.4 Summary The technical landscape in the field of DRM technology is a very diverse one. Several standards have been developed and various implementations have been completed. These solutions generally provide robust levels of security and their operation focuses on a restrictive governance of content usage. In spite of their security capabilities, these systems have, nonetheless, been frequently broken and circumvented by users [122], and subsequently patched in an iterative cat-and- mouse game. Developments, in this technological area, have begun some time ago, still, their reception, on the part of consumers, has been very negative, and, consequently, their employment by on-line content delivery initiatives has been problematic. 4 Commercial P2P Distribution Survey 4.1 Introduction In spite of considerable initial hesitation, several initiatives have begun to appear in the field of commercial, on-line content distribution, which employ (or have employed) a P2P operation mode. In the following sub-sections we expose some of the most relevant such initiatives. 4.2 Veoh Veoh [123] was an Internet Television service run by a California based company. This service employed P2P technology (among other means), for the diffusion of commercial and user generated content. The Veoh system offered its users two possible options for the consumption of the available video content. Viewers could obtain the content directly from the Veoh.com site via streaming, or they could use the VeohTV application. This was a P2P based software application that enabled the downloading and viewing of content of potentially much bigger sizes. Content publishers could use their PC to upload videos for distribution. In regards to security provision, Veoh distributed both DRM protected and unprotected content. That is, it employed a parallel DRM structure, to enable user and peer authentication, content integrity and authenticity validation, and access control on some of its content. It searched for years for a successful BM, but ultimately, and under legal pressure from Universal Music Group [124], declared bankruptcy in 2010. 4.3 Babelgum Babelgum [125] is a free Internet TV service. Originally it employed a proprietary P2P streaming technology, but has eventually dropped it in favour of a client-server operation. II P2P Content Delivery Survey 64 The platform employs DRM protective measures which include the encryption of the exchanged content data streams, time-limited licenses and PPV [126]. Babelgum is a privately backed project which focuses on professionally produced content. It enforces some content access restrictions based on user geographical location. Its BM is advertisement based, employing advertising revenue-sharing. Content owners receive a portion of advertising revenues. If no advertisement is associated to the content this system guarantees producers a minimum of $5 for each 1000 unique views [127] . 4.4 JOOST Joost is an Internet based system for the distribution of TV content (and other forms of video), developed by the founders of Skype and Kazaa. Figure 21 – P2PTV overlay network serving several video streams It employs a P2P strategy (or did so initially), for the delivery of content, under proprietary DRM protection. The P2P technical layer was provided by the Joltid company, which also supplied the P2P infrastructure of Skype. Figure 21 presents a simplified image of Joost’s P2P content diffusion network. Content is distributed with the help of the nodes participating in the system, by taking advantage of their uplink capability, in a way similar to that of BitTorrent, and over a proprietary DRM connection, using a Joost specific encryption scheme. Joost’s employs an ad-supported BM, in a similar manner to that of regular TV, exposing users to both injected video-advertisements as well as additional interactive advertisements via overlays and short clickable pop-ups [128]. It was eventually faced with economic difficulties and remade itself as a “cost-effective” white-label video provider [129]. 4.5 PPLive PPLive [130] is a P2P network for the streaming of video content. It was develop in Huazhong University of Science and Technology in People's Republic of China. The contents delivered by PPLive are generally targeted to Chinese mainland audiences. This service enforces no DRM measures and employs an add-supported business model. 4.6 ReelTime ReelTime.com [131] was a video on demand provider that delivered movies and television shows over the Internet. II P2P Content Delivery Survey 65 Content was delivered through a proprietary software system called Intelligent Rapid Delivery System. This employed some P2P networking to reduce the bandwidth demands on its servers. To this end, while the most part of the content files are delivered to the users by the system’s servers, a fraction of such files are transferred between the system’s terminal machines (i.e., peers). The delivered content was DRM protected. ReelTime employed a subscription and pay-per-view BM. It has subsequently ceased to operate. 4.7 LiveStation Livestation [132] is a platform for distributing live television and radio broadcasts, as well as on demand video, over the Internet. It originally used P2P technology for said distribution, employing Microsoft Research technology [133]. The system divided a video stream into multiple stripes, each of which was shared independently among peers [134]. Livestation’s business model is based on both advertising and fees [135]. 4.8 Imeem The original Imeem system begun as a distributed and peer-to-peer social network [136] for the sharing of files, photos and blogging data. A client application was distributed as the primary platform, and the website was basically the means for users to obtain the client. Every client had its own database for the indexing of references to media content shared on the network. This contributed to facilitating the location of content. Users who wished to consume a specific content would access it through a direct exchange with the publishing peer. Access to content was done on a permission base, and communication in the Imeem network was secured by the AES advanced encryption standard [136]. Its business model was predominantly ad-supported [137]. With time the service underwent many changes. Further features were added to the website and the client software ceased to be functional. The distributed database model was centralized, and all of Imeem's features became available without requiring a client download. The P2P architecture was annulled. Finally, in 2009, after having been bought out by MySpace Music, it was shut down [138]. 4.9 BBC iPLayer iPlayer [139] is a service made available by BBC via Internet access (terminal application supported on Windows, Macs and Linux), cable television, iPhone, Nintendo Wii and iPod Touch [141], for the delivery of video and audio content. The system originally employed P2P technology for the distribution of rich media content [142], but has since move away from it. When P2P technology was still employed, the network’s peers where the iPlayer applications and the actual P2P infrastructure used was Kontiki [140]. For the protection of intellectual property rights, the system originally used Microsoft's Windows Media DRM [143] but has since moved to Adobe’s DRM system. This technology II P2P Content Delivery Survey 66 allows BBC to have a relatively fine control over the use of distributed content even after it has been transferred to the terminal iPlayer applications. 4.10 Qtrax Qtrax [146] supplies a legal P2P music delivery service, built upon the Gnutella network [144]. It employs Microsoft’s Janus DRM technology for content protection and access control and to enforce advertisement consumption. It, originally, offered a two tiered service [145]: • the first was a free, advertisement-supported tier designed to work with, and filter copyrighted content, from existing peer-to-peer networks; • the second tier was a premium subscription based service which would require a monthly fee. In time Qtrax has, however, moved to a strictly advertisement based BM. Large music industry companies, such as EMI [145], have announced deals with Qtrax regarding music rights and publishing. It has also faced legal and financial problems that have forced it to restart its operation, after a pause period [147]. 4.11 Sky Anytime Sky Anytime [148] is a package of services made available by BSkyB [149] for the delivery of video content. One of the services, in that package, is a PC version of Sky Anytime which employs a broadband, Internet based, peer-to-peer structure (the Kontiki infrastructure), for content diffusion. Content may be viewed for a certain number of days, and it is protected by digital rights management software provided by Microsoft [151]. The service is available at no extra cost to Sky subscribers and under a subscription fee for non-clients [150]. 4.12 iMesh iMesh [152] is a media content delivery system and an online social network. It employs a, Gnutella based, centralized P2P strategy for content distribution. For content protection the system uses Microsoft Digital Rights Management technology [154]. The system allows users to access large amounts of "non-copyrighted" content (video or audio) for free and makes copyrighted content available for a monthly fee in the form of either an iMesh Premium subscription or an iMesh ToGo (portable music) subscription. Users may also permanently purchase tracks [153]. 4.13 TVUNetworks The TVU Networks Corporation [155] operates an Internet based television broadcasting network which uses P2P technology. II P2P Content Delivery Survey 67 Users download a freeware software application, called TVUPlayer, and may then join the P2P community and watch a varied number of channels. TVU’s solution includes monetization capabilities for content owners such as geo-filtering, subscription services and personalized in-stream ad insertion tools [156]. 4.14 Zattoo Zattoo [157] is an Internet based P2PIPTV content distributing system. It employs a proprietary peer-to-peer protocol. The terminal application (peer) runs on Mac OS X, Linux and Windows [158]. Zattoo current focuses on European channels. It delivers licensed content [157] under Digital Rights Management protection [158]. Zattoo ensures that [159]: • Streams are protected by encryption; • Streams cannot be copied as no copy of the stream is stored on the network; • Streams cannot be retransmitted as sources would not be authenticated. Zattoo employs an advertising based business model (through the use of banner ads, targeted text ads and inserted video clips) [158] as well as paid subscriptions [160]. 5 Considerations This P2P technology survey reveals that the field of P2P content delivery (typically in the non-commercial sector), is a very diverse one. The general evolutive trend, initially, was towards growingly decentralized solutions. In time a return as occurred to more centrally coordinated modes of operation, (BitTorrent, FastTrack), in order to regain some operational efficiency in terms of content discovery and location and overall network connectivity. In what concerns security, the majority of P2P solutions is very poor. Those including such provisions are not really robust. Provisions expressively designed and intended for the enforcement of content usage rights and the protection of copyright, are practically universally absent. Commercial, P2P based, media delivering initiatives, generally employ either proprietary P2P solutions or pre-existing ones. The technical details of the earlier solutions are typically not disclosed. Still, from the few that have been disclosed, it may be concluded that such solutions employ some form of partially centralized operation. The latter solutions are predominantly based on Gnutella. This is a purely distributed P2P protocol which is very robust, in terms of fault tolerance, but also considerably inefficient in terms of content discovery and distribution. In the studied initiatives, the P2P delivery mode frequently performs a parallel, or even just, auxiliary role to client/server delivery mode. These initiatives, have generally sought to maintain their business and legal (copyright related), operational legacy. This means that they have strived to maintain control over their content’s usage throughout its lifecycle, that is, after it has been distributed. To attain such a control, (and given the lack of adequate security and copyright protection facilities, predominant in P2P content distribution platforms), they have typically teamed the P2P distribution systems with content protective DRM technologies. II P2P Content Delivery Survey 68 Thus, most commercial P2P content delivery initiatives employ (or, at least, did so originally), classical DRM technology. Given the tasks it has had to perform, this technology focuses mostly, if not exclusively, in a restrictive governance of content usages. The internal characteristics, operation and capabilities of the solutions specified by the initiatives presented in section 3.3.1 or implemented by the platforms described in section 3.3.2, may vary somewhat. However, overall, they are very similar in terms of their global operational logic and of their impact in content usage and usability, as their design was guided by the same requirement: content manipulation restriction throughout its lifecycle. In P2P terminology, this DRM assistance, in security matters, (to the P2P delivery structure), may be described as a form of Trusted Third Party (TTP) solution. There is thus a visible decoupling of the content delivery structure from the security structure, where the latter performs the mentioned TTP role, and the potential synergies between the TTP structure and the P2P content delivery structure are left unexploited. The typical resulting P2P+DRM structure may be depicted, albeit in a simplified manner, by Figure 22, (taking into consideration the notation defined in Table 1). Its operation is as follows: At an initial moment (not displayed in the diagram), clients will authenticate with the TTP components agreeing on a common secret key ( session S K ), which will be used for a client/TTP interaction session. From that point on, all communication between a client and any TTP component will be encrypted with the agreed upon secret key (as represented by )(secmsg x session S K ). When the session terminates, the key is discarded. Before a user (e.g. A u ) can be attended/hosted by a specific client/peer (e.g. A c ), he must first be authenticated. To do so, the user supplies his username and password, and A c packages it into A u ahsdAuthDat , by performing some hash function on that information (the case of employment of digest access authentication). The latter information package is sent (arrow 1) to the User Authentication Server (UAuthS). After validating the user’s credentials, UAuthS sends A c (arrow 2), a user hosting certificate ( uhc S ), signed with UAuthS private key ( 1− UAS K ). uhc S proves that A c is hosting A u . If a user (e.g. A u ) wishes to consume some media object (e.g. A o ), A c may retrieve it from the Content Server (client/server operation, arrow 3), or from another client/peer, such as B c (P2P operation, arrow 3a). The content is obtained in its protected form, ( A o P ), which is encrypted with a secret symmetric key A o S K . The client than contacts the License Server (LS), to inquire it about a u ’s usage rights over A o , by sending it (arrow 5), uhc S , (proving that A c is indeed hosting A u ), and the identification of the media object in question. The LS then responds (arrow 6), with the signed license ( A o A u SL ) that specifies A u ’s rights over A o (assuming A u previously purchased such a license). A o A u SL is signed by the LS so that its validity may be checked. A c then sends A o A u SL (arrow 7) to the Key Server (KS). KS assesses the validity of A o A u SL and the rights that it grants to A u . If all is II P2P Content Delivery Survey 69 ok, it returns (arrow 8), A o ’s decryption key ( A o S K ). A c is then ready to access and render A o for A u ’s consumption. Table 1 – Notation for Figure 22 user system specific a= i u key encryptionsession comm a= session S K i i u u psswd of password= keyn /decryptioencryption s' a A A o S oK = i i u u usname of username the= Server License theofkey private the 1 = − LS K client system specific a= i c Server tion Authentica User theofkey private the 1= − UAS K i i c cK ofkey public the = x x toapplied functionhash hiccryptograp)h( = i i c cK ofkey private the 1 = − i x i x K Kxx with of encryption the)(enc = object media specific a= i o Kxxxh x K K key with signed))((enc )(signed = = ii i o i u uoL by of use thegoverning license the= )(enc)(secmsg xx KK = key encryption symmetricsecret a= S K Figure 22 – Typical Commercial P2P Content Delivery System Architecture In spite of their complexity and sophistication, the security services provided by the TTPs, have frequently been broken and circumvented by users [122], as this is incentivized by the uncomfortable content usage conditions that result from the operation of such security measures. II P2P Content Delivery Survey 70 A currently observable trend, in the context of Commercial, P2P based, media delivering initiatives, is the abandonment of the DRM aspects of the platform, in favour of unprotected content. Also, the very P2P mode of distribution is also frequently being dropped in favour of a more traditional, (and less efficient), client/server mode. In economic terms, the initiatives in scope have been trying a variety of BMs, such as subscription, purchase or advertisement based ones. They have frequently jumped between several BMs in their search for a suitable one and also frequently failed altogether. There is thus no globally predominant BM in this area and the attained economical results are also unremarkable. For all of the above it is apparent that commercial employment of P2P content distribution, has been, and continues to be, considerably less successful that its non-commercial counterpart, at least in terms of its widespread employment. The development of the earlier sector has been slow and hesitant. User captivation has been unremarkable, DRM provisions have frequently failed and P2P content delivery, in spite of its promises, has not yet been made to deliver on them. 71 III Present Scenario Analysis 1 Introduction In this chapter we examine the employment of the Internet for commercial content distribution, focusing on its present situation. That situation is examined so that its key problems and shortcomings are identified and a path to deal with such issues is delineated. Section 2 thus carries a broad depiction of the present state of commercial on-line content delivery. Section 3 deepens the earlier description, analyses the described situation and identifies its subjacent causes. Section 4 further explores the causes of the problems currently facing commercial on-line content distribution, and defines the means by which they may be overcome. 2 Overview The P2P content distribution technologies that have been developed have achieved significant success in the field of free content sharing. They include sufficient tools to enable a “good enough” content discovery and distribution capability. We describe them as “good enough” because it is satisfactory within a free content sharing context. However for commercial purposes, they can still benefit from performance improvements. This is so because, (as explained in section 2.4 of chapter II), the current typical P2P solutions are more or less distributed and typically have no provisions with anything close to a global systemic view. Lacking that oversight capability, the currently predominant P2P systems can provide for content discovery, locating and retrieval only through more or less distributed algorithms which are only of relative efficiency and consistency of results. Furthermore, even if P2P content delivery systems/technologies include provisions to enable a minimally robust validation of content integrity (through checksum or signature calculation), they nonetheless present considerable shortcomings in the field of security and trust assurance, for even basic aspects, such as robust content integrity and authenticity assurance and data and communication confidentiality, integrity and non-repudiability. On the other hand, the security-wise insufficiencies of the predominant P2P technologies can be effectively counterbalanced by the security-wise capabilities of existing DRM systems, if they are directed to that task. The existing DRM technologies include robust tools to enable the, earlier mentioned, basic security measures. However, what has typically been demanded, from these systems, goes well beyond such requirements. They are asked to deliver, to content owners, almost complete control, over their content’s usage, throughout its lifecycle, regardless of said content’s location. Even so, DRM systems have managed to partially provide that, at the cost of imposing stifling content usage restrictions on consumers. That provision was only partial, because, fuelled by consumer dissatisfaction, DRM schemes have been frequently broken or circumvented. After such events, they are then patched but only to be circumvented and re-patched at a later time, and so on [161], [162], [163]. Some shortcomings are thus visible, both in the current P2P content delivery and DRM technologies. Nonetheless, they are really not fundamentally hindering ones, especially considering the joint employment of the two technologies. IV Adequate BMs for the New Paradigm 78 BMs of this type, will, release CDists’ technical infrastructures from the excess of content access control tasks that presently overburden them. These structures will thus be able to operate in much freer and more innovative ways, enabling commercial P2P content delivery initiatives to succeed and achieve the reliability that has, thus far, eluded them – content delivery reliability, content governing reliability and economical reliability. 2 Business Models In light of what we have exposed previously, we have identified and defined the following BMs that are specifically suitable to support commercial, on-line. P2P based, content distribution, can be mainly identified as the following: • user donation – in a donation-based business model, information/media items are voluntarily, and freely, delivered by artists, typically, expecting to be monetarily rewarded. Consumers will freely access such items and reward the creators they deem meritorious. In this context, CDists may obtain their revenue by taxing such donation transactions. Some real world examples where content production, and distribution, was/is supported by this BM (or a similar one), are, for instance, The Real News Network, Radiohead’s and Nine Inch Nails’ experiments with voluntary user donations or Wikipedia; • ransom – in a ransom-based BM, the content producer (or the CDist on the producer’s behalf), conditions the release of a specific content item to the prior reception of a specific amount of donations. Once that amount is reached, the content becomes available for all users, free of charge. In this context, again, CDists may obtain their revenue by taxing the donations; • advertisement – in an advertisement-based business model, information/media items are voluntarily delivered by content producers. Users freely consume them, together with some advertisement messages. In this manner they supply their attention (advertisement viewing) in exchange for content access. That attention is sold to the advertisers for money, which is then employed to reward the content producers. In this context CDists typically obtain their revenue by retaining a portion of the amounts paid by the advertisers. This BM may take two different forms: o mandatory unrewarded advertisement viewing – in this mode the user is made to watch some commercial message before being given access to the desired content. The advertiser’s payment is invisible to the user; o voluntary rewarded advertisement viewing – in this mode the user voluntarily proceeds to the consumption of advertisement messages. The value paid by the advertiser is shared between the CDist (which operates the user, advertiser and media interaction space), and the user. These three BMs ultimately enable the free access to content and thus, do not depend on the existence or enforcement of content scarcity. This places fewer constraints on the management of content and enables a fuller exploitation of the Internet’s cost reduction potentials. Those BMs are therefore appropriate for sustaining on-line content delivery initiatives. These BMs do not represent a final and only choice for the Internet-era. They are the basic models. Others may, hypothetically, be developed, which are also inline with the guidelines of section 1 of the present chapter. IV Adequate BMs for the New Paradigm 79 3 Validation The validation of the proposed BMs is, first and foremost, a logical validation, based on the analysis of the technical characteristics of the Internet, (in the context of content distribution), and on the economic consequences of such characteristics. That logical backing was expressed in chapter III and approached again in section 1 of the present chapter. To complement this validation an inquiry was performed to assess user receptivity to open media delivery and to the BMs described earlier. It was performed on a general population of users consisting of 88% content consumers and 12% content producers. The contents of the inquiry and the obtained results are presented in Annex C. The inquiry was composed of four query groups. Such query groups had the following intents: • Query group 1: evaluate user acceptance of the correctness of rewarding content producers and CDists; and assess user awareness of the fact that if such rewarding does not take place the content will cease to be produced; • Query group 2: evaluate user receptivity to a total dematerialization of content distribution (i.e. distribution performed completely on-line); • Query group 3: assess user general receptivity/preference relatively to content accessing modes supported though a lateral extraction of gains in opposition to those which imply a direct and mandatory payment for content access; • Query group 4: evaluate user receptivity to three specific open content accessing modes based on lateral gain extraction. Such modes are: voluntary donation supported mode; advertisement viewing supported mode; and ransom supported mode. From the obtained results the following facts, regarding user preferences and attitudes, may be concluded to be effective: • the responses to query group 1 enable us to conclude that: o media users clearly acknowledge the justness of rewarding content producers and CDists; o media users recognize the need for such a reward, so that content continues to be produced, and acknowledge the unfairness of the lack of such a reward; • the responses to query group 2 enable us to conclude that: o media users consider that on-line content delivery is more convenient, to them, than the traditional, physical distribution; o media users tend to accept that media goods be distributed, predominantly, on-line; • the responses to query group 3 enable us to conclude that: o media users predominantly prefer models, of media content access on-line, which are based on indirect and/or voluntary payment over those which are based on direct payment for content access. This is so even if considering that they are to spend the same amount; • the responses to query group 4 enable us to conclude that: IV Adequate BMs for the New Paradigm 80 o media users are receptive to an open content access mode which is supported through a donation based BM, however most of them have not yet made any on-line donation; o media users predominantly believe that a donation based BM, where they decide to whom donate, enables a fairer rewarding of content producers; o media users are very receptive to an open content access mode supported through an advertisement based BM, especially so, in the modality where they are rewarded for consuming advertisement messages and may then employ such resources to reward content producers of their preference; o users are also somewhat receptive to a ransom base BM, but to a smaller degree than previous models; The verified facts regarding general user attitude and their receptivity to the content access modes, and associated BM, that we propose, mean that there is a clear conscience, on the part of users of the need and justness of rewarding content producers/distributors. Users reveal great receptivity for an open content access mode and show a clear willingness to cooperate in the economical supporting of content production/distribution by way of voluntary donations. Media users are also very receptive to advertisement viewing and show some receptivity towards the payment of “ransoms” for content access. These results give additional credibility to the BMs we have proposed. Further backing of our views is provided by the acknowledgement of their value by scientific peers. This was attained by means of paper publications in scientific venues. This subject, however, is more extensively approached in sections 2 and 5 of chapter VI were we focus on exposing the effective novel contributions made by this PhD work. 81 V A Reliable P2P Architecture for the New Paradigm 1 Introduction In this chapter we describe a P2P content delivery architecture which is tailored to reliably support the BMs identified in chapter IV, which are fully inline with the emerging paradigm in media replication and distribution. To provide that support this architecture must address the requirements identified in section 2.1 of the present chapter. The resulting architecture provides the BMs in scope with capabilities that the present state of the art in P2P technologies fails to do, in the fields of operational reliability and security assurance. For ease of referencing, this architecture will be regarded as a system that shall be named P2PTube. In the following sections, the precise requirements placed on P2PTube are identified, as well as the overall technical implications of supporting such requirements (section 2). Subsequently, the structure (section 3), data structure (section 4), and operation (section 5), of P2PTube are explained, as well as its inter-system cooperation capabilities (section 6). We then present the structure and content of the most relevant data objects, employed in P2PTube (section 7). Finally we explain how the system’s base operational capabilities may be employed to support its commercial exploitation in accordance with the BMs identified in chapter IV (section 8). 2 Requirements and Implications 2.1 Requirements 2.1.1 Introduction The ultimate requirement placed on the P2PTube architecture is that it be able to provide the necessary tools to support the deployment of the BMs identified in chapter IV. It must therefore enable an efficient and open P2P content distribution and securely support a lateral extraction of gains. The system’s global operation should be integrated and seamless so that a fluid and rich inter-user and user-media interaction is possible, in order for a dynamic, robust and reliable interaction environment to be maintained, which facilitates social interaction and the offering of rewards. These overall requirements, in their turn, imply a set of base technical requirements such as a safe and optimal operation. The next sections explore the requirements in scope, in greater detail. 2.1.2 Overall Requirements 2.1.2.1 Business Requirements The system operating (a CDist) entity and the content producers (if they so desire), should be rewarded for their work. The latter should be rewarded by means of user donations and V A Reliable P2P Architecture for the New Paradigm 82 the earlier, by taxing such donations. In said donations, consumer users reward, producer users, with monetary amounts which the earlier injected into the system, or which they acquired by selling their attention (advertisement viewing). The system must, thus, deliver the necessary provisions to enable the sale of consumer user attention and its purchase by advertiser users. It must also be the mediator of all rewarding transactions and tax such transactions. Furthermore, the system must be capable of performing the monitoring of content usage activities, on the part of consumers, both on and off line, at the “client” side, so that value may be extracted from that information. 2.1.2.2 Rights Protection Requirements The system should protect the authorship rights of content creators. It should assure the ineludible binding between each specific media item and the identity of its owner. Any kind of rights usurpation or infraction should be impeded. No user may be able to claim ownership or collect rewards for an item which is not truly his. Abusive actions over contents, such as unauthorized changes or removals (by the original author), insertions or diffusions of corrupted versions or unauthorized copies (of items already in the system), should also be prevented or undone by the system. 2.1.2.3 Usage Requirements 2.1.2.3.1 Usage Roles The system participating agents (users) should be able to access the system, in a secure and authenticated fashion, from any of the system’s peers, employing the same identity which must be globally recognized. Said agents should have clear usage roles (or user roles), attributed to them so that their specific rights and duties and respected and upheld, in what regards interaction with both content and other users. Given that both professional and amateur content is desired, user roles should be accordingly defined. Simple, or consumer, users are those who are mostly involved in the consumption of content and in the delivery of amateur information objects, for which they expect no reward. Producing users, are those that supply the system with professional content for which they generally expect an economic reward. One other type of actor in this system is the advertiser or sponsor. These actors insert into the system, information objects with advertisement contents. Advertisers pay the system’s operating entity for the exposure of users to their advertisements. It is up to the system to perform the exposition of individual users to advertisement messages. 2.1.2.3.2 Content Usage Once adequately authenticated, system users should be allowed to search for, consume, insert, remove, comment or version information items in accordance with their specific access privileges (e.g. a specific user cannot remove an information item which is not his). The searching of content should be simple, expeditious and actualized. The system should enable the user to perform searches over the totality of the system’s content. V A Reliable P2P Architecture for the New Paradigm 83 2.1.2.3.3 Monetary Resource Usage The system must provide the necessary technical and financial provisions to enable users to securely inject (into the system), donate and retrieve (from the system), monetary resources. It must thus securely maintain user accounts, where the users’ monetary resources are stored. And enable users to seamlessly and securely access those resources. 2.1.3 Base Requirements 2.1.3.1 Operational Requirements The system should guaranty an efficient and smooth global operation in face of a transient, and sometimes sabotaging, peer population. It should assure such aspects as: • overall scalability – the system should remain efficient and governable in the face of a growing amount of available content, of a growing number of participating users and of a growing number of linked peers; • reliable content availability – every and any media item, stored in the system, should be, at all times, available for retrieval, by the peers; • efficient and universal content discovery – content searches should be performed expeditiously and over the entire content repository; • efficient content location – the placement of media items over the peer tissue should be robustly know or efficiently discovered whenever necessary; • optimal content distribution – content should be diffused throughout the system’s tissue in an optimal manner, minimizing the overall data transmission expenditure, distributing the workload homogeneously throughout the system and pre-emptively delivering content to areas where it is predicted to be desired; • efficient content retrieval – content should be exchanged, between peers, in an efficient manner, so that its retrieval is expeditious and does not overburden any system peer; • reliable content management – content insertion, removal, updating and versioning should be supported; • credible enforcing of cooperative behaviour of peers – the system’s peers should be compelled to maintain a cooperative and honest behaviour. Inadequate such behaviour should be detected and adequate measures taken to deal with it; 2.1.3.2 Security Requirements 2.1.3.2.1 Secure Identification All system peers, users and media items should have a unique, global, verifiable and nonfalsifiable identifier. This identity should be employed: • in the case of peers: o to identify the peer in every interaction it participates in, with other peers, so that peers are accountable for their actions, the permissions of each individual peer may be respected and so the fulfilment of their incumbents is verified; • in the case of users: o to identify the user in every interaction it participates in, with the system, its content or other users, so that users are accountable for their actions, the rights of each individual user may be respected and so the fulfilment of their obligations verified; • in the case of media items: V A Reliable P2P Architecture for the New Paradigm 84 o to unequivocally identify the media item so that it may be universally referenced, and so that it is manipulated in accordance with its specific rights context; The system is thus responsible for guarantying that the above mentioned identities are not misused, and for enabling their global accessibility and verifiability. 2.1.3.2.2 Secure Communication The system must operate in manner which guarantees that all data exchanges between peers are confidential. It should preserve the integrity of said data, guaranty its undeniability and enable the validation of its authenticity. 2.1.3.2.3 Secure Content The system must guaranty the integrity of all media items exchanged though its tissue. It must enable the validation of said items’ authenticity and guarantee the undeniability of their authorship. 2.2 Architectural Implications 2.2.1 Introduction The satisfaction of the requirements, outlaid in section 2.1, has a number of specific, basic, technical implications on P2PTube’s architecture, which are translatable into a set of architectural options. These are exposed in the next sub-sections. 2.2.2 Overall Implications The design of the overall architecture of P2PTube is primarily conditioned by the security requirements of the BMs to be supported, as the satisfaction of such needs is fundamental to guaranty the feasibility and sustainability of said BMs. The satisfaction of the operational requirements is conditioned to the satisfaction of the earlier. For this reason at the base of the P2PTube architecture, providing the necessary security and trust, should be a PKI-like infrastructure, as these are robust means of guarantying security in distributed informatic systems. Different types of PKIs (in a broad sense), exist. Such types and their most relevant characteristics are the following [58]: • Centralized PKI – this is formed by a confederation of trusted entities, (called certification authorities, or CAs). These structures typically exist independently from other systems and merely provide security services to them. It is a tried and tested robust solution; • Decentralized PKI – the PKI is maintained by the actual entities which need its services (the clients themselves). No central entities (CAs) are employed. This approach may be divided into the following three main sub types: o Web of trust based – in this scheme, every system node (peer) trusts (under the operating user’s instructions), a specific set of other nodes, whose public keys it knows. Furthermore, every node relies on its trusted peers to certify the public key of yet other peers, and so on. Thus a web of trust is formed, where each peer may confidently discover the public key of another peer by finding a path, to it, in the peer acquaintance (trust) graph. This scheme V A Reliable P2P Architecture for the New Paradigm 85 implicitly exploits the small world phenomenon of social acquaintance. Within that “small world” context it eliminates the need for central authorities. However, every trust chain is only as strong as its weakest link, and such links are typically subjective and transitive. Hence, this scheme, especially for large networks, is not without reliability issues; o Statistical (quorum) based – in this scheme every peer’s public key information is stored at multiple random other peers. This information is retrieved by obtaining a subset of these replicas from a subset of the peers. If a sufficient number of the peers behaves honestly it will be possible to securely obtain the public key. This scheme is thus dependent on the predominance of honest peers and implies an operational overhead in injecting, storing and retrieving the public key information; o Hybrid – in a hybrid scheme, public key information replicas are stored and obtained from many peers. To validate the retrieved information, each replica is weighted against the trust the retrieving peer places on the replica supplying peer, and the global trust on the received information is calculated. This scheme is, potentially, more robust and efficient (in terms of information discovery), than the previous two alternatives, but is still short of reaching the robustness level of centralized PKI solutions. In light of the above, and considering that, as argued in [48], some form of central certification authority is necessary to guaranty security in a distributed system, regardless of the honesty of the participating peer majority, the best security option, for P2P systems, is to employ some form of centralized PKI or similar security means. As explained in section 2.4 of chapter II, P2P architectures have evolved to avoid having any coordinating central provision. This was done to avoid the costs of maintaining such an entity, but mostly, for legal reasons (avoid the legal targeting of that entity), and has resulted in operational shortcomings. Many solutions and schemes have been devised, throughout time, to compensate for the lack of a coordinating entity, in P2P systems. However, these have never truly managed to provide the operational and security performances that central coordinating entities do. The P2PTube architecture is specifically conceived to be employed by commercial and legally operating CDists, which derive the necessary revenue to sustain their activity. Such CDists can thus support the costs of maintaining said coordinating entities, and they are not at the risk of any legal attack. There is thus a need for P2PTube architecture to have centralized coordination, in light of the security and operational demands that it must live up to. There is also a capability, of the P2PTube architecture to support such central provisions. For these reasons, the P2PTube architecture should therefore be equipped with central coordinating provisions which are to be responsible for the maintenance of trust and security, throughout its tissue, and for the coordination and optimization of that tissue’s overall operation. P2PTube’s architecture should thus be a hybrid decentralized structure, which revisits and greatly enhances Napster’s architecture, by fusing it with PKI-like capabilities. This architecture provides superior content manipulation and security capabilities because: • its hybrid P2P structure – combines the security and coordinative capacities of a centralized system with the (reproduction and distribution), costs reduction properties of P2P content distribution; V A Reliable P2P Architecture for the New Paradigm 86 • the integration of its robust security provisions with the hybrid content delivery structure – enables the exploitation of synergies between the two; Furthermore, in order to empower the lateral extraction of gains, the system must also include provisions for monitoring user actions at the terminal side. These are also to be coordinated by the system’s core. The central part of the system, (the system core), should be the ultimate source of trust and security in the system. It thus is the ultimate source of identification information for all system entities, and of all other information, regarding such entities, as well. It is also to handle all tasks which require a global view of the system. The peripheral part of the system (composed by the collective of user owned peers), is to employ a predominantly P2P mode of operation, under the coordination of the system centre. It provides the users with an interface to the global system and its contents. Peers enable users to perform content searches, insertions, versionings and removals and a number of other user-system interactions. 2.2.3 Implications Upon the Core The satisfaction, of the previously specified requirements, has a number of technical and operational implications, specifically, upon the system core. Said core must thus: • attribute, manage, deliver and guaranty the uniqueness and un-falsifiability, of the identities of the users, peers and media items involved in the system; • collect, maintain and securely deliver public key information pertaining to all the entities in the system; • collect, maintain and deliver information mapping peer identifiers to the corresponding IP address; • function as the global registry, and ultimate validator, of media content and respective semantic and security related metadata. It must thus handle the original injection of media items, perform their backup storage and their original seeding. It must also prevent, or undo, the insertion of content whose authorship is incorrectly claimed; • collect, maintain and deliver information regarding the location of media items over the peer tissue, and coordinate their retrieval from such locations, by content retrieving peers; • enable and coordinate the updating, versioning and removal of media objects; • support the execution of semantic content searches over all the content that the system makes available; • maintain and manage user accounts and intermediate the transactions in which such accounts take part; • attribute roles to system users and oversee their maintenance of such roles, and the actions they perform in the fulfilment of such roles; • supply the necessary mechanisms to enable the exposing of users to advertisement content, the rewarding of users for the sale of their attention and the charging of the advertisers for that same fact; • supply the necessary mechanisms to enable users to perform donations to producer users; • coordinate the monitoring of user activities, at the terminal side, by the peripheral peers and collection of resulting information; • handle the maintenance and coordination of “spaces” or means through which the interaction between users and content, takes place. V A Reliable P2P Architecture for the New Paradigm 87 Given the operational and security demands placed upon the system’s core, its constituting provisions should be maintained (economically), and managed by the, commercial, system operating entity. Only this way will it be possible for it to deliver the necessary trust, to the rest of the system, and maintain the necessary operational performance. 2.2.4 Implications Upon the Peripheral Peers The satisfaction, of the specified requirements, has several technical and operational implications, specifically, upon the system periphery, that is, upon the peripheral peers. A peripheral peer must thus: • be able to securely, and in an authenticated manner, access the services of the system core and to answer its solicitations; • be capable of securely, and in an authenticated manner, interacting with other peers by performing solicitations to them and by answering those peers’ solicitations (e.g. participating in the inter-peer distribution of media items); • follow the instructions of the system core regarding the servicing or shunning of other peers and their requests, so that a globally coherent strategy may be enforced for the curtailing of nefarious peer behaviour; • comply to the monitoring requests received from the core; • be able to validate media item integrity and authenticity, upon their retrieval, and to reliably store them; • perform the interfacing between the users and the overall system. This means that the peer must possess the necessary provisions to: o enable the user to login to the system; o enable the user to perform global content searches, content insertions, removals, versionings and consumptions; o allow the user to enjoy the social interaction capabilities made available by the system; o enable users to manipulate the monetary resources stored in their accounts; 2.2.5 Summary Table 2 performs a summarizing mapping between the main identified requirements and their architectural implications. Table 2 – Requirements to Implications Mapping Requirements Implications Overall On the Core Core peer(s) On the Periphery Peripheral peer(s) Business Enable user donations Hybrid decentralized structure Manage user accounts Intermediate all transactions Enable users to securely interface the core services which enable them to inject money into their V A Reliable P2P Architecture for the New Paradigm 94 The PPs are, typically, owned and operated by regular users, and, thus, commonly run on household PCs. These peers present varying degrees of reliability and trustworthiness. The different types of peer’s, with their different characteristics, present unequal levels of capacity, and trustworthiness. For this reason they perform roles with different levels of responsibility, authority and knowledge, at all of the system’s layers. 3.4.2 Central Core Peer Role At all of the system’s levels, the CCP is the ultimate authority in the system and should be fully trusted by all the peers. It is the base source of the system’s integrated PKI-like capabilities. The CCP coordinates the system’s entire operation and all the interactions that it comprises, for the servicing of the peripheral peer collective. The CCP is the only peer in the system which contains the system’s data structure in its entirety at all times. It is, thus, the ultimate source of all information, at all system levels, and the sole handler of all peripheral requests which imply some change or addition to the system’s overall data structure. As it is the root of all trust, in the system, the CCP, is, therefore, the ultimate assurer of the system’s operational reliability, provider of the necessary functionalities for the maintenance of an environment of trust within the system, and deliverer of the necessary means to assure identity verifiability to all peers, users and media objects. More specifically, the CCP’s responsibilities include: • at the PLL: o storing the PLL part of the system’s data structure (information on all peers), in its entirety; o monitoring the system’s internal context, (by monitoring the requests received from the peripheral tissue and the information pertaining the interactions between the peripheral peers), in order to optimize the system’s internal operation and the cooperation between its peers. • at the UEL: o storing the UEL part of the system’s data structure (information on all users and media items and the media items themselves), in its entirety; • at both levels: o providing and/or coordinating (reading) access to the system’s data structure, for PPs and OCPs; o providing the capability to, and controlling, the alteration the system’s data structure; o guaranteeing the validity, coherence and correctness of the information contained in the systems data structure; 3.4.3 Outer Core Peer Role The OCPs assist the CCP in the servicing of the peripheral peer collective. Each OCP is a trustworthy alternative (to the CCP), for access to the system’s data structure which they store, most of the time, in its entirety. At the three system levels, the OCPs handle peripheral requests which imply only reading operations on the system’s data structure. Each OCP is, therefore, responsible for the delivery, of the information it stores, to the PPs or other OCPs. They are not, however, to service all and every PP. Whenever a PP logs into the system (comes on-line), the responsibility for handling its requests is attributed, by the V A Reliable P2P Architecture for the New Paradigm 95 CCP, to one specific OCP. From that point on, the PP’s “reading” requests should be sent to the specified OCP. There is thus a division of responsibilities, regarding the attending of the peripheral peer collective’s requests, amongst the OCPs, which is coordinated by the CCP. Each OCP is responsible for the handling of the requests coming from a subsection of the set of all peripheral peers. Figure 26 – Example Distribution of OCP Servicing Responsibilities over the PP Collective Figure 26 presents a possible example of such a responsibility distribution. In it, the following assignments are in place: • OCP 1 is responsible for servicing all “reading” requests from peripheral peers AA PP to AZ PP ; • OCP 2 is responsible for servicing all “reading” requests from peripheral peers BA PP to BZ PP ; • OCP m is responsible for servicing all “reading” requests from peripheral peers ZA PP to ZZ PP ; For simplicity’s sake the peer identifiers employed were only composed of two letters, thus enabling a total set of peripheral peers from AA PP to ZZ PP . In reality this set will be much larger. 3.4.4 Peripheral Peer Role The PPs host the system users and service other peers in the system. In specific terms the PPs: • at the PLL: o attend to the requests coming from the UEL; o attend to requests, from other peers, for information on specific peers’ information; • at the UEL: V A Reliable P2P Architecture for the New Paradigm 96 o perform the interfacing of users with the system by servicing their requests. This service typically implies the reading and/or righting of the system’s data structure, which is achieved by resorting to the services of CCP, OCPs or of other peripheral peers; o attend to monitoring requests from the system core; o attend to requests, from other peers, for information on specific users or media items; 3.4.5 Summary Table 3 summarizes the main responsibilities of each type of peer. Table 3 – Peer Responsibilities Responsibility Types Peer Type Responsibilities Central Core Peer Resp. Outer Core Peer Resp. Peripheral Peer Resp. ICPL Resp. IPCL Manager Resp. Receive incoming and send outgoing messages PLL Resp. PLL DB Resp. Storing the entire PLL data structure at all times Store all or part of the PLL data structure Store core signed fragments of the PLL data structure PLL Peer Info Manager Resp. Monitor PLL’s overall operation Provide and/or coordinate access to the PLL data structure, for PPs and OCPs Provide the capability to, and control, the alteration of the PLL data structure Guaranty the validity, coherence and correctness of the PLL data structure Provide reading access to the PLL data structure to some specific subset of the PPs Read and right to the PLL data structure (resorting to the CCP or OCPs), to perform its regular operation in service of the CMode or SMode PL Managers Redistribute core signed fragments of the PLL data structure, to other, PPs, under CCP or OCP coordination CMode PL Manager Resp. Handle outgoing requests (coming from the local UEL instance) and incoming request responses (coming from remote peers) SMode PL Manager Resp. Handle incoming requests (coming from remote peers) and outgoing request responses PLL Crypto Tool Resp. Perform encryption, decryption, signing, signature validation and hashing operations UEL Resp. UEL DB Storing the entire UEL data structure at all times Store all or part of the UEL data structure Store core signed fragments of the UEL data structure Outer Environment Manager Handle requests coming from the hosted users. Inform the Monitoring Manager about relevant user actions Inner Environment Manager Handle requests coming from remote peers V A Reliable P2P Architecture for the New Paradigm 97 User Info Manager Monitor UEL’s overall operation Provide and/or coordinate access to the UEL data structure, for PPs and OCPs Provide the capability to, and control, the alteration of the UEL data structure Guaranty the validity, coherence and correctness of the UEL data Provide reading access to the UEL data structure to some specific subset of the PPs Read and right to the UEL data structure (resorting to the CCP or OCPs), to perform its regular operation in service the Environment Managers Redistribute core signed fragments of the UEL data structure, to other, PPs, under CCP or OCP coordination UEL Peer Info Manager Media Item Info Manager UEL Crypto Tool Perform encryption, decryption, signing, signature validation and hashing operations Monitoring Manager Coordinate all monitoring procedures and registered the gathered information Register event report requests, issued by the system core Report to the core when relevant Register event report requests, issued by the system core Report to the core when relevant 4 Data Structure and Model 4.1 Introduction The set of all the information, regarding system participating entities (e.g. peers, information objects and users), system occurring events (e.g. media object insertions, consumption, inter user monetary donations, etc.), and system occurring relationships (the relationships between system entities and events, etc.), that the P2PTube architecture requires for its operation, collectively constitutes its data structure. This structure is distributedly and redundantly stored throughout the system. It is redundantly held, in its entirety, by the CCP and the OCPs. The PPs store only fragments of it. The data structure may logically be divided into UEL and PLL sections. However, operationally, it is one single coherent and interrelated structure. The characteristics of data structure in scope, depend on the actual business model(s) supported and on the services to be delivered by this architecture. Said data structure must, thus, be able to support the description of realities of varying levels of complexity. In the following sub-sections, we define the minimal necessary data model (to be embodied by the P2PTube’s data structure), to support this architecture’s operation and the business models outlined in chapter IV. V A Reliable P2P Architecture for the New Paradigm 98 4.2 Rationale Reality is made up of “things” which exist under involvement in relationships with other “things”. Each individual “thing”, in its turn, is also composed by interior “things”, which also exist under involvement in relationships with each other, and so forth, unlimitedly. All of existence is transitory and is in permanent change. That way, with time, all things which had a beginning, as a relational aggregation of interior “things”, also have an end, that is, a disaggregation or alteration of the sub relationships and sub “things” that compose them. All things may thus be seen as events. A car is an event composed by all of its parts and components under a specific set of interrelationships. If destroyed or disassembled, it ceases to be a car, that is, the car event is terminated. In the same manner, a storm is an event composed by air and water vapour masses maintaining a specific set of relationships amongst them and with the outer world. When those relationships change, or, for instance, the water vapour is removed from the storm (by way of the rain), the storm ceases to exist. Relationships between “things” only exist when instantiated. That is, a relationship exists only when the two related “things” exist in a way so as to maintain it. This way, relationships are realized as occurrences, and are thus relational events. Relationships are therefore the most basic events. They are those which are closest to a mere logical existence. Relational events consist of “predicates” and are thus connected to two other events of any type. One of these plays the role of the “subject” of the connection and the other one, the role of the “object” of the connection. Oppositely to relational (or basic) events, the remaining events may be designated as complex events. These may be divided into two sub-types: • Procedural events – these events consist of processes or actions (e.g. a flight, a collision). They are composed of only relational events and other procedural complex events. Ultimately, a procedural event composed of only one relational event is logically equivalent to it; • Entitary events – these events consist of realities that may be seen as entities (e.g. a car, a person). They are composed by relational, procedural complex and entitary complex events. The P2PTube system and its internal operation, as any other reality, may thus be described as a set of relational, procedural and entitary events. For every reality a great number of entitary, procedural and relational events may be identified, at different levels of complexity. Depending on the context, not all of them, however, are of relevance to the representation or comprehension of the reality in scope. The aspects of reality that are to be effectively captured must be selected in accordance with the needs of every different situation. In the specific context of P2PTube: • the main complex events are: o entitary events: peers; users; and the information objects; o procedural events:  events pertaining to user interactions with the system, (e.g. user registration, insertion of media objects, donations);  events pertaining to internal, autonomously initiated, system activities; • the main relational events are all those inter-webbing the tissue of complex events; V A Reliable P2P Architecture for the New Paradigm 99 P2PTube’s data model is therefore defined around these three basic types of phenomena and their most relevant instances. Given that procedural events represent complex occurrences in the system, they thus play the main structural role in the system’s data model. The core of the model is therefore a continuous string of interrelated complex procedural events, which contain (or are somehow related to), a vast set of events of all types that describe the rest of the system’s activity. The richness and complexity of the data model, and its alignment with reality, makes it extremely versatile and, therefore, able to record any aspect of it, to any level of detail. Traditional data models are conceived so as to perform a consistent registry of very specific aspects of certain domains. These models, are typically confined to registering a continuous succession of states in a given domain of reality, and, often, the registration of new states involves the loss of information about previous states. One might think of the information recorded in these structures, at any given moment, as a picture of the most relevant aspects of the state of reality, at that moment. At each relevant change, of the state of reality, so does the "photo" necessarily change, being that the changed aspect may, or may not, be recorded, in the same way that the context of alteration, in question, is generally not saved. In an opposite manner, P2PTube’s data model, does not record only the current state of reality. Instead, it registers the entire sequence of relevant procedural events, which occur, as well as their interrelationships, and thus, their context. It, therefore, captures a whole contextualized evolution of reality (and, thus, of its states) over time. For example, in the case of a media item insertion, P2PTube’s data model does not only register that said item is now available and some further details regarding it (e.g. its owner user). Instead, it registers the entire procedural event of the item’s insertion, as well as its relationships with other relevant procedural and entitary events, such as the relationship with the procedural event consisting of the hosting of the owner user, at some peer, in the system and the events that consist of the hosting of the media item at various different peers, as a result of its insertion process. The information related to the availability of the media item or to the identity of its owner is present, all the same, but distributed across the recorded events and relationships. It comes, however, enriched by a whole, chronologically organized, context. Given the way that P2PTube’s data model is structured, it inevitably stores a more complex data structure. This means that retrieving information from it requires more complex operations. However, this is a trade-of, which enables, on the reverse side, an immense increase of the data model’s versatility and of the wealth and contextualization of the recorded information. It also facilitates the continuous expansion of the model, so that the capture that it performs of reality, can evolve over time so as to meet ever-changing needs. A more versatile, detailed and contextualized capture of reality, and with less information loss, means that more information, and more valuable information, is available to be accessed and exploited by both the system itself and by users. The system can thus, for example, correlate: • a procedural event consisting of the insertion of a media item A; • with a procedural event consisting of the hosting of its owner user at a given peer at given time interval; • with a "commenting" relational event linking media item A with other media item B; • with a procedural event corresponding to a consumption of a media item C in a given time interval; • with a "commenting" relational event linking media item C and media item B; V A Reliable P2P Architecture for the New Paradigm 100 and, therefore, determine that the referred user, inserted a comment to media item B, after having consumed a media Item C which also contained a comment to media item B, when he was hosted on a given peer at a given time interval. Users, in turn, can make much more complex searches such as: what is the number of users that, after consuming a particular item A, consumed, immediately afterwards, a media item B. 4.3 Registered Information The information registered by the system’s provisions may be divided into two parts: • The information that composes the global data model – this is the information which is permanently stored at the core data structure, and whose registry and knowledge is necessary for the system’s global operations; • The information that composes the individual peer data model – this is information which is stored at every peer, independently from each other, which translates the peer’s individual experience and is necessary only for the proper operation of the actual peer. For the sake of preventing the dissertation’s main body of reaching an excessive size, the specification of the information which is registered in the system’s data model is described in Annex D. In said annex the registered information is presented on an event-oriented basis that delivers a disassembled view of the overall resulting data structure. The best way to understand the overall system’s data structure, is to interpret it in an object oriented manner, as a complex mesh of interconnected events which is structured, and built around, a chain of procedural events in an hierarchical manner, starting from the core procedural events and then proceeding to all others. Said core/structuring procedural events are: • At the PLL – the Peer Participation Session Events; • At the UEL – the User Attending Session Events; From the above presented perspective the system’s data structure consists of a series of events connected by relationships, where each event may “contain” (be bound to by inclusion relationships), relationships or further series of relationship connected events, and so forth. Figure 27 presents a depiction of an exemplifying section of the data structure, from the above-mentioned perspective. In it, procedural and entitary complex events and entities are represented as green and purple boxes, interconnected by yellow relationship boxes. From that image we may see that: • the top level events are the Peer Participation Session Events. These can be seen as PLL events that consist of a peer being connected to the system for some time interval. Peer Participation Session Events are initiated, by Peer Connection Events, and terminated by Peer Disconnection Events, which in turn are triggered by PeerloginTo-System and Peer-loggoffFrom-System relational events, respectively. • Peer Participation Session Events, may include (be connected to, by inclusionOf relationships) other events, such as a Peer Reporting Event. • Peer Participation Session Events are also bound, by supportingOf relationships to UEL levels events, such as the User Attending Session Events; V A Reliable P2P Architecture for the New Paradigm 101 • User Attending Session Events consist of user participation sessions. They are initiated by User Connection Events and terminated by User Disconnection Events, which, in turn, are triggered by User-loginTo-System and User-loggoffFrom-System relational events, respectively; • User Attending Session Events include all events pertaining to user interaction with the system. As such they may include events such as MO Search Events, MO Responding Events, MO Commenting Events, etc; Figure 27 – Example of Data Structure Section All mentioned procedural and entitary events are stored as entries in their corresponding tables, along with any other specific, relevant, information about them. They are webbed into the overall data tissue through their referral by the relational events that they are involved in. All the explicitly mentioned relationships in the above text, as well as those implicitly defined, (when we say that some event includes some other event or relationship), are registered in the data structure as entries in the appropriate relational event table. In such entries there is V A Reliable P2P Architecture for the New Paradigm 102 a field indicating the subject phenomenon, another referencing the object one and a third one indicating the “predicate” of the relationship, that is, the actual type of the relationship. Furthermore, said entries, also carry an indication of the time instant at which the relationship “came into existence” and an indication of the time instant at which is became invalid. As it can be concluded, the data structure will be an intricate mesh of information nodes (procedural and entitary events), interconnected by relational events, were no past information is ever lost. Procedural, entitary or relational events, which are no longer occurring or valid, have their end date introduced, and are marked as inactive. The present state of the system is described by the set of all the procedural, entitary and relational events that are still active. All other entries constitute the registry of the system’s past. 4.4 Data Model In accordance with the rationale presented in section 4.2 and the information set that the system’s data structure needs to register (presented in section 4.3), three different types of aspects of reality (identified in section 4.2) are mapped into the system’s data model: • Entitary Complex Events – real or abstract “things” like peers, users and information objects; • Procedural Complex Events – occurrences that take place within reality and are manifested through the initiation and/or termination of relationships; • Relational Events – logical bonds between different segments of reality (e.g. between entities). The data structure’s model (presented in Figure 28), is defined in terms of those three aspects of reality. All system events are registered at the EVENT table. This table carries the information fields, pertaining to events, which are common to all types of events. As such, each of its rows contain: • EvID – the system wide unique identifier of its represented event; • EvType – the specific type of the event (accepted values are RelEv, ProcCompEv and EntCompEv); • BeggDate – the event’s beginning time; • EndDate – the event’s end time (when available); • IsActive – a boolean filed indicating if the event in scope is still effectively in occurrence and part of the system. However, given that there are three main sub types of events, the latter table is “extended” by additional ones, in order to carry the information fields specific to each main type of event. This way: • the RELEV table extends the EVENT table. It registers all Relational Events. Its entries carry the following fields: o RelEvID – the system wide unique identifier of the relational event (foreign key imported from the EVENT table); o RelType – the identification of the “predicate” of the relationship represented by the entry. It may take as value the name of any of the relational events defined in Annex D; o SubjectEvID – the identification of event which plays the role of “subject” in the relationship represented by the entry; o ObjectEvID – the identification of event which plays the role of “object” in the relationship represented by the entry; V A Reliable P2P Architecture for the New Paradigm 103 • the COMPEV table extends the EVENT table. It registers all Complex Events. Its entries carry the following fields: o CompEvID – the system wide unique identifier of the complex event (foreign key imported from the EVENT table); o EvType – the identification of the type of complex event at stake. Said field may thus take as value either ProcCompEv or EntCompEv. This table is “extended” by the following ones: o PROCCOMPEV – this table registers all Procedural Complex Events. Its entries carry the following fields:  PocCompEvID – the system wide unique identifier of the procedural complex event (foreign key imported from the COMPEV table);  EvType – the identification of the type of procedural complex event at stake. It may take as value the name of any of the procedural complex events defined in Annex D; o ENTCOMPEV – this table registers all Entitary Complex Events. Its entries carry the following fields:  PocCompEvID – the system wide unique identifier of the entitary complex event (foreign key imported from the COMPEV table);  EvType – the identification of the type of entitary complex event at stake. It may take as value the name of any of the entitary complex events defined in Annex D. All specific types of entitary, procedural and relational events whose registry requires the storage of some specific extra data field, besides the ones registered at their corresponding base tables (ENCOMPEV, PROCCOMPEV and RELEV), have their registry extended by specific tables, which store said extra information. Thus, if, for instance, the registry of entities of type “peer” needs to store some extra field, not available in the ENTCOMPEV table, then, for each registered peer, there will be an entry in the ENTCOMPEV table pertaining to said instance (peer). Furthermore, there will also be a PEER table (extension table), with a specific entry for the peer in question, which carries the additional, peer specific, information fields. As it was implicitly shown above, in the extension tables, the primary key is a foreign key received from their corresponding base tables, which corresponds to the primary key of the latter tables. In the base tables, the field indicating the specific type of the event described in each entry, functions as a pointer to the specific extension table (if any), with further information about that event. In more specific terms the basic data model contains the following extension tables: • In the context of the registry of entitary complex events, the following tables extend the ENTCOMPEV table: o PEER – each table row contains peer-specific information pertaining to a specific peer; o USER – each table row contains user-specific information pertaining to a specific user; o UACCOUNT – each table row contains user-account-specific information pertaining to a specific user account; o PEERIP – each table row contains peer-IP-specific information pertaining to a specific peer IP address; o IO – each table row contains IO-specific information pertaining to a specific information object. This table is extended by the following ones, which pertain to different types of IOs:  MO – each table row contains MO-specific information pertaining to a specific media information object; V A Reliable P2P Architecture for the New Paradigm 110 • Type 2 interaction sets – this interaction set is very similar to the type 1 interaction set. The difference is that the contacted OCP,( 3 OCP ), is for some reason, overburdened and thus redirects the PP to some other OCP ; • Type 3 interaction sets – a user submits a request to its hosting PP. If the user’s request implies only the reading of (a part of) the system’s overall data structure, but the request (or some of the sub-procedures it implies) needs to be registered, the inter-peer interaction sequence will be similar to a type 1 interaction, except for the fact, that the contacted OCP will notify the CCP of the request received from the PP; • Type 4 interaction sets – a user submits a request to its hosting PP. If the user’s request implies some change or addition to the system’s global data structure, the PP will have to direct the request to the CCP, as the latter is the overall maintainer of the system’s global data structure and the gatekeeper of that structure in what regards changes made to it. In this situation (exemplified in boxed area 4 of Figure 29), the PP will then send the request to CCP. The latter evaluates its validity and if everything is ok, it performs the necessary changes to the data structure and sends a confirmation to the calling PP. In a parallel manner, given the (redundant), distribution of the data structure over the OCPs, the CCP will need to update the affected information in all the OCPs. It will thus issue update requests to all of them, with the new information, which these will store (exemplified by steps 2’ and 3 in boxed area 4 of Figure 29); • Type 5 interaction sets – this interaction set is very similar to the type 1 interaction set. The difference (as exemplified in boxed area 5 of Figure 29), is that the contacted OCP, 2 OCP , hybridizes the operation by redirecting the original requesting PP ( 1 PP ) to another PP ( 2 PP ); • CCP triggered interaction sets: • Type 6 interaction sets – due to the occurrence of some change or addition to the system’s data structure, the CCP instructs the OCPs to update the data that they are storing (as exemplified in boxed area 6 of Figure 29, for a single OCP); • Type 7 interaction sets – the CCP needs some monitoring information to be obtained by some PP. In that regard (as exemplified in boxed area 7 of Figure 29), it sends a monitoring request to the target PP (step 1). The latter sends an acknowledgement and proceeds to perform the capture of the desired information. Whenever relevant, the PP sends back to the CCP, event reports containing its monitoring activity results. V A Reliable P2P Architecture for the New Paradigm 111 Figure 29 – Basic Inter-Peer Interaction Sequences 5.2.2 Operation Identification In the course of the system’s operation, each of its peers will need to process numerous simultaneous operations, handling both user requests and the requests from other peers. This results in an overall scenario characterized by an intricate and concurrent set of global operations, where each such operation “traverses” multiple peers on multiple layers of the system, as it is composed of numerous inter-peer cooperations at multiple levels. As all cooperations are performed through the exchanging of messages between the cooperating peers, the above-mentioned scenario translates into a complex and concurrent mesh of inter-peer message exchanges. For the system to operate coherently it is necessary that no inadequate crosscommunication occurs, that is, that the procedures and the exchanged messages of different operations and cooperations are not confused or mixed up. Operations must thus be clearly distinguishable from each other, and so must their internal composing inter-peer interactions, and, hence, their supporting messages. In light of the above, operations must be attributed a system-wide unique identifier at the time of their initiation. To do so, whenever a peer (be it a PP, an OCP or the CCP), initiates an operation it builds a unique identifier for it, composed of the following parts: • the operation initiating peer’s identifier (which is per se system-wide unique); • the operation’s initiating time; • the operation’s sequence number, within the context of the peer and of the time of its initiation. For instance, an operation which is the 12 th operation to be initiated by the peer (at some specific level, e.g. UEL), since the beginning of the last millisecond, will have “12” as its serial identifier; For instance, if a PP is identified as “p2ptube:ppeer:xpto001”, if the current time in milliseconds is “1341227480331”, and if the operation is the “12 th” to be initiated by the peer in the current millisecond, than the operation’s id is “p2ptube:ppeer:xpto001:1341227480331:12”. V A Reliable P2P Architecture for the New Paradigm 112 In order to correctly perform the operations that it starts, a peer will typically have to resort to the services of other peers, i.e., establish cooperations with them. These must also be uniquely identified. To do so, whenever a peer initiates an inter-peer cooperation, in the service of a specific operation, it will produce a unique identifier for it, composed of the following parts: • the identifier of the encompassing operation; • the identifier of the target cooperating peer; • the cooperation’s sequence number, within the context of its encompassing operation and of the target cooperating peer. For instance, a cooperation which is the 2 nd cooperation to be initiated within the context (at the service) of the same operation, with the same target cooperating peer, will have “2” as its serial identifier; For instance, if an operation is identified as “p2ptube:ppeer:xpto001:1341227480331:12”, if the target cooperating peer is identified as “p2ptube:ppeer:abc1”, and if the cooperation is the “2 nd” to be initiated in the context of the above mentioned operation with the above mentioned peer, than the cooperation’s id is “p2ptube:ppeer:xpto001:1341227480331:12:p2ptube:ppeer:abc1:2”. Peers may also become involved in operations that they did not start by servicing cooperation requests coming from other peers. In order to handle such cooperations, said peers may need to initiate further cooperations with other peers, and will, thus, need to adequately identify such new cooperations. To do so, whenever a peer initiates an inter-peer cooperation, in the service of a specific another cooperation (where it plays the server role), it will produce a unique identifier for the new cooperation, composed of the following parts: • the identifier of the cooperation request that the new cooperation is servicing, and which is, thus, its originating cooperation; • the identifier of the target cooperating peer; • the cooperation’s sequence number, within the context of its originating cooperation and of the target cooperating peer. For instance, a cooperation which is the 3 rd cooperation to be initiated within the context (at the service) of the same originating cooperation, with the same target cooperating peer, will have “3” as its serial identifier; For instance, if an originating cooperation is identified as “p2ptube:ppeer:xpto001:1341227480331:12:p2ptube:ppeer:abc1:2”, if the target cooperating peer is identified as “p2ptube:ppeer:abc2”, and if the cooperation is the “3 rd” to be initiated in the context of the above mentioned cooperation with the above mentioned peer, than the cooperation’s id is: “p2ptube:ppeer:xpto001:1341227480331:12:p2ptube:ppeer:abc1:2:p2ptube:ppeer:abc2:3”. As stated earlier, all cooperations are performed through the exchanging of messages between the cooperating peers. These messages must be properly exchanged and managed to ensure the correct execution of operations and cooperations. Thus, the operation and cooperation identification scheme, presented before, is to be employed in the identification of said messages. Every cooperation comprises the bidirectional exchange of one or more messages between two peers (the client peer and the server peer). The identifiers used in those messages are composed by the following parts: • cooperation ID – the identifier of the comprising cooperation; • cooperation side – a string which indicates if the message is coming from the client or server side of the interaction. In the earlier case its value is “req”. In the latter case said value is “resp”; V A Reliable P2P Architecture for the New Paradigm 113 • counter – a numeric value indicating the cumulative number of messages sent from the message’s sender peer to its receiver peer, in the context of the cooperation in scope. It is thus a counter of such messages. Figure 30 – Cooperation Mesh Constituting an Operation Figure 30 presents an example of a mesh of inter-peer cooperations resulting from a single operation, illustrating the identifiers of the involved cooperations. That operation (identified as 12:3311341227480:p1 = opID ), is initiated by peer 1 P . To adequately perform it, 1 P solicits cooperations from peers 2 P , 6 P , 14 P and 9 P . From the latter one it actually requests two different cooperations, in the scope of the same operation. These are therefore identified as 1:p9:opID and 2:p9:opID , respectively. The peers initially contacted by 1 P eventually solicit the cooperation of further peers, and so on, and thus, the operational mesh of cooperations expands throughout the system’s tissue. Two of the cooperation chains (sequences of cooperations were each is caused by the previous one, and causes the next one, in the chain), are highlighted with different colours to emphasise a specific possible operational occurrence. That occurrence consists of a peer 14 P , being involved in two different cooperation chains (of the same operation), at different depths of those chains. In the “red” chain 14 P is directly contacted by 1 P , and in the “blue” chain, it is reached, by the cooperation mesh of operation 12:3311341227480:p1 = opID , via 2 P . 14 P is thus part of the two following cooperation chains: • 1:p14:opID  1:p16:1:p14:opID • 1:p2:opID  1:p14:1:p2:opID  1:p12:1:p14:1:p2:opID However, in spite of the possible complexity of the cooperation mesh that results of the execution of an operation, once the above defined scheme of operation and cooperation identification is employed, (for the identification of the exchanged messages), no crosscommunication or message switching will occur and the operations will unfold successfully. V A Reliable P2P Architecture for the New Paradigm 114 5.2.3 Peer Identification Every system peer has a system-wide unique identifier. It is composed of the following parts: • the identifier of the system; • the identifier of the type of peer; • the peer’s unique alphanumeric serial; Thus, for instance, in a system identified as p2ptube, a peripheral peer with serial xpto001 will be identified p2ptube:ppeer:xpto001. 5.3 IPCL Operation 5.3.1 Introduction The IPCL, operates in a purely P2P fashion. It provides the upper layers with communication services, through the exchanging of information packets directly between peers. 5.3.2 Interfacing IPCL instances interface with the local PLL instance “above” them, and with remote other IPCL instances. As such an IPCL instance exchanges information with both those entities, in both directions and (given the P2P nature of the system), in both the client and server roles. The purpose of the IPCL is to attend to the requests of the PLL. Doing so, basically consists only of relaying internal outbound PLL messages to external PLL instances (PLL instances of remote peers), and external inbound PLL messages to the local PLL. To supply such a service, the IPCL requires the delivery of the following parameters: • from the local PLL instance, (in the case of an outbound internal PLL message): o the IP address of the destination peer; o the PLL message to be sent; • from a remote IPCL instance, (in the case of an inbound external PLL message): o the actual exchanged IPCL message (from which the PLL message is extracted and passed up to the PLL); Outbound messages are sent over TCP/IP to the destination peer. Inbound ones are relayed to the local PLL. 5.4 PLL Operation 5.4.1 Introduction The PLL offers a set of core functionalities to enable: • the security (confidentiality, integrity, authenticity and non-repudiatiability), of all messages exchanged between peers; • the registration, removal, login and logoff of peripheral peers from the system (in a client/server manner); • the registration and removal of outer core peers (client/server manner); • the resolution of peer contact endpoints and authentication info, (in a hybrid manner); • the shunning and readmission of peripheral and outer core peers (client/server manner). Every peer has a unique identifier as well as a unique asymmetrical key pair composed of a public key, ( i P K ), and a private key ( 1− i P K ), which it employs for its authentication. The V A Reliable P2P Architecture for the New Paradigm 115 ultimate register of the public part of this authentication information, ( ,, i Pi Kp ), and of the contact endpoints of peers is the CCP ’s PLL. It is assumed that the PLL of all peripheral and outer core peers “knows” CCP ’s public key. The following sections explain, in detail, how the PLL provides the above mentioned functionalities. 5.4.2 Secure Messaging Inter PLL communication security is assured by the PLL itself. It thus assures the confidentiality, integrity, authenticity and non-repudiatiability of all messages involved in that communication. The procedure employed to assure communicational security varies slightly depending on whether the communicating peers have already established a communication session or not. 5.4.2.1 Pre-Connection Secure Messaging The procedure employed to assure that two peers may communicate securely, before they have established a communication session between them, is always the same regardless of the types of conversing peers and of the role they play in the interaction (“client” or “server”). Figure 31 – Pre-Connection Secure Messaging Procedure Figure 31 exemplifies the procedure in scope (taking into consideration the notation defined in section 5.1 of the present chapter), with generic peer i P playing the client role and generic peer k P playing the server role. V A Reliable P2P Architecture for the New Paradigm 116 The interaction initiating peer, i P , begins by sending the message ( ) infoinforeqMsg s k P i P k P i P ,ProdFpreConnMsg= to k P expressing its request (step 1), where ( )        − = 1 , ,,,Ø,, ftrf,ProdFpreConnMsg i P k P s k P i P KSigInfoKEncInfoserial s infoinfoinfo . That message contains a transformed (by function       ... ftrf ), version of the information to be sent. That function takes as parameters the following set: • s info – is the sensitive information being transmitted. It must always carry, besides other information, the specification of the type the request; • info – in the non-sensitive information being transmitted, which, in this case, is null; • serial – is a serial identifier that enables the logical binding between messages and the operations and cooperations that they pertain to (see section 5.2.2). It also performs the unique differentiation between all exchanged messages so that no two messages are ever alike. If a repetition is ever detected, it is either an error or a replay attack and the message must be discarded. The serial carries the following data: o the identifier of the overall operation which encompasses the cooperation to which the message pertains; o the identifier of the inter-peer cooperation to which the message pertains. Given the way its structure is defined, (see section 5.2.2), this identifier carries the identification of all the previous cooperations in the cooperation chain that lead to the current cooperation. It is the last link in the chain that actually defines the present cooperation. It includes in its structure the identification of the sender and receiver peers; o k P i P cntr – a cumulative counter of all the messages sent from i P to k P in the course of the present cooperation, preceded by the “req” or “resp” string if the comprising message is coming from the “client” or “server” peer; o a timestamp indicating the message’s creation time; The set composed by the identifier of the inter-peer cooperation and k P i P cntr constitutes the comprising message’s identifier, in accordance with what was defined in section 5.2.2 • EncInfo - carries the necessary information to enable the authorized receiving party to decode the message. It thus contains: the identification of the peer whose public key was employed to cipher the overall message ( k P ), so that only such peer may decipher it; the definition of the ciphering algorithm; the identifier of said public key; • the public key of the destination peer (it is employed to encrypt the message’s secure content); • SigInfo - carries the necessary information to enable the authorized receiving party to validate the signature of message’s contents. It thus contains: the identification of V A Reliable P2P Architecture for the New Paradigm 117 the peer whose private key was employed to sign the overall message ( i P ); the definition of the signing algorithm; the identifier of the employed private key; the identifier of the corresponding public key; and the actual public key. SigInfo , which will be sent to the receiving peer, includes the public key, of the sender peer, in the cases were the peer is performing its initial connection to the CCP (registering), as in that case the CCP (receiving peer) does not yet know that information. In all other cases, the value of the public key will not be sent as the destination peer must discover it through the adequately reliable means – asking the CCP (or some OCP); • the private key of the source peer (it is employed to sign the message’s content); Function         BA KSigInfoKEncInfoserialyx ,,,,,,ftrf , performs its work by concatenating the SigInfo parameter with the serial identifier, with s info and with the signature (by i P ) of info , and by signing that set with i P ’s private key, and ciphering the result with k P ’s public key. The ciphered result is then concatenated with EncInfo . The information block resulting from the previous operations is them concatenated with info . The signing process, enables the receiving peer to verify the integrity and origin authenticity of the ( )           − infosignature s infoserialSigInfo i P K1 set and, consequently, of info . It also guarantees the non-repudiability, by i P , of that information. The ciphering process ensures the confidentiality of the exchanged information, as only k P may decipher it. The presence of the EncInfo , in plain text, concatenated with the ciphering result is necessary in order to enable the receiving peer, at the PLL, to know how to proceed to unpack it (what keys to employ). The fact that EncInfo is in plain text poses no security problems, as it does not carry any secret key. In the next step of the interaction (step 2), k P responds to i P , by sending it the message ( ) infoinforspMsg s i P k P i P k P ,ProdFpreConnMsg= , expressing its response, where        − = 1 , ,,,Ø,,ftrfProdFpreConnMsg k P i P s i P k P KSigInfoKEncInfoserialinfo . The structure of this message, and the way it is produced, is similar to the structure and production mode of k P i P reqMsg . The only differences are the following: • s info must, now, always carry, besides other information, the specification of the type of response; • the employed serial identifier (           = i P k Pj k P i Pj serialserialserial ), is now composed by two parts. The first one is the serial that was received in the request message. The second part is the actual serial of the k P -> i P direction. The latter construct, carries V A Reliable P2P Architecture for the New Paradigm 118 the same data as the previous with the exception that the counter value may be different and that the timestamp’s value is necessarily different; • the ( )           − infosignature s infoserialSigInfo k P K1 information set now contains the signature of info by k P (instead of i P ), and is now signed with k P ’s private key and ciphered with i P ’s public key. The structure of the response serial enables: • the unique identification of the message and thus, its differentiation from all others; • the logical association, at the receiving end, of the response message to the original request message to which its responds; • the proving, by k P , that it, in fact possesses k P ’s private key ( 1− k P K ), and thus is k P - This is so because the ( )           − infosignature s infoserialSigInfo k P K1 information set is signed with 1− k P K . That set contains (inside serial ) the serial of the request message. This serial was never produced before, and thus, its inclusion, in the response serial, and signing, proves that the response message cannot be a repetition of any kind and that k P has therefore just now produced it, employing 1− k P K . Obviously, the interaction between k P and i P , may continue with further requests from i P and responses from k P . The employed messages would have the same structure, and production mode as explained above, but, from this point (step 2) on, the serial in the request messages would also include the new part of the serial of the previous response messages in the interaction. Thus, for instance, in a hypothetical next request 1 + j , ( from i P to k P ) , which is following up on the previous response j (from k P to i P ), we would have that           = + k P i Pj i P k Pj serialserialserial 1 . This chaining of serials enables that which was described in the previous bullets. The procedure above described, (pre-connection secure messaging), is only employed when a peer is in the process of registering (see section 5.4.3 of the present chapter), with the system (communication with CCP ), or in the (post-registering) process of establishing a communication session (see section 5.4.5 of the present chapter) with another peer. 5.4.2.2 Post-Connection Secure Messaging The procedure employed to assure that two peers may communicate securely, after they have established a communication session between themselves, is always the same regardless of the types of conversing peers and of the role (“client” or “server”), that they play in the interaction. V A Reliable P2P Architecture for the New Paradigm 119 Figure 32 exemplifies said procedure (taking into consideration the notation defined in section 5.1 of the present chapter), with generic peer i P playing the client role and generic peer k P playing the server role. Figure 32 – Post-Connection Secure Messaging Procedure In step 1, i P sends a ( ) infoinforeqMsg s k P i P k P i P ,gProdFpostConnMs= message to k P expressing its request, where           − − = 1 ,,,,,,ftrfgProdFpostConnMs , k P k P i P g ss i P k P KSigInfo s KEncInfoserialinfoinfo . That message contains a transformed version of the information to be sent (achieved by function       .....ftrf ). That function takes as parameters the following set: • s info – is the sensitive part of the information being transmitted. It must always carry, besides other information, the specification the type of the request; • info – is the non-sensitive part of the information being transmitted; • serial – is a serial identifier that enables the unique differentiation between all exchanged messages so that no two messages are ever alike. If a repetition is ever detected, it is either an error or a replay attack and the message must be discarded. The serial carries the following data: o the identifier of the overall operation which encompasses the cooperation to which the message pertains; o the identifier of the inter-peer cooperation to which the message pertains. Given the way its structure is defined, (see section 5.2.2), this identifier carries the identification of all the previous cooperations in the cooperation chain that lead to the current cooperation. It is the last link in the chain that actually defines the present cooperation. It includes in its structure the identification of the sender and receiver peers; V A Reliable P2P Architecture for the New Paradigm 126 unique serial generated by CCP , that i P will have to sign to fully prove its identity. These contents of the challenge message are then signed by CCP , (which proves that CCP in fact possesses 1− CCP K , and thus is CCP ), encrypted with i P K so that only i P may decipher it (assuring confidentiality), and concatenated with EncInfo . In a third step, i P proceeds (in accordance with the procedure defined in section 5.4.2.1) to sign the CCP generated serial, plus a third new serial (plus pconnchlgrs ), and sends the result back to CCP (step 3). CCP then validates the signature of the serial it sent to i P in step 2. If all is correct CCP produces the session identifier ( CCP i P g s − ), and the secret session encoding key ( CCP i P g s s K − ). Employing those two objects, plus i PP rcertif , CCP rcertif , the adequate SigInfo object, and a validity term, CCP builds the connection certificate CCP i P ccertif (with a unique id of its own), and sends it to i P (step 4). CCP i P ccertif is signed by CCP , enabling the verification of its validity, throughout the system, in a distributed manner. From this point on, the communication session between the two peers is considered open. Communication, between the two peers will proceed in accordance with what is defined in section 5.4.2.2. In the case where the peer playing the server role is the CCP , (as in the provided example), this procedure is equivalent to the login of the client peer with the system, and the connection certificate may also be seen as a login certificate. The above presented description, exemplifies the establishing of a communication session, between a generic peer and the CCP . The actual specific types of communication session establishments that will occur in the system (in terms of the involved peers), and their relevant details are the following: • the establishment, by peripheral peers, of communication sessions with: o the CCP :  for a peripheral peer to be eligible to participate in the system it must have a opened communication session with CCP (the equivalent of login into the system) . Thus, whenever a registered peripheral peer, i PP , comes on-line, it must first establish a new communication session with CCP , which should remain open until i PP goes offline;  in step 4 the sent communication certificate will also include the identity of the OCP which will be responsible for handling the “readonly” requests of the peripheral peer, until the end of the session. Thus           =            − − − CCP i PP g s s K i P Kx CCP i PP g CCP K CCP i PP encocpsvtermrcertifsSigInfoidsignedccertif 1 o outer core peers:  in the step corresponding to step 1, (from Figure 34), the sent V A Reliable P2P Architecture for the New Paradigm 127 certificate will be the connection certificate ( CCP i PP ccertif ) that i PP , obtained when it connected/logged in with the CCP ; o other peripheral peers;  in the step corresponding to step 1, (from Figure 34), the sent certificate will be the connection certificate ( CCP i PP ccertif ) that i PP , obtained when it connected/logged in with the CCP ; • the establishment, by outer core peers, of communication sessions with: o the CCP :  for an outer core peer to be eligible to participate in the system it must have a opened communication session with CCP (the equivalent of logging into the system). Peripheral peers will be intermittently connected to the system, and thus frequently establish new communication sessions with the peers that they need to communicate to. Thus, communication sessions established between peripheral peers and CCP will typically be of a relatively short duration. Oppositely, outer core peers are to be permanently available. The first time an outer core peer, i OCP , comes on-line, (once it has registered with CCP ), it will establish a communication session, with CCP , that will only end when i OCP ceases to operate, or if the session key is compromised and needs to be replaced; o other outer core peers;  in the step corresponding to step 1, (from Figure 34), the sent certificate will be the connection certificate ( CCP i PP ccertif ) that i OCP , obtained when it registered with the CCP . 5.4.6 Peer Login Once a peer has registered with the system, every time it comes online, before it can actually begin interacting with it, said peer must first login. That process basically consists of the establishment of a communication session with the CCP , in the manner explained in section 5.4.5 of the present chapter. In the course of the process the peer, that is logging in, is given a connection certificate. Said certificate may, in this case be seen, also, as a login certificate. If the connecting peer is peripheral, the responsibility for servicing its login request must be attributed to some specific OCP . This is done through the procedure outlined in section 5.4.8.7 of the present chapter. The login of a peer means that a new entity is now available to cooperate with the system. This is a relevant piece of information that needs to be stored in the system’s data structure, so that it may be coherently handled, accessed and updated. The CCP updates its own copy of that structure, while processing the login request (if it is accepted). It later proceeds to the updating of the data structures, at all OCPs , in the manner described in section 5.4.8.6 of the present chapter. V A Reliable P2P Architecture for the New Paradigm 128 5.4.7 PLL Info Discovery The regular operation of any peer, at the PLL, implies that peripheral peers will frequently need to discover information on other peers (such as identifier, IP address, public key, whether it is quarantined or expelled, etc.), so that they can communicate in a reliable manner. The process, undertaken by peripheral peers, to obtain any PLL information is performed in a client/server or hybrid manner. This PLL process happens as follows (taking into consideration the notation defined in section 5.1 of the present chapter). Assuming that a communication session has already been established between the inquiring peripheral peer (e.g. i PP ), and its servicing OCP , the earlier begins by sending (in the secure manner defined in section 5.4.2.2 of the present chapter), to the latter, a request message ( ,reqpllinfo       info s info j OCP i PP ), where the sensitive part of the information, ( ) infoDef s info reqpllinfo= , contains a parameter, ( reqpllinfo ), which identifies the message as a request for some PLL info, and a second parameter ( infoDef ), indicating the specific information that it wants. j OCP may immediately send back a message, with the required data ( ,       info s inforsppllinfo i PP j OCP , ( ) data desired thersppllinfo = s info ), or it may send back a message redirecting i PP to some other peripheral peer j PP (or outer core peer), where       = s i PP pllInfo pllildoretrpermit s info rsppllinfo . That redirection message, contains, besides the message type identifier, an, OCP signed, PLL info retrieval permit ( i PP pllInfo retrpermit ), enabling it to retrieve the desired information, and the s pllildo object, which describes the location(s) from where i PP may retrieve said information. The retrieval permit may be described as             − = s pllildoi j OCP K i PP pllInfo idinfoDefvtermppSigInforetrpermit rPermpllInfoRetidsigned 1 . It contains the permit’s identifier, its type identifier, the permit’s adequate SigInfo (where       = − j OCP j OCP j OCPj KkkoAlgrthmInfocpSigInfo 1 ), the identifier of the peer to which the permit is granted, the permit’s validity term, the definition of the specific information which may be retrieved ( infoDef ) and the identifier of the s pllildo object. As stated, infoDef , is the part of the original request, and of the permit, that identifies the type of information that is desired or which may be retrieved, respectively. It may bear the following values: • if the desired information is the identification (location and authentication), information on some specific peer (e.g. k PP ), then ( ) k pppIDInfoinfoDef = . In this case, the information object that will eventually be obtained is V A Reliable P2P Architecture for the New Paradigm 129       = − vtermIPrcertifSigInfoidppInfo k k PP j OCP K s1 signed , where vterm is this object’s validity term date; • if the desired information is the quarantine or expulsion lists then ( ) quarListinfoDef = or ( ) expListinfoDef = respectively. In this case, the information object that will eventually be obtained, will respectively be ( ) tstampQListSigInfoquarList j OCP K s1 signed − = , or ( ) tstampXListSigInfoexpList j OCP K s1 signed − = , where tstamp indicates the moment of creation of those objects, so that the peers employing them may know how recent that information is. In both such cases       = − j OCP j OCP j OCPj KkkoAlgrthmInfocpSigInfo 1 . The PLL Information Location Describing Object may be defined as            = −n PP i PP j OCP K s rcertifrcertifvterminfoDefSigInfoidpllildo ......signed 1 . It carries SigInfo (which takes the same form as the one that was just described above), the definition of the information set to who’s location it pertains ( infoDef ), its validity term and a list of the registration certificates of the peers from where the information, defined in infoDef , may be retrieved. The signing, by j OCP , of the retrieval permit and of s pllildo , even if redundant (as the sensitive part of the PLL message is signed by the sending peer), is necessary to enable the latter independent reuse of those objects and their communication to other peers in an authenticable form. Both those objects carry inside the identification of their issuing peers, for much the same reason, so that any peer may authenticate said objects. If j OCP does redirect i PP , in the next step of the operation, the latter will then establish a communication session with one (or more), of the peers identified in s pllildo (by their registration certificates), and obtain from it, the desired information. To do so, in its request for the desired information, i PP will need to send (amongst other fields), both the retrieval permit and s pllildo , so that the contacted peer(s) may validate i PP ’s right to retrieve the information in scope. As can be seen, from the above description, for a peer to be able to communicate with some other peer, it will need some information about it, which it, generally, can only obtain through communication with other peers. If at any moment a peer knew nothing about any other peer it would be stuck in a situation where it would never be able to communicate with any other peer. This is avoided because every peer “knows”, from the start, the IP and public key (and its identifier) of the CCP .This way, even if a peer knows nothing else, it may always contact CCP and obtain all the information it needs. Furthermore, if, for some reason, the V A Reliable P2P Architecture for the New Paradigm 130 necessary j OCP , for obtaining the identification of a target peer, is not available, the request for that information is redirected to CCP or some other OCP . 5.4.8 Management 5.4.8.1 Introduction The proper operation of the PLL demands that some management procedures are undertaken periodically, or in response to some event, to assure the overall integrity and cooperativeness of the peer tissue. These operations are centrally performed by the CCP , (based on notifications received form the periphery or outer core), which does all the necessary decision making, and translate into the issuing of CCP instructions to OCPs or PPs . Said notifications may be generally described as ( ) ntnotifcontenotiftypeSigInfonotif i P K i P pll 1 signed − = , where SigInfo carries the necessary information to enable the validation of the notification, notiftype designates the type of notification, and ntnotifconte is the actual content of the notification. The mentioned instructions may be generally described as ( ) ntentinstructcopeinstructtySigInfoinstruct CCP K pll i P CCP 1 signed − = , where SigInfo carries the necessary information to enable the validation of the instruction, pe instructty designates the type of instruction, and ntent instructco is the actual content of the instruction. The main PLL management operations can basically be summed up as the redistribution of PP servicing workload of OCPs , the neutralization of infringing or faulty behaviour on the part of peers, and the updating of OCP data structures 5.4.8.2 OCP Workload Redistribution As peripheral peers log into the system, the CCP distributes the responsibility, to service such peers, in an even manner, through the OCPs . However, some PPs may represent higher servicing burdens than others. This means that the CCP must somehow obtain information on the work burden of OCPs , and proceed to redistribute their servicing assignments, if necessary. For this reason, every OCP periodically sends (in the secure manner defined in section 5.4.2.2), to CCP an activity notification which may be described as ( ) ( ) wrklistwrkldocptidSigInfonotifactiv i i OCP K pll tT i OCP activitysigned 1− = = (in a message where         = = pll tT i OCPs notifactivinfo notifload ). This notification contains the adequate SigInfo object, the definition of the type of notification, its unique identifier, the definition of the time instant which it purports to, the identification of the sending OCP , its total work burden (in terms of the percentage of CPU usage), and a list discriminating the division of that burden over the V A Reliable P2P Architecture for the New Paradigm 131 peripheral peers that It is servicing           =             n PPnPP wrkldppwrkldppwrklist ... 1 1 . CCP acknowledges the reception of the notification with a PLL messages where ( ) cknotifloada= s info . The notification object is independently (and redundantly) signed so as to enable their independent treatment and aggregation in an authenticable form. The CCP collects the mentioned notifications, from all OCPs and, periodically, evaluates the overall situation. If the global workload distribution is uneven, the CCP determines which PPs must be reassigned to which other OCPs and proceeds to instruct those reassignments in the manner described in section 5.4.8.7 of the present chapter. 5.4.8.3 Infringing or Faulty Peer Behaviour Neutralization The system is composed by a distributed mesh of independently controlled peers. Some are under the control of the system’s operating entity and others are controlled by regular users of varied levels of trustworthiness. There is thus a non-negligible possibility of failure and of infringing behaviour occurring amongst such peers, that the system must be prepared to deal with. This means that the CCP must somehow obtain information about undesirable behaviour on the part of peers. For this to occur it must be the PPs and OCPs to notify, to CCP , whenever some other peer behaves inappropriately towards them. Such reports must carry proof of the claimed misbehaviour. For the present time the system supports only the reporting of a misbehaviour where the misbehaving peer responds with signed but corrupted or forged information, such as, for instance, a corrupted version of a PLL info retrieval permit (see section 5.4.7). Thus whenever a peer i P receives a request or reply message, signed by another peer k P , whose contents are undecipherable or (if it is the case that they are to be signed, for instance, by the CCP or an OCP ) , incorrectly signed, it proceeds to send (in the secure manner defined in section 5.4.2.2), a misbehaviour notification (pertaining to k P ) to CCP , which may be described as: ( )       = − proofObjpptidSigInfoehavnotifmissb ki i P K pll CCP i P missbehavsigned 1 , where i p is the identifier of the sending peer and proofObj is the received signed message. The notification is sent in a PLL message where         = pll CCP i Ps ehavnotifmissbinfo notifbehav , which the CCP acknowledges with a response PLL message where ( ) acknotifbehav= s info . pll CCP i P ehavnotifmissb is independently (and redundantly to the securing process described in section 5.4.2.2), signed to enable a more independent, and still authenticable, manipulation of it. The CCP periodically analyses all pending reports and decides what to do regarding the “criticized” peers. It may do nothing, it may suspend or it may expel the peer. In the two latter V A Reliable P2P Architecture for the New Paradigm 132 cases the CCP proceeds in accordance with what is described in section 5.4.8.4 of the present chapter. On the other hand, the case of previously shunned peers is also periodically revisited. In such moments CCP may decide to let the peer remain shunned, or re-enable its participation in the system. In the latter case it proceeds in accordance with what is described in section 5.4.8.5. 5.4.8.4 Peer Shunning The system’s peers may, for whatever reason, engage in abnormal, uncooperative or sabotaging behaviour or be frequently employed (by users) for dishonest activities. In such cases, once the CCP detects such patterns (in the manner described in the previous section), it proceeds to shun the infringing, or malfunctioning, peer from the system either in a temporary or permanent base, and to place in a quarantine or expulsion list, respectively. This applies to both peripheral and outer core peers. 5.4.8.4.1 OCP Shunning To shun a specific OCP (e.g. x OCP ), the CCP proceeds (in the secure manner defined in section 5.4.2.2 of the present chapter) to: • instruct all OCPs to place x OCP in the peer quarantine or expulsion list if x OCP was suspended or permanently banned, respectively. Said instruction may be described as ( ) ( ) x CCP K i OCP CCP pll ocpQSigInfoninginstrpshun X pshunningsigned 1 U − = , where the mentioned i OCP is the instructed OCP . They are carried in PLL messages where         = i OCP CCP pll s ninginstrpshuninfo instrsh , which are acknowledged, by the destination peers, by sending back a PLL message where ( ) instrshack= s info . From that point on, no requests from x OCP will be attended, until further notice; • reattribute every peripheral peer under the care of x OCP to other OCPs and inform all relevant peripheral and outer core peers of servicing responsibility reattributions, (in the manner presented in section 5.4.8.7). From that point onward, the affected peripheral peers can no longer resort to the services of x OCP , until further notice. If it is possible to contact the shunned peer, it will be sent, to that peer as well, the i OCP CCP pll ninginstrpshun instruction as a manner of informing it that it has been shunned or expelled. 5.4.8.4.2 PP Shunning To shun a specific PP (e.g. x PP ), the CCP proceeds (in the secure manner defined in section 5.4.2.2 of the present chapter) to: • instruct all OCPs to place x PP in the peer quarantine or expulsion list if x PP was suspended or permanently banned, respectively. Said instruction may be defined as V A Reliable P2P Architecture for the New Paradigm 133 ( ) ( ) x CCP K pll i OCP CCP ppQSigInfoninginstrpshun Xor pshunningsigned 1− = , where the mentioned (in the equation), i OCP is the instructed OCP . They are carried in PLL messages where           = pll i OCP CCPs ninginstrpshuninfo instrsh , which are acknowledged, by the destination peers, by sending back a PLL message where ( ) instrshack= s info . From that point on, no requests from x PP will be attended until further notice (including by the OCP , which was up until that time responsible for attending its requests). If it is possible, the shunned peer itself ( x PP ) will be sent the x PP CCP pll ninginstrpshun instruction as a manner of informing it that it has been shunned or expelled. 5.4.8.5 Peer Readmission To readmit a previously shunned peer (e.g. x P ), the CCP does the following: • in the secure manner defined in section 5.4.2.2 of the present chapter, the CCP instruct all OCPs to remove the readmitted peer, from the peer quarantine. The structure and contents of the readmission instruction may be described as ( ) ( ) x CCP K i OCP CCP pll pQSigInfominstrpread Xor minstrpreadsigned 1− = , where the mentioned i OCP (in the equation), is the instructed OCP . They are carried in PLL messages where         = i OCP CCP pll s minstrpreadinfo instrreadm , which are acknowledged, by the destination peers, by sending back a PLL message where ( ) instrshack= s info . From that point on, requests from x P will again be attended; • If it is readmitting an OCP (e.g. x OCP ): o CCP then performs a peripheral peer servicing workload reassignment, so as to attribute to the readmitted peer a set of peripheral peers for it to service; • If it is readmitting a PP (e.g. x PP ): o CCP then assigns some OCP to service x PP ’s requests and informs the earlier of that reassignment; • If the readmitted peer ( x P ) remained online: o it is sent the x P CCP pll minstrpread instruction as a manner of informing it that it has been readmitted. • else: o when the peer attempts to re-establish a communication session with the CCP (i.e. loggin), it will be allowed to do so. 5.4.8.6 OCP Updating Whenever some change or addition needs to be made to the system’s data structure (at the PLL level), it is the CCP that coordinates that activity. The CCP performs such changes on V A Reliable P2P Architecture for the New Paradigm 134 the version of the data structure which it locally stores, but it then becomes necessary to update all the other versions of the data structure, stored at the OCPs . Such an updating/initialization of an OCP ’s data structure is also necessary when an OCP first registers and connects to the system. To perform such an updating/initialization of the OCP data structures, the CCP issues instructions, to the relevant set of OCPs , (from one to all of them), commanding them to perform the necessary update. Said instructions may be defied as, ( ) updInfoidSigInfoedbinstrupdat CCP K i OCP CCP pll edbinstrupdatsigned 1− = (for an exemplifying i OCP target), where, updInfo is a set of one or more SQL commands and respective data parameters. They are carried in PLL messages where         = i OCP CCP pll s edbinstrupdatinfo instrupd and info is an archive of whatever data objects need to be transferred. OPCs proceed to do as they are instructed and, after that task is performed, they send back a success PLL message, to the CCP , where ( ) kinstrupdac = s info . If the updating of any of the OPCs fails, the CCP retries the operation, until it succeeds, up to a specific maximum amount of attempts. If it proves impossible to update a specific OCP , the CCP proceeds to disconnect it from the system in the manner explained in section 5.4.8.4.1. 5.4.8.7 PP Servicing Assignment The assignment of peripheral peer servicing responsibilities is done by the CCP . It consists of assigning the responsibility to service the requests of a specific PP to a specific OCP . The CCP makes an assignment decision and then it informs the relevant affected peers, by sending, to which ever of them is necessary, the, appropriate instruction. That may be defined as       = −CCP i P CCP K i OCP CCP pll ccertifSigInfoiceassigninstrpserv signpserviceassigned 1 . It contains a fresh, CCP generated, login certificate (see section 5.4.6), which contains the identity of the serviced PP and of its handler OCP . That instruction is carried in a PLL message where         = i OCP CCP pll s iceassigninstrpservinfo instrpserv . The targeted peers respond with a PLL message where ( ) ackinstrpserv = s info . 5.4.9 UEL Info Relaying The main purpose of the PLL, besides the servicing of inter-PLL requests, is to attend to the requests of the UEL. Doing so basically consists of relaying internal outbound UEL messages to external UEL instances (UEL instances of remote peers), and external inbound UEL messages to the local UEL. The outbound UEL messages are wrapped in PLL messages (see section 7.3.1 of the present chapter). This implies the signing (with the local peer’s private key) and ciphering (with the secret session key), of the earlier (together with some other content), their V A Reliable P2P Architecture for the New Paradigm 135 wrapping in the latter message and the latter message’s delivery to the IPCL together with the IP address of the destination peer (the communication port could simply be a constant and universally established one). The inbound PLL messages are deciphered and their signature is validated. If all is ok, the UEL message is extracted and (if necessary), reconstituted, and then relayed to the local UEL, together with the validated identifier of the message’s sending peer (at the PLL). All of the above-mentioned PLL messages have a structure where ( ) s UELInfoinfo s uelmrelay= . 5.5 UEL Operation 5.5.1 Introduction The UEL handles, in a client/server manner all the operations related to: • the registration, login, logoff and removal of users; • the maintenance of user accounts and performing of currency transactions; • the injection, removal, updating and versioning of MOs; • the injection and removal of MO Ransom Announcements (see section 7.4.8); • the collection of information on user actions. In all such cases, the CCP ’s UEL plays the server role and the involved PP ’s UEL, plays the client role. The clients will typically send their requests to the server side, which judges their legitimacy and, if adequate, enforces them or provides some required information, if that is the case. A mixed P2P and client/server operation mode is employed, by UEL, in: • the semantics based searching for MOs (and MO Ransom Announcements); • the retrieval/distribution of MOs (and MO Ransom Announcements); • the searching and retrieval/distribution of information objects pertaining to users or other aspects of the system. The CCP’s UEL instance holds a permanently updated copy of the system’s UEL global data structure. Furthermore, as explained in section 3.4.3, that information is also replicated over each of the outer core peers. Whenever some fragment of that information is needed, peripheral peers will request it from their handling OCP , which may respond by handing it over directly or by informing the “client”, about the appropriate “server” )(sPP , for the acquisition of the desired information. 5.5.2 Secure Messaging 5.5.2.1 Introduction The division between sensitive and non-sensitive information, which exists in PLL messages, translates into a similar division in UEL messages. These, therefore, have a sensitive ( s UELinfo ), and a non-sensitive part ( UELinfo ). The earlier part will be carried in the sensitive part of PLL messages, and the latter part will be carried in the non-sensitive part of PLL messages. The PLL’s regular operation guaranties the confidentiality and integrity of communications in the P2PTube architecture. Thus, in terms of its internal operations, the UEL does not need to perform any further information obfuscation procedures. Annex A 238 </Item> <Item id="p2ptube:io:inqio001:queryBlockN:responseAlternatives"> <Item id="p2ptube:io:inqio001:queryBlockN:responseAlterns:respAltern1"> <Component> <Resource mimeType="text/plain"> ..... resp altern 1 .... </Resource> </Component> </Item> ..... <Item id="p2ptube:io:inqio001:queryBlockN:responseAlterns:respAlternN"> <Component> <Resource mimeType="text/plain"> ..... resp altern N .... </Resource> </Component> </Item> </Item> </Item> </Item> </Container> </DIDL> </Resource> </Component> </Item> </Container> </DIDL> Figure 83 – Inquiry IO Example Figure 84 presents an example of an Inquiry Response IO. <DIDL xmlns="urn:mpeg:mpeg21:2002:02-DIDL-NS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:r="urn:mpeg:mpeg21:2003:01-REL-R-NS" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:erl="urn:mpeg:mpeg21:2005:01-ERL-NS" xmlns:dii="urn:mpeg:mpeg21:2002:01-DII-NS"> <Container id="inqrio_ccp"> <Descriptor id="inqrio_ccp_signature"> <Statement mimeType="text/xml"> <dsig:Signature>..........</dsig:Signature> </Statement> </Descriptor> <Item id="inqrio_ccp_content"> <Descriptor id="siginfodescrCCP"> <Statement mimeType="text/xml"> <DIDL id="siginfo"> <Container> <Item id="pid"> <Component> <Resource mimeType="text/plain"> identification of the signing peer </Resource> </Component> </Item> <Item id="algdef"> <Component> <Resource mimeType="text/plain"> Annex A 239 definition of the signing algorithm </Resource> </Component> </Item> <Item id="pubk"> <Descriptor id="pubkid"> <Statement mimeType="text/plain"> identifier of the public key </Statement> </Descriptor> <Component> <Resource mimeType="text/plain"> public key </Resource> </Component> </Item> <Item id="privk"> <Descriptor id="privk"> <Statement mimeType="text/plain"> identifier of the private key </Statement> </Descriptor> </Item> </Container> </DIDL> </Statement> </Descriptor> <Component> <Resource mimeType="text/xml"> <DIDL xmlns="urn:mpeg:mpeg21:2002:02-DIDL-NS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:r="urn:mpeg:mpeg21:2003:01-REL-R-NS" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:erl="urn:mpeg:mpeg21:2005:01-ERL-NS" xmlns:dii="urn:mpeg:mpeg21:2002:01-DII-NS"> <Container id="inqrio"> <Descriptor id="inqrio_signature"> <Statement mimeType="text/xml"> <dsig:Signature>..........</dsig:Signature> </Statement> </Descriptor> <Item id="inqrio_content"> <Descriptor id="id"> <Statement mimeType="text/xml"> <dii:Identifier> p2ptube:io:inqrio001 </dii:Identifier> </Statement> </Descriptor> <Descriptor id="siginfodescrU"> <Statement mimeType="text/xml"> <DIDL id="siginfo"> <Container> <Item id="pid"> <Component> <Resource mimeType="text/plain"> identification of the signing user </Resource> </Component> Annex A 240 </Item> <Item id="algdef"> <Component> <Resource mimeType="text/plain"> definition of the signing algorithm </Resource> </Component> </Item> <Item id="pubk"> <Descriptor id="pubkid"> <Statement mimeType="text/plain"> identifier of the public key </Statement> </Descriptor> <Component> <Resource mimeType="text/plain"> public key </Resource> </Component> </Item> <Item id="privk"> <Descriptor id="privk"> <Statement mimeType="text/plain"> identifier of the private key </Statement> </Descriptor> </Item> </Container> </DIDL> </Statement> </Descriptor> <Item id="p2ptube:io:inqrio001:resp1"> <Descriptor id="p2ptube:io:inqrio001:resp1:answeredQueryID"> <Statement mimeType="text/xml"> <dii:Identifier> p2ptube:io:inqio001:queryBlock1:query </dii:Identifier> </Statement> </Descriptor> <Item id="p2ptube:io:inqrio001:resp1:correctRespAlternID"> <Component> <Resource mimeType="text/plain"> p2ptube:io:inqio001:queryBlock1:responseAlterns:respAltern? </Resource> </Component> </Item> </Item> ....... <Item id="p2ptube:io:inqrio001:respN"> <Descriptor id="p2ptube:io:inqrio001:respN:answeredQueryID"> <Statement mimeType="text/xml"> <dii:Identifier> p2ptube:io:inqio001:queryBlockN:query </dii:Identifier> </Statement> </Descriptor> <Item id="p2ptube:io:inqrio001:respN:correctRespAlternID"> <Component> <Resource mimeType="text/plain"> p2ptube:io:inqio001:queryBlockN:responseAlterns:respAltern? Annex A 241 </Resource> </Component> </Item> </Item> </Item> </Container> </DIDL> </Resource> </Component> </Item> </Container> </DIDL> Figure 84 – Inquiry Response IO Example 243 Annex B – P2P Technologies B.1 Structured P2P Lookup Protocols B.1.1 Content Addressable Network CAN [188] is a distributed infrastructure that provides hash table-like functionality, on an Internet-like scale, for the mapping of file names to their location in the network. It does so by supporting the insertion, lookup, and deletion of (key, value) pairs in said table. The key space (and corresponding values), is divided into zones and individual CAN nodes store a part (a zone), of the hash table data (corresponding to a key sub-space), and also some information about the adjacent zones. Figure 85 – CAN Coordinate Space divided between 5 zones (left side image) and 6 zones (right side image) (adapted from [2]) CAN defines a virtual d-dimensional Cartesian coordinate space. Each hash table zone corresponds to a section of the coordinate space. Every key K in the key space is deterministically mapped onto a point P in the coordinate space. A (K, V) pair is then stored at the node which is responsible for handling the zone that point P belongs to (for instance in Figure 85, a (K,V) pair whose key is mapped to coordinate (0.1,0.2) would be stored in zone B, that is, in the peer handling that zone). CAN nodes may retrieve a (K, V) pair simply by applying the same deterministic function to K in order to obtain P and then retrieve the corresponding value V from the node handling the zone containing P. If P is not located in the requesting node’s zone, a request for the V stored at P must be routed through the system, from node to node until it reaches the node covering P. For the handling of such routing procedures, CAN nodes possess a routing table containing the IP addresses for the nodes handling the adjacent zones to their own. In the CAN system, the routing of requests is performed by following a straight line path through the Cartesian space from source to destination coordinates (for instance in Figure 85, a request from node A for a key mapped to point P would be routed though nodes A, B, E, through the straight line represented by the arrow). Within this structure, requests to Annex B 244 insert, lookup or delete a particular (K, V) pair are routed via adjacent zones to the node handling the zone containing the P to which the involved key maps. When a new node joins the CAN system, it is attributed a portion of the coordinate space. That zone is defined by dividing in half the space allocated to an existing node (right side image of Figure 85). This procedure begins with the selection of an already existing node by the newcomer node (through a bootstrapped mechanism). Then, employing the CAN routing mechanism, the adhering node randomly selects a point P in the coordinate space and issues a JOIN request to the node handling that point. The zone handled by the latter node is then split, and half of it is attributed to the new node. The new node then proceeds to construct its routing table with the IP addresses of its neighbours. The nodes adjacent to the split zone are also informed of the division so that they update their routing tables to include the new node. Under ideal conditions, when a node leaves the CAN system, its handled zone and the associated hash table entries are explicitly handed over to one of its neighbouring nodes. Still, under normal conditions, what happens is that nodes send periodic update messages to all of their neighbouring nodes declaring their zone coordinates, their list of neighbours and the coordinates of their neighbour’s zones. When prolonged absences of such update messages occur, the neighbouring nodes assume that a failure has happened, and undertake a procedure for the taking over of the abandoned zone. In the case where several neighbouring nodes fail simultaneously, an expanding ring search mechanism is commenced by one of the operating neighbouring nodes, in order to identify other functioning nodes outside the abandoned region. The overall design of the CAN system may nonetheless be improved. The main envisioned improvements are: • Use of multi-dimensional coordinate space – If the number of dimensions of the CAN coordinate space is increased, the routing path length and latency is diminished; • Multiple coordinate spaces – Each node in the system is assigned a different zone in each coordinate space. Each coordinate space is a “reality”. Therefore, for a CAN system with r realities, a single node has r coordinate zones attributed to it, one on every reality and has r independent sets of neighbours. If the contents of the hash table are replicated on every reality, data availability and routing fault tolerance are greatly improved since that in the case of a routing or node failure on one reality, messages can continue to be routed and contents reached using the remaining realities; • Employment of more advanced CAN routing metrics – The request routing metric for the CAN system may be improved by taking into account the underlying IP topology by having peers measure the network-level round-trip-time to each of its neighbours. A message is then forwarded, for a specific destination, to the neighbour with the maximum ratio of progress to round-trip-time. This procedure would diminish path latency; • Overloading coordinate zones – This consists of permitting multiple nodes to share the same zone. In such a case a node maintains a list of its peers as well as a neighbour list. This offers such advantages as: reduced path length and latency, because increasing the number of nodes per zone results in the reduction of the number of nodes in the system; reduced per-hop latency; improved fault tolerance because a zone is only abandoned when all the nodes in it, leave simultaneously; Annex B 245 • Multiple hash functions – If k different hash functions are used to map a single key onto k points in the coordinate space and thus replicate the corresponding (key, value) pair at k distinct nodes in the system, the content’s availability will be increased. Furthermore queries for a specific hash table entry may also be simultaneously sent to all k nodes thus reducing the average query latency; • Topologically sensitive construction of the CAN overlay network – This consists of taking into account the underlying IP network topology for the allocation of nodes to zones; • Uniform Coordinate Space Partitioning – According to CAN, when a new node joins, some randomly selected existing node will split its zone in two, and one of the portions will be attributed to the new node. This may be improved if instead the existing occupant node first compares the volume of its zone with those of its immediate neighbours, and then the zone with the largest volume is split to accommodate the new node. This more uniform partitioning of the coordinate space permits a better load balancing; • Caching and Replication techniques for “hot spot” management – Popular (key, value) pairs in a CAN system may be made more widely available by employing some caching and replication techniques commonly applied to the Web: o Caching – Maintenance of a cache of the data keys most recently accessed by a CAN node. Before forwarding a request for a data key towards its destination, a node first checks its cache. This way the number of caches from which a data key may be retrieved from increases in direct proportion to its popularity and thus popular content becomes more widely available; o Replication – A CAN node overloaded with requests for a particular data key replicates it at each of its neighbouring nodes. B.1.2 Chord Chord [189] is a distributed lookup protocol for the efficient location of data objects in P2P structures. This protocol employs deterministically generated keys as file and node identifiers, and it performs the mapping of file keys into node keys in order to determine the location for the storage of the (key, file) pair, which is the mapped node. A node identifier is derived by hashing the node’s IP address. A key identifier is calculated by hashing the data key. The node identifying keys are ordered in a modulo m 2 "identifier circle". File key k is attributed to the first node whose identifier is equal to or follows k in the identifier space. This is termed the successor node of key k. Figure 86, for instance, presents an identifier circle with m=3. The successor of the identifier 6 is peer 0, so key 6 will be located at the node with an id value of 0. Within the Chord scheme, the only routing information that nodes need to possess is the location of its successor node on the circle. Queries are forwarded around the circle via these successor pointers up to the point where a node which possesses the key is encountered. This is the node the query maps to. Annex B 246 Upon adhesion of a new node n to the network, certain keys previously assigned to n’s successor will be assigned to n. Upon n’s removal from the network, all of its keys attributed are reassigned to its successor. Figure 86 – Chord identifier circle (m=3) (adapted from [2]) Chord nodes employ a stabilization protocol that periodically updates the successor pointers and the finger table. The correct operation of the Chord depends on the actualization of the routing data. To avoid the situation where a node fails and other peers are left without any way of locating their new successor, nodes maintain a successor list, which contains a number of the peer’s first successors. When a node’s successor does not respond, it simply contacts the next peer on its successor list. The performance of a Chord network degrades slowly as routing information loses validity, (due to node adhesion and abandonment), and availability remains high only as long as nodes fail independently. Given the fact that Chord’s topology does not take into account the underlying physical IP network topology, a small connectivity failure in the IP network may cause multiple, scattered link failures in the Chord overlay [2]. The previously described searching mechanism may in a worst case scenario require the traversal of all nodes in the overly. To increase this mechanism’s efficiency, Chord nodes are also to maintain additional routing information, in the form of a "finger table". Each table entry i points to the successor of node n+2i. For a node n to perform a lookup for key k, it consults the table to determine the highest node n¢ whose ID is between n and k. If node n¢ exists, the procedure is repeated starting from node n¢. If no such node exists, the successor of n is returned [2]. B.1.3 Tapestry Tapestry is a peer-to-peer overlay routing infrastructure which permits location-independent routing of messages directly to nearby replicas of an object or service resorting only to localized resources, It implements a self-repairing, soft-state-based routing layer that allows the bypassing of failed routes and nodes and the rapid adaptation of communication topologies to circumstances. Tapestry’s architecture employs a variation of the Plaxton [190] distributed search technique, combined with extra mechanisms to ensure availability, scalability, and adaptation in the case of failures and attacks. Annex B 247 The Plaxton mesh is a distributed data structure that allows peers to locate objects and reach them with messages through an arbitrarily-sized overlay network employing small and constant sized routing maps [2]. In a Plaxton mesh the nodes may perform three different roles: • Servers – which store data objects; • Routers – which forward messages between nodes ; • Clients – which originate requests for data objects and consume them. Figure 87 – Neighbour Map maintained by a Tapestry Node with ID 67493 (adapted from [2]) Each node maintains a neighbour map (as presented in Figure 87) composed by multiple levels. Each level l contains pointers to nodes whose ID must be matched with l digits, this way, each table entry is a pointer to the closest network node with an ID which matches the number in the neighbour map up to a digit position (the th l position). For instance, the 4 th table entry for the 2 nd level identifies the closest node to node 67493 in network distance whose ID ends in 43 [2]. Figure 88 – Tapestry/Plaxton Mesh Routing Example using 5 digit long IDs (adapted from [2]) Within the Tapestry overlay, messages are routed to the destination peer, in a “digit by digit” manner, from the nodes on the right to the nodes on the left of the neighbour table (as presented in Figure 87). Annex C 254 Yes No 4.2 Have you ever performed any monetary donation to some on-line initiative? 17 83 1 to 5 € 5 to 10 € 10 to 20 € 20 to 50 € more than 50 € 4.4 Considering that you would not have to spend any other resources to acquire the media goods of your preference, other than the amounts that you donated, how much would you be willing to donate (in average), on a monthly basis, to the set of artists and content producers of your preference? 56 33 11 0 0 1 to 5 € 5 to 10 € 10 to 20 € 20 to 50 € more than 50 € 4.5 And how much would you be willing to donate to each individual artist, in the same conditions ant time interval? 87 13 0 0 0 A model where publicity is juxtaposed with the media contet and must be consumed, for instance, before you can listen to/watch the desired content (for instance, in YouTube, before you can watch some of the videos you must first watch an advertisement). A model where the advertisement messages are separated from the media content and where you have to be the one to request the viewing of such messages, and thus, where you may “consume” them at the moment of your preference. 4.7 The two ways, of supporting content producers’ activity, presented below, are based on advertisement. Considering that you would have to “consume” the same amount of advertising messages in both of them, which one would you prefer? 43 57 Annex C 255 1 to 5 5 to 10 10 to 20 20 to 30 more than 30 4.9 In the context of question 4.8, how many minutes of your attention would you be willing to donate, on a daily basis, through the viewing of advertisement messages? 51 38 10 0 1 257 Annex D – Data Model Info D.1 Registered Information D.1.1 Introduction The registry of all system events will comprise the following basic set of data fields: • The event’s ID – the system-wide unique identifier of the event; • The event’s beginning time – the time at which the event begun its existence, i.e. its participation in the system; • The event’s end time – the time at which the event ceased its existence, i.e. its participation in the system; • The EntCompEv’s validity state – a Boolean field indicating if the event is still existent; The following sections describe all the registered system events indicating the connections that bind all such registries into a coherent and meaningful tissue. D.1.2 Registered Global Information D.1.2.1 Registered Global PLL Information D.1.2.1.1 Registered Global PLL Relational and Procedural Complex Events Proc Comp Ev Event Name Peer Registration Event Event Nr #1 Explanation This is an event that represents a peer’s registration with the system. Event’s Relationships as Subject Contextual Connecting RelEv Name Connected Object Event Cardinality Event - initiationOf - Event Peer - participationIn - System 1 Event-casusationOf-Event PregCertif -pertinenceTo- Peer-participationIn-System 1 Event - initiationOf - Event Peer - maintenanceOf - PeerIP 1 Event - initiationOf - Event Peer - maintenanceOf - PeerKeyPair 1 Event - initiationOf - Event User - ownageOf - Peer 1 Proc Comp Ev Event Name Peer Registration Update Event Event Nr #2 Explanation This is an event that represents a peer’s updating of its registration with the system. Event’s Relationships as Subject Structural Connecting RelEv Name Connected Object Event Cardinality Event - i nclusionOf - Event PLoginCertif - pertinenceTo - Peer 0 – 1 Contextual Connecting RelEv Name Connected Object Event Cardinality Event-casusationOf-Event PregCertif -pertinenceTo- Peer-participationIn-System 1 Event - terminationOf - Event Peer - maintenance Of - PeerKeyPair 1 Event - initiationOf - Event Peer - maintenanceOf - PeerKeyPair 1 Annex D 258 Proc Comp Ev Event Name Peer Deregistration Event Event Nr #3 Explanation This is an event that represents a peer’s registration with the system. Event’s Relationships as Subject Contextual Connecting RelEv Name Connected Object Event Cardinality Event - terminationOf - Event Peer - participationIn - System 1 Event - terminationOf - Event Peer - maintenanceOf - PeerIP 1 Event - terminationOf - Event Peer - maintenanceOf - PeerKeyPair 1 Event - terminationOf - Event User - ownageOf - Peer 1 Proc Comp Ev Event Name Peers Evaluation Event Event Nr #4 Explanation This is a periodical, internal, system event which consists of an evaluation of all of the system peer’s conduit. Event’s Relationships as Subject Structural Connecting RelEv Name Connected Object Event Cardinality Event - inclusionOf - Event Peer Evaluation Event 1 – ∞ Proc Comp Ev Event Name Peer Evaluation Event Event Nr #5 Explanation This is an internal system even t. It consists of the evaluation of a specific peers’s conduit, taking into consideration other peers’ misbehaviour reports regarding that peer. It may lead to the expulsion, quarantining or dequarantining of the evaluated peer. Event’s Relationships as Subject Structural Connecting RelEv Name Connected Object Event Cardinality Event - inclusionOf - Event System - evaluationOf - Peer 1 Event-inclusionOf-Event System - analysisOf - PeerMissbehavReport 0 – ∞ Event-inclusionOf-Event (System - analysisOf - PeerMissbehavReport)- pertainmentTo- (System-evaluationOf-Peer) 0 – ∞ Contextual Connecting RelEv Name Connected Object Event Cardinality Event - causationOf - Event System - evictionOf - Peer 0 – 1 Event - initiationOf - Event System - quarantiningOf - Peer 0 – 1 Event - terminationOf - Event System - quarantiningOf - Peer 0 – 1 Rel Ev Event Name System-evictionOf-Peer Event Nr #6 Explanation This is a relational event that represents a peer’s eviction from the system. Subject Event System Object Event Peer Event’s Relationships as Subject Contextual Connecting RelEv Name Connected Object Event Cardinality Event - causationOf - Event User Disconnection Event 0 - ∞ Event - causationOf - Event Peer Disconnection Event 0 – 1 Event - causationOf - Event MO Deregistration event 0 - ∞ Event - causationOf - Event Peer Deregistration event 0 - 1 Annex D 259 Rel Ev Event Name Peer-loginTo-System Event Nr #7 Explanation This is a rel ational event that represents a peers’s action to log into the system. Subject Event Peer Object Event System Event’s Relationships as Subject Contextual Connecting RelEv Name Connected Object Event Cardinality Event - causationOf - Event Peer Conn ection Event 0 – 1 Rel Ev Event Name Peer-logoffFrom-System Event Nr #8 Explanation This is a relational event that represents a peer’s action to log out of the system. Subject Event Peer Object Event System Event’s Relationships as Subject Contextual Connecting RelEv Name Connected Object Event Cardinality Event - causationOf - Event Peer Disconnection Event 0 – 1 Proc Comp Ev Event Name Peer Connection Event Event Nr #9 Explanation This is an event which represents system procedures to p erform a peers’s connection (logging in) to the system. Event’s Relationships as Subject Structural Connecting RelEv Name Connected Object Event Cardinality Event - inclusionOf - Event PLoginCertif - pertinenceTo - Peer 0 – 1 Contextual Connecting RelEv Name Connected Object Event Cardinality Event - initiationOf - Event Peer Participation Session Event 0 – 1 Event - initiationOf - Event PLL Servicing Session Event 1 Event - initiationOf - Event UEL Servicing Session Event 1 Proc Comp Ev Event Name Peer Disconnection Event Event Nr #10 Explanation This is an event which represents system procedures to perform a peer’s disconnection (logoff) to the system. Event’s Relationships as Subject Contextual Connecting RelEv Name Connected Object Event Cardinality Event - terminationOf - Event Peer Participation Session Event 0 – 1 Event - terminationOf - Event PLL Servicing Session Event 1 Event - terminationOf - Event UEL Servicing Session Event 1 Annex D 260 Proc Comp Ev Event Name Peer Participation Session Event Event Nr #11 Explanation This event consists of a peer participation session in the system. Event’s Relationships as Subject Structural Connecting RelEv Name Connected Object Event Cardinality Event - inclusionOf - Event Peer Reporting Event 0 - ∞ Contextual Connecting RelEv Name Connected Object Event Cardinality Event - supportingOf - Event User Attending Session Event 0 – ∞ Proc Comp Ev Event Name Peer Reporting Event Event Nr #12 Explanation This event consists of a peer reporting t he misbehaviour of another peer to the system. Event’s Relationships as Subject Structural Connecting RelEv Name Connected Object Event Cardinality Event - inclusionOf - Event Peer - denouncingOf - Peer 1 Event-inclusionOf-Event PMissbehavReport -pertinenceTo- (Peer-denouncingOf-Peer) 1 Proc Comp Ev Event Name PLL Servicing Session Event Event Nr #13 Explanation This event consists of the maintenance of PLL servicing responsabilities (over the peripheral peer collective) by a specific OCP. Event’s Relationships as Subject Structural Connecting RelEv Name Connected Object Event Cardinality Event-inclusionOf-Event (Peer(OCP) -pllServicingOf- Peer(PP)) 1 Event-inclusionOf-Event Instruction OP IO -pertainmentTo- (Peer(OCP) -pllServicingOf- Peer(PP)) 1 D.1.2.1.2 Registered Global PLL Entitary Complex Events Ent Comp Ev Event Name Peer Event Nr #14 Explanation This event consists of a peer. Data Fields Peer Type The peer type (PP, OCP, or CCP) Peer Pub Key The peer’s public key Peer Priv Key The peer’s private key Is Quarantined An indication if the peer is quarantined Annex D 261 Ent Comp Ev Event Name Peer Key Pair Event Nr #15 Explanation This event consists of a peer’s public and private key pair. Pub Key The peer’s public key Pr iv Key The peer’s private key D.1.2.2 Registered Global UEL Information D.1.2.2.1 Registered Global UEL Relational and Procedural Complex Events D.1.2.2.1.1 User Originated Rel Ev Event Name User-joiningOf-System Event Nr #16 Explanation This is a relational event that represen ts a user’s action to join the system. Subject Event User Object Event System Event’s Relationships as Subject Contextual Connecting RelEv Name Connected Object Event Cardinality Event - causationOf - Event User Registration Event 0 - 1 Rel Ev Event Name User-abandoningOf-System Event Nr #17 Explanation This is a relational event that represents a user’s action to leave the system. Subject Event User Object Event System Event’s Relationships as Subject Contextual Connecting RelEv Name Connected Object Event Cardinality Event - causationOf - Event User Derigistration Event 1 Proc Comp Ev Event Name User Registration Event Event Nr #18 Explanation This is an event which represents system procedures to perform a user registration. Event’s Relationships as Subject Structural Connecting RelEv Name Connected Object Event Cardinality Event - inclusionOf - Event User - ownageOf - UAccount 1 Contextual Connecting RelEv Name Connected Object Event Cardinality Event - initiationOf - Even t User - participationIn - System 1 Event - initiationOf - Event User - maintenanceOf - UserKeyPair 1 Event-casusationOf-Event URegCertif -pertinenceTo- User-participationIn-System 1 Annex D 262 Proc Comp Ev Event Name User Registration Update Event Event Nr #19 Explanation This is an event which represents system procedures to perform a user registration update. Event’s Relationships as Subject Structural Connecting RelEv Name Connected Object Event Cardinality Event - inclusionOf - Event ULoginCertif - pertinenc eTo - User 0 – 1 Contextual Connecting RelEv Name Connected Object Event Cardinality Event - terminationOf - Event User - maintenanceOf - UserKeyPair 1 Event - initiationOf - Event User - maintenanceOf - UserKeyPair 1 Event-casusationOf-Event URegCertif -pertinenceTo- User-participationIn-System 1 Proc Comp Ev Event Name User Deregistration Event Event Nr #20 Explanation This is an event which represents system procedures to perform a user deregistration. Event’s Relationships as Subject Structural Connecting RelEv Name Connected Object Event Cardinality Event - inclusionOf - Event User Disconnection Event 0 - 1 Event - inclusionOf - Event MO Deregistration Event 0 - 1 Event - inclusionOf - Event Peer Deregistration Event 0 - 1 Contextual Connecting RelEv Name Connected Object Event Cardinality Event - terminationOf - Event User - participationIn - System 1 Event - terminationOf - Event User - maintenanceOf - UserKeyPair 1 Rel Ev Event Name User-loginTo-System Event Nr #21 Explanation This is a relatio nal event that represents a user’s action to log into the system. Subject Event User Object Event System Event’s Relationships as Subject Contextual Connecting RelEv Name Connected Object Event Cardinality Event - causationOf - Event User Connectio n Event 0 – 1 Rel Ev Event Name User-logoffFrom-System Event Nr #22 Explanation This is a relational event that represents a user’s action to log out of the system. Subject Event User Object Event System Event’s Relationships as Subject Contextual Connecting RelEv Name Connected Object Event Cardinality Event - causationOf - Event User Disconnection Event 0 – 1 Annex D 263 Proc Comp Ev Event Name User Connection Event Event Nr #23 Explanation This is an event which represents system procedures to pe rform a user’s connection (logging in) to the system. Event’s Relationships as Subject Structural Connecting RelEv Name Connected Object Event Cardinality Event - inclusionOf - Event ULoginCertif - pertinenceTo - User 0 – 1 Contextual Connecting RelEv Name Connected Object Event Cardinality Event - initiationOf - Event User Attending Session Event 0 – 1 Proc Comp Ev Event Name User Disconnection Event Event Nr #24 Explanation This is an event which represents system procedures to perform a user’s disconnection (logoff) to the system. Event’s Relationships as Subject Contextual Connecting RelEv Name Connected Object Event Cardinality Event - terminationOf - Event User Attending Session Event 0 – 1 Pro Comp Ev Event Name User Attending Session Event Event Nr #25 Explanation This event consists of a user participation session in the system. It starts with a user login and ends with his logoff. Event’s Relationships as Subject Structural Connecting RelEv Name Connected Object Event Cardinality Event - inclusionOf - Event User - loginTo - System 1 Event - inclusionOf - Event User - logoffFrom - System 0 – 1 Event - inclusionOf - Event Forceful User Logout 0 – 1 Event - inclusionOf - Event User Registration Update Event 0 – ∞ Event - inclusionOf - Event User - InsertionOf - MO 0 – ∞ Event - inclusionOf - Event User - removalOf - MO 0 – ∞ Event - inclusionOf - Event Add MO Insertion Event 0 – ∞ Event - inclusionOf - Event Add MO Removal Event 0 – ∞ Event-inclusionOf-Event User - ins ertionOf - MORansmAnnoncement 0 – ∞ Event-inclusionOf-Event User - removalOf - MORansmAnnoncement 0 – ∞ Event - inclusionOf - Event MO Search Event 0 – ∞ Event - inclusionOf - Event User - consumptionOf - Mo 0 – ∞ Event-inclusionOf-Event User - consumptionOf - MORansmAnnoncement 0 – ∞ Event - inclusionOf - Event MO Ownership Exchange Event 0 – ∞ Event - inclusionOf - Event MO Commenting Event 0 – ∞ Event - inclusionOf - Event MO Responding Event 0 – ∞ Event - inclusionOf - Event MO Versioning Event 0 – ∞ Event - incl usionOf - Event User Reporting Event 0 – ∞ Event - inclusionOf - Event Donation Event 0 – ∞ Event - inclusionOf - Event User Attention Sale Event 0 – ∞ Annex D 270 Proc Comp Ev Event Name MO Storage Event Event Nr #47 Explanation This event consists of the storage, by a specific peer, of a specific MO. Event’s Relationships as Subject Structural Connecting RelEv Name Connected Object Event Cardinality Event - inclusionOf - Event Peer - StorageOf - MO 1 Event-inclusionOf-Event (Peer - StorageOf - MO) -implimentOf- (Peer-storageOf-MOFrag) 1 – ∞ Event - inclusionOf - Event Peer - storageOf - MOFrag 1 – ∞ Proc Comp Ev Event Name MO Ownership Exchange Event Event Nr #48 Explanation This event consists of the exchanging of ownership, over an MO, between two users. Event’s Relationships as Subject Structural Connecting RelEv Name Connected Object Event Cardinality Event-inclusionOf-Event User -proposalOf- (User-ownageOf-MO) 1 Event-inclusionOf-Event User -acceptanceOf- (User-ownageOf-MO) 0 – 1 Event-inclusionOf-Event User -rejectionOf- (User-ownageOf-MO) 0 – 1 Contextual Connecting RelEv Name Connected Object Event Cardinality Event - terminationOf - Event User - ownageOf - MO 0 – 1 Event - initiationOf - Event User - ownageOf - MO 0 – 1 Proc Comp Ev Event Name MO Commenting Event Event Nr #49 Explanation This event consists of a user inserting an MO into th e system which consists of a comment to some other MO. Event’s Relationships as Subject Structural Connecting RelEv Name Connected Object Event Cardinality Event - inclusionOf - Event User - insertionOf - MO 1 Event-inclusionOf-Event (User - insertionOf - M O) -establishingOf- (MO-commentingTo-MO) 1 Annex D 271 Proc Comp Ev Event Name MO Responding Event Event Nr #50 Explanation This event consists of a user inserting an MO into the system which consists of a response to some other MO. Event’s Relationships as Subject Structural Connecting RelEv Name Connected Object Event Cardinality Event - inclusionOf - Event User - insertionOf - MO 1 Event-inclusionOf-Event (User - insertionOf - MO) - establishingOf- (MO-respondingTo-MO) 1 Proc Comp Ev Event Name MO Versioning Event Event Nr #51 Explanation This event consists of a user inserting an MO into the system which consists of a different version of some other MO (of those owned by the inserting user). Event’s Relationships as Subject Structural Connecting RelEv Name Connected Object Event Cardinality Event - inclusionOf - Event User - insertionOf - MO 1 Event-inclusionOf-Event (User - insertionOf - MO) - establishingOf- (MO-versioningOf-MO) 1 Proc Comp Ev Event Name User Reporting Event Event Nr #52 Explanation This event consists of a user reporting the misbehaviour of another user (typically) regarding MO inserted by the latter. Event’s Relationships as Subject Structural Connecting RelEv Name Connected Object Event Cardinality Event - inclusionOf - Event User - denouncingOf - User 1 Event-inclusionOf-Event UMissbehavReport -pertinenceTo- (User-denouncingOf-User) 1 Proc Comp Ev Event Name Peer Ownership Exchange Event Event Nr #53 Explanation This event consists of the exchanging of ownership, over a Peer, between two users. Event’s Relationships as Subject Structural Connecting RelEv Name Connected Object Event Cardinality Event-inclusionOf-Event User -proposalOf- (User-ownageOf-Peer) 1 Event-inclusionOf-Event User -acceptanceOf- (User-ownageOf-Peer) 0 – 1 Event-inclusionOf-Event User -rejectionOf- 0 – 1 Annex D 272 (User - ownageOf - Peer) Contextual Connecting RelEv Name Connected Object Event Cardinality Event - terminationOf - Event User - ownageOf - Peer 0 – 1 Event - initiationOf - Event User - owna geOf - Peer 0 – 1 Proc Comp Ev Event Name Donation Event Event Nr #54 Explanation This event consists of a user donating some monetary resources to another user, on the grounds of some MO produced by the latter, that the earlier deems meritorious of a reward. Data Fields Total Donated Amount The value of the total amount donated by the donating user Event’s Relationships as Subject Structural Connecting RelEv Name Connected Object Event Cardinality Event - inclusionOf - Event User - likingOf - MO 1 Event-inclusionOf-Event (User - likingOf - MO) -causationOf- (User-rewardingOf-User) 1 Event - inclusionOf - Event User - rewardingOf - User 1 Event-inclusionOf-Event System -taxatingOf- (User-rewardingOf-User) 1 Rel Ev Event Name User-rewardingOf-User Event Nr #55 Explanation This is a relational event that represents a user action which consists of rewarding another user with a specific amount of monetary resources. Subject Event User Object Event User Data Fields Received Amount The amount received by the rewarded user. Rel Ev Event Name System-taxationOf-(User-rewardingOf-User) Event Nr #56 Explanation This is a relational event that represents the system’s action of taxing an inter - user donation. Subject Event User Object Event Use r Data Fields Taxed Amount The amount extracted by the system as tax. Annex D 273 Proc Comp Ev Event Name User Attention Sale Event Event Nr #57 Explanation This event consists of the sale, by a user, of his attention, to another user (advertiser), by viewing some specific MO containing an advertisement message. Event’s Relationships as Subject Structural Connecting RelEv Name Connected Object Event Cardinality Event - inclusionOf - Event User - consumptionOf - MO 1 Event - inclusionOf - Event User - answeringOf - InquiryIO 1 Event - inclusionOf - Event User - paymentTo - User 0 – 1 Event-inclusionOf-Event System -taxatingOf- (User-paymentTo-User) 0 – 1 Rel Ev Event Name User-paymentTo-User Event Nr #58 Explanation This is a relational event that represents a user action which consists of paying another user with a specific amount of monetary resources, for attention that the latter sold to the earlier. Subject Event User Object Event User Data Fields Paid Amount The amount paid by the advertiser user. Rel Ev Event Name System-taxationOf-(User-paymentTo-User) Event Nr #59 Explanation This is a relational event that represents the system’s action of taxing an inter - user sale of attention. Subject Event User Object Event User Data Fields Taxed Amount The amount extracted by the system as tax. Proc Comp Ev Event Name Ransoming Event Event Nr #60 Explanation This event consists of the requesting by the CCP, to some peripheral peer, for it to periodically report back to CCP on specific user actions. Event’s Relationships as Subject Structural Connecting RelEv Name Connected Object Event Cardinality Event - inclusionOf - Event Ransom Donation Event 0 – ∞ Contextual Connecting RelEv Name Connected Object Event Cardinality Event - causationOf - Event User - insertionOf - MO 0 – ∞ Annex D 274 Proc Comp Ev Event Name Ransom Donation Event Event Nr #61 Explanation This event consists of a user donating some mon etary resources to another user, on to pay for the ransom of some prospective MO, which is announced by some specific MO Ransom Announcement. Event’s Relationships as Subject Structural Connecting RelEv Name Connected Object Event Cardinality Event - inclusionOf - Event User - likingOf - MORnsmAnn 1 Event-inclusionOf-Event (User - likingOf - MORnsmAnn) -causationOf- (User-rewardingOf-User) 1 Event - inclusionOf - Event User - rewardingOf - User 1 Event-inclusionOf-Event System -taxatingOf- (User-rewardingOf-User) 1 Rel Ev Event Name User-loadingOf-UAccount Event Nr #62 Explanation This is a relational event that represents a user action which consists of loading a user’s account with monetary resources. Subject Event User Object Event UAccount Data Fields LoadedAmount The amount loaded by the user. Rel Ev Event Name User-unloadingOf-UAccount Event Nr #63 Explanation This is a relational event that represents a user action which consists of extracting monetary resources from his account. Subject Event User Object Event UAccount Data Fields LoadedAmount The amount extracted by the user. Rel Ev Event Name User-insertionOf-Peer Event Nr #64 Explanation This is a relational event that represents a user’s initiative to insert a peer in to the system. Subject Event User Object Event Peer Event’s Relationships as Subject Contextual Connecting RelEv Name Connected Object Event Cardinality Event - causationOf - Event Peer Registration Event 0 - 1 Annex D 275 Rel Ev Event Name User-removalOf-Peer Event Nr #65 Explanation This is a relational event that represents a user’s initiative to remove a peer from the system. Subject Event Peer Object Event System Event’s Relationships as Subject Contextual Connecting RelEv Name Connected Object Event Cardinality Event - causationOf - Event User Disconnection Event 0 - ∞ Event - causationOf - Event MO Deregistration event 0 - ∞ Event - causationOf - Event Peer Deregistration Event 0 - 1 D.1.2.2.1.2 System Originated Proc Comp Ev Event Name Report Requesting Event Event Nr #66 Explanation This is an internal system event. It con sists of the requesting by the CCP, to some peripheral peer, for it to periodically report back to CCP on specific user actions. Event’s Relationships as Subject Structural Connecting RelEv Name Connected Object Event Cardinality Event - inclusionOf - Event Peer - requestTo - Peer 1 Event-inclusionOf-Event ERR -pertinenceTo- (Peer-requestTo-Peer) 1 Contextual Connecting RelEv Name Connected Object Event Cardinality Event - causationOf - Event Reporting Event 0 – ∞ Proc Comp Ev Event Name Reporting Event Event Nr #67 Explanation This is an internal system event. It consists of a peripheral peer reporting back to the CCP (regarding some user action), in response to a previous Event Report Request received by the earlier from the latter. Event’s Relationships as Subject Structural Connecting RelEv Name Connected Object Event Cardinality Event - inclusionOf - Event Peer - respondingTo - Peer 1 Event-inclusionOf-Event ER -pertinenceTo- (Peer-respondingTo-Peer) 1 Proc Comp Ev Event Name Users Evaluation Event Event Nr #68 Explanation This is a periodical, internal, system event which consists of an evaluation of all of the system users’ conduit. Event’s Relationships as Subject Structural Connecting RelEv Name Connected Object Event Cardinality Event - inclusionOf - Event User Evaluation Event 1 – ∞ Annex D 276 Proc Comp Ev Event Name User Evaluation Event Event Nr #69 Explanation This is an internal system event. It consists of the evaluation of a specifi c user’s conduit, taking into consideration other users’ misbehaviour reports regarding that user. It may lead to the expulsion, quarantining or dequarantining of the evaluated user. Event’s Relationships as Subject Structural Connecting RelEv Name Connected Object Event Cardinality Event - inclusionOf - Event System - evaluationOf - User 1 Event-inclusionOf-Event System - analysisOf - UserMissbehavReport 0 – ∞ Event-inclusionOf-Event (System - analysisOf - UserMissbehavReport)- pertainmentTo- (System-evaluationOf-User) 0 – ∞ Contextual Connecting RelEv Name Connected Object Event Cardinality Event - causationOf - Event System - evictionOf - User 0 – 1 Even t - initiationOf - Event System - quarantiningOf - User 0 – 1 Event - terminationOf - Event System - quarantiningOf - User 0 – 1 Rel Ev Event Name System-evictionOf-User Event Nr #70 Explanation This is an internal system event. It consists of the eviction of a user from the system’s user community. This implies the removal of all his MOs and Peers. Subject Event System Object Event User Event’s Relationships as Subject Contextual Connecting RelEv Name Connected Object Event Cardinality Event - causatio nOf - Event User Deregistration Event 0 – ∞ Proc Comp Ev Event Name MOs Evaluation Event Event Nr #71 Explanation This is a periodical, internal, system event which consists of an evaluation of all of the system MOs. Event’s Relationships as Subject Structural Connecting RelEv Name Connected Object Event Cardinality Event - inclusionOf - Event MO Evaluation Event 1 – ∞ Proc Comp Ev Event Name MO Evaluation Event Event Nr #72 Explanation This is an internal system event. It consists of the evaluation of a specific MO, taking into consideration users misbehaviour reports that concern it. It may lead to the eviction, quarantining or dequarantining or of the evaluated MO. Event’s Relationships Structural Connecting RelEv Name Connected Object Event Cardinality Annex D 277 as Subject Event - inclusionOf - Event System - evaluationOf - MO 1 Event-inclusionOf-Event System - analysisOf - UserMissbehavReport 0 – ∞ Event-inclusionOf-Event (System - analysisOf - UserMissbehavReport)- pertainmentTo- (System-evaluationOf-MO) 0 – ∞ Contextual Connecting RelEv Name Connected Object Event Cardinality Event - causationOf - Event System - evictionOf - MO 0 – 1 Event - in itiationOf - Event System - quarantiningOf - MO 0 – 1 Event - terminationOf - Event System - quarantiningOf - MO 0 – 1 Rel Ev Event Name System-evictionOf-MO Event Nr #73 Explanation This is an internally triggered relational system event. It represents the eviction of an MO from the system. Subject Event System Object Event MO Event’s Relationships as Subject Contextual Connecting RelEv Name Connected Object Event Cardinality Event - causationOf - Event MO Deregistration Process 0 - 1 Proc Comp Ev Event Name UEL Servicing Session Event Event Nr #74 Explanation This event consists of the maintenance of UEL servicing responsabilities (over the peripheral peer collective) by a specific OCP. Event’s Relationships as Subject Structural Connecting RelEv Name Connected Object Event Cardinality Event-inclusionOf-Event (Peer(OCP) -uelServicingOf- Peer(PP)) 1 Event-inclusionOf-Event Instruction OP IO -pertainmentTo- (Peer(OCP) -uelServicingOf- Peer(PP)) 1 D.1.2.2.2 Registered Global UEL Entitary Complex Events Ent Comp Ev Event Name User Event Nr #75 Explanation This event consists of a system human user. Data Fields User Type The type of user (regular consumer/producer user or advertiser user) Username The user’s username Pub Key The user ’s public key Priv Key The user’s private key Annex D 278 Ent Comp Ev Event Name User Account Event Nr #76 Explanation This event consists of a the user account of a system user. Data Fields Account balance The amount of momentary funds stored in the account Ent Comp Ev Event Name Trusted System Event Nr #77 Explanation This event consists of another (P2PTube - like) system, which is trusted by the present system. Data Fields System Name The identifying name of the trusted system Event’s Relationships as Subject Structural Connecting RelEv Name Connected Object Event Cardinality Event-inclusionOf-Event Peer (the CCP of the trusted system) 1 Ent Comp Ev Event Name System Event Nr #78 Explanation This event consists of the actual system. Data Fields System Name The identifying name of this system Ent Comp Ev Event Name Operational IO Event Nr #79 Explanation This event consists of an operational information object in the system. Data Fields OpIO Type The type of operational IO Tstamp Time stamp indication the validity termination date of the data contained in the operational IO Usig The signature of the user involved (if any) in the production of the operational IO Psig The signature of the peer involved (if any) in the production of the operational IO Ssig The system’s ( CCP’s or OCP’s ) signature of the operational IO Ent Comp Ev Event Name Search Query IO Event Nr #80 Explanation This event consists of a specific search query. Desides the data fields presented in the Operational IO event, its registry will also contain the one presented bellow. Data Fields Search Query The search query string. Annex D 279 Ent Comp Ev Event Name MO Event Nr #81 Explanation This event consists of a media object. Data Fields MO Usa ge Type The usage type of the media object (regular MO, advertisement MO, etc) Semantic Type The basic semantic category to which the MO pertains (comedy, drama, etc) Size The byte - wise size of the MO Duration The temporal length of the MO Usig The owner user’s signature of the media object Ssig The system’s ( CCP’s ) signature of the MO Frag Nr The number of fragments the MO is broken into for redistribution Ent Comp Ev Event Name MOFrag Event Nr #82 Explanation This event consists o f a fragment of an MO. Data Fields Size The byte - wise size of the MO fragment Ssig The system’s ( CCP’s ) signature of the MO fragment Frag Seq Nr The MO fragment’s sequence number within the context of its “parent” MO Ent Comp Ev Event Name MORansomAnnouncement Event Nr #83 Explanation This event consists of an announcement of the ransoming of a prospective future M. Data Fields Semantic type The semantic type of the prospective MO Has Been Paid A boolean indication if the ransom has already been paid MO Delivered A boolean indication if the corresponding MO has already been delivered Ent Comp Ev Event Name User Key Pair Event Nr #84 Explanation This event consists of a user’s public and private key pair. Pub Key The user’s pu blic key Priv Key The user’s private key 286 [22] Miguel Castro, Manuel Costa, and Antony Rowstron, “Should we build Gnutella on a structured overlay?”, SIGCOMM Comput. Commun. Rev. 34, 1 (January 2004), 131- 136, 2004. [23] C. Lv, P. Cao, E. Cohen, K. Li, and S. Shenker, “Search and replication in unstructured peer-to-peer networks”, Proceedings of the 16th international conference on Supercomputing, New York, 2001. [24] B. Yang, H. Garcia-Molina, “Improving search in peer-to-peer networks”, Proceedings of the 22nd International Conference on Distributed Computing Systems (ICDCS'02), 2002. [25] P. Reynolds, A. Vahdat, “Efficient peer-to-peer keyword searching”, Proceedings of IFIP/ACM Middleware, 2003. [26] S. Rhea, C. Wells, and others, “Maintenance-free Global Data Storage”, IEEE Internet Computing, Volume 5, pages 40 - 49, 2001. [27] A. Ghodsi, “Distributed k-ary System: Algorithms for Distributed Hash Tables”, Doctoral thesis, Chapter 6.1, KTH, Royal Institute of Technology, 2006. [28] P. Druschel, A. Rowstron, “Past: A large-scale, persistent peer-to-peer storage utility”, Proceedings of the Eighth Workshop on Hot Topics in Operating Systems, 2001. [29] M. Waldman, A. D. Rubin, L. F. Cranor, “Publius: A robust, tamper-evident, censorship-resistant web publishing system”, Proceedings of the 9th USENIX Security Symposium, USA, 2000. [30] S. Hand, T. Roscoe, “Mnemosyne: Peer-to-peer steganographic storage”, Proceedings of the 1st International Workshop on Peer-to-Peer Systems (IPTPS '02), MIT Faculty Club, 2002. [31] C. Peery, F. M. Cuenca-Acuna, R. P. Martin, T. D. Nguyen, “Collaborative Management of Global Directories in P2P Systems”, Rutgers University, 2002. [32] A. Muthitacharoen, R. Morris, T. M. Gil, B. Chen, “Ivy: A Read/Write Peer-to-Peer File System”, 5th Symposium on Operating Systems Design and Implementation, USA, 2002. [33] A. R. Butt, T. A. Johnson, Y. Zheng, Y. C. Hu “Kosha: A Peer-to-Peer Enhancement for the Network File System”, Proceedings of the ACM/IEEE SC2004 Conference, 20004. [34] S. D. Kamvar, M. T. Schlosser, and H. Garcia-Molina, “The Eigentrust algorithm for reputation management in p2p networks”, Proceedings of the Twelfth International World Wide Web Conference, 2003. [35] M. Gupta, P. Judge, and M. Ammar, “A reputation system for peer-to-peer networks”. NOSSDAV'03 Conference, California, 2003. [36] L. Xiong and L. Liu, “Building Trust in Decentralized Peer-to-Peer Electronic Communities”, 5th International Conference on Electronic Commerce Research, 2002. [37] Liu, “Free riding: A new challenge for peer-to-peer file sharing systems”, Proceedings of the 36th HICSS Conference, Hawaii, 2003. [38] E. Damiani et al, “A Reputation-Based Approach for Choosing Reliable Resources in Peer-to-Peer Networks”, Proceedings of the 9th ACM conference on Computer and Communications Security (CCS’02), pages 207 to 216, 2002. [39] B. Chun, Y. Fu, A. Vahdat, “Bootstrapping a distributed computational economy with peer-to-peer bartering”, Proceedings of the 1st Workshop on Economics of Peer-to- Peer Systems, 2003. [40] B. Cohen, “Incentives Build Robustness in BitTorrent”, Proceedings of the First Workshop on the Economics of Peer-to-Peer Systems, California, 2003. [Document text truncated for crawler view.]