LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-14-2011, 01:20 PM   #1
Joe Cloutier
LQ Newbie
 
Registered: Sep 2011
Posts: 5

Rep: Reputation: Disabled
How can I get the "-w deadline" option on flood ping changed?


For long latency circuits, using "ping -f -c xxxxx -l yyy -w 5" will give a receive count that is short. That is, ping will exit while packets are still in flight. The "-w deadline" option should be changed to honor "-c xxxx" packet count, and then stop transmitting pings, and wait "-w x" seconds for the stragglers to catch up.

Otherwise we cannot trust the "dropped packet count". They might not be dropped, just in transit when ping exits.
 
Old 09-14-2011, 02:31 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
You can use -i option to control ping sending speed if you think that ping flooding might be too fast.
 
Old 09-14-2011, 02:34 PM   #3
Joe Cloutier
LQ Newbie
 
Registered: Sep 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
We use the flood option of ping to saturate a circuit. So we need the highest data rate we can generate. This is a good trick to find duplex mis-matches, faulty hardware, etc. To do this we need an accurate sent/received count.
 
Old 09-15-2011, 02:41 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
What problem do you get? The -w ping option, waiting xx second to collect ping response, should be working.
 
Old 09-15-2011, 02:58 PM   #5
Joe Cloutier
LQ Newbie
 
Registered: Sep 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
yes, the private version of ping that I changed some years ago and that I use does that.

However, what is happening with the official version of Linux ping, and some google searches verify this, is that with the "-w deadline" option enabled, the "-c count" option is ignored, and ping continues to generate pings beyond "count" until "-w deadline" times out.

So I think the intent of "-w deadline" was to stop transmitting pings at "-c count", wait "-w deadline" seconds to allow the stragglers to catch up, and provide an accurate ping sent/receive count.

But it basically is generating the old behavior that, I think, "-w deadline" was supposed to fix.

In my ping, when "-c count" completed, I started a 2 second timer, went to sleep and continued to receive pings, and at the 2 second timer alarm went into completion and exit.

That is what we need. How do we get the code changed? I have never submitted a change request for Linux code.
 
Old 09-16-2011, 02:15 PM   #6
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
The ping tool in Linux, such as Fedora 15, work fine. The -w option work like, ping does not exit after count packet are sent, it waits either for deadline expire or until count probes are answered.
 
  


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
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 7 12-19-2015 01:03 AM
changed bios to USB hard drive as #1 option - boots "Missing operating system" Elendrael Linux - Newbie 4 09-12-2007 08:48 PM
"dig mx" and "ping google" do not work when bind9 runs.. why? alexxxis Linux - Software 4 01-07-2007 03:16 AM
"Shutdown" and "Restart" option missing after upgrade hansalfredche Mandriva 8 11-02-2006 07:23 AM
anging "Protocol" option to "IMPS/2" in XF86Config-4 causes problems zstingx Linux - General 2 10-27-2003 09:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:51 PM.

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