Thank you for the answer.
but, I guess it's not my case.
What I want to do is balance the load of outgoing packets over more than one ethernet
cards evenly.
to do this, I get a UDP socket and bind it with eth0, and I get another UDP socket and
bind it with eth1.
I think bind() system call decides which interface outgoing packets are sent through.
but, to my suprise, outgoing packets are sent through just one interface card which is
the former entry in rouging table.
I think it's a kind of mistake of Linux network implementation.
Round robin DNS is good for load balancing in case of incoming requests can be
processed arbitrarily over ethernet cards.
but, It cannot determine which request should be processed by the certain interface,
say eth0.
what I really want to do is just bind a socket and an interface dynamically in my
application.
How can I do it?
-----Original Message-----
From: Jeroen Bogers [SMTP:[EMAIL PROTECTED]]
Sent: Monday, August 09, 1999 2:43 PM
To: 'SungHawk Kim'
Subject: RE: Load Balancing over 2 ethernet cards
why not use DNS round robin effects IE: put both cards in your dns with the
same name and dns will give them out "round robin" Then I think your
applications is going to use the same card from which the request was
recieved.
i don't know for sure is this is the case but it is worth trying
Good luck
Jero
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of SungHawk Kim
Sent: Monday, August 09, 1999 02:29
To: 'Linux-Net'
Subject: Load Balancing over 2 ethernet cards
Hi, all.
I'm trying to establish load balancing feature over 2 fast
ethernet(3c905b-tx) cards.
In my application program, I bind eth0, eth1 in alternate turn using bind()
system call.
but, all the outgoing packets are sent through one interface say, eth0.
I figured out the situation.
the only interface through that all the packets are sent is the first entry
in the routing table.
so, all the outgoing packet are sent through the interface determined not by
bind() but by routing table entry order.
Do you have any idea of this?
How can I achieve load balancing feature on linux network, eventually
clustering several network cards?
===========================
A.I.Soft Korea Inc
VoD team
system engineer
Sunghawk Kim
[EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]