[zeromq-dev] Hole Punching
Michael Haberler
mail17 at mah.priv.at
Sun Feb 16 13:51:14 CET 2014
Am 15.02.2014 um 18:00 schrieb Ngo Doan Lap <lapngodoan at gmail.com>:
> Hi all,
> I'm developing P2P application using zeromq. In the real world, some peers are visible to others (they have public IP), some peers are invisible to others as they behind a NAT.
> The paper "Peer-to-Peer Communication Across Network Address Translators" ( http://www.brynosaurus.com/pub/net/p2pnat/) shows how to make connection between peers behind NAT devices. I tried to apply this, and I can make this happen with regular socket but I don't know how to do with zeromq.
> Could you please give me some advice for this issue?
Ngo,
I suggest researching the related topic 'NAT Traversal' which is an important issue in deploying SIP (session initialisation protocol) based VoIP telephony. SIP-over-UDP has exactly the same problem - the return path via the NAT proxy must return open in the face of NAT timeouts.
There are various solutions in this context which may be applicable to your problem, including some IETF-standard proctocols (see STUN and TURN), and you might be able to draw from this experience, as well as find some reusable software.
- Michael
> --
> Thanks and Best Regards,
> Ngo Doan Lap
> Mobile: 0977.833.757
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
More information about the zeromq-dev
mailing list