Distributed Hash Table (DHT)
Distributed Hash Table (DHT)
Table (DHT)
Hello!
2
HASH TABLE
3
Distributed Hash Table (DHT)
4
Address Space
5
Adress
space
▪ 1. Space range is 0 to 2m – 1.
▪ 2. Calculation is done modulo 2m.
6
Hashing Peer Identifier
The first step in creating the DHT system is to place all peers on the address
space ring. This is normally done by using a hash function that hashes the peer
identifier, normally its IP address, to an m-bit integer, called a node ID.
7
Hashing Object Identifier
The name of the object (for example, a file) to be shared is also hashed to an
m-bit integer in the same address space. The result in DHT parlance is called a
key.
8
STORING THE OBJECT
▪ There are two strategies for storing the object: the direct method and the
indirect method.
▪ In the direct method, the object is stored in the node whose ID is
somehow closest to the key in the ring
▪ most DHT systems use the indirect method due to efficiency
9
ROUTING
10
Arrival and Departure of Nodes
11
THANKS
EVERYONE!
12