Ticket #69 (closed defect: fixed)

Opened 3 years ago

Last modified 1 year ago

Add NAT traversal support

Reported by: alban@tryphon.org Assigned to: alban@tryphon.org
Priority: normal Milestone: 20060515
Component: default Version: 20060315
Severity: normal Keywords:
Cc: flow@electronet.org

Description

With the UDP transport (#11), the NAT traversal support becomes possible.

Attachments

nat-traversal-20060319.log (5.9 kB) - added by alban@tryphon.org on 03/19/06 23:32:22.
tcpdump log of a buggy network traffic

Change History

03/18/06 11:31:53 changed by alban@tryphon.org

  • status changed from new to assigned.
  • milestone set to next.
By using the work started for Kolaka P2P Network (http://wiki.tryphon.org/Kolaka_P2PNet), we just need to:

- embed a ConnectionAssistantService into the tracker JVM
- start a ConnectionAssistantService.Session into PeerSender
- start a ConnectionAssistantService.Session into the PeerReceiver
- modify the PeerReceivingConnection creation to invoke the ConnectionAssistantService

03/19/06 23:29:07 changed by alban@tryphon.org

A first implementation is available with 20060319 release .. but something goes wrong .. even if the created network traffic is like expected, the UDP session never opens ?! Fresh eyes needed ! See the attached log.

03/19/06 23:32:22 changed by alban@tryphon.org

  • attachment nat-traversal-20060319.log added.

tcpdump log of a buggy network traffic

03/21/06 00:36:51 changed by alban@tryphon.org

  • status changed from assigned to closed.
  • resolution set to fixed.
The first NAT traversal tests failed because of the source port mapping in one of the two NATs. To avoid any problem with the port mapping, the node can now use a reference resolved with the STUN protocol (with jstun):

 <reference>
  <class>stun</class>
  <host>stun.xten.net</host>
 </reference>

The STUN request allows to know the public IP and the "public sender port" (the request is sent from the UDP port of the sender). 

champagne for asyd ;o)

fixed into freecast-20060320

05/25/06 19:43:55 changed by alban@tryphon.org

  • milestone changed from next to 20060515.
released into 20060515

11/27/07 19:15:58 changed by alban

  • priority changed from high to normal.

Add/Change #69 (Add NAT traversal support)




Change Properties
Action