基于P2P技术BitTorrent客户端软件的实现

上传人:笛音 文档编号:36252102 上传时间:2018-03-27 格式:DOC 页数:92 大小:1.83MB
返回 下载 相关 举报
基于P2P技术BitTorrent客户端软件的实现_第1页
第1页 / 共92页
基于P2P技术BitTorrent客户端软件的实现_第2页
第2页 / 共92页
基于P2P技术BitTorrent客户端软件的实现_第3页
第3页 / 共92页
基于P2P技术BitTorrent客户端软件的实现_第4页
第4页 / 共92页
基于P2P技术BitTorrent客户端软件的实现_第5页
第5页 / 共92页
点击查看更多>>
资源描述

《基于P2P技术BitTorrent客户端软件的实现》由会员分享,可在线阅读,更多相关《基于P2P技术BitTorrent客户端软件的实现(92页珍藏版)》请在金锄头文库上搜索。

1、- I -摘摘 要要P2P 技术存在已久,其第一次实际使用可以追溯到 1979 年的 Usenet 新闻服务系统。随着 1998 年出现的音乐共享软件 Napster 的流行,着眼于分布式数据共享的 P2P 技术得到了迅猛的发展,并日益呈现出取代传统的 C/S 文件共享模式的趋势。BitTorrent 是 P2P 技术在文件共享领域最成功的代表之一。BitTorrent 是一个开放的文件分发系统,它基于两个通信协议并由几种分工不同的网络节点组成。不同于普通的 http 或者ftp 文件共享方式,BitTorrent 采用一种全新的模式:资源的发布者最少只需要上传一份完整资源的数据量,之后的数据

2、交换完全可以在 BitTorrent 下载者之间进行。本文将详细分析BitTorrent 文件分发系统的关键部分 123456BitTorrent 协议客户端的实现。本文从 P2P 的基本概念开始,首先介绍 BitTorrent 文件分发系统的组成,之后在此基础上解析 BitTorrent 的两个重要协议,最后重点分析一个轻量型 BitTorrent 协议客户端的实现。分析依照软件工程的思想,首先描述客户端的总体框架,包括功能模块、数据流和主程序的执行流程。在总体框架的基础上,具体分析客户端的各个功能模块的实现,其中将会重点讨论两个算法:piece 选择算法和 peer 选择算法,这两个算法是

3、 BitTorrent 的核心,分别在piece 维护模块和 peer 维护模块里实现。【关键词关键词】P2P BitTorrent 文件分发系统 文件分发协议 客户端 GTK - II -ABSTRACTP2P technology has existed for a long time, its first actual use can be traced back to 1979, the Usenet news service system. Since the music-sharing application Napster designed in 1998 became popu

4、lar, P2P technology focusing on distributed data-sharing has been in rapid development and with a tendency to replace the traditional C / S file-sharing model gradually.BitTorrent is one of the most successful classifications of P2P technology in file-sharing field. It is an open file distribution s

5、ystem, which is based on two communication protocol and consists of several network nodes in different roles. Unlike ordinary http or ftp file-sharing manner, BitTorrent uses a new model: the publisher of a resource only needs to upload at least a whole resource. After that, the exchange of data can

6、 be just done between the BitTorrent downloaders. This article will detailedly analyse the implementation of the pivotal part of BitTorrent file distribution system, a BitTorrent client. This article will begin with the P2P basic concept, and then introduce the constitutes of the BitTorrent file dis

7、tribution system. On the basis of that, it will analyse the two important Algorithms of BitTorrent. And finally it will come with focus on the implementation of a lightweight BitTorrent client. In accordance with the idea of software engineering, the framework of the client will be described first,

8、including functional modules, data flow and the process of the main thread. Basing on the framework, this article will analyse the implementation of the functional modules individually. This part will focus on two algorithms: piece selection algorithm and peer selection algorithm. These algorithms a

9、re the core of BitTorrent which are implemented in the piece-maintaining modules and the peer- maintaining module respectively.【Key words】 P2P BitTorrent file distribution system file distribution protocol client GTK- III -目目 录录绪 论.1第一节发展现状.1第二节论文组织与结构.2第一章P2P 概述.4第一节P2P 定义 .4第二节从 C/S 到 P2P .5第三节P2P

10、 技术特点 .6第四节P2P 的应用 .7第五节本章小结.8第二章BitTorrent 文件分发系统.9第一节BitTorrent 概述 .9第二节基本原理.10一、P2P 的关键技术 .10二、BitTorrent 对关键技术的实现 .12第三节文件分发系统的组成.13第四节一个完整的文件分发过程.14第五节本章总结.15第三章BitTorrent 文件分发协议.16第一节术语解释.16第二节Tracker HTTP/HTTPS Protocol.17一、请求报文.17二、响应报文.19第三节Peer wire protocol.20一、peer 的状态 .20二、peer 通信 .21三、重要算法.23第四节本章总结.25- IV -第四章系统总体设计 .26第一节程序简介.26一、开发环境.271、操作系统.272、开发工具.273、实现语言和库.27二、功能简介.28三、不足与改进.28第二节功能模块.

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 商业/管理/HR > 企业文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号