在主线 DHT 中,我是否在一定时间后移除对等体?

huangapple go评论55阅读模式
英文:

Do I remove peers after a certain amount of time?(mainline dht)

问题

我刚刚完成了使用基于扁平路由表的主线DHT的实现。我记得在Kademilia中有关更新对等方列表和有效的密钥重新发布的内容,我开始思考是否在一定时间后应该从对等方列表中删除对等方。但我在BEP中找不到相关信息。

英文:

I just finished implementing mainline dht with a flat based routing table. I recall from kademilia something about an updated peer list and efficient key republishing and I started to wonder if after a certain amount of time I should remove peers from peer lists. But I can't find anything in bep about it.

答案1

得分: 1

我在询问关于BitTorrent对等方。

是的,它们应该只存储有限的时间。规范似乎对此保持沉默。Libtorrent使用45分钟的超时。

Qbittorrent似乎只发送最多20个对等方,而我的实现最多有300个

这可能只返回其存储的一部分,以保持UDP数据包大小低于链路MTU。

英文:

> I'm asking about BitTorrent peers.

Yes, they should only be stored for a finite amount of time. The spec seems to be silent on that. Libtorrent uses 45min timeout.

> Qbittorrent seems to only send out 20 peers at most while my implementation has up to 300

It's probably only returning a sample of what it stores to keep UDP packet sizes below the link MTU.

huangapple
  • 本文由 发表于 2023年2月26日 20:15:16
  • 转载请务必保留本文链接:https://go.coder-hub.com/75571900.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定