Académique Documents
Professionnel Documents
Culture Documents
Problem definition:
In the present system for downloading a file from a Server, thefile is downloaded directly from the Server
based on the bandwidth, of the Server and the user. In this system the speed of the user file download
operation will depend upon the number of connections established within the Server.
Say for example a Server can with-stand only 100 connection/minute and 90 users have already
established their connection, in that case the download speed will be slow for 30% of the user. If the
Server exceeds the maximum number of connections then the speed of new user file download will be
further slow or some time will get Connection timed out
Another main disadvantage in this process is, if there is any interruption in the Internet connection, then
the download operation will be stopped by the server and the established connection will be lost.
Proposed system:
To overcome the difficulties of the present system, in this paper we have proposed a new model for
downloading the file based on peer-to-peer service and Server. In this system each and every user will act
as peer server and from that peer server as a source another user file will be downloaded.
Application Flow:
Control Server
Login Success
No
Yes
List all existing files in the
server for download.
Request to
download A
File
No
Downloading
from Server to
Peer B
Request to
download A file
by PEER A
DB Check
No
DB Check: This will
check whether the
file already
downloaded in any
Yes
Peer A
Peer B
Downloading A file
from Peer A to Peer B
Peer2Peer Module:
Server
Connections
Peer A
Connections
Peer B
Connections
Downloading A file
from server to Peer
A
Control
Server
No
No
Connection
Segment
Download
Connection
Segment
Request
Peer
Modules
Peer A
Segment
Request
Peer B
Module Description:
After careful analysis the system has been identified to have the following modules:
Login Module
Control Server Module
Peer2Peer Module
Segment
Download
Database Module
Login Module:
Login controls the entire application. User can download any file from the server only after a proper
authentication. The Login Form module presents applicationuser with a form of username and password
fields. If the user enters a valid username/password combination they will be granted access to view all
the files on the server.
Peer2Peer Module
Peer2Peer Module will help the control server to balance its load. When a request is made to the server to
download a file from it, the server will check on database and finds the Peer which has already
downloaded the same file as per the request. Once a Peer is found the server will re-direct the request to
the identified Peer and makes a connection between those 2 Peers, the file Peer will act as a server for the
requested Peer.
Database Module:
The database will have an entry of the files which are downloaded from server and related IP address of
the Peer.
DDL Information:
The DDL for the above project will be as follows
createtable Client_information_tab
(
[type] varchar(30),
ipaddr varchar(30),
sock_no int
)
createtable Download_information_tab
(
ipaddr varchar(30),
filenamevarchar(30),
From_ip varchar(30),
statuschar(2),
save_in_dir varchar(max)
)
createtable file_tab
(
filenamevarchar(max),
file_size varchar(50),
file_type varchar(50)
)
createtable login_tab
(
username varchar(max),
passwordvarchar(max)
)
Pentium III
-
1.1 GHz
-
256 MB (min)
Hard Disk
- 20 GB
Key Board
Monitor
SVGA
: Windows XP / 7
: JAVA 7, SWING
: MySQL / MS SQL Server 2008