以ResolverService的sendQuery测试
ResolverQueryMsg里面有个hopcount:Number of times a message has been forwarded, not propagated or walked
通过该值可以得知经过了几个结点。
感谢wangzhanyu同学的建议。有时间测试一下。
——————————————————————————————————————————————————————————————————
结果:待续。。。
——————————————————————————————————————————————————————————————————
以下内容来自《Practical JXTA II》第99页:The current technique used by JXSE to establish connection with peers located behind NATs is equivalent to Traversal Using Relay NAT (TURN).
A relay with a public address accepts and forward traffic from and to peers located behind NATs with private IP addresses. It can be used for both TCP and UDP traffic.
The benefit of this technique is that it allows communication from any peer to any peer on the Internet, regardless of the presence of any
(traversable) NATs.
The drawback is that it creates bottlenecks and many relays are required to sustain high communication between peers.
由此看来,A与B之间发送的消息确实需要rdv转发啊!