The Design and Implementation of a BT Client for Linux
- Author
- ChenHua
- Advisor
- LuJianDe
- School
- Suzhou University
- Major
- Computer technology
- Classification
- TP393.093 File transfer program (FTP)
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 69
- Citations
- 1
Abstract
The communicating models in networks are more and more abundant. The typical communication model for many applications experienced from started when simple connection base a uniform protocol, to client/server-centered model that the server computer uses different protocols, finally returned P2P model that develops quickly today. P2P technology is a primary direction of communication for computer networks in the future, though there exist many technological problems waiting us to resolve. The BitTorrent (BT) among the P2P technology is very popular in the next-generation network technology research. When the BitTorrent is widely used, BitTorrent client has also been greatly developed, some of them are widely used by users while someothers have never even heard, they varies in functionality. Most of those products are running on Windows platform. Nowadays, Linux gets more and more popular, but there is a reality that it lacks of the P2P products such as BitTorrent. So that this author chooses to develop the BitTorrent client software under Linux is meaningful.This paper analyzes how the BitTorrent works, and describes the details of the BitTorrent protocol specification, B coding format, BitTorrent seed file structure, BitTorrent Client, the details of server communication in Tracker, and peer communication norms. The author compared the advantages and disadvantages of multiple BitTorrent clients, summed up the general function of BitTorrent clients, refined the core functionality of the BitTorrent program, and use C language to develop a BitTorent client under Linux. The implementation by this author is divided into five major modules: B coding analysis module, BitTorrent seeds (meta-information file) analysis module, BitTorrent Client and Tracker server communication module, BitTorrent client and BitTorrent client connection between the communication module (peer to peer), and the log module. The paper described the modules architecture and their implementation in detail.
Table of contents
Chinese Abstract 3-4
Abstract 4-7
first chapter 7-12
1.1 P2P Technology Overview 7 - 9
1.2 BitTorrent development status 9-10
1.3 The main contents 10-11
1.4 this structure 11-12
first two chapters BitTorrent content distribution system related research 12-26
2.1 BitTorrent system Introduction 12-15
2.1.1 BitTorrent system terminology 12-13 < br /> 2.1.2 BitTorrent system constitutes 13-15
2.2 BitTorrent protocol analysis 15-23
2.2.1 B coding 15-16 <br / > 2.2.2 meta information file 16
2.2.3 seed file structure 16-17
2.2.4 interact with Tracker 17-19
2.2.5 Peer communication protocol between 19-23
2.3 BitTorrent system's core algorithms and strategies 23-26
2.3.1 pipeline operations 23
2.3.2 file fragment selection strategy 23-24
2.3.3 choking algorithm 24-26
Chapter BT client under Linux overall design 26-32
3.1 system analysis 26-28
3.2 overall design 28-29
3.3 BT client's modular design 29 -32
Chapter IV module design and implementation 32-47
4.1 seeds parsing module design and implementation 32-33
4.2 bitmap management module design and implementation 33-34
4.3 error handling module design and implementation 34-35
4.4 running log module design and implementation 35-36
4.5 Peer management module design and implementation 36-38
4.6 message processing module design and implementation 38-39
4.7 buffer management module design and implementation 39-41
4.8 policy Management module design and implementation 41-42
4.9 connection Tracker module design and implementation 42-43
4.10 and peer exchange data module design and implementation 43
4.11 main function of the design and implementation 43-44
4.12 debug and test 44-47
first five chapters Summary and Outlook 47-50
5.1 Summary 47-49
5.2 Prospects 49-50
References 50 - 52
published during the master's degree ( hired ) papers 52-53
Thanks 53
Related dissertations
- Microfinance Wholesale Mechanism Research and Construction Analysis
- The Investigation Report of P2P Lending
- Risk Management of P2P Network Financing Mode
- The Construction of P2P Networks Lending Risk Management System in China
- Research on Knowledge Sharing Model of Semantic Community Based on P2P Networks
- The Application of P2P Traffic Identify and Monitoring Technology In the Network Operation
- Design and Implementation of P2P-VoD System Based on BitTorrent
- Study on Community-Based Information Retrieval System in Peer-to-Peer Networks
- Research on Game Server Architecture Based on Kademlia
- The Research on WAN Distributed Storage Technologies Based on P2P Architecture
- Research and Improvement of Distributed Lookup Protocol Based on Chord
- Research on Kev Technologies of Content Distribution in P2P Network
- Research and Implementatioil of Mobile Streaming Media Platform Based on Cloud Computing
- Research on the improvement of Chord algorithm in P2P network
- Research of Data Resources Sharing Based on P2P
- Zhong Shan City Bureau of Public Security of Network Information Retrieval and File Sharing System Design and Implementation
- Research of FTP Search Engine Indexing Technology Based on Kademlia
- Design and Implementation of P2P Based on Full Text Retrieval System
- Design and Implementation of Teaching Resources Service System Based on.NET
- Design and Implementation of2P Cache Speedup System in IP Metropolitan Area Network