Forum Discussion
Ed_Hammond_2611
Nimbostratus
Sep 26, 2008LTM - Need TCP "write to client" time on every transaction
On some systems I am looking to replace with an BIG-IP LTM frontend, I am trying to find a way to get detailed “write to client” statistics. With the old system’s APIs I have direct visibility to the TCP socket layer and can measure how long (in microseconds) it takes for the buffer transfers to occur. Specifically, the code grabs the hrtime before the TCP send call is made, then the time after it returns, and I report that data back in logs, etc. to get a measure of the client connection speeds, etc. Currently I measure & report both send and receive.
I’ve looked through the iRules and can’t seem to find any methods that can return data at that level of precision, let alone a method for getting a hrtime value.
Does anyone know of any on-box APIs or iRule tricks I can use to get that level of detail from the TCP stack?
Of course, this must be highly reliable, efficient, etc. etc. as the old system is a critical system for the customer. It is also a deal breaker if I can't find a solution.
- hoolio
Cirrostratus
iRules are event driven. You can only run code at the specific points which have an event. I don't think you'll be able to get stats using an iRule for the low level TCP events you've listed. You can check the wiki page for events for what's possible (Click here). - Ed_Hammond_2611
Nimbostratus
I've checked the Wiki up & down & would agree that getting such data at a iRule level would be difficult. Thus my question about an API or something I could hook into the TMM runtime with. - hoolio
Cirrostratus
I think iRules are as low level as you'll get. There is iControl which is an API that replicates the functionality you have via the management GUI, but again, I don't think there are any metrics collected with as much detail or as low level as what you're looking for. - Paul_Szabo_9016Historic F5 AccountI'd like to clarify the requirements here.
- Ed_Hammond_2611
Nimbostratus
Just trying to replicate existing functions available in the web browser.
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