Operating System - HP-UX
1755711 Members
4470 Online
108837 Solutions
New Discussion юеВ

Load Balancing Network Traffic

 
SOLVED
Go to solution
Mike Hassell
Respected Contributor

Load Balancing Network Traffic


I have two 100BT NICs running on a HP-UX 10.20 server. Currently I have each of these NICs attached to the same switch and subnet, each having a separate IP address (same mask as well).

This is a database server where connections are made via socket transfer to one of the NICs. I've been looking for a way to load balance the network traffic to this server and I've come across APA (needs 11.0?) and ndd (comes with 11.0, not on 10.20?), but haven't found anything on 10.20 that supports this type of scenario.

I would like for traffic to be received on one of the NICs and traffic to be sent out via the other NIC. Is this possible with HP-UX 10.20? I've looked into nettune and it seems to lack all the features of ndd, which limit my options greatly.

We're moving to 11.0 within the next 6 months, but I'd like to improve the network traffic before then :) Any ideas? Thanks.

- Mike
The network is the computer, yeah I stole it from Sun, so what?
13 REPLIES 13
melvyn burnard
Honored Contributor

Re: Load Balancing Network Traffic

Currently there is no APA available for 10.20 , only a product known as LanMonitor J5080A, which has the failover functionality, but NOT the load balancing side and is only available for Servers, not Workstations.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Tim Nelson
Honored Contributor

Re: Load Balancing Network Traffic

FYI, something that I missed before.. APA does come with a price tag.. $1100 or so.
Mike Hassell
Respected Contributor

Re: Load Balancing Network Traffic


I realize that there is no APA solution for HP-UX 10.20, nor is ndd available. So what options do I have to balance the network traffic over these two NICs?

What did other SAs out there do with two 100BT NICs in their 10.20 servers in the past to overcome this obstacle?

The only options I have come up with is to configure the database (Sybase) to listen on both NICs and split up the client traffic via configuring half for one IP and the other half for the other IP. This of course would take some serious effort and I would like to do it from the OS side if possible.

I feel like I'm not taking advantage of the hardware that was in place when I came to this company and would like to utilize what they have to the fullest.

Should I setup the second NIC on a different subnet and use static routes to balance the outbound traffic? or is there *ANY* other solution for this scenario? Thanks.

- Mike
The network is the computer, yeah I stole it from Sun, so what?
A. Clay Stephenson
Acclaimed Contributor

Re: Load Balancing Network Traffic

Mike, your last posting caused me to do some really off the wall thinking about how to split the load between the two listeners on the same box. I assume that you have two
DNS entries e.g dbserverA and dbserverB. Currently all of your clients are connecting to dbserverA. Here's my hare-brained scheme worthy of Bugs Bunny. If your clients are using DHCP then you could and probably do have
multiple DHCP servers which of course dish out
IP addresses on a first-come/first-served basis.
If a client gets his address from DHCP server 1
then he gets a DNS server which maps dbserverA to one address and if he gets his address from DHCP server 2 then he gets a DNS server which resolves dbserverA to another IP address namely that of dbserverB.
I admit that this is unusual but you then do all of the work on the servers. When you upgrade to 11.x then all you have to do is make the changes in the DNS servers.
If it ain't broke, I can fix that.
Mike Hassell
Respected Contributor

Re: Load Balancing Network Traffic

Clay,

I see what you are saying and it is a little abnormal, but I worry about a few things that might pop up with that sceneario.

1. If the DNS servers have the same hostname 'dbserver' for DNS1 (primary), and DNS2 (secondary) then I worry about creating ARP errors on the network with the same hostname referring back to two different MAC addresess.

2. The client configuration is a big issue here, because they have configured the clients using IP addresses (which is another issue all together) so the name change would only effect a small number of the clients that access 'dbserver'.

Right now I have it configured so the hostname maps only to the single NIC/IP Addr and the other one has no english name associated with it rendering it somewhat useless. It's a tough question and I've yet to find someone who has a solid answer on what my options are. Your thoughts are appericated. Looks like I need to upgrade to 11.0 sooner than I thought :) Thanks.

- Mike
The network is the computer, yeah I stole it from Sun, so what?
Mladen Despic
Honored Contributor

Re: Load Balancing Network Traffic

Mike,

Not sure if this would work for you. It requires some work, but it's just a thought:

1. Configure 2 subdomains on your DNS server, say domain1.company.com and domain2.company.com .

2. On about half of your clients, use "domain1.company.com" to configure domain name and DNS search order. Use "domain2.company.com" for the other half. (Update DNS database accordingly.)

3. Assign host.domain1.company.com to the first NIC and host.domain2.company.com to the second NIC in DNS database.

4. Now, if the application's configuration accepts "host" entry (rather than host's ip-address) on the clients, you can configure
all clients with the same "host" entry. (This may work with Netscape Mail; not sure if it does with database clients.)

NOTE: Assuming the clients on domain1 and NIC1 are on one subnet, the clients on domain2 and NIC2 are on another subnet, this solution (if it works at all) may offload your routers as well.

Mladen

rick jones
Honored Contributor

Re: Load Balancing Network Traffic

if two nics on the same system are configured into the same subnet, they can each receive traffic, but outbound traffic will only get routed through one of them - I cannot recall if it is the first one, or the last one to be ifconfig'd.

so, you setup your DNS to point the "hostname" at the IP address of the interface on which you want inbound traffic, and then you manipulate the routing table (see netstat and route manpages) to make sure that the default route and the subnet route(s) point at the interface you want to use for outbound traffic.

now, i'd have to question why you would want to do that. about the only place where it _might_ make a difference in throughput would be with old HP-PB 100BT cards, when each card was on a _separate_ HP-PB bus.
there is no rest for the wicked yet the virtuous have no pillows
Mike Hassell
Respected Contributor

Re: Load Balancing Network Traffic

Rick,

I see your point, but answer this for me. If there is no APA solution for HP-UX 10.20, nor the advanced capabilities of ndd, then why would a customer purchase dual nics, unless he/she wanted to use the HP server with routing capabilities?

Both of these cards are configured at 100 Full-duplex to the cisco switch, so you are correct about not really gaining anything by having one recieve and one send, since these NICs are HSC cards.

I guess the only way to really improve the network performance for this particular server would be to purchase a gigabit NIC. Then we're talking a little bit of money, since this is a K370 and they only make an HSC 1000Base-SX fiber card.

Looks like I'll have to wait until we've upgraded to 11.0 and then implement APA. Thanks for everyone's thoughts.

- Mike
The network is the computer, yeah I stole it from Sun, so what?
Mladen Despic
Honored Contributor

Re: Load Balancing Network Traffic

Mike,

I think a typical multihomed system used to have each NIC configured for a different subnet. I don't know if two (active) NICs on the same subnet are recommended on 10.20, given what's available. But then again, if there is a good way to do it, and it works for you, why not?

Mladen