Closed DimplyKhan13 closed 6 months ago
fping
increases the wait time for each reply by a factor that defaults to 1.5 (it can be controlled via -B
). With a timeout T
and a backoff factor B
, the n
-th wait between probes is T*B^(n-1)
. (The first wait is T
, the second is T*B
, the third is T*B*B
, and so on.)
If you really want to, you can disable the effect using -B 1
:
$ time fping -r3 -t1000 -B1 10.11.12.13
10.11.12.13 is unreachable
real 0m4,016s
user 0m0,000s
sys 0m0,001s
Thank you very much!
I've been installing fping for monitoring equipments in a network, and found a strange behavior that I don't understand and see it as a problem. When using -r, the execution time increases in a non-expected, not linear, way. Here is some data, using an IP address that doesn't exist in the network:
Without -r, it takes a second, as expected:
With -r 1, a single retry, the time is as expected, (2*Timeout + 0.5s):
When doing 2 retries, the time grows outside what I expected:
Here is a table of values following the same pattern:
Is there a reason for the increment after each try not be (Timeout + Time Between Tries)? Shouldn't it be a linear growth on time?