登录
首页 » Network Security » P2P 之 UDP穿透NAT的原理与实现(附源代码) 原创:shootingstars 参考:http://midcom...

P2P 之 UDP穿透NAT的原理与实现(附源代码) 原创:shootingstars 参考:http://midcom...

于 2022-05-26 发布 文件大小:35.04 kB
0 149
下载积分: 2 下载次数: 1

代码说明:

P2P 之 UDP穿透NAT的原理与实现(附源代码) 原创:shootingstars 参考:http://midcom-p2p.sourceforge.net/draft-ford-midcom-p2p-01.txt baidu 论坛上经常有对P2P原理的讨论,但是讨论归讨论,很少有实质的东西产生(源代码)。呵呵,在这里我就用自己实现的一个源代码来说明UDP穿越NAT的原理。 首先先介绍一些基本概念: NAT(Network Address Translators),网络地址转换:网络地址转换是在IP地址日益缺乏的情况下产生的,它的主要目的就是为了能够地址重用。NAT分为两大类,基本的NAT和NAPT(Network Address/Port Translator)。 最开始NAT是运行在路由器上的一个功能模块。 最先提出的是基本的NAT,它的产生基于如下事实:一个私有网络(域)中的节点中只有很少的节点需要与外网连接(呵呵,这是在上世纪90年代中期提出的)。那么这个子网中其实只有少数的节点需要全球唯一的IP地址,其他的节点的IP地址应该是可以重用的。 因此,基本的NAT实现的功能很简单,在子网内使用一个保留的IP子网段,这些IP对外是不可见的。子网内只有少数一些IP地址可以对应到真正全球唯一的IP地址。如果这些节点需要访问外部网络,那么基本NAT就负责将这个节点的子网内IP转化为

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 免费的汇编编译系统源代码
    免费的汇编编译系统源代码-free compilation of the source code compiler system
    2022-01-26 05:24:59下载
    积分:1
  • scan mail
    scan mail
    2022-07-05 09:18:30下载
    积分:1
  • mail bomb source
    邮件炸弹的源程序-mail bomb source
    2022-09-30 09:20:03下载
    积分:1
  • using PHP Access database, small size, function, can be copied to any other supp...
    采用PHP+Access数据库实现,体积小,功能大,可以复制到其他任何支持PHP环境的计算机上直接使用。留言本功能: 1、设置留言是否审核后显示功能 2、秘密留言只有管理员可见功能 3、留言本换肤功能(系统提供三套皮肤,可自己修改) 4、留言本宽度自定义功能 5、留言分页列表的显示条数设定功能 6、设置留言时是否使用心情图标功能 7、自由设定留言内容为纯文本或使用多功能编辑进行图文留言功能 8、后台可修改留言本名称,搜索关键字等功能 9、修改管理员帐号或密码功能 管理员用户名为admin 密码为admin PHP多功能编辑器商业版的后台为http://你的网址/留言本目录/editor/admin/login.php 默认编辑器后台管理员名为admin 密码为admin888 -using PHP Access database, small size, function, can be copied to any other supported PHP environment on a computer directly. The voice mail function : one set up voice mail audit revealed two functions, secret messages only three functional managers can see, The message skinnable (three sets of skin system, their amendments) 4, the width of the voice-defined function 5, voice paging list shows the number of six functional set, set up voice mail when the use of functional heart icon 7, free to set up voice mail for the content or use text editors for multifunction facsimile messages functional 8, background can modify
    2022-08-05 09:55:12下载
    积分:1
  • 解Unix密码的程序源码和字典
    解Unix密码的程序源码和字典 -The source and dictionary for cracking unix password
    2022-02-16 00:29:37下载
    积分:1
  • 电子台历系统,用vfp完成
    电子台历系统,用vfp完成-electronic desk system, complete with Probe
    2022-04-10 14:00:08下载
    积分:1
  • This is a java
    这是一个基于java和cim开发的网络内容监管系统,提供了事件管理,策略管理,日志管理功能-This is a java-based development of the CIM and Web content monitoring systems, providing event management, strategic management, log management functions
    2022-09-30 15:40:06下载
    积分:1
  • SUIPack.Source.3.9
    SUIPack.Source.3.9-SUIPack.Source.3.9.rar
    2022-07-07 11:53:04下载
    积分:1
  • 此BAT文件能帮你扫描出你的IP及你局域网其它电脑的IP
    此BAT文件能帮你扫描出你的IP及你局域网其它电脑的IP-The BAT file can help you scan your LAN IP and your other computer" s IP
    2022-03-25 12:49:40下载
    积分:1
  • EmailCrk是一个基于POP3协议的自动登录机。一般对于UNIX机器来说,其每一个用户都有相应的Email帐号,而且Email帐号的密码和登录密码是一样的。
    EmailCrk是一个基于POP3协议的自动登录机。一般对于UNIX机器来说,其每一个用户都有相应的Email帐号,而且Email帐号的密码和登录密码是一样的。这样,如果能够得到用户的Email帐号密码,就可以得到他的登录密码。EmailCrk就是利用POP3协议的功能,对可能的用户密码进行登录试验,从而获得用户的密码。-EmailCrk is based on the POP3 agreement automatically registering machine. Generally said regarding the UNIX machine that, its each users all have the corresponding Email account number, moreover the Email account number password and registers the password is same. Thus, if can obtain the user the Email account number password, may obtain him to register the password. EmailCrk is uses the POP3 agreement the function, to carry on to the possible user password registers the experiment, thus obtains the user the password.
    2022-07-24 21:38:57下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载