Vous êtes sur la page 1sur 6

System analysis

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.

Advantage of this model:


a. Any maximum number of the user can download the file irrespective of the bandwidth of the
server.
b. Files can be downloaded at any interval of time
c. Every files will be downloaded based on the cache process, thereby the file downloaded will be
fast if there is more user had already streamed the video

Disadvantages of this model


a. If the user downloaded the file and there is no proper cache established for that particular file,
then in other user download process will be slow.

Application Flow:

Control Server

User Login Page

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

Data Entry Check


Ye
s

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.

Control Server Module


Control Server plays the vital role in this project. Once the user logged on to the server with
authentication, the server will provide all the list of files with it to the user in order to choose which file
needs to be downloaded from the server. The server maintains all the request connection to it and redirects the request to the Peer module based on validation with its database value.

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)
)

System Configuration:H/W System Configuration:Processor


Speed
RAM

Pentium III
-

1.1 GHz
-

256 MB (min)

Hard Disk

- 20 GB

Key Board

- Standard Windows Keyboard

Monitor

SVGA

S/W System Configuration:Operating System


Front End
Back End

: Windows XP / 7
: JAVA 7, SWING
: MySQL / MS SQL Server 2008

Vous aimerez peut-être aussi