Forum Discussion
peter_booth_716
Nimbostratus
Aug 10, 2012LTM create unique request IDs?
I have an LTM that balances a pool of webserver IP+ports. Each webserver forwards requests to a pool of app servers. Currently there's no way to correlate requests between web and app tiers. I was won...
hoolio
Cirrostratus
Aug 29, 2012We discussed having LTM generate a unique request ID here using rand or AES::key:
http://devcentral.f5.com/Community/GroupDetails/tabid/1082223/aff/5/afv/topic/aft/2163201/afc/2263687/Default.aspx
Here are two options. The rand option should be more efficient but not cryptographically secure. You can compare the CPU usage using the timing command.
Use rand() to generate a psuedo-random 8 digit number (not cryptographically secure)
format %010s expr [{ int(100000000 * rand()) }]
Use AES::key to generate a cryptographically secure unique ID
set uid [string range [AES::key 256] 8 end]
Use timing to do a performance comparison:
https://devcentral.f5.com/wiki/iRules.timing.ashx
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