On Mon, 14 Jan 2002, rolyaT yuG wrote:
> I know I've been whinging a lot lately, but its really because I'm not 100%
> sure of the working mechanisms of LVS, I've read the documentation, but I'm
> still a little uncertain.
>
> So my apologies. Question this time is this:
>
> My ipvsadm table looks so:
>
> IP Virtual Server version 0.9.5 (size=4096)
> Prot LocalAddress:Port Scheduler Flags
> -> RemoteAddress:Port Forward Weight ActiveConn InActConn
> TCP 196.36.239.60:21 rr persistent 10
> -> 128.1.30.2:21 Route 1 0 0
> -> 128.1.30.1:21 Route 1 0 0
> TCP 196.36.239.60:80 rr
> -> 128.1.30.2:80 Route 1 0 218
> -> 128.1.30.1:80 Route 1 0 219
So you're using LVS-DR, that does not rewrite packets.
>
> now when I do a tcpdump on the load balancer I get this:
>
> # tcpdump -ln port 80
> Kernel filter, protocol ALL, TURBO mode (575 frames), datagram packet socket
> tcpdump: listening on all devices
> 10:02:00.396618 eth0 < 196.36.119.175.40157 > 196.36.239.60.www: S
> 117897522:117897522(0) win 4096 <mss 1460,nop,nop,sackOK> (DF)
> 10:02:00.396694 eth0 > 196.36.119.175.40157 > 196.36.239.60.www: S
> 117897522:117897522(0) win 4096 <mss 1460,nop,nop,sackOK> (DF)
> 10:02:00.396677 eth0 < 196.36.119.175.40158 > 196.36.239.60.www: S
> 117940929:117940929(0) win 4096 <mss 1460,nop,nop,sackOK> (DF)
> 10:02:00.396746 eth0 > 196.36.119.175.40158 > 196.36.239.60.www: S
> 117940929:117940929(0) win 4096 <mss 1460,nop,nop,sackOK> (DF)
> 10:02:00.506113 eth0 < 196.36.119.175.40159 > 196.36.239.60.www: S
> 118003356:118003356(0) win 4096 <mss 1460,nop,nop,sackOK> (DF)
> 10:02:00.506163 eth0 > 196.36.119.175.40159 > 196.36.239.60.www: S
> 118003356:118003356(0) win 4096 <mss 1460,nop,nop,sackOK> (DF)
> 10:02:00.615635 eth0 < 196.36.119.175.40160 > 196.36.239.60.www: S
> 118073832:118073832(0) win 4096 <mss 1460,nop,nop,sackOK> (DF)
> 10:02:00.615689 eth0 > 196.36.119.175.40160 > 196.36.239.60.www: S
> 118073832:118073832(0) win 4096 <mss 1460,nop,nop,sackOK> (DF)
> 10:02:00.715575 eth0 < 196.36.119.175.40201 > 196.36.239.60.www: S
> 122487960:122487960(0) win 4096 <mss 1460,nop,nop,sackOK> (DF)
>
> Surely I should see a redirected packet to the realservers, regardless of
> whether my network setup was right or not? Surely if my network setup was
If you look better the sequence is: incoming paket on eth0, outgoing packet
from eth0.
> wrong, it would just fail? But according to the tcpdump, its not even
> rewriting and forwarding the packet. The thing is that if I do straight
LVS-DR does not rewrite packets. Just forwards them.
Radu-Adrian Feurdean
mailto: raf (a) chez.com
------------------------------------------------------------
"There is not one word in Gospels in prise of intelligence."
|