LinuxQuestions.org
Help answer threads with 0 replies.
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 05-26-2011, 06:31 AM   #1
nrbenison
LQ Newbie
 
Registered: May 2011
Posts: 2

Rep: Reputation: Disabled
ping -i is interframe gap?


When we use ping, the option -i is referred as the interval time between sending each packet..

Is this interval is the same as 'Inter Frame Gap(IFG)'?? As far as I have heard, IFG is introduced in the Physical layer. So using this option can we really change the Inter Frame Gap??

If I use 'ping -i 0' which means that the interval is 0, I still get some value of 18.3 or somethin as ipg in the ping output.
So IFG and 'ping -i' are same or not??
 
Old 05-26-2011, 07:13 AM   #2
zordrak
Member
 
Registered: Feb 2008
Distribution: Slackware
Posts: 595

Rep: Reputation: 116Reputation: 116
Not.

-i is the sending interval. That's all. You specify 2, the pings are started at 2 second intervals.

However, if you specify -i 0 (with a specified count i.e. -c 5 so you don't cause a proper flood), then ping will work out and report the ipg to you as it's trying to send all five ping packets at once.

Quote:
$ ping -i 1 -c 5 <host>
PING <host> 56(84) bytes of data.
64 bytes from <host>: icmp_req=1 ttl=64 time=0.000 ms
64 bytes from <host>: icmp_req=2 ttl=64 time=0.000 ms
64 bytes from <host>: icmp_req=3 ttl=64 time=0.000 ms
64 bytes from <host>: icmp_req=4 ttl=64 time=0.000 ms
64 bytes from <host>: icmp_req=5 ttl=64 time=0.000 ms

--- <host> ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4004ms
rtt min/avg/max/mdev = 0.000/0.000/0.000/0.000 ms
Quote:
$ ping -i 0 -c 5 <host>
PING <host> 56(84) bytes of data.
64 bytes from <host>: icmp_req=1 ttl=64 time=0.000 ms
64 bytes from <host>: icmp_req=2 ttl=64 time=0.000 ms
64 bytes from <host>: icmp_req=3 ttl=64 time=0.000 ms
64 bytes from <host>: icmp_req=4 ttl=64 time=0.000 ms
64 bytes from <host>: icmp_req=5 ttl=64 time=0.000 ms

--- <host> ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 1ms
rtt min/avg/max/mdev = 0.000/0.000/0.000/0.000 ms, ipg/ewma 0.250/0.000 ms

Last edited by zordrak; 05-26-2011 at 10:39 AM.
 
Old 05-26-2011, 08:46 AM   #3
nrbenison
LQ Newbie
 
Registered: May 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Ok,thanks...

Quote:
--- lisa.jennic.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 1ms
rtt min/avg/max/mdev = 0.000/0.000/0.000/0.000 ms, ipg/ewma 0.250/0.000 ms

What is meant by the time in Bold? Does it mean the total time for which the ping packets are transmitted?
The IPG value is shown in the output. Why does the IPG value change when it is said that it is constant for a interface with a particular speed?
 
  


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
Strange Ping Issue - Can't ping localhost but can ping others on LAN code_slinger Linux - Networking 15 03-30-2015 02:39 PM
Gap in logs anubis2k7 Linux - Security 1 02-14-2008 07:19 PM
2 second gap in banshee vertigo88x Linux - Software 0 02-04-2008 07:23 PM
Gimp Gap cuco76 Linux - Software 5 07-18-2007 10:56 AM
K3B - no 2 sec gap _Lukes Linux - Software 3 02-23-2007 09:03 AM

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

All times are GMT -5. The time now is 02:34 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