Você está na página 1de 48

By: Abhishek Ashish Kumar Pandey Ingit Malviya Shekar M Under the guidance of Mrs. R Prabha HOD, Dept.

of CSE

Introduction

The

peer to peer(p2p) file-sharing application are becoming increasingly popular and account for more than 70% of the Internets bandwidth usage. studies show several hours depending on the level of network congestion or the capacity fluctuation.
Minimizing the file download time in stochastic P2P networks 3

Measurement

06/07/12

Remove

the problems faced by the High file downloading time. Removes the problems faced by streaming media without packet loss.
Centralized server system. The distributed nature of P2P

networks also increases robustness in case of failures by replicating data over multiple peers.
Minimizing the file download time in stochastic P2P networks 4

06/07/12

The

project aims at solving all the problems defined in the problem definition. implemented system is designed to work on windows platform. implemented system works on local area networks.
Minimizing the file download time in stochastic P2P networks 5

The

The

06/07/12

MODULE 1:
File

is divided into k chunks of equal size and k simultaneous connections are used . downloads a file from k peers at a time. Each peer sends a chunk to the client.

Client

06/07/12

Minimizing the file download time in stochastic P2P networks

MODULE 2:
File

is divided into many chunks and user downloads chunks sequentially one at time. client randomly chooses the source peer at each time slot and download the chunks from each peer in the given time slots.
Minimizing the file download time in stochastic P2P networks 7

The

06/07/12

MODULE 3:

File is divided into many chunks and user downloads chunks sequentially one at time. Whenever a user completes a chunk from its current source peer, the user randomly selects a new source peer and connects to it to retrieve a new chunk. Switching source peers based on chunk can reduce average download time
Minimizing the file download time in stochastic P2P networks 8

06/07/12

Literature Survey

CLIENT - SERVER FILE SHARING

Content distribution is a centralized one, where the content is distributed from the centralized server to all clients requesting the document. Clients send request to the centralized server for downloading the file. Server accepts the request and sends the file as response to the request. In most clientserver setups, the server is a dedicated computer whose entire purpose is to distribute files.
Minimizing the file download time in stochastic P2P networks 10

06/07/12

System Requirements Specification

In order to implement the system in an organization over its intranet, following are required: LAN environment Windows enabled systems supporting JSE runtime environment A centralized Server System.

06/07/12

Minimizing the file download time in stochastic P2P networks

12

Hardware Requirements:
Processor RAM Hard Disk General

: : : :

Pentium IV 1.8 GHz 512 MB 40 GB Keyboard,Monitor,Mouse

06/07/12

Minimizing the file download time in stochastic P2P networks

13

Software Requirements:
Operating System : Server Side : Client Side Protocol

Windows 2000/XP JDK 1.5.0, Swings : JDK 1.5.0, Swings : UDP

06/07/12

Minimizing the file download time in stochastic P2P networks

14

Fully object oriented Rich set of packages and classes Swing provides enhanced GUI development Swing provides action object and keystroke handling

06/07/12

Minimizing the file download time in stochastic P2P networks

15

Analysis

Content

distribution is a centralized one, where the content is distributed from the centralized server to all clients requesting the document. send request to the centralized server for downloading the file. Server accepts the request and sends the file as response to the request.
Minimizing the file download time in stochastic P2P networks 17

Clients

06/07/12

06/07/12

Minimizing the file download time in stochastic P2P networks

18

Scalability problem arises when multi requests arises at a single time. Servers need heavy processing power Downloading takes hours when clients increases Requires heavy storage in case of multimedia content
Minimizing the file download time in stochastic P2P networks 19

06/07/12

Peer-to-peer content distribution provides more resilience and higher availability through wide-scale replication of content at large numbers of peers. A P2P content distribution community is a collection of intermittently-connected nodes with each node contributing storage, content and bandwidth to the rest of the community The peer-to-peer file sharing networks had a centralized server system. This system controls traffic amongst the users. The servers store directories of the shared files of the users and are updated when a user logs on.
Minimizing the file download time in stochastic P2P networks 20

06/07/12

Secured data transfer of media files. Only Authenticated client can access the transferred media files. There is no data loss during transmission so at receiving end the media file can view with maximum quality. It is possible to transfer this media file to more than one destination securely at the same time. Having enough CPU power and bus bandwidth to support the required data rates.
Minimizing the file download time in stochastic P2P networks 21

06/07/12

Design

Process Diagrams

06/07/12

Minimizing the file download time in stochastic P2P networks

23

Case Diagrams
Login

Client Request Authenticated

Server

Peer1

Peer2

Peer3

peer4

Packet merged

06/07/12

Minimizing the file download time in stochastic P2P networks

24

Collaboration Diagram
12: Both the files are decrypted

Peer1 Client Peer2

Packet

Packet Response file Request for files

Peer3 Packet
Server

06/07/12

Minimizing the file download time in stochastic P2P networks

25

Flow Charts

06/07/12

Minimizing the file download time in stochastic P2P networks

26

Login Client Request Request file If Valid Server Error message Peer1 Peer2 if Invalid

Peer3 Merged packet Received files

06/07/12

Minimizing the file download time in stochastic P2P networks

27

Screen Design

06/07/12

Minimizing the file download time in stochastic P2P networks

28

06/07/12

Minimizing the file download time in stochastic P2P networks

29

06/07/12

Minimizing the file download time in stochastic P2P networks

30

06/07/12

Minimizing the file download time in stochastic P2P networks

31

06/07/12

Minimizing the file download time in stochastic P2P networks

32

06/07/12

Minimizing the file download time in stochastic P2P networks

33

06/07/12

Minimizing the file download time in stochastic P2P networks

34

06/07/12

Minimizing the file download time in stochastic P2P networks

35

06/07/12

Minimizing the file download time in stochastic P2P networks

36

Implementation

SERVER

PEER 1

PEER 2

PEER3

PEER4

GUI Module

06/07/12

Minimizing the file download time in stochastic P2P networks

38

PEER 1

PEER 2

PEER 3

PEER 4

CLIENT

06/07/12

Minimizing the file download time in stochastic P2P networks

39

Testing

We test each module individually and integrate it with the overall system. Each module is found working satisfactorily based on the expected output from the module. It is also called module testing because each module is tested separately. For Unit Testing we are running the transmitter and receiver on the same system.
Minimizing the file download time in stochastic P2P networks 41

06/07/12

These tests are carried out to test the proper functioning of the interfaces between various modules. Testing is done with a sample data on which the system must run successfully. The need for this testing is to find the overall system performance. To perform Integration testing we run the Server and client on two different systems connected by network.

06/07/12

Minimizing the file download time in stochastic P2P networks

42

Conclusion and Future Enhancements

Highly desirable to improve the network efficiency by reducing each users download time. We have shown that both the spatial heterogeneity and the temporal correlations in the service capacity can significantly increase the average download time of the users in the network, even when the average capacity of the network remains the same. The download time should focus directly on time rather than on bytes,

06/07/12

Minimizing the file download time in stochastic P2P networks

44

Dual

Stream

Instead of transferring a single stream files dual stream can be download at a time in near future.

06/07/12

Minimizing the file download time in stochastic P2P networks

45

References

Books
[1] [2] [3] [4] Herbert Schildt, JAVA2 complete Reference Deitel & Deitel, JAVA How to Program Cay s.Horstmann & Gary Cornel, Core JAVA Joseph L. Weber, Using JAVA2 Platform

Tutorials
[1] [2] JMF Jcreator

Websites
[1] [2] www.java.sun.com www.reynolds.com
Minimizing the file download time in stochastic P2P networks 47

06/07/12

Você também pode gostar