Networking Forums

Networking Forums > Computer Networking > Windows Networking > Load balanced web server

Reply
Thread Tools Display Modes

Load balanced web server

 
 
=?Utf-8?B?QWxhbl9T?=
Guest
Posts: n/a

 
      02-28-2005, 02:59 PM
I am trying to set up a load balanced web farm. Here is the issue:
I have a server with 2 NIC's one that runs through the load balancer
(192.168.1.xxx) and one that doesn't (172.16.xxx.xxx). I have been unable to
figure out haow to make traffic that comes in on one NIC go back out on the
same. The only thing I have been able to do is send either all or none of
the traffic through the load balancer. Each NIC having it's own gateway
doesn't work. Any help would be greatly appreciated.
 
Reply With Quote
 
 
 
 
Phillip Windell
Guest
Posts: n/a

 
      02-28-2005, 03:52 PM
"Alan_S" <(E-Mail Removed)> wrote in message
news:32201E91-683D-4A52-A06F-(E-Mail Removed)...
> I am trying to set up a load balanced web farm. Here is the issue:
> I have a server with 2 NIC's one that runs through the load balancer


Run *one* Nic in each machine.
Use Server Clustering.
The "Cluster" will have a "Virtual IP" that is used instead of the actual
literal IP#s of the Nucs.

> (192.168.1.xxx) and one that doesn't (172.16.xxx.xxx). I have been unable

to
> figure out haow to make traffic that comes in on one NIC go back out on

the
> same.


You can't. There is no direct relationship between an incomming session
(incomming packets) and an outgoing session (outgoing packets). Each
involves a separate "routing decision" and the "decision" is dsitinct and
independent from the other.

> The only thing I have been able to do is send either all or none of
> the traffic through the load balancer. Each NIC having it's own gateway
> doesn't work. Any help would be greatly appreciated.


You can only have one Default Gateway.
Default Gateways are *global* for the entire machine. The fact that the GUI
lets you assign one to each Nic is a "fluke". By all rights the Default
Gateway Settings once applied at one Nic should automatically be "greyed
out" on the remaining Nics to avoid redundant or conflicting gateway
settings,....but they didn't ask me before they designed the GUI the way it
is :-).

Let me try to explain the "sessions" thing. I am not going to claim it is a
perfect and pristine explaination, but it should work......

A session has packets going both ways but it is at a different level than
requesting a web page from a web server. Part 1B and 2A are the key reasons
why it does not always use the same Nic it received the original request on.

1. Your request a web page.
A. URL is resolved
B. A routing decision is maded based on destination address.
C. Syn packets and Ack packets are exchanged and a "session" is
established.
D. You send the GET or POST along with accompanying data.
E. Server receives the "package" and acknowledges.
F. The session *ends*

In the interim,...the Webserver processes the request and prepares the
material that it will send back to you.

2. Server sends data back to you
A. A routing decision is maded based on destination address.
B. Syn packets and Ack packets are exchanged and a *new* "session" is
established.
D. Server sends the data.
E. Your machine receives the "data" and acknowledges.
F. The session *Ends*


 
Reply With Quote
 
Herb Martin
Guest
Posts: n/a

 
      02-28-2005, 04:55 PM
"Alan_S" <(E-Mail Removed)> wrote in message
news:32201E91-683D-4A52-A06F-(E-Mail Removed)...
> I am trying to set up a load balanced web farm. Here is the issue:
> I have a server with 2 NIC's one that runs through the load balancer
> (192.168.1.xxx) and one that doesn't (172.16.xxx.xxx). I have been unable

to
> figure out haow to make traffic that comes in on one NIC go back out on

the
> same.


In general you can't do this.

The only practically way to get such load
balancing on a single server with NICs on
the same "subnet" (broadcast domain) is to
use a special NIC driver (and maybe special
NICs) called "Teaming NIC" or "Teaming NIC
driver".

> The only thing I have been able to do is send either all or none of
> the traffic through the load balancer. Each NIC having it's own gateway
> doesn't work. Any help would be greatly appreciated.


No since only ONE "default gateway" is ever
active at any one time. (The others are only used
when the first is 'down'.)


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
2003 Load Balanced Servers lose all network connectivity Jason Carter Windows Networking 0 07-09-2008 01:56 PM
Affinity isn't working and clients connections are balanced?? Kevin Buchanan Windows Networking 0 01-11-2006 11:00 AM
Server load too high ewunia@earthlink.net Linux Networking 0 01-06-2006 04:47 AM
Load balanced HTTPS servers ... single or multiple server certificates? noone Linux Networking 3 01-27-2005 10:01 PM
Load balanced packet forwarding Ydragon Linux Networking 0 07-07-2004 07:30 PM



1 2 3 4 5 6 7 8 9 10 11