LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 11-01-2022, 02:47 PM   #1
Kaiden
LQ Newbie
 
Registered: Nov 2022
Posts: 2

Rep: Reputation: 0
fping results 'packet loss' - How is it determined?


Code:
x.x.x.x : [0], 84 bytes, 63.8 ms (63.8 avg, 0% loss)
x.x.x.x : [1], 84 bytes, 62.2 ms (63.0 avg, 0% loss)
x.x.x.x : [2], 84 bytes, 66.2 ms (64.1 avg, 0% loss)
x.x.x.x : [3], 84 bytes, 66.6 ms (64.7 avg, 0% loss)
x.x.x.x : [4], 84 bytes, 67.7 ms (65.3 avg, 2% loss)
x.x.x.x : [5], 84 bytes, 67.8 ms (65.7 avg, 3% loss)

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?
 
Old 11-01-2022, 03:42 PM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,229

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Quote:
fping results 'packet loss' - How is it determined?
The simple answer is, for every ping sent, the program is expecting 1 back. Lost pings are counted.

This program is used to ping multiple ip addresses with one command entered.

Have a read through this page -->https://www.tecmint.com/ping-multipl...s-using-fping/

and this page -->https://blog.eldernode.com/work-with-fping-in-linux/

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.
 
1 members found this post helpful.
Old 11-04-2022, 10:21 AM   #3
Kaiden
LQ Newbie
 
Registered: Nov 2022
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by camorri View Post
The simple answer is, for every ping sent, the program is expecting 1 back. Lost pings are counted.

This program is used to ping multiple ip addresses with one command entered.

Have a read through this page -->https://www.tecmint.com/ping-multipl...s-using-fping/

and this page -->https://blog.eldernode.com/work-with-fping-in-linux/

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.
 
Old 11-04-2022, 12:25 PM   #4
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,229

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
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/
 
Old 11-06-2022, 10:01 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
I think the answer is hinted at here https://linux.die.net/man/8/fping
Quote:
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.


You could check by using eg wireshark/tcpdump.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] using fping in a shell for running in crontab massy Linux - General 1 01-21-2014 03:57 AM
fping usage to show only reachble hosts Ole Juul Linux - Networking 1 04-12-2009 12:00 PM
Need help installing FPING Treikayan Linux - Software 2 10-31-2008 10:18 PM
ping from a file (not fping) noir911 Linux - Networking 2 02-04-2008 07:45 PM
fping says > duplicate for [0] saavik Linux - Networking 2 09-30-2002 01:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration