How does DHT in torrents work?

前端 未结 4 1416
傲寒
傲寒 2021-01-29 19:00

I\'m coding a p2p implementation that I would like to make decentralized however I\'m having some trouble grasping how DHT in protocols like bittorrent work. How does the client

4条回答
  •  温柔的废话
    2021-01-29 19:21

    What happens with bittorrent and a DHT is that at the beginning bittorrent uses information embedded in the torrent file to go to either a tracker or one of a set of nodes from the DHT. Then once it finds one node, it can continue to find others and persist using the DHT without needing a centralized tracker to maintain it.

    The original information bootstraps the later use of the DHT.

提交回复
热议问题