Вы находитесь на странице: 1из 21

Automated Payload Balancing

for Web Server


PRESENTED BY
Mr.P.SUTHAHAR,
Assistant Professor / CSE

Load Balancing is the process of dividing the amount of
traffic.
Load Balancing can be implemented with Hardware,
Software, or a combination of both.
Load balancing is the main reason for computer server
clustering.
Introduction..
Existing System..
Of the many methods available to balance a server load, the
main two are:
DNS Round Robin
Hardware Load Balancing
4
5
Proposed System
The proposed software is used near or in front of the client software's / Browsers
to bundle requests when using a firewall and to reduce bandwidth waste by
performing data caching.
Our proposed system gets all the requests from the client machines and it
transfers the request to the server system based on the Load Sharing algorithm.
If the proposed system implemented in the N/W, the web server cant struggle by
the heavy N/W traffic.
Project Architecture
Client 1
Client n
Client n+ 1
.
.
.
Web Server 1
With Max load limit n
Web Server 2 that shares
the Max load
Load Balancing
Server
[For 2 back end web servers
with n as Load Limit]
Starts separate thread to service
Each client
Directs to first Server
Directs to first Server
Redirects this clients connection
to second server
Advantages of the Proposed System
We have a single point of Access.
This leads to simplified traffic logging and monitoring of the web site, although we are now
using a web cluster instead of a single server.
There is a complete control over the back-end delegation scheme, because its
done locally in the proposed software for each request and not cached somewhere
on the Internet.
When one of the Back-end server crashes, we need to change the delegation
configuration of the software, so the crashed back-end no longer leads to errors for
the visitors.
After it is repaired we can reactivate it as simply as we deactivated it.
USER
Block Diagram ..
Config. Details Start the Proxy Server
On port 8002
(Can be changed
in Config. File)
Resolves the given destination
In config. File with
Inet Socket Address
Listen for connection
And check the No. of
Connections
accepted
When Connection exceeds
Redirect further connections
To redirect host
Make connection with dest.
Host and catch
The requested page
When Connection exceeds
the specified Limit
When Connection is
within the specified Limit
Client Connection Handling ..
Initialize the Config.
And Start the
Server
Create File Handler
For all three
Log Files
System Log File
Incoming Connection Log File
Outgoing Connection Log File
Continue..
Client Connection Handling ..
Server Socket

Port : 8002
SOCKET
Load Balancing Server
Starts new Thread
for each Client

Accept and Create
New incoming
Socket

Server Connection Handling ..
Load Balancing Server
Server Socket
(Port No : 8002)
Accepted Incoming Socket
Checks the No. of Connections
With Max Load
Increment the No. of
Connections
For each Incoming Connection
from Client
Destination
Redirection
1
2a
2b
4
Out going
Socket
Create Transfer Manager
To handle Transfer Agents
Keep track of Client Socket
And Transfer Agent
When Client Socket closes,
Reduce the no. of Connections
Web Server to
Load Balancer
Load Balancer
to Client
7
4
Wait for Next Connection
8
5
6
Start
Define ports and
Sockets
Establishing connection
between Client and server
Generate log file
information
Sending the request from
client to Proxy server
If data
Found
Send response to
the client
C
C
C
Send the request to the
Web server
Check web server No. Of
Load / connections
If Load >
Max
Connection

Choose another Web
Server
Send the Client request to
Web Server
Process the request
Send response to the Client
Thru Proxy Server
C
C
C C
Close The Connection
Perform Cleanup Function
in Proxy Server
Stop
Applications
Used in Large Organizations with Many Branches
Used as Internet and also Intranet Communications
Used in Network Laboratories [Education]
Used in VPN
Summary
The proxy server maintains the network communication between the client and
server because the web server may be struggled against the heavy traffic .
The important feature of the project is implementing the web server operations
Efficiently against the heavy network traffic
We dont need to upgrade the web server Hard ware resources frequently .
We can expand the number of clients in the network with the same web server .
We can achieve better performance with the same web server in the network .
Future Expansion :
The next Idea is to expand our proxy system by publishing it as a web page for getting web
resources , web sites and web pages from the web server . The proxy will search all the web
server which contains the Related web pages .
We are Planned to implement our proxy server as a system in internet which is used for
Searching the web servers with less number of client connections .
If we will implement the proxy as system between the client and web server in internet,
the transaction of information between client and server in good manner.
References :
Java Network Programming
Elliote Rusty Harold

www.lurhq.com
www.webopedia.com
www.microsoft.com
www.winproxy.com
www.publicproxyservers.com

Вам также может понравиться