Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect results reported when pinging multiple hosts #97

Closed
karlism opened this issue May 25, 2016 · 2 comments
Closed

Incorrect results reported when pinging multiple hosts #97

karlism opened this issue May 25, 2016 · 2 comments
Labels

Comments

@karlism
Copy link

karlism commented May 25, 2016

Hello,

Incorrect number of transmitted and received packets is sometimes reported, when running fping with "-l" and "-Q" options, especially when latency to some of the hosts is big.

Here's an example fping output while pinging multiple hosts:
$ /tmp/fping-3.13/src/fping -v
fping: Version 3.13
fping: comments to david@schweikert.ch
$ /tmp/fping-3.13/src/fping -Q 10 -l -D -f /tmp/pinghosts
[11:15:58]
hkg-host01 : xmt/rcv/%loss = 9/8/11%, min/avg/max = 307/307/307
hkg-host02 : xmt/rcv/%loss = 9/8/11%, min/avg/max = 307/307/307
127.0.0.1 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.03/0.04/0.06
127.0.0.2 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.04/0.04/0.06
127.0.0.3 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.04/0.04/0.06
127.0.0.4 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.04/0.04/0.06
127.0.0.5 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.03/0.05/0.06
127.0.0.6 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.03/0.04/0.06
127.0.0.7 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.03/0.04/0.06
127.0.0.8 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.04/0.04/0.06
127.0.0.9 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.04/0.04/0.05
127.0.0.10 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.03/0.04/0.05
127.0.0.11 : xmt/rcv/%loss = 8/8/0%, min/avg/max = 0.03/0.04/0.05
127.0.0.12 : xmt/rcv/%loss = 8/8/0%, min/avg/max = 0.03/0.04/0.06
127.0.0.13 : xmt/rcv/%loss = 8/8/0%, min/avg/max = 0.03/0.04/0.06
127.0.0.14 : xmt/rcv/%loss = 8/8/0%, min/avg/max = 0.03/0.04/0.06
127.0.0.15 : xmt/rcv/%loss = 8/8/0%, min/avg/max = 0.03/0.04/0.05
127.0.0.16 : xmt/rcv/%loss = 8/8/0%, min/avg/max = 0.04/0.05/0.07
127.0.0.17 : xmt/rcv/%loss = 8/8/0%, min/avg/max = 0.03/0.04/0.06
127.0.0.18 : xmt/rcv/%loss = 8/8/0%, min/avg/max = 0.04/0.05/0.06
127.0.0.19 : xmt/rcv/%loss = 8/8/0%, min/avg/max = 0.03/0.04/0.05
127.0.0.20 : xmt/rcv/%loss = 8/8/0%, min/avg/max = 0.04/0.04/0.05
mlt-host01 : xmt/rcv/%loss = 8/8/0%, min/avg/max = 83.1/83.2/83.3
mlt-host02 : xmt/rcv/%loss = 8/8/0%, min/avg/max = 83.2/83.3/84.2
127.0.0.21 : xmt/rcv/%loss = 8/8/0%, min/avg/max = 0.03/0.04/0.05
127.0.0.22 : xmt/rcv/%loss = 8/8/0%, min/avg/max = 0.04/0.05/0.06
127.0.0.23 : xmt/rcv/%loss = 8/8/0%, min/avg/max = 0.03/0.04/0.06
127.0.0.24 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.03/0.04/0.06
127.0.0.25 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.03/0.04/0.06
127.0.0.26 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.03/0.04/0.06
127.0.0.27 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.04/0.04/0.06
127.0.0.28 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.04/0.04/0.06
127.0.0.29 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.03/0.04/0.06
127.0.0.30 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.03/0.04/0.06
127.0.0.31 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.03/0.04/0.06
127.0.0.32 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.04/0.04/0.06
127.0.0.33 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.04/0.04/0.05
127.0.0.34 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.03/0.04/0.09
127.0.0.35 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.03/0.05/0.06
127.0.0.36 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.03/0.04/0.06
127.0.0.37 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.04/0.04/0.05
127.0.0.38 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.03/0.04/0.05
127.0.0.39 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.04/0.05/0.08
127.0.0.40 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.04/0.04/0.05
127.0.0.41 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.04/0.05/0.08
127.0.0.42 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.04/0.06/0.12
[11:16:08]
hkg-host01 : xmt/rcv/%return = 8/9/112%, min/avg/max = 307/307/308
hkg-host02 : xmt/rcv/%return = 8/9/112%, min/avg/max = 307/307/307
127.0.0.1 : xmt/rcv/%loss = 8/8/0%, min/avg/max = 0.03/0.04/0.05
127.0.0.2 : xmt/rcv/%loss = 8/8/0%, min/avg/max = 0.03/0.04/0.09
127.0.0.3 : xmt/rcv/%loss = 8/8/0%, min/avg/max = 0.03/0.04/0.06
127.0.0.4 : xmt/rcv/%loss = 8/8/0%, min/avg/max = 0.03/0.04/0.06
127.0.0.5 : xmt/rcv/%loss = 8/8/0%, min/avg/max = 0.03/0.05/0.13
127.0.0.6 : xmt/rcv/%loss = 8/8/0%, min/avg/max = 0.03/0.03/0.05
127.0.0.7 : xmt/rcv/%loss = 8/8/0%, min/avg/max = 0.03/0.03/0.05
127.0.0.8 : xmt/rcv/%loss = 8/8/0%, min/avg/max = 0.03/0.04/0.06
127.0.0.9 : xmt/rcv/%loss = 8/8/0%, min/avg/max = 0.04/0.04/0.06
127.0.0.10 : xmt/rcv/%loss = 8/8/0%, min/avg/max = 0.03/0.03/0.05
127.0.0.11 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.03/0.04/0.06
127.0.0.12 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.03/0.05/0.13
127.0.0.13 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.02/0.04/0.06
127.0.0.14 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.03/0.03/0.05
127.0.0.15 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.03/0.04/0.05
127.0.0.16 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.03/0.04/0.06
127.0.0.17 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.03/0.04/0.05
127.0.0.18 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.02/0.03/0.05
127.0.0.19 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.03/0.04/0.06
127.0.0.20 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.03/0.04/0.05
mlt-host01 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 83.2/83.8/87.3
mlt-host02 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 83.2/83.3/83.4
127.0.0.21 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.04/0.04/0.06
127.0.0.22 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.03/0.04/0.07
127.0.0.23 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.03/0.05/0.11
127.0.0.24 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.04/0.04/0.06
127.0.0.25 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.04/0.04/0.05
127.0.0.26 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.02/0.04/0.09
127.0.0.27 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.03/0.04/0.05
127.0.0.28 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.03/0.04/0.05
127.0.0.29 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.04/0.04/0.05
127.0.0.30 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.03/0.04/0.12
127.0.0.31 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.03/0.05/0.15
127.0.0.32 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.04/0.04/0.07
127.0.0.33 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.03/0.04/0.06
127.0.0.34 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.03/0.04/0.06
127.0.0.35 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.03/0.04/0.05
127.0.0.36 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.03/0.04/0.05
127.0.0.37 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.04/0.04/0.05
127.0.0.38 : xmt/rcv/%loss = 9/9/0%, min/avg/max = 0.03/0.05/0.08
127.0.0.39 : xmt/rcv/%loss = 8/8/0%, min/avg/max = 0.04/0.04/0.06
127.0.0.40 : xmt/rcv/%loss = 8/8/0%, min/avg/max = 0.03/0.04/0.05
127.0.0.41 : xmt/rcv/%loss = 8/8/0%, min/avg/max = 0.04/0.04/0.06
127.0.0.42 : xmt/rcv/%loss = 8/8/0%, min/avg/max = 0.03/0.03/0.04

If 127.0.0.0/8 test hosts are removed from the list, then fping behaves as expected.

@schweikert
Copy link
Owner

This a bit of a conceptual problem because of the fact that there are various loops/timers involved. See also the discussion in #105.
The proper solution would be making sure that probes sent shortly before the report interval are only used for the next report, but this probably requires substantial refactoring.

@schweikert
Copy link
Owner

Anyway, could you test with the current develop branch and with parameters like -p 1007 -Q 10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants