Forum Discussion

ichalis_37981's avatar
ichalis_37981
Historic F5 Account
Jun 26, 2006

Client connection table in TCL

Hi,

 

 

I have come across a number of scenarious where we have developed an iRule that works with a single client (proof of concept) but then the next stage is to implement multiple client support.

 

 

This would mean creating a client "connection table" and performing all of the expected house keeping tasks required to maintain such a table, such as adding entries/deleting entries/expiring entries and making sure the table does not grow too large.

 

 

One example is where we save the client Ip, client port and a system generated integer in a table, and use this to match outbound connections from the servers.

 

 

I have given this some thought, and before i go ahead and try to do this in TCL, i wanted to see if anyone has tackled this problem before. I cant help but think that I would be reinventing the wheel, especially as we already do a lot of this stuff in LTM).

 

 

What would be great is that if we took the object oriented approach, and created a "container" which you could store entires in and retrieve data from without having to worry about the background housekeeping tasks. These could be handled as a "global" setting, i.e entry timeouts etc. This could then be re-used whenever we have this requirement in the future.

 

 

Has anyone done anything like this?

 

 

Regards,

 

Evan.

 

 

 

 

  • Deb_Allen_18's avatar
    Deb_Allen_18
    Historic F5 Account
    It sounds like the session table might be what you need.

     

     

    The wiki page is not too helpful yet, but if you search this forum for the phrase "session add", you will find some useful examples.

     

     

    HTH

     

    /deb