1 / 18

P2p 技术

P2p 技术. P2p 描述 1.p2p 概念 2.p2p 网络模型 3.p2p 技术应用 Jxta 描述 1.Jxta 概念 2. 层次结构 3. 核心构造 4.Jxta 协议. PART 1. P2p 描述. 1.p2p 概念. P2p ( peer to peer) 也叫做对等网络,它由若干互联的计算机组成。它是一种分布式的网络。它取消了原有的 client/server 模式,作为 p2p 网络中的对等体 (peer) 成员,可以交互式的扮演 client 或者 server 。网络中的任意两个对等体可以建立连接,相互分享彼此的资源。.

nuri
Download Presentation

P2p 技术

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. P2p技术 • P2p描述 1.p2p概念 2.p2p网络模型 3.p2p技术应用 • Jxta描述 1.Jxta概念 2.层次结构 3.核心构造 4.Jxta协议

  2. PART 1 P2p描述

  3. 1.p2p概念 P2p(peer to peer)也叫做对等网络,它由若干互联的计算机组成。它是一种分布式的网络。它取消了原有的client/server模式,作为p2p网络中的对等体(peer)成员,可以交互式的扮演client或者server。网络中的任意两个对等体可以建立连接,相互分享彼此的资源。

  4. 2.P2p网络模式 P2p网络模式大致分为: 1.集中式网络 2.纯分散式p2p网络(非结构化拓扑) 3.混合式网络

  5. 网络模型图 优点:具有高效的检 索能力。 缺点:要是中央服务器瘫痪了,易使整个网络崩溃。不利于网络规模的扩展。 集中式网络 P S S P P S P P P

  6. 网络模型图 优点:任意pear可以建立连接。 缺点:网络节点不易管理,且安全性能差。 纯p2p网络

  7. 网络模型图 是集中式网络和纯p2p网络的中和。 吸取了集中式网络中检索快速的有点,克服了纯p2p网络节点难以管理的缺点。 具有较高的安全性 混合式网络

  8. 3.P2p技术应用 • P2P分布式存储 • 计算能力的共享 • P2P应用层组播 • 发展用于即时通讯,文件共享,数据存储等等的p2p软件

  9. PART 2 JXTA描述

  10. 1.JXTA概念 • JXTA是为了构建P2P网络而制订的一组协议,是解决构建P2P网络必须要解决的问题的方法。 其中并定义了六个协议:1.对等体发现协议;2.对等体解析协议;3.对等体信息协议;4.对等体成员资格协议;5.管道绑定协议;6.端点路由协议。 Notes: Have you understand the definition thoroughly? Why the P2P network need the six? What does each one do for?

  11. 2.JXTA层次结构 • 核心层:它包含所必须要的核心功能,包括peer对等组,peer发现,peer通信,peer监视等。 • 服务层:提供了访问JXTA协议的接口,包括p2p网络不式必需的,但很通用的功能,如,查找,共享,索引,代码缓存等。 • 应用层:它使用服务层来访问网络和JXTA提供的功能,包括应用JXTA服务开发出来的完整的p2p应用程序。 Application Service/API Core Notes: Is it a structure like this?

  12. 层次结构图 Notes: I see, pleas pass by my last question.

  13. 3.JXTA核心构造 • 对等实体和对等实体群:JXTA对等实体可以是能够在网络上使用JXTA协议进行通信的任何对象。对等实体群是由一些有共同兴趣的共享资源和服务的对等实体所构成的集合团体。 • 管道(Pipes):在JXTA网络环境中,对等实体彼此之间建立的虚拟的、用于单向异步通信的抽象逻辑通道被称为管道。 • 消息(Messages):JXTA消息是从一个对等实体通过管道传输到另一个对等实体的数据包.。

  14. 广告(Advertisements):广告用于公布和发现任何JXTA资源的特性(如对等实体、对等实体群、管道、服务、代码/数据等)。广告(Advertisements):广告用于公布和发现任何JXTA资源的特性(如对等实体、对等实体群、管道、服务、代码/数据等)。 • 服务(Services ) :对等实体和对等实体群都可提供服务。 • 代码或数据(Code/Data or Codats):是代码,必要时,它们可以被公布、发现和复制。

  15. 标志符(Identifiers):标志符用于指明资源而非物理网络地址,必须保持其在JXTA网络中的惟一性和持久性。标志符(Identifiers):标志符用于指明资源而非物理网络地址,必须保持其在JXTA网络中的惟一性和持久性。 • 端点:端点是网络上的目的地,可以用网络地址表示。 • 路由器:在JXTA网络中,转发数据包的任何对象都可称为路由器。

  16. Follow ups • Target: Learn jxta inside by analyzing demo. you follows these steps: • 2. download the source code of JXTA with application/demos • Resource[4] • 1. review projects listed in next page • Resource [3] • Two categories suggested: apps and demos • 3. select ONE from them which you analyze • Try to get it run at first. You can use your computer and yu wei’s computer. The password is yuwei123. • Please tell me what sample you choose. I will analyze it together with you. • Then, start analyze the architecture and read/debug the source code to how it works in each level(层次). Besides, let you understand the implementation of the six protocols in Page 10 • Write down the knowledge you have learned and write test samples to practice your coding skills. • 4. Design our owner file sharing system (maybe other things that can make money) • To be determined (TBD) • Refer the [5]-[8] • 5. develop our designed system

  17. Resources • Open Source Project: JXTA • HomePage • [1]http://www.jxta.org/ • [2]https://jxta.dev.java.net/ • Projects supported by JXTA • [3]http://www.jxta.org/servlets/ProjectList • Source code of JXTA implementation • [4]http://download.jxta.org/project/www/download.html • Commercial application of JXTA • [5]http://www.sun.com/2003-0506/feature/ • [6]http://www.sun.com/br/retail_512/article_nextgen.html • [7]http://www.sun.com/br/retail_512/feature_jxta.html • [8]http://www.sun.com/aboutsun/media/features/soto_qa.html

  18. end

More Related