Forum Discussion
Wade_Miller_113
Nimbostratus
Nov 12, 2007Help with a difficult irule.
This is not http, but rather a proprietary protocol. Here is the scenario.
The first packet of the request comes in with a string identifying the desired slot.
On connect,...
hoolio
Cirrostratus
Nov 12, 2007I assume the protocol runs over TCP? You can do most of that with iRule functionaliy:
1. Collect the TCP data in the request, using TCP::collect (Click here).
2. Parse the data using TCP::payload (Click here).
3. Check the session table for an existing entry, and send the request to that node. If there isn't an entry, add one (Click here). The session table entry would include the string, pool member and a timeout.
The last requirement to flush the table every 24 hours would probably need to be done using an iControl app (Click here). I don't know of a way to get the current time with the TCL commands enabled in iRules.
Aaron
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
