Forum Discussion
chip_78360
Nimbostratus
Jan 14, 2010BigIP and ASP.NET_SessionID issues.
We are moving our current application off of Cisco LB to a an F5 device. It is a .NET app which uses stateful sessions so we need to use the ASP.NET_SessionID to get back to the appropriate server. We had a custom irule written which does route new connections properly based on the session cookie. We found this was not sufficient for HTTP 1.1 connections from the client. The clients session cookie gets sent to multiple machines. We proved that the irule is working by running HTTP 1.0. Since every request will cause a new connection and therefore be balanced/re-balanced.
When using HTTP 1.1 from loadrunner -- and I assume the browser will have the same potential problem although I could not reproduce outside of loadrunner -- the client makes multiple concurrent connections associated with the first call default.aspx. Those initial connections come without the session cookie and get balanced across different servers. The response from the actual default.aspx page contains the Set-Cookie. After a cookie is received the client begins sending that cookie for requests to the already opened and established server connections. The problem is that the initial connections span multiple boxes and the session id is only valid on one of them. Everything works fine until dynamic content is requested on one of those rogue connections.
My assumption as to why the irule is "not working" is that the initial connection to the wrong machine was already established. The subsequent requests that contain the session id will not get "re-balanced". All new connections for that sessions will balance properly and this appears to be true. For my app to work I need every request to be rebalanced essentially.
From what I have found Cisco has a rebalance option. That appears to be what we are doing currently and why this beast works in production.
How would something similar be achieved in the F5 product? I find it hard to believe this is a new problem. There has to be a solution out there waiting for me to use.
thanks for any help
Chip
- hoolio
Cirrostratus
Hi Chip, - chip_78360
Nimbostratus
thx for the response. You have me thinking and I am wondering if this not a Loadrunner issue. All downloads that result from that initial page hit all go over without a SessionID. I assumed concurrent but it could be sequentially and just that LR is not setting the cookie for the static data. - hoolio
Cirrostratus
I agree it's more likely to be a loadrunner issue if you don't see the problem when using a standard browser. If the client doesn't present a cookie that's sent to it, you're going to have problems trying to persist them back to the same server.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects