Boost Based High Performance Tracker Server Design & Implementation and Stress Test
- Author
- XuZuo
- Advisor
- HuangJiaQing
- School
- Huazhong University of Science and Technology
- Major
- Communication and Information System
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2008
- Downloads
- 64
- Citations
- 2
Abstract
Boost is an open source and highly portable C++ library. It is intended to be widely useful, supporting function binding, smart pointer, various data structures, graph algorithms, string processing, grammar parsing, network programming, and so on. ASIO is part of Boost library which provides developers with an asynchronous I/O model.Tracker server cluster is an important part of a peer to peer application. It traces the resources information held by each peer and provides query services to all peers in the network. As the entry of a peer to peer network, tracker server cluster is required to process much faster and more robust with higher capacity. These features are critical for a tracker server cluster. This thesis analyzes how to design and implement a capacity-scalable tracker server cluster with the library mentioned above.Firstly, from robust aspect, this thesis compares the multi-thread model and the asynchronous I/O model; then from performance view, compares the insertion, deletion, query operations between hash map of STL (Standard Template Library) and multi index container with hashed index of boost library. Finally, Boost with Multi-Index Container library is chosen to establish the mappings between peers and resources; also optimizations are applied considering the fact that the number of resources is greatly larger than the number of users.At last, for the purpose of stress testing and accuracy testing, based on JSON grammar, the thesis suggests a script that supports pattern and expression evaluations, to describe the testing progress, including packets definition, packets sending frequencies, peers’life cycle and all the other necessary parameters needed.
Table of contents
Abstract 4-5
ABSTRACT 5-9
1 Introduction 9-11
1.1 topics background 9
1.2 significance 9-10
1.3 content and structure of this study 10-11
2 Technical background 11-32
2.1 Boost introduction 11-18
2.2 JSON introduce 18
2.3 ASIO introduction 18-22
2.4 server concurrency model 22-31
2.5 Summary 31-32
3 system analysis and architecture 32-47
3.1 system modules interact 32-33
3.2 server's message Category 33-35
3.3 internal data structures 35-40
3.4 server message processing 40-41
3.5 server architecture 41-42
3.6 security issues 42-43
3.7 server statistics collection 43-46
3.8 chapter Summary 46-47 <br / > 4 test module analysis and design 47-55
4.1 requirements Analysis 47-48
4.2 script syntax definition 48-51
4.3 design and implementation 51-54
4.4 Summary 54-55
5 system performance test 55-59
5.1 test UUIDHashSet 55
5.2 test server performance 55-57
5.3 online test a single server 57-58
5.4 Summary 58-59
6 Summary and Outlook 59-60
6.1 work Summary 59
6.2 development 59-60
Thanks 60-61 <br / > References 61-63
Related dissertations
- Image Retrieval Algorithm Based Image Intelligent Design
- The Research and Implementation of the Mobile Learning System on Android Platform
- The design of intelligent Home Furnishing system based on PSIA
- Implementation of the Direct Reporting Platform of Epidemic Based on Android
- The process of multi threading model (M:N) study
- The Design of Access Management&Monitoring System Based on Embedded Linux
- The Research and Design of Rank-Management System Based on ExtJS
- The Design and Implementation of Arauthoring Module of Industrial Support System
- The Client Research and Design of Electric Power Enterprise Production Management System Based on Android
- Research and Implementaion of Communication System Based on JSON
- Design and Implementation of a Web Application System Based on WCF and jqGrid
- Research and Implementation of Android Client of Enterprise Information Management System
- The Design and Implementation of Mobile Application "Moving"
- Design and Implementation of the Mobile Terminal Application Hotspot Based on Android Platform
- The Design and Implementation of the Kunming Railway Kunming Power Supply’s Test Data Processing and Analysis System
- The Design and Implementation of Mobile Learning Platform Based on Android
- Design and Implementation of Blog System Based on Node.JS
- Design and Realization of Storage Subsystem of Distributed Relational Database
- Design and Implementation of Android-Web Dual-mode Teaching Platform Based on MVC
- Scalable I / O research and reference implementation