Chord(分布式哈希表)
我想为 P2P 文件共享创建自己的 Chord 实现 我关注了一篇文章,其中解释了每个节点都有它的 ID(例如 IP 的哈希值),
我的问题是:
- 新客户端如何加入网络?必须有一个服务器来管理它。正确的?
- 你如何为新客户设置手指表?
I want to create my own Chord implementation for P2P file sharing
I followed an article which explained that every node has it's ID (hash of the IP for example)
my questions are:
- how a new client join the network? there must be a server to manage it. right?
- how you set for the new client the finger table?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Chord 作者发布了自己的实现:
http://pdos.csail.mit.edu/chord /#downloads
您可以查看他们如何处理这些问题。
Chord authors have their own implementation published:
http://pdos.csail.mit.edu/chord/#downloads
You can check how they manage those questions.
通过向其他同行宣传其存在。
对等点可以获取其他对等点的 IP 地址的服务器或位置 (URL)。该位置由同行自己用新数据更新。
如果您深入研究这个问题,您将面临 NAT 穿越问题。
通过了解/获取其他节点的 ID 并计算“手指”顺序。
By advertising its presence to other peers.
Either a server or a location (URL) where peers can fetch IP addresses of other peers. This location is updated by peers themselves with fresh data.
If you dig deeper in this issue, you'll face the NAT traversal issue.
By knowing/fetching other peers' id and computing the 'finger' order.