• 位于两个内网的结点A和B都连接到一个公网的rdv,然后A与B之间发送消息,这时消息是否还经过rdv?


    以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转发啊!

    ——————————————————————————————————
    傲轩游戏网
  • 相关阅读:
    JS控制台打印星星,总有你要的那一款~
    css居中方法
    line-height
    position定位
    IE盒子模型
    CSS中的盒模型
    CSS中的BEM命名
    循环语句总结(代码以C#为例)
    程序设计中的数学思维函数总结(代码以C#为例)
    转:SpringBoot 自定义异常@ContollerAdvice ExceptionHandler不起作用
  • 原文地址:https://www.cnblogs.com/cuizhf/p/2373494.html
Copyright © 2020-2023  润新知