Research of BitTorrent’s Principle and Algorithm and Its Performance Optimization

Author
WangZhanMing
Advisor
ShiYongGe
School
Nanchang University
Major
Applied Computer Technology
Classification
TP393.093 File transfer program (FTP)
Degree
Master's thesis
Year
2007
Downloads
469
Citations
10

Request the full text

Abstract

The BT technology is a new peer-to-peer resource sharing technology with the "the connection more, downloading is quicker" feature. Along with the BT technology widespread application, the BT technology has become one of indispensable downloading methods on the Internet. In this paper, BT technology was researched deeply. The speed of BT downloading the document is enhanced. It has the positive practical value.Firstly, in this paper, by analysising BitTorrent client and server source code detailedly, the key principles and core algorithms of BitTorrent was understanded deeply. After analysing and data testing the pieces priority algorithm, we found that the time complex of algorithm has optimizing space. At the same time, some expand protocols especially fast downloading pattern(this pattern has been accepted by the BT official protocol)were analysed deeply.Following that, in allusion to the shortage of the pieces priority algorithm, a optimizing scheme was raised. This scheme reduces the time complex of algorithm, enhances the uniformity of document peers in the system in a certain extent, and as a result improves the speed of downloading documents. Moreover, based on fast downloading pattern, a new pattern named fast downloading pattern based on priority was brought out. This pattern can set and adjust the priority of point in the system dynamic. As a result, the highest priority point can obtain the best BT servers, namely holding fast downloading speed and more points for downloading. This can achieve the policy of "encouragement making seed", then the quantity of seed is increased in the whole system, thus the document downloading speed of the overall system is enhanced greatly.Finally, the optimizing scheme designed by this paper was realized and tested. The result of testing shows that the optimizing pieces priority algorithm has lower time complex than the old one, and it can improve the speed of downloading document in the system effectively. At the same time, the fast downloading pattern based on priority which brought by this paper can improve the downloading speed of the high priority node availably, shorten downloading time. Along with seed quantily increasing, the downloading speed of others nodes is increased. That will achieve the aim of improving the downloading speed of whole system.

Table of contents

Abstract 3-4 ABSTRACT 4-8 Chapter 1 Introduction 8-12 1.1 Background 1.2 research status 8-9 1.3 topics sources 9-10 1.4 Research Significance 10 1.5 I mainly work 10 organizational structure 1.6 papers 10-12 Chapter 2 BitTorrent System Overview 12-26 2.1 BitTorrent protocol 13-21 2.1.1 Bencoding 13-14 2.1.2 file format 14-15 2.1.3 node communication protocol tracker 15-17 communication protocol between nodes 2.1.4 17-21 2.2 BitTorrent client 21-24 2.2.1 client 21-22 2.2.2 client agreement 22 2.2.3 client running mechanism 22 2.2.4 client hierarchy 22-24 2.3 BitTorrent Tracker server 24-26 2.3.1 server main function 24 2.3.2 server protocol 24 2.3.3 server running mechanism 24-25 2.3.4 server hierarchy 25-26 Chapter 3 BitTorrent code research and algorithm analysis 26-44 3.1 client 26-33 3.1.1 main function of class analysis 26-29 3.1.2 The main algorithm analysis 29-33 3.2 server 33-39 3.2.1 main function of class analysis 33-38 3.2.2 The main algorithm analysis 38-39 3.3 BitTorrent protocol extensions 39-44 Chapter 4 the BitTorrent performance optimization and achieve 44-62 the of 4.1 fragments priority algorithm optimization 44-53 4.1.1 Detailed analysis 44-51 the algorithm 4.1.2 optimized 51-53 4.2 rapid download mode optimized 53-58 4.2.1 Detailed analysis 53-54 4.2.2 priority-based fast download mode 54-58 4.3 test results and analysis 58-62 4.3.1 fragment priority algorithm 58-59 4.3.2 priority-based fast download mode 59-62 Chapter 5 Summary and Outlook 62-64 5.1 summary of the work 62-63 5.2 research outlook 63-64 Acknowledgements 64-65 the References 65-67 studying for a degree during the research 67

Related dissertations

  1. An Empirical Analysis of the Effect That the Fluctuation of RMB Exchange Rate Has on Chinese Import and Export Trade Structure
    ZhangFaDong ·Ocean University of China ·2013 ·Master's thesis
  2. Research on the Effects of RMB’s Exchange Rate Change to Anhui’s Export Commodity Structure
    ZhuYaChao ·Anhui University ·2014 ·Master's thesis
  3. The Study on Chinese Service Internal Structural Optimization Through Foreign Direct Investment
  4. The Study on Analysis of Rural Tourism Spatial Structure in Jinhua
    ShenJia ·Zhejiang Normal University ·2013 ·Master's thesis
  5. A Study on Optimizing of Coastal Resort Management Model
    JieFangJun ·Xiamen University ·2013 ·Master's thesis
  6. Research on the Responsibility Cost Management Reports Systems
  7. Study on the Relationship between Equity Incentive Plan and Deviationdegree of the Capital Structure
    MaLi ·Anhui University of Finance ·2014 ·Master's thesis
  8. Study on Optimization of employee training scheme of Bank of Shizuishan
    WangJianGuo ·Northwestern University ·2013 ·Master's thesis
  9. The Optimize of Tsingtao Brewery Comprehensive Budget Management System
    LiKaiMing ·Ocean University of China ·2012 ·Master's thesis
  10. A Study on Export Marketing Channel of Agrochemical Manufacturing Company R
  11. Kemp Polytron Technologies Inc customs management optimization in
    YangZuo ·Central South University ·2012 ·Master's thesis
  12. The Design of Distributed R&D Resource Operation Management Mode for SANY Group
    XiaoLi ·Central South University ·2013 ·Master's thesis
  13. Research of Optimizing Internal Control of Z State-owned Grain Enterprise’s Affiliated Depot
  14. A Study on How to Regulate and Control the Land-using Structure of the Satellites of Beijing
    TianCheng ·Chinese Geology University (Beijing) ·2013 ·Master's thesis
  15. Evolution and Regional Defference of Urban Function Structure in China
    LiQiang ·Shandong Normal University ·2014 ·Master's thesis
  16. A pipeline company inventory management optimization
    GanFen ·Southwest Petroleum University ·2013 ·Master's thesis
  17. The efficiency of financial resource allocation of Shaanxi Province
    XuYuanYuan ·Northwestern University ·2014 ·Master's thesis
  18. The Reseach on Media Ecology of Chinese Microblog
    ZhuangZuoHong ·Hunan University ·2013 ·Master's thesis
  19. Design and Implementation of P2P-VoD System Based on BitTorrent
    ZhuangYingJie ·Northeastern University ·2011 ·Master's thesis
  20. Research on Kev Technologies of Content Distribution in P2P Network
    ZhangJianWei ·Zhejiang University ·2013 ·Doctoral dissertation