Design and Implementation of P2P-based File Cooperation Platform System
- Author
- Zhang
- Advisor
- HuLiang
- School
- Jilin University
- Major
- Software Engineering
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 71
- Citations
- 0
Abstract
It is quite ironic that with the development of hardware, software and network, the traditional Client/Server(C/S) architecture network is becoming less and less suited to the recent situation due to the servers have taken too many tasks and responsibilities while resources in clients are mostly remained unused. If continuing, the network would confront a big“bottleneck”in the near future. At the point, adopting new network architecture becomes urgent. The Peer-to-Peer(P2P) network, in which every node is considered both server and client, offers us a good solution.Meanwhile, with the work more complex in the modern world, people have to cooperate to achieve some accomplishment. Under this circumstance, the Computer Supported Cooperative Work (CSCW), a whole new field in computer application, is invented and introduced. It did help corporations and organizations a lot. But the CSCW systems we usually use, which employ the C/S architecture, are problematic in some aspects. For example, the C/S would have difficulties in cooperating work within a large region, low fault tolerance, easy-involved in single-node failure and etc. Facing these problems, we try to introduce the P2P network in the CSCW system, and thus implement a“P2P File Cooperation System”. In this system, any PC could serve as the client at the same time as the workspace servers, information could also be saved in the server PC. This architecture relatively reduces the burden of servers and thus largely improves the system’s mobility and fault tolerance ability.To begin with,we propose the system’s general design and analysis, then the utilized technology is described. In the general design, the project is consist of four modules—user interface(frame) module, business logic module, business kernel module and transport module. The frame module mainly achieves the user interface, and it calls the business logic to implement the background functions, such as login and etc. This module is implemented by Windows Template Library. The business logic module is in charge of the data storing and reading process. It uses the interfaces provided by the business kernel to implement the logic function and contains number of different functions: administrator management, message management, real-time message, audio call, device management module and contact module. Business kernel module is implemented for file corporation related function, interfaces for transportation and so forth. Transportation module achieves the transport function. Among all above, I design and implement the interface and file management modules.Frame module is a very important module for the whole project. It is directly related to the user experience of this program. We try to design the user interface comely as well as easy-operated. It includes four parts: login frame, main frame, workspace frame and real-time message. The login frame is the first user interface of this project, and it helps the user log into the system. In this program, we have to design different background logic because the login process includes online-login and the offline-login. The main frame, which is consisting of tools menu, contact tree and etc, would pop up after the login frame. It is the interchange frame and helps the user find the functions they want, such as real-time message, opening up a workspace and so on. The workspace frame is for file cooperating. One could do things like setting up a workspace, inviting a contact into the workspace, co-editing files in the workspace and etc. The real-time message frame is for online chatting, including the text chatting and audio chatting. In order to keep the foreground and background working smoothly, we adopt Windows Multi-thread technique in our User interface design and implementation.The file management module is the core part of this project. It mainly solves the file synchronization problem. That is assume some users are in the same workspace and one are editing the a file, if he/she completes and saves it, the delta data has to be transferred to the others’client so the file would be the same in every nodes. It includes the file monitoring, the delta date patching and merging operations. Now the main-stream method is comparison algorithm, including Xdelta, Rsync, bsdiff, unixdiff and etc. While in this project, there are several factors that have to be considered. Firstly, the file types in the workspace are not all the same. So we need to find a method that could be adapted on all the types. Secondly, the number of files may be huge, which requires that algorithm to avoid the duplication. In this paper, by introducing the hash function in Blizzard Inc. MPQ, we propose an algorithm that could be used in our workspace. Through testing, the algorithm works rather well with a good efficiency.Finally, we summarize this thesis, offer a conclusion, and look forward to the future.
Table of contents
Summary 4-8
Chapter 1 Introduction 8-11
1.1 system development background 8-9
120 domestic and foreign research and development status of 9-10
1.2.1 domestic and foreign research and development status quo 9
1.2.2 The system technologies routes 9-10
1.3 of this paper work and organizational structure 10-11
Chapter 2
P2P document collaboration system technical presentations 11-26
2.1 Peer-to-Peer technology 11-15
2.1.1 P2P network technology, the basic concepts and features 11-12
2.1.2 P2P network structure 12-14
2.1.3 P2P network applications 14-15
2.2 JXTA technology 15-19
2.2.1 JXTA Overview 15-17
2.2.2 JXTA protocol 17-19
2.3 work together 19-21
2.3.1 The Computer Supported Cooperative Work 19
2.3.2 CSCW elements 19-20
2.3.3 CSCW classification 20
2.3.4 CSCW applications 20-21
2.4 Windows programs designed 21
2.5 development environment and tools 21-26
2.5.1 Visual Studio 2005 introduced 22
2.5.2 Windows Template Library 22-24
2.5.3 Oracle Berkeley Database 24-26
Chapter 3
P2P document collaboration system requirements analysis and architecture design 26-32
3.1 Needs Analysis 26
3.2 P2P document collaborative platform, system architecture design 26-32
3.2.1 logic design 27-28
3.2.2 architecture design 28-30
3.2.3 features modular design 30-32
Chapter 4 of the user interface module design and 32-52
4.1 user interface module design and task 32-33
4.2 login module design and 33-43
4.2.1 Functional Design 33-40
4.2.2 interface design 40-41
4.2.3 login module to achieve 41-43
4.3 main interface module design and 43-45
4.3.1 Functional Design 43
4.3.2 interface design 43-44
4.3.3 The main interface 44-45
4.4 workspace interface design 45-48
4.4.1 Functional Design 45-47
4.4.2 interface design 47-48
4.4.3 workspace interface to achieve 48
4.5 instant messaging interface design and 48-52
4.5.1 Functional Design 48-50
4.5.2 instant messaging interface detailed design 50-51
4.5.3 instant messaging interface 51-52
Chapter 5 of document processing module implementation 52-62
5.1 file management module objectives and principles 52
5.2 document processing management module structure design 52-54
5.3 files on the algorithm and design 54-60
5.3.1 Algorithm Overview 54
5.3.2 research status 54-55
5.3.3 file incremental calculation and file merging algorithm to achieve specific 55-60
5.4 key technical description 60-62
Chapter 6 Summary and Future Prospects. 62-64
6.1 summarize 62
6.2 Future 62-64
References 64-67
thank 67-68
Summary 68-70
Abstract 70-71
Related dissertations
- Design and Implementation of Digital Media Resources Collaborative Production Platform Based on SOA
- The Study of the Collaboration Mechanism for General Brower under DOA
- The System of Collaborative Text Editing Browser-based
- Research on Cooperative Editing Environment of Scientific Research
- Design and Implementation of the Collaboration System for Emergency Management
- Research and implementation of the public computer room management system based on CSCW
- Research and Development of Standard SCADA System and DCS Standardized Communication Interfac
- Research on Collaborative Work Mechanism in Architectural Design Based on Agent Technology
- Research on Multi-Disciplinary Oil Reservoir Resources Coordination Mechanism and the Implementation Technology
- Research on Several Key Issues of Collaborative Awareness in Ubiquitous Environment
- Research on Key Technology of Ontology Based Workflow Centric Collaboration
- Research on Distributed Cooperative Designing Model and Supporting Environment for Products
- Research on CSCW and Data Mining in the Internet Environment
- Virtual detection system in multi- domain feature model consistency
- Application of collaborative technology research
- Voice Tool on Enterprise Network
- Research on Model of Human-human Interaction Interface and Its Applications
- Some Key Issues in the Enterprise Cooperative Design
- Based component of the support groups work environment research
- Research on Key Techniques of Cooperative Design Environment for Battle Plan