Forum Discussion

Derek_21893's avatar
Derek_21893
Icon for Nimbostratus rankNimbostratus
Dec 09, 2009

VServer statistics : duration time unit?

Does anyone know what unit of time VirtualServer->get_all_statistics ... STATISTIC_MINIMUM_CONNECTION_DURATION and friends are in? Milliseconds, microseconds, days, etc???

 

 

In the iControl API docs it only tells me "The minimum duration of the connection". From some of the numbers I've got from this statistic, I would imagine it is at least in milliseconds, maybe microseconds.

 

 

Specifically, I'm looking for unit of time for the following:

 

 

STATISTIC_MINIMUM_CONNECTION_DURATION

 

STATISTIC_MEAN_CONNECTION_DURATION

 

STATISTIC_MAXIMUM_CONNECTION_DURATION

 

 

Any help greatly appreciated.

 

 

Thanks!

 

-Derek
  • I'm looking for the same, my guess is milliseconds too, but can someone from F5 tells us for sure?

     

     

    Thanks
  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    It would be ideal to get confirmation of the units, but... the max duration should be close to or exactly the idle timeout on the TCP profile on the VS.

     

     

    You could test this by clearing the virtual server stats, opening a connection from the command line to the VS using netcat (nc 1.1.1.1 80) and wait for the idle timeout to expire.

     

     

    Aaron
  • Aaron,

     

     

    Wouldn't a client possibly tear down their TCP session with the VIP after they are finished, before the idle timeout on the TCP profile? Even with http keepalives, clients will have differing values from what is in the tcp profile for the VIP. I'm also curious if these metrics are for TCP or HTTP transactions, do they describe the duration of an HTTP request, or the duration of a TCP connection? I've got my $1 on TCP, but the API docs don't seem to offer any hints.

     

     

    Thanks,

     

    -Derek
  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    Also, I would assume connection refers to either a TCP connection or a UDP "connection" (as far as LTM considers multiple packets on the same source/destination IP:port to be a connection). In order to get stats for HTTP requests, you'd probably want to check HTTP profile stats. If the HTTP profile stats are indicative of what's available, you have response code, sizes and version counts. But not response times.

     

     

    Aaron
  • Solved.

     

     

    1) These metrics are for TCP connections

     

    2) These metrics are in milliseconds

     

     

    See below, I did a single telnet to the vip port, then waited for 6 seconds then disconnected (well apparently, I waited for 6.328 seconds, or 6,328ms).

     

     

    'STATISTIC_MINIMUM_CONNECTION_DURATION' => 6328,

     

    'STATISTIC_MAXIMUM_CONNECTION_DURATION' => 6328,

     

    'STATISTIC_MEAN_CONNECTION_DURATION' => 6328,

     

     

    Hope this helps some folks! Thanks for the suggestion Aaron!

     

     

    Thanks,

     

    -Derek