需要在《 Hyperledger锯齿架构指南:验证者对等(P2P)网络》

时间:2019-07-13 10:07:55

标签: architecture hyperledger p2p system-design hyperledger-sawtooth

我想从此documentation理解以下陈述。

第1部分:

The network component continues to perform a peer search if its number of peers is less than the minimum connectivity. The network component rejects peering attempts if its number of peers is equal to or greater than the maximum connectivity.

第2部分:

Even if maximum peer connections is reached, a network service should still accept and respond to a reasonable number of connections (for the purposes of other node topology build outs, etc.)

问题:

第1部分和第2部分中的陈述相互矛盾。文档不对吗?

如果不是,则两者均有效...那么,在什么情况下它们各自对另一个都有效?

按照第1部分:

network component rejects peering attempts if its number of peers is equal to or greater than the maximum connectivity

根据第2部分:

network service should still accept and respond to a reasonable number of connections

1 个答案:

答案 0 :(得分:0)

混乱可能是因为,我认为“最大连接性”实际上是“最大连接对等”。 在建立与该节点的对等连接之前,连接是指与远程节点的基本网络连接(我认为是0MQ)。基本连接就像客户端服务器连接(远程节点是服务器) 对等连接将涉及两个节点之间用于消息传递(块,批处理等)的双向关系。开始对等过程之前,应该已存在到远程节点的基本连接。

即使在达到最大对等连接之后,一个节点仍应接受诸如以下的基本连接:允许其他节点获取您的对等列表,并且可以与之建立连接或仅在网络中查找其他节点。节点可以获取远程节点的对等方列表,而无需与该远程节点建立对等方连接。