开发者

What is the role of the BitTorrent Mainline DHT routing table in peer lookup requests?

开发者 https://www.devze.com 2023-03-27 21:36 出处:网络
As I understand the first lookup request is sent to the node which开发者_如何学JAVA is the closest one in the routing table to the info hash of the torrent

As I understand the first lookup request is sent to the node which开发者_如何学JAVA is the closest one in the routing table to the info hash of the torrent

During the process of peer lookup I can receive many nodes. When I perform next peer lookup can I start peer lookup from one of them or I must start from the peers in my routing table?


The details of the Kademlia routing and replacement algorithm can be found in the original paper. Basically, you only replace nodes in your routing table when they start failing; however you subdivide the bucket around your ID until the smallest bucket has less than K nodes (where K is as specified in the bittorrent DHT protocol documentation). When starting searches, you use the K routing table nodes in your routing table bucket containing the routing ID of the key being searched.

0

精彩评论

暂无评论...
验证码 换一张
取 消