Peer-To-Peer Networks (P2P)
Peer-To-Peer Networks (P2P)
1
Unstructured Peer-to-Peer Networks
2
Unstructured Peer-to-Peer Networks
Search?
3
Unstructured Peer-to-Peer Networks
Disadvantages:
● Coordination overhead
● Inefficient search
○ Flooding incurs high overhead
○ Other strategies may fail to find data
even though it exists in the network
4
Structured Peer-to-Peer Networks
● Different network overlay structures exist:
○ Supernodes [Gnutella 2.0, Kazaa]
○ Trackers and swarms [BitTorrent, e-Donkey]
○ Distributed Hash Tables (DHT) [BitTorrent, e-Donkey]
○ Trees [several proposals for video streaming]
○ ...
5
Peer-to-Peer Networks with Supernodes
6
Normal peers:
● Limited resources
Peer-to-Peer Networks with Supernodes
● Exchange data with other peers
● Inform supernodes what data
they have available
Supernodes:
● More compute resources
● Exchange data with other peers
● Cooperate to answer search
queries 7
Peer-to-Peer Networks with Supernodes
Peers cooperate to exchange data
after performing a search
8
P2P Networks with Trackers
Tracker
9
P2P Networks with Trackers
10
P2P Networks with Trackers
Tracker
11
P2P Networks with Trackers
Tracker
12
P2P Networks with Trackers
13
Exemple: BitTorrent
Network with a tracker and swarm:
14
Distributed Hash Tables (DHT)
● Maps key → value like a hash table
● Key storage and search are distributed across all nodes
2^32 2^96
2^64
15
Distributed Hash Tables (DHT)
● Maps key → value like a hash table
● Key storage and search are distributed across all nodes
2^64
16
Distributed Hash Tables (DHT)
● Maps key → value like a hash table
● Key storage and search are distributed across all nodes
19