P2P的另类想法

头几天一直在想,怎么让P2P软件可以穿透NAT,一直不知道怎么去实现。刚才突然一个灵感,是不是可以借用第三者的机器(在外网上的)进行假穿透呢?即用户P2P程序可以随机的让一个处于外网上的用户作个一个中介的服务器,通过这个服务器进行转发。不过这个服务器的配置一般都是较低的,而且用户可能运行了很多程序,占用了很多的资源。要么让程序找到资源足够的机器,要么就是找几个机器一起分摊。前者的实现比较难,后者的实现相对要简单很多的。我可以限制连接一个服务器的用户数目,如果超过这个数目,就继续找到下一个服务器。如果这样真可以实现,那么就可以轻松的实现NAT的穿透处理了。不过这个想法好像是pcplayer提过,不知道和我说的是不是一个思路。

This entry was posted in Web应用. Bookmark the permalink.

9 Responses to P2P的另类想法

  1. oyjt says:

    这样的话,还能叫P2P吗?

  2. water-e says:

    晕,

    这个问题在N久以前不是在cndev讨论过了吗,贴个中文的地址一看就明白了:

    http://www.ppcn.net/n1306c2.aspx

  3. gmail says:

    这样不就失去了P2P的优势了?

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word