This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Problem while access website through load balancer

0

I am facing problem while accessing web site through load balancer but it work fine when i call website directly.

After getting traces i found my client is retransmitting TCP packet with PSH+ACK four times and after that load balancer send TCP packet with RST flag.

Before that my client send SYN and successfully got SYN+ACK.

Please help me to find out whats wrong with it.

Regards, imran

asked 12 Sep '11, 04:53

imranrazakhan's gravatar image

imranrazakhan
1111
accept rate: 0%


One Answer:

0

Did you make the trace on the client or server side of the loadbalancer? Usually a loadbalancer will terminate the TCP session of the client to look into the HTTP request, so that it can make a loadbalancing decision based on the content of the HTTP request (think of cookie persistency as an example why this is needed).

Then I can think of two things that might be going wrong in your setup.

  1. The loadbalancer is one-armed, but you do not NAT the source address of the client. This means traffic from the server goes back to the client instead of to the loadbalancer to change the real server IP address back to the virtual address.

  2. Or the loadbalancer tries to open a connection to the server but for whatever reason does not succeed and therefor gives up after a while. In the mean time the client had retransmitted its request a couple of times.

In loadbalanced scenarios, it is always best to make traces on the client-side as well as the server-side of the loadbalancer to be able to follow its behavior.

answered 12 Sep '11, 07:34

SYN-bit's gravatar image

SYN-bit ♦♦
17.1k957245
accept rate: 20%