ALL..ALL..Automated Payload Balancing Automated Payload Balancing
for Web Serverfor Web ServerPRESENTED 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 can’t struggle by
the heavy N/W traffic.
Project Architecture…
Client 1
Client n
Client n+ 1
.
.
.
Web Server 1With Max load limit n
Web Server 2 that sharesthe Max load
Load BalancingServer
[For 2 back end web serverswith n as Load Limit]
Starts separate thread to serviceEach client
Directs to first Server
Directs to first Server
Redirects this clients connectionto 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 it’s
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 ServerOn port 8002
(Can be changedin Config. File)
Resolves the given destinationIn config. File with
Inet Socket AddressListen for connectionAnd check the No. of
Connectionsaccepted
When Connection exceedsRedirect further connections
To redirect hostMake connection with dest.
Host and catchThe requested page
When Connection exceedsthe specified Limit
When Connection iswithin the specified Limit
Client Connection Handling ..
Initialize the Config.And Start the
Server
Create File HandlerFor 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 Threadfor each Client
Accept and CreateNew incoming
Socket
Server Connection Handling ..
Load Balancing Server
Server Socket(Port No : 8002)
Accepted Incoming Socket
Checks the No. of ConnectionsWith Max Load
Increment the No. of Connections
For each Incoming Connectionfrom Client Destination
Redirection
1
2a
2b
4
Out goingSocket
Create Transfer ManagerTo handle Transfer Agents
Keep track of Client SocketAnd Transfer Agent
When Client Socket closes,Reduce the no. of Connections
Web Server toLoad Balancer
Load Balancerto 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 dataFound
Send response to the client
CC
CSend the request to theWeb server
Check web server No. OfLoad / connections
If Load > Max
ConnectionChoose another Web
Server
Send the Client request to Web Server
Process the request
Send response to the ClientThru 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 don’t 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 ProgrammingElliote Rusty Harold
www.lurhq.com
www.webopedia.com
www.microsoft.com
www.winproxy.com
www.publicproxyservers.com