LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Tcpdump output

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Tcpdump output
From: rolyaT yuG <guy@xxxxxxxxxxxxxx>
Date: Mon, 14 Jan 2002 09:51:19 +0200
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

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 
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 forward port 
redirection to the realservers, the realservers register that they have been 
hit. If I just use this setup the dont register any hits at all.

My apologies to Joseph, for previously not including my network setup. I have 
not included again here, because this question is theoretical, and shouldnt 
need my network to be shown to get an answer.

Many Thanks.
-- 
Guy Taylor
Cell: 083 357 3438
E-mail: guy@xxxxxxxxxxxxxx

Intelligenti pauca - Few words suffice for he who understands.



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