News for hackers. Stuff that matters.
Re:TCP simultaneous open and peer to peer networking by latitude on Monday July 01, 2013 @04:08AM (#5969335)
This works and it works reasonably well.

I had used simultaneous-open TCP punching as a fallback for UDP punching when I was doing [0] and it did help in 10-20% of cases when (a fairly elaborate version of) UDP punching failed. That's on a scale of several hundred thousand mediated connections per day.

One caveat though is that it requires implementing a bot-like functionality in the clients, meaning that a mediating server should be able to tell a client - "create a socket, bind it to this ip:port, wait, wait... connect to that ip:port". Obviously, this is an ideal platform for DDoS attacks if someone ever manages to re-point clients to a rogue mediation server. So, yeah, it works well, but there are some not so obvious trade-offs.

[0] http://swapped.cc/hamachi

Re:TCP simultaneous open and peer to peer networking by steeve on Monday July 01, 2013 @05:36AM (#5969598)
Ah! So that's how you guys did it! I always wondered what you were doing beyond UDP hole punching.
Re:TCP simultaneous open and peer to peer networking by malloc2x on Monday July 01, 2013 @09:20AM (#5970390)
Is there a Free software package that does something like this today?
Re:TCP simultaneous open and peer to peer networking by synctext on Monday July 01, 2013 @11:11AM (#5971139)
TCP simultaneous open is very difficult to use.

In our experience with a deployed P2P system, UDP hole punching is more successful with all the strange NAT boxes deployed. Our success rate is 95.3% now in the wild. As said above, this TCP fallback sounds like an excellent way to get to 97% connection success rate!

Note that there is an upcoming IETF Internet Standard describing UDP hole punching: http://tools.ietf.org/html/draft-ietf-ppsp-peer-protocol-06#...

We've implemented this as LGPL code: svn.tribler.org/libswift/branches/ppsp-03/