节点文献

基于P2P的网络数据传输的研究与实现

Research and Implement of Data Transmission on Network Based on P2P

【作者】 毛毛

【导师】 陈辉;

【作者基本信息】 武汉理工大学 , 计算机应用技术, 2009, 硕士

【摘要】 随着网络教学平台应用的发展,原来的浏览器/服务器(B/S)和客户端/服务器(C/S)结构设计方法对服务器性能的依赖所产生的弊端日益显现。P2P技术以其具有的非中心化基本特点,带来了在可扩展性、鲁棒性等方面的优势,它的蓬勃发展为网络教学平台带来更广阔的发展空间。本课题主要研究了如何实现基于P2P技术的网上数据传输。在P2P技术的应用过程中,需要考虑的问题甚多,包括网络中共享文件的发现机制,数据传输的完整性和传输过程中的效率和安全性问题,还包括网络中节点的负载均衡问题等等。本文主要完成了下面几个工作:1)采用基于超节点的混合型P2P网络拓扑结构,列出常见的资源定位搜索算法,进行比较,并选择Chord算法作为本系统资源定位搜索算法的基础,做出改进。2)设计系统框架。将P2P应用系统的结构分为拥有设置和显示功能的用户应用层,拥有文件共享机制和节点发现及超节点选择机制的通知层和拥有文件上传和下载功能的网络传输层。从功能上大致描述了各个层的设计思想。3)根据设计的文件传输系统的体系框架,对使用到的关键技术的详细设计和实现做出说明,包括系统结构中超级节点的选择,节点间网络的连接以及文件在节点间的传输,并附带部分代码展示了关键技术的实现细节。本课题采用了基于套接字的网络通信技术、动态链接库技术、多线程技术、网络并发控制、内存有效管理以及多种数据结构。为将来网络教学平台的系统开发提供了必要的技术支持。

【Abstract】 With the development of the Network teaching platform, the disadvantage of the traditional designment based on Browser-Server and Client-Server structure appear. P2P has the advantage in expandability and robustness for its structure. The development of peer-to-peer technique provides the desigment of the platform more extensive development space. This project mainly investigates the design and exploration of how to transmit data using p2p technique.In the course of using p2p technique, we should take many problems into consideration, such as how to find the files shared on network, how to make sure the data transmitted is unabridged and the course is safe. We also should take the load-balancing into consideration. This thesis mainly includes the following contents:1) Use the super-node based P2P network topology structure. List some familiar source-searching algorithms. Compare these algorithms and choose Chord as the base algorithms in this system.2) Design the frame of the system. According to the problems refered in previous segment. This thesis partition the whole system into three layers. The first is the user application layer which provides the setting and displaying function. The second is the notify layer which provides the file-sharing、node-discovering and super node choosing mechanism. And the third is the network transport layer which provides the function of file submitting and downloading. And then describes designment of all the three layers in general.3) Introduce some key-techniques involved in the p2p data transport system. Include the choosing of super node, the file sharing and searching method, the link between nodes and the data transport among nodes. This thesis also includes some codes in order to describe the implement of the key- techniques.This project adopts network communication technologies based on socket, dynamic link library technologies, multi-threading processor technique, the controlling of network intercurrent, effective memory management and some data structures, providing effectual technical support for the development of the Network teaching platform in the future.

【关键词】 对等网超节点负载平衡文件搜索
【Key words】 peer-to-peersuper nodeload balancingfile searching
节点文献中: