LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

How does LVS-DR work?

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: How does LVS-DR work?
From: Michael Spiegle <mike@xxxxxxxxxxxxxxxx>
Date: Sun, 05 Nov 2006 20:14:12 -0800
I feel really dumb about this, but I had completely misunderstood the
purpose of LVS-DR for the longest time.  It wasn't until I sat down and
thought about the actual differences of LVS-DR and LVS-NAT that I
realized I had no idea what it really did.

After I read a few documents on it, I have come away with one question...

Lets say a client makes a connection to your LVS, the LVS forwards that
packet to a realserver, and the realserver then directly replies to the
original client.  Why does the realserver send the packet to the
originating client and not back to the LVS it came from?  It would see
to me that under normal network situations, the realserver should reply
back to wherever the request came from (LVS in this case), but it
doesn't.  The only thing I can come up with is that the LVS doesn't use
its own MAC address as the source-mac on the packets going to the
realserver.  It uses the MAC address of whatever sent the original
packets to the LVS (possibly a router?).  Is that how it works?

Thanks!

Mike


---
Michael Spiegle
mike@xxxxxxxxxxxxxxxx


<Prev in Thread] Current Thread [Next in Thread>