The File Sharing System Based on P2P

Author
WangHaiYan
Advisor
HuangYongPing
School
Jilin University
Major
Applied Computer Technology
Classification
TP393.09 The application of computer network
Degree
Master's thesis
Year
2007
Downloads
752
Citations
4

Request the full text

Abstract

With the development of information technology, people have the biggerrequirement to get network resource.P2P comes to us. Contract to traditionalC/S pattern, because P2P doesn’t depend on Server completely, the system’sbottleneck has been solved, and the stability of network has beenimproved.P2P also provides the new way to communicate directly for theusers. They can transfer file directly without any middle tache, which makesthe network’s sharing and freedom come true. P2P’s appearance is a bigimprovementandchangeforthedevelopmentofnetwork.P2P is decentralizing network. It make user use the files throughconnecting many PCs without using centralized Server. In recent years,P2Phas a great growth.P2P has some successful softwares in file sharing, equitycompute, Instant message and cooperation operation and so on, this providesconvenience for network users. At present, there are three popular instructuresin using, pure P2P modeling, centralizing P2P modeling and mixed P2Pmodeling. Mixed P2P modeling combines the advantages of the former twoonesmentionedabove. It usesservertostorefileinformation,provides thefilesearching, but, files are stored in the Client, which make P2P fancier’s favorandlove.P2P has great advantages in file sharing application. Now, many filesharing software and protocol have been used. For example, Napster, Kazaa,Gnutella etc. However, eDonkey 2000 protocol is one of the most successfulfile sharing protocols. It uses separate file sharing protocol of decentralizingserver. On the contrary to Gnutella, it isn’t completely decentralized. Because it uses Server. Contrast to Napster. It doesn’t use single server, uses the serverof super user used, and provides the communication between Servers.Different with Kazaa,Morpheus, Gnutella these P2P protocols, eDonkeynetwork is C/S based on structure, server likes super node of Kazaa, but theydon’t share any files, and only manage information distributing. It looks likeseveral central dictionaries, and stores the sharing files and Client informationthat file stored. In the eDonkey network, every Client is the node of sharingdata. Their files make indexes in Server. If they want to find a segment of afile, they must connect to a Server using TCP, or they send a short search tooneormoreserverstogettheClientinformationofsharingthefile.To get the file information quickly, we must study search arithmetic. Iuse Lucene in my system. The searching arithmetic belongs index searches, itmeans that doing a whole text index for file and character token,and make aquicklyindex.Thesearchingofthe paperaims to providethesearchingfor filename,file size and file extend name.When the searching bases the file name,itis important to cut the name correctly.However,Lucene is limited on thesupportingof the cutting words have studies the implementation of the cuttingChinese words, the basis methods and the technology,and basing on these, Ihave improved the Lucene and used the cutting words based ondictionary.Firstly,I created a dictionary, and then created a words tree.Whencutting the words, I use the way of matching maximum words, and make aindex ofthecuttedwords.Bythis way,the system provides thequicksearchingforthefiles.Thepaperresearches the basis theoryofP2P,implementationinstructure,the character and development future. I deeply understand the advantagement and disadvantage of existing P2P file sharing systems, analyze eDonkeycontent and implementation mode, study Lucene searching theory and codeimplementing, improve the cutting words for Chinese, and use the cuttingwords based on dictionary. This can improve the efficiency of file searchingand assure the correctness of the file searching. It aims to provide file sharingsupportforenterpriseofficesystemofLAN,makegettingfileandinformationconvenient.Finally, I use Java, based on eDonkey and P2P mixed instructure, useLucene searching arithmetic and the cutting words based on dictionary, andfinally succeed in implementation a file sharing system of LAN office. Thesystem stores basis informationofsharingfileof everyclient andprovides filesearchingbyusing a Server, but file is stored in the Client. When Client sendsthe request of file searching, server searches the requested file in the database,and then sends the file location of Client. By this way, the Client can get thelocationinformationoffilestoried;thetwoclientscancommunicatewitheachother directly. The system also provides stop-continue function to support filethat is not completed to continue download, and uses Lucene and the cuttingwordsbasedondictionarytoimproveefficiencyoffilesearching.Several points need say, because of the system are application of LAN,we assume that every user is creditable, that means all communications aresafe. When the size of file is too large, it is necessaryto download from manyclients. Since the time is limited, the system doesn’t contain these functions, itneedbestudiedinfuture.The system succeed in providing excellent support to enterprise officesystem of LAN, and help employee search file, so it is convenient to use files by the system;It provides the function of stop-continue to help employeetransferalargesizefile.Thesystemusesthecuttingwordsbasedondictionary,and improves the efficiency and correctness of the file searching ;Because theServer is responsible for storing the information of file name and location, theserver doesn’t need have high load and configure, this saves expending tosome extent;The system uses the simple menu operation to provide allfunctions,so,itisveryconvenientfortheusers.

Table of contents

Summary 4-7 first chapter 7-9 1.1 LAN file sharing system development background 7-8 1.2 article The main task of 8 1.3 The main organizational structure 8-9 Chapter P2P file sharing system overview 9-20 2.1 P2P Technical Overview 9-16 2.1.1 What is P2P 9 2.1.2 P2P characteristics and type of application 9-11 2.1. 3 P2P network model 11-15 2.1.4 P2P Present and Future 15-16 2.2 P2P file sharing system outlined 16-20 2.2.1 file sharing system development process 16-17 2.2.2 currently existing file sharing system 17-19 2.2.3 file-sharing system faces Problem 19-20 Chapter P2P file sharing system key technology 20-34 3.1 file sharing protocol-eDonkey 20-24 3.1 .1 eDonkey protocol introduced 20-21 3.1.2 Protocol Description 21-23 3.1.3 eDonkey advantage 23-24 3.2 Lucene Research 24-33 3.2.1 Overview of existing algorithms 25-26 3.2.2 Lucene Overview 26-28 3.2.3 Chinese word 28-31 3.2.4 Lucene algorithm advantage 31-33 3.3 Lucene algorithm 33-34 Chapter documents sharing system design 34-45 4.1 file-sharing system development needs 34-35 4.2 system flow diagram 35-37 4.3 system overall design 37-45 4.3.1 Technical Overview 38-39 4.3.2 client 39-41 4.3.3 server 41-42 4.3.4 Lucene-based Chinese word segmentation to improve the design 42-45 Chapter file sharing system implementation 45-62 5.1 overall implementation 45-46 5.2 client 46-52 5.3 server 52-55 5.4 Lucene-based Chinese word segmentation to achieve 55-59 5.5 file-sharing system partially achieved renderings 59-60 5.6 inet file sharing system summary 60-61 5.7 of the system Several improvements and outlook 61-62 References 62-64 Summary 64-67 Abstract 67 - 71 Thanks 71-72 instructor and author 72

Related dissertations

  1. The Design and Implementation of Internal File Sharing System of Enterprise Based on P2P
  2. Research on Kev Technologies of Content Distribution in P2P Network
    ZhangJianWei ·Zhejiang University ·2013 ·Doctoral dissertation
  3. Zhong Shan City Bureau of Public Security of Network Information Retrieval and File Sharing System Design and Implementation
  4. Design and Implementation of P2P Based on Full Text Retrieval System
    MengFanChao ·Jilin University ·2013 ·Master's thesis
  5. The Design and Implementation of Campus Network Resource Sharing and Interaction System Based on JXTA
    LiuJiang ·Tianjin University ·2012 ·Master's thesis
  6. Load Control of Seed Node and Protection of Resources for P2P File Sharing System
  7. The Design and Implementation of File Sharing System Based on Peer-to-Peer Network
    ZhaoLiMing ·Shandong University ·2012 ·Master's thesis
  8. Research on Routing and other Key Technologies in Peer-to-Peer Networks
  9. Microfinance Wholesale Mechanism Research and Construction Analysis
  10. The Investigation Report of P2P Lending
  11. Risk Management of P2P Network Financing Mode
    WangSheng ·Zhejiang Sci-Tech University ·2014 ·Master's thesis
  12. The Construction of P2P Networks Lending Risk Management System in China
    LuoYang ·Zhejiang Sci-Tech University ·2014 ·Master's thesis
  13. Research on Knowledge Sharing Model of Semantic Community Based on P2P Networks
  14. Design and Realization of Information Navigation System Based on the Campus Network
    YuLeiLei ·Harbin Engineering University ·2013 ·Master's thesis
  15. The Application of P2P Traffic Identify and Monitoring Technology In the Network Operation
  16. Design and Implementation of P2P-VoD System Based on BitTorrent
    ZhuangYingJie ·Northeastern University ·2011 ·Master's thesis
  17. Study on Community-Based Information Retrieval System in Peer-to-Peer Networks
  18. Research on Game Server Architecture Based on Kademlia
    ZhongZuoLong ·Donghua University ·2013 ·Master's thesis
  19. The Research on WAN Distributed Storage Technologies Based on P2P Architecture
    YangLei ·Hunan University ·2013 ·Doctoral dissertation
  20. Research and Improvement of Distributed Lookup Protocol Based on Chord
    LiaoXiaoNa ·Tianjin University ·2012 ·Master's thesis