fping results 'packet loss' - How is it determined?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How is packet loss determined in fping? How do we receive 2% or 3% packet loss in a single ping?
Is packet loss accumulative or is it based on each individual ping?
for examples of how to use fping. You will see its design is to use it in scripts for sys admins with large networks to monitor.
Hi, thank you for the information and links as well. I get the idea as to how packet loss is determined when pings are missed, but what is confusing me is that when running a
Code:
fping -c [seconds] [ip range]
command, fping shows packet loss in each and every ping rather than the summary of pings at the end results. This leaves me to believe that fping may be sending more than 1 ICMP packet to its target per actual ping .. .. I am trying to figure out how a single ping can have lets say 3% loss, unless there is more than 1 ping being executed in that ping. I can understand a 0% or 100% loss but how would I get results like 3% in just a single ICMP request? My original post shows how the output of fping -c is displayed and you'll notice that fping is reporting the packet loss for every icmp request where I 'thought' it would be either a reachable (0% loss) or unreachable (100% loss) deal.
I can not answer you question on how the program calculates the % of loss. That would have to be in the doc, or a question to the developer.
I usually use nmap when looking at network problems.
I have this package installed
Quote:
fping-5.0-x86_64-1_SBo
on Slackware. The output I get is similar to yours, low % loss on 1 or 2 pings.
I read through the README file in the doc directory. This tool was written at Stanford University to check their network. You can contact them at https://fping.org/
In the default mode, if a target replies, it is noted and removed from the list of targets to check; if a target does not respond within a certain time limit and/or retry limit ..
and
Quote:
-rn
Retry limit (default 3). This is the number of times an attempt at pinging a target will be made, not including the first try.
although I agree they could have made it more explicit.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.