Re: How to get fractions of seconds?
Stefan A. wrote:
Best would be to have something like '%l', but in a resolution of milliseconds.
This is impossible. The dates and elapsed times in RADIUS have a resolution down to one second, but no more. It's possible to "fake" adding milliseconds, but they will bear little relation to the actual session times. Network delays, processing delays, etc. will all affect the results. Alan DeKok.
I see it useful too, when specifying for example "response_window" that instead of be 1 "One second" could be 1200 as in "twelve hundred milliseconds". I have found some devices that time out in 3 seconds , in these cases you still want to retry at least once . Of course here the network delay is kept under 300 milliseconds end to end. ________________________________ From: Alan DeKok <aland@deployingradius.com> To: FreeRadius users mailing list <freeradius-users@lists.freeradius.org> Sent: Wed, February 9, 2011 11:38:11 AM Subject: Re: How to get fractions of seconds? Stefan A. wrote:
Best would be to have something like '%l', but in a resolution of milliseconds.
This is impossible. The dates and elapsed times in RADIUS have a resolution down to one second, but no more. It's possible to "fake" adding milliseconds, but they will bear little relation to the actual session times. Network delays, processing delays, etc. will all affect the results. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
It sounds like the original request "I need to add the time spend for a particular Flow to a Logfile" wants to track the 'login time' in milliseconds. I suppose one could track the time from receiving the original request to sending the authentication - or receiving the accounting packet after authentication.. but I seriously doubt the added granularity would have any real meaning. (References gettimeofday(2) for the seriously nerdy) Sounds like you'd need to write your own additions to FreeRadius and submit them as an enhancement. (I doubt the result would be worth the effort.) Cheers, -craig ----- Original Message ----- From: Ramon J. Castillo To: FreeRadius users mailing list Sent: Wednesday, February 09, 2011 8:40 AM Subject: Re: How to get fractions of seconds? I see it useful too, when specifying for example "response_window" that instead of be 1 "One second" could be 1200 as in "twelve hundred milliseconds". I have found some devices that time out in 3 seconds , in these cases you still want to retry at least once . Of course here the network delay is kept under 300 milliseconds end to end. ------------------------------------------------------------------------------ From: Alan DeKok <aland@deployingradius.com> To: FreeRadius users mailing list <freeradius-users@lists.freeradius.org> Sent: Wed, February 9, 2011 11:38:11 AM Subject: Re: How to get fractions of seconds? Stefan A. wrote:
Best would be to have something like '%l', but in a resolution of milliseconds.
This is impossible. The dates and elapsed times in RADIUS have a resolution down to one second, but no more. It's possible to "fake" adding milliseconds, but they will bear little relation to the actual session times. Network delays, processing delays, etc. will all affect the results. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html __________ Information from ESET Smart Security, version of virus signature database 5858 (20110209) __________ The message was checked by ESET Smart Security. http://www.eset.com ------------------------------------------------------------------------------ - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html __________ Information from ESET Smart Security, version of virus signature database 5858 (20110209) __________ The message was checked by ESET Smart Security. http://www.eset.com __________ Information from ESET Smart Security, version of virus signature database 5859 (20110209) __________ The message was checked by ESET Smart Security. http://www.eset.com
Ramon J. Castillo wrote:
I see it useful too, when specifying for example "response_window" that instead of be 1 "One second" could be 1200 as in "twelve hundred milliseconds".
I'm surprised that would be useful.
I have found some devices that time out in 3 seconds ,
The vendors need to read RFC 5080.
in these cases you still want to retry at least once . Of course here the network delay is kept under 300 milliseconds end to end.
The server doesn't do retries, only the NAS does. So changing the response_window will likely not help. Alan DeKok.
participants (3)
-
Alan DeKok -
Craig Campbell -
Ramon J. Castillo