p2p软件的实现.doc
约88页DOC格式手机打开展开
p2p软件的实现,目录 绪论-------------------------------------------------------------------------------------1 p2p发展简史-------------------------------------------------------------...
内容介绍
此文档由会员 qw-vzwcyg 发布
目 录
绪论-------------------------------------------------------------------------------------1
P2P发展简史------------------------------------------------------------------------1
1.2 P2P应用程序的用武之地 ---------------------------------------------------------4
1.3 P2P技术的动力 -------------------------------------------------------------------5
P2P体系结构---------------------------------------------------------------------6
2.1 P2P网络------------------------------------------------------------------------------7
2.2 P2P如何形成动态网络-------------------------------------------------------------9
2.3 节点自制-----------------------------------------------------------------------------14
2.4 支持混合模型-----------------------------------------------------------------------15
第三章 JXTA技术----------------------------------------------------------------------------20
3.1 JXTA是什么------------------------------------------------------------------------20
3.2 JXTA的概念------------------------------------------------------------------------22
3.2.1 Peer(对等机)---------------------------------------------------------------22
3.2.2 Peer Group(对等组)-------------------------------------------------------23
3.2.3 Endpoint(端点)-------------------------------------------------------------23
3.2.4 Pipe(管道)------------------------------------------------------------------24
3.2.5 Advertisement(广告)------------------------------------------------------25
3.2.6 Message(消息)-------------------------------------------------------------26
3.2.7 Rendezvous Peer(集合点)-----------------------------------------------26
3.2.8 Router Peer(路由Peer)-------------------------------------------------28
3.29 Gateway Peer(网关Peer)--------------------------------------------------28
3.3 用于通信的Peer-------------------------------------------------------------------29
3.3.1 防火墙------------------------------------------------------------------------29
3.3.2 NAT(网络地址转换)------------------------------------------------------29
3.3.3 代理服务器------------------------------------------------------------------30
3.3.4 DHCP(动态IP分配)-----------------------------------------------------30
3.3.5 网络的不稳定---------------------------------------------------------------31
3.3.6 网关问题---------------------------------------------------------------------31
3.4 Peer和对等组----------------------------------------------------------------------32
3.4.1 Peer和用户的关系---------------------------------------------------------32
3.4.2 对等组的必要性------------------------------------------------------------32
3.4.3 JXTA应用程序与对等组-------------------------------------------------34
3.4.4 对等组的成员资格---------------------------------------------------------34
3.4.5 对等组的服务---------------------------------------------------------------35
3.5 广告(Advertisement)-------------------------------------------------------------37
3.5.1 广告的类型------------------------------------------------------------------37
3.5.2 模块(Module)广告-------------------------------------------------------41
3.5.3 管道广告---------------------------------------------------------------------51
3.5.4 端点路由消息---------------------------------------------------------------52
3.5.5 消息(Message)----------------------------------------------------------53
3.6 JXTA Content Manage Service(CMS)------------------------- -------------------54
3.6.1 CMS概述--------------------------------------------------------------------54
3.6.2 CMS简单搜索-----------------------------------------------------------55第四章 P2P软件设计-------------------------------------------------------------------56
4.1 需求分析----------------------------------------------------------------------------56
4.2 类设计-------------------------------------------------------------------------------56
4.3 程序运行效果----------------------------------------------------------------------65
第五章 结论------------------------------------------------------------------------------------67
参考文献------------------------------------------------------------------------------------68
致谢------------------------------------------------------------------------------------------69
附件------------------------------------------------------------------------------
绪论-------------------------------------------------------------------------------------1
P2P发展简史------------------------------------------------------------------------1
1.2 P2P应用程序的用武之地 ---------------------------------------------------------4
1.3 P2P技术的动力 -------------------------------------------------------------------5
P2P体系结构---------------------------------------------------------------------6
2.1 P2P网络------------------------------------------------------------------------------7
2.2 P2P如何形成动态网络-------------------------------------------------------------9
2.3 节点自制-----------------------------------------------------------------------------14
2.4 支持混合模型-----------------------------------------------------------------------15
第三章 JXTA技术----------------------------------------------------------------------------20
3.1 JXTA是什么------------------------------------------------------------------------20
3.2 JXTA的概念------------------------------------------------------------------------22
3.2.1 Peer(对等机)---------------------------------------------------------------22
3.2.2 Peer Group(对等组)-------------------------------------------------------23
3.2.3 Endpoint(端点)-------------------------------------------------------------23
3.2.4 Pipe(管道)------------------------------------------------------------------24
3.2.5 Advertisement(广告)------------------------------------------------------25
3.2.6 Message(消息)-------------------------------------------------------------26
3.2.7 Rendezvous Peer(集合点)-----------------------------------------------26
3.2.8 Router Peer(路由Peer)-------------------------------------------------28
3.29 Gateway Peer(网关Peer)--------------------------------------------------28
3.3 用于通信的Peer-------------------------------------------------------------------29
3.3.1 防火墙------------------------------------------------------------------------29
3.3.2 NAT(网络地址转换)------------------------------------------------------29
3.3.3 代理服务器------------------------------------------------------------------30
3.3.4 DHCP(动态IP分配)-----------------------------------------------------30
3.3.5 网络的不稳定---------------------------------------------------------------31
3.3.6 网关问题---------------------------------------------------------------------31
3.4 Peer和对等组----------------------------------------------------------------------32
3.4.1 Peer和用户的关系---------------------------------------------------------32
3.4.2 对等组的必要性------------------------------------------------------------32
3.4.3 JXTA应用程序与对等组-------------------------------------------------34
3.4.4 对等组的成员资格---------------------------------------------------------34
3.4.5 对等组的服务---------------------------------------------------------------35
3.5 广告(Advertisement)-------------------------------------------------------------37
3.5.1 广告的类型------------------------------------------------------------------37
3.5.2 模块(Module)广告-------------------------------------------------------41
3.5.3 管道广告---------------------------------------------------------------------51
3.5.4 端点路由消息---------------------------------------------------------------52
3.5.5 消息(Message)----------------------------------------------------------53
3.6 JXTA Content Manage Service(CMS)------------------------- -------------------54
3.6.1 CMS概述--------------------------------------------------------------------54
3.6.2 CMS简单搜索-----------------------------------------------------------55第四章 P2P软件设计-------------------------------------------------------------------56
4.1 需求分析----------------------------------------------------------------------------56
4.2 类设计-------------------------------------------------------------------------------56
4.3 程序运行效果----------------------------------------------------------------------65
第五章 结论------------------------------------------------------------------------------------67
参考文献------------------------------------------------------------------------------------68
致谢------------------------------------------------------------------------------------------69
附件------------------------------------------------------------------------------