Re: Proposal: UP&P

Matthew Toseland <toad-EI5O+8PHWbJeeLb3ft/[email protected]>
Newsgroups gmane.network.freenet.technical
Message-ID <[email protected]>
On Sat, Mar 10, 2007 at 01:37:01AM +0000, Michael Rogers wrote:
> Matthew Toseland wrote:
> > That's another interesting point: port rewriting. Right now we don't
> > take any steps to identify our external port number, apart from using it
> > as well as our real port number if we hear it from successful connectees.
> 
> STUNT uses the following trick, based on the fact that most NATs 
> increase the external port number by 0, 1 or 2 for successive mappings 
> with the same internal address and port number:
> 
> * Contact first STUNT server, learn external port p1
> * Contact second STUNT server, learn external port p2
> * Predicted port for next connection = p2 + (p2 - p1)
> * Peers exchange their predicted ports out of band, then try to connect

For a symmetric NAT? Nice.
> 
> This might also work with STUN - I'm not sure whether UDP mappings are 
> allocated in the same way but I don't see why they wouldn't be. However, 
> the predicted port doesn't stay fresh for very long unless p1 = p2 (full 
> cone), so it might not be very useful unless the peers have a 
> low-latency channel to exchange predicted ports (eg a mutual friend's node).

p1 = p2 on anything except symmetric iirc.
> 
> Cheers,
> Michael

_______________________________________________
Tech mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/tech
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFF8xvKA9rUluQ9pFARAl9GAJ9cwVwwGeEivt5REATcwu3tPyncXQCgm9+T
goX12zVcrMfs0DexCGIZiuQ=
=bYr5
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.