父子对等组之间的关系

对等网络通信机制
本文探讨了对等网络(P2P)中超级节点与边缘节点的通信机制,特别是在子对等组中的作用及配置建议。文章解答了关于超级节点是否需要加入子对等组以确保通信的问题,并讨论了节点在网络中的角色转换及其对通信能力的影响。
遇到一个问题:超级结点和边缘结点都加入对等组P
超级结点在对等组P中启动汇聚服务
边缘结点连接到超级结点
此时边缘结点(创建)加入P的子对等组C
问题:超级结点是否有必要也创建或加入对等组C
以保证边缘结点在对等组C中的通信
————————————————————————————————————————————————
PeerInfoService
List<PeerID> getLocalEdgeView()
___________________________________________________________________________
https://www.java.net/node/662222
 

> So it seems like I manage to connect to the jxta-38
> Render-Vous peer, thanks for that.
Correct.
>
> However, I have a question left: a peer can become a
> rendez-vous for a peer group, does it mean that I may
> loose some capacity to reach rendez-vous peers after
> the switch from Edge to Rendez-vous (or even to
> Relay)?
No. RDVs are scoped per peergroup. This means that
if you create a sub-peergroup this group can have
a new set of rendezvous that are indepent of the
NetPeergroup (root peergroup) RDVs. While your
peer connect to the sub-group RDVs, it will remain
connected to the NetPeerGroup RDVs. You can
explore this within the JXTA shell using the
chpgrp command to switch the peergroup context and
check the output of the "rdvstatus" command.

>In other words, if I want to develop an
> application relying on JXTA, should I automatically
> set the configuration of my users to Edge?
For the NetPeergroup you want to be an
edge, for the remaining sub-peergoups you should
let your peer (if you have good connectivity) dynamically
act as a RDV via the auto-RDV election
option.

Hth,

B.
>Will they
> automatically be able to reach any other users for
> their peer groups from behind any firewall and
> proxys? If not what is the solution?
>
> I apologize if this is a basic question, but I could
> not find a definitive answer from the JXTA v2.3.x:
> Java Programmer’s Guide.
>
> Thanks !!!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值