为什么Kademlia使用UDP? [英] Why does Kademlia use UDP?

查看:95
本文介绍了为什么Kademlia使用UDP?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么 Kademlia分布式哈希表使用UDP作为其网络传输协议,即使它是不可靠?

Why does the Kademlia Distributed Hash Table use UDP as its network transport protocol, even though it's unreliable?

推荐答案

主要原因是您快速查询了许多以前从未建立过联系的节点,并且在查找过程中可能再也看不到.

The main reason is that you rapidly query many nodes that you have never established contact to before and possibly will never see again during a lookup.

Kademlia查找是迭代的,即不会转发请求.转发DHT更适合于长期的TCP连接.

Kademlia lookups are iterative, i.e. requests won't be forwarded. A forwarding DHT would be more suited to long-standing TCP connections.

即很大一部分流量由网络节点之间的短暂请求和响应交换组成,可能在数以百万计的范围内.快速建立数千个TCP连接的开销将令人望而却步.

I.e. a large chunk of the traffic consists a short-lived exchange of a request and response between nodes of a network potentially ranging in the millions. The overhead of rapidly establishing thousands of TCP connections would be prohibitive.

这篇关于为什么Kademlia使用UDP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆