Here is an description for the BitTorrent DHT
https://stackoverflow.com/questions/1332107/dht-in-torrents#...
The link one answer down is more explanatory
https://wiki.theory.org/BitTorrentDraftDHTProtocol