Peer-to-Peer (P2P) networks enable users to directly share digital content (such as audio, video, and text files) as well as real-time data (such as telephony traffic) with other users without depending on a central server. Although originally popularized by unlicensed online music services such as Napster, P2P networking has recently emerged as a viable multimillion dollar business model for the distribution of information, telecommunications, and social networking. Written at an accessible level for any reader familiar with fundamental Internet protocols, the book explains the conceptual operations and architecture underlying basic P2P systems using well-known commercial systems as models and also provides the means to improve upon these models with innovations that will better performance, security, and flexibility. Peer-to-Peer Networking and Applications is thus both a valuable starting point and an important reference to those practitioners employed by any of the 200 companies with approximately $400 million invested in this new and lucrative technology.
- Uses well-known commercial P2P systems as models, thus demonstrating real-world applicability.
- Discusses how current research trends in wireless networking, high-def content, DRM, etc. will intersect with P2P, allowing readers to account for future developments in their designs.
- Provides online access to the Overlay Weaver P2P emulator, an open-source tool that supports a number of peer-to-peer applications with which readers can practice.
Inhaltsverzeichnis
1;Front Cover;1 2;P2P Networking and Applications;4 3;Copyright Page;5 4;Dedication Page;6 5;Table of Contents;8 6;Preface;18 7;About the Author;22 8;Chapter 1: Introduction;24 8.1;P2P Emerges as a Mainstream Application;24 8.1.1;The Rise of P2P File-Sharing Applications;24 8.1.2;Voice over P2P (VoP2P);27 8.1.3;P2PTV;28 8.2;P2P Networking and the Internet;31 8.2.1;P2P Overlays and Network Services;31 8.2.2;Impact of P2P Traffic on the Internet;33 8.3;Motivation for P2P Applications;34 8.3.1;P2P from the End Users Perspective;34 8.3.2;Is P2P = Piracy?;35 8.3.3;P2P Strengths and Benefits;35 8.3.4;P2P Open Issues;37 8.4;P2P Economics;37 8.4.1;The P2P Value Proposition;37 8.4.2;Barrier to Entry;38 8.4.3;Revenue Models and Revenue Collection;38 8.4.4;P2P Application Critical Mass;39 8.5;Anatomy of Some P2P Business Models;40 8.5.1;VoP2P;40 8.5.2;File Sharing;42 8.6;Social Impact;44 8.7;Technology Trends Impacting P2P;45 8.8;Summary;46 8.9;Further Reading;46 9;Chapter 2: Peer-to-Peer Concepts;48 9.1;Operation of a P2P System;48 9.1.1;The User View;48 9.1.2;P2P Beyond the Desktop Computer;49 9.1.3;Overlay View;51 9.2;Principles of the P2P Paradigm;52 9.3;A Graph-Theoretic Perspective;54 9.3.1;Overview;54 9.3.2;Overlay;54 9.3.3;Graph Properties;56 9.3.4;Object Storage and Lookup;57 9.4;A Design Space Perspective;58 9.5;A Routing Performance Perspective;59 9.5.1;Routing Geometries and Resilience;59 9.5.2;Tradeoff Between Routing State and Path Distance;60 9.5.3;Churn and Maintaining the Overlay;60 9.5.4;Locality;62 9.6;An Implementation Perspective: Overlayweaver;64 9.7;Summary;66 9.8;For Further Reading;67 10;Chapter 3: Unstructured Overlays;68 10.1;Connecting Peers on a Global Scale;68 10.2;Basic Routing in Unstructured Overlays;69 10.2.1;Flooding and Expanding Ring;69 10.2.2;Random Walk;72 10.3;Unstructured Topology Considerations;73 10.3.1;Types of Unstructured Graphs;73 10.3.2;Random Graphs;73 10.3.3;Power-Law Random Graphs;74 10.3.4;Scale-Free Graphs and Self-Similarit
y;75 10.3.5;Social Networks and the Small-World Phenomenon;77 10.4;Early Systems;78 10.4.1;Napster;78 10.4.2;Gnutella;78 10.4.3;FastTrack;78 10.4.4;Freenet;79 10.5;Improving on Flooding and Random Walk;84 10.5.1;Techniques;84 10.5.2;Metrics;85 10.5.3;Case Study: Gia;85 10.6;Social Overlays;87 10.6.1;Using Similar Interests Among Peers;87 10.6.2;Tribler;88 10.6.3;INGA;90 10.7;Key-Based Routing in Unstructured Topologies;92 10.7.1;Overview;92 10.7.2;Local Minima Search;92 10.7.3;Unstructured Distributed Hash Table;93 10.8;Under the Hood: An Overlay Emulator;95 10.8.1;OverlayWeaver Routing Layer;95 10.8.2;Unstructured Overlays in OverlayWeaver;96 10.9;Summary;96 10.10;For Further Reading;96 11;Chapter 4: Structured Overlays: Geometry and Routing;98 11.1;Structured Overlays;98 11.1.1;Motivation and Categories;98 11.1.2;Geometry and Routing;100 11.1.3;Roadmap for the Chapter;100 11.2;Logarithmic Degree with Prefix Routing;102 11.2.1;PRR;102 11.2.2;Tapestry;105 11.2.3;P-Grid;107 11.2.4;Pastry;108 11.2.5;Other Prefix-Routing Overlays;109 11.3;Ring with Embedded Logarithmic Degree Mesh;109 11.3.1;Chord;109 11.3.2;DKS(N,k,f);111 11.3.3;Chord#;112 11.4;Constant Degree;114 11.4.1;Features of Constant Degree Graphs;114 11.4.2;Koorde;116 11.4.3;Ulysses;116 11.4.4;Cycloid;117 11.5;Other Distance Metrics;118 11.5.1;Content Addressable Network (CAN);118 11.5.2;Kademlia;120 11.6;O(1)-Hop Routing;122 11.6.1;Multihop Versus One-Hop;122 11.6.2;Kelips;123 11.6.3;OneHop;123 11.6.4;EpiChord;124 11.7;Comparison and Evaluation;124 11.7.1;Analytical Performance Bounds;124 11.7.2;Measurement Through Simulation;126 11.8;Summary;127 11.9;For Further Reading;127 11.9.1;Surveys and Frameworks;127 11.9.2;History of Distributed Hash Tables;128 11.9.3;Other Structured Overlays;128 11.9.4;Routing and Geometry in Computer Networks;128 12;Chapter 5: Structured Overlays: Maintenance and Dynamics;130 12.1;Peer Churn;130 12.2;Approaches to Overlay Maintenance;132 12.2.1;Active Maintenance;132 12.2.2;Oppor
tunistic Maintenance;132 12.3;Overlay Maintenance Algorithms;133 12.3.1;Logarithmic Degree with Prefix Routing;133 12.3.2;Ring with Embedded Logarithmic Degree Mesh;137 12.3.3;Constant Degree;139 12.3.4;0(1)-Hop Routing;142 12.4;Stochastic Modeling of Peer Churn;146 12.4.1;The Network Model;146 12.4.2;Stochastic Model for Long-Range Connections;147 12.4.3;Maintenance of Short-Range Connections;148 12.4.4;Maintenance of Long-Range Connections;148 12.4.5;Comparison with Existing DHT Overlay;149 12.5;Federated Overlay Topologies;149 12.5.1;Universal Overlay;151 12.5.2;Hierarchical Overlays;152 12.6;Summary;156 12.7;For Further Reading;156 13;Chapter 6: Peer-to-Peer in Practice;158 13.1;P2P Building Blocks;158 13.2;Network Programming;161 13.3;Overlay Protocol Design;162 13.3.1;General Protocol Issues;162 13.3.2;Unstructured Overlay: Gnutella;163 13.3.3;BitTorrent;167 13.3.4;Structured Overlays;169 13.4;Network Address Translation and P2P Overlays;171 13.4.1;How NAT Effects P2P Connectivity;171 13.4.2;NAT Traversal;173 13.4.3;NAT Traversal with ICE;174 13.4.4;NAT Traversal in a P2P Overlay;176 13.5;Peer Capability Determination;176 13.5.1;Overview;176 13.5.2;Network Capacity;177 13.5.3;Peer Lifetime;178 13.6;Bootstrapping and Partitions;178 13.6.1;Finding a Rendezvous Peer;178 13.6.2;Merging Partitions;179 13.7;P2P Networking Support in Microsoft Windows;180 13.7.1;Peer Identity;180 13.7.2;Peer Name Resolution Protocol;181 13.7.3;Peer Overlay;181 13.7.4;Grouping;182 13.7.5;Identity Management;183 13.7.6;Search;184 13.8;Summary;184 13.9;For Further Reading;184 14;Chapter 7: Search;186 14.1;Overview;186 14.2;Centralized vs. Localized vs. Distributed Indexing;187 14.2.1;Centralized Indexing;187 14.2.2;Localized Indexing;189 14.2.3;Distributed Indexing;190 14.2.4;Hybrid Indexing;190 14.3;Hashing-Based Indexing and Lookups;191 14.3.1;Searching in a Flat DHT;191 14.3.2;Searching in Hierarchical DHTs;192 14.3.3;Discussion;192 14.4;Searching in Unstructured Overlays;193 14.4.1;
Flooding-Based Search;193 14.4.2;Iterative Deepening;194 14.4.3;Random Walk-Based Search;194 14.4.4;Guided Search;194 14.4.5;Hybrid-Based Approaches;195 14.5;Keyword Search;196 14.6;Range Queries;196 14.6.1;Non-DHT-Based Approaches;197 14.6.2;Range Queries in DHTs;197 14.6.3;Skip Graphs;198 14.7;Semantic Queries;199 14.7.1;Semantic Search in Structured Overlays;199 14.7.2;Semantic Search in Unstructured Overlays;201 14.8;Advanced Topics;202 14.8.1;Distributed Pattern Matching System (DPMS);202 14.8.2;DiffSearch;202 14.8.3;Content-Based Search;203 14.9;Summary;204 14.10;For Further Reading;204 15;Chapter 8: Peer-to-Peer Content Delivery;206 15.1;Content Delivery;206 15.1.1;Classification of P2P Content Delivery Schemes;207 15.1.2;Design Criteria;210 15.2;P2P Caching;210 15.2.1;Design Issues;214 15.2.2;Example P2P Caching Systems;216 15.2.3;Summary;218 15.3;Content Pull and Content Push;218 15.3.1;Case Study;219 15.4;Hybrid CDN and P2P Architectures;221 15.4.1;Overview;222 15.4.2;Case Study;222 15.5;Summary;224 15.6;For Further Reading;225 16;Chapter 9: Peercasting and Overlay Multicasting;226 16.1;Introduction;226 16.1.1;The Television Paradigm Shift;226 16.1.2;Popular Peercasting Applications;226 16.2;Terminology;227 16.3;P2P streaming;229 16.4;Multicast Applications and P2P Overlay Multicast;232 16.4.1;Multicast Applications;232 16.4.2;IP Multicast vs. Overlay Multicast;232 16.4.3;Hybrid Multicast;236 16.4.4;Proxy-Based Overlay Multicast;237 16.5;OM Design Considerations;238 16.5.1;Performance Metrics;238 16.5.2;OM Groups and OM Sessions;238 16.5.3;Group Management;239 16.5.4;Message Dissemination;241 16.5.5;Categorization of OM Systems;242 16.6;Improving OM Performance;244 16.7;Summary;250 16.8;For Further Reading;251 17;Chapter 10: Measurement for P2P Overlays;252 17.1;Motivation;252 17.2;Network Embedding;257 17.2.1;Basic Properties of Network Embedding;257 17.2.2;Lipschitz Embedding;259 17.2.3;Numerical Optimization Embedding;260 17.3;Internet Coordinate System
s;260 17.3.1;Systems using Lipschitz Embedding and Matrix Factorization;264 17.3.2;Systems using Numerical Optimization;265 17.4;Meridian;269 17.4.1;Multiresolution Rings;269 17.4.2;Ring Membership Management;270 17.4.3;Gossip-based Node Discovery;271 17.4.4;Closest-Node Discovery;271 17.5;Accuracy and Overhead;272 17.6;Summary;275 17.7;For Further Reading;276 18;Chapter 11: Service Overlays;278 18.1;Service Orientation and P2P Networking;278 18.2;Service Overlay Concepts;280 18.2.1;Resource Virtualization;280 18.2.2;Service Orientation;280 18.2.3;Devices as Peers;281 18.3;Serving DNS Records from an Overlay;281 18.3.1;Domain Name Service;281 18.3.2;DDNS;282 18.4;Resilient Overlay Networks;285 18.4.1;Internet Routing and ISP Peering;285 18.4.2;Resilient Overlay Network;285 18.4.3;Bandwidth-Aware RON;287 18.5;QoS Aware Overlays;289 18.5.1;Overview;289 18.5.2;OverQoS;291 18.5.3;QRON;292 18.6;Service Orientation;293 18.6.1;Overview;293 18.6.2;Wide-Area Service Discovery;293 18.6.3;INS/Twine;294 18.6.4;Location-Based Service Discovery;294 18.6.5;Other P2P Approaches to Service Discovery;295 18.7;Replication and Load Balancing;295 18.7.1;Churn and Index Availability;295 18.7.2;Index Load and Object Popularity;297 18.7.3;Beehive;298 18.7.4;Service Composition;299 18.8;Summary;300 18.9;For Further Reading;301 19;Chapter 12: Voice Over Peer-to-Peer;302 19.1;From VoIP to VoP2P;302 19.2;VoP2P;303 19.2.1;VoIP Elements;303 19.2.2;Mapping VoIP Elements to a VoP2P Overlay;304 19.3;Application Relays;305 19.3.1;Types of Relays;305 19.3.2;Relay Selection and Discovery;306 19.3.3;Dynamic Path Switching;308 19.4;Call Processing;308 19.4.1;Overview;308 19.4.2;Assumptions;309 19.4.3;Dimensionality;309 19.4.4;Example Peer Features;310 19.5;Case Study: Skype;312 19.6;Case Study: Peer-to-Peer Sip;314 19.6.1;Overview;314 19.6.2;Hip-Hop;315 19.6.3;Address Settlement by Peer-to-Peer;317 19.6.4;Reload;318 19.7;Summary;319 19.8;For Further Reading;320 20;Chapter 13: Mobility and Heterogeneity;
322 20.1;Impact of Mobile Devices on P2P Overlays;322 20.2;P2P Overlay Issues Caused by Mobility;323 20.2.1;Roaming and Node Lifetime;323 20.2.2;Growing Mobile Peer Frequency;325 20.3;Mitigating Mobility Churn;326 20.3.1;Mobile IP Support;326 20.3.2;Stealth Nodes;327 20.3.3;Bristle;328 20.3.4;Warp;329 20.4;Multihomed Peers;331 20.5;Variable-Hop Overlays;332 20.5.1;Overview;332 20.5.2;Accordion;332 20.6;P2P and Manets;334 20.6.1;Overview;334 20.6.2;Mobile Hash Table;335 20.6.3;MADPastry;337 20.6.4;Other P2P MANET Designs;338 20.7;Summary;340 20.8;For Further Reading;340 21;Chapter 14: Security;342 21.1;Introduction;342 21.2;Security Risks and Attacks;343 21.2.1;Classifications of Attacks;343 21.2.2;The P2P Security Gap;345 21.2.3;Sample Attacks and Threats;346 21.2.4;Overlay Layer Attacks;349 21.3;Security Mechanisms;351 21.3.1;Cryptographic Solutions;351 21.3.2;DoS Countermeasures;352 21.3.3;Secure Routing in Structured P2P;353 21.3.4;Fairness in Resource Sharing;356 21.4;Trust and Privacy Issues;357 21.4.1;Architecture;358 21.4.2;Reputation;359 21.4.3;Privacy;360 21.5;Case Study: Groove;361 21.6;Case Study: Pollution in File-Sharing Systems;361 21.7;Summary;362 21.8;For Further Reading;363 22;Chapter 15: Managed Overlays;364 22.1;Introduction;364 22.2;Management of Overlays vs. Conventional Networks;366 22.2.1;Overlay Dimensions Impacting Manageability;366 22.2.2;Managed Overlay Model;368 22.3;Managed Overlays and Overlay Operators;369 22.3.1;Role of the Overlay Operator;369 22.3.2;Examples;371 22.3.3;Managing a Resilient Overlay Network;371 22.3.4;Managing a Distributed File Storage Service;373 22.4;Overlay Management Architecture;375 22.4.1;Integration with Peer State and Event Detection;375 22.4.2;Security Considerations;377 22.4.3;Generality for Various Types of Overlay;377 22.5;Overlay Messaging for Management Operations;377 22.5.1;Reaching All Peers;377 22.5.2;Aggregating Data Collection for Performance Management;378 22.5.3;Multicast;380 22.6;Managing the Im
pact of the Overlay Traffic on the ISP Network;380 22.6.1;P2P Traffic in the ISP Network;380 22.6.2;Approaches to Managing P2P Traffic;381 22.6.3;P4P;381 22.7;Summary;382 22.8;For Further Reading;382 23;Glossary;384 24;References;390 25;Index;422