
























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

























P2P networks provide an alternative to content-delivery networks. In the specific case of providing content delivery, Kademlia (in the guise of BitTorrent) solves the problem in a scalable, reliable way. But there are many other P2P solutions…. Why? Where we are: Where we are: Thursday, April 19, 2012 2:40 PM Docsity.com
Topology: what model of virtual connectivity determines search strategy? Locality: what concept of neighborhood determines replication strategy? P2P concepts P2P concepts Thursday, April 19, 2012 7:31 AM Docsity.com
Neighborhood in which data is replicated. Some concept of what happens to a neighborhood when a node is added. Some concept of what happens to a neighborhood when a node is deleted. Every P2P network has some concept of locality Locality Wednesday, April 18, 2012 6:12 PM Docsity.com
System Kademlia Chord Topology Hypercube Circle Locality Hamming distance: dist(j,k) = countones(j xor k) Arithmetic distance: dist(j,k)=n umber of hosts between j and k on the circle Locating hosts Hash IP address Hash IP address Replication To Hamming neighborhood To successors on circle Local state K-buckets Successor and finger (chord) tables Ownership No concept of key ownership Nearest successor owns key Consistency Eventual consistency Strong consistenc y Two P2P systems Thursday, April 19, 2012 7:36 AM Docsity.com
Topology: a virtual ring of 2 n NodeIDs. Each host has a unique, randomly assigned NodeID. Not all NodeIDs are used. A host's NodeID determines its position in the ring. The ring has holes: many NodeIDs do not correspond to hosts. Chord DHT Chord Thursday, April 19, 2012 7:25 AM Docsity.com
Picture of Chord Topology Thursday, April 19, 2012 8:02 AM Docsity.com
Picture of Chord Hashing Thursday, April 19, 2012 8:02 AM Docsity.com
Suppose that n is a NodeID. Let predecessor(n) be the first existing NodeID on the circle before n. Let successor(n) is the first existing NodeID on the circle after n. Let succ_or_self(n) be either n if the NodeID n maps to a host, and successor(n) if not. Successor and Predecessor functions Successor and Predecessor functions Thursday, April 19, 2012 7:57 AM Docsity.com
Let k be a key, e.g., a filename. Let h(k) be a hash function from keys to 0<=h(k)<=2^n-1. Map the key k to the NodeID n = succ_or_self(h(k)). Replicate to r successor NodeIDs of n. Each host for a NodeID n is authoritative for NodeIDs between n and its immediate predecessor (non-inclusive). If a NodeID n fails, its immediate successor takes over and handles its authority zone. If a host with a new NodeID m joins, it becomes authoritative for the NodeIDs between predecessor(m) and m, read from successor(m). A "chord table" ("finger table") allows non- local, hypercube-like navigation. Chord in a nutshell Chord in a nutshell Thursday, April 19, 2012 8:22 AM Docsity.com
Zones of authority Thursday, April 19, 2012 8:34 AM Docsity.com
Picture of failover Thursday, April 19, 2012 8:27 AM Docsity.com
Picture of joining Thursday, April 19, 2012 8:28 AM Docsity.com
A conceptual picture of the finger table Thursday, April 19, 2012 8:45 AM Docsity.com
Simplified picture of chording navigation Thursday, April 19, 2012 6:25 PM Docsity.com