Bug 115333 - ping flood is hardly a flood
Summary: ping flood is hardly a flood
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: iputils (Show other bugs)
(Show other bugs)
Version: 3.0
Hardware: athlon Linux
Target Milestone: ---
Assignee: Phil Knirsch
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2004-02-10 22:01 UTC by Andrew Schultz
Modified: 2015-03-05 01:13 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-04-22 13:51:30 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Andrew Schultz 2004-02-10 22:01:15 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040130

Description of problem:
ping flood only sends about 70 packets/second (+/- 20), even though
the man page says it should do at least 100 packets/second.  This
occurs even when pinging the loopback address, where response whould
be almost instantaneous.  If I run tcpdump and watch the packets, the
icmp packets replies occur quickly and then ping waits to send another
request.  This is also evident from the ping output which has very low
ping times.

[root@turbo andrew]# time ping -f localhost
PING localhost.localdomain ( 56(84) bytes of data.
--- localhost.localdomain ping statistics ---
1530 packets transmitted, 1530 received, 0% packet loss, time 19420ms
rtt min/avg/max/mdev = 0.036/0.044/0.055/0.005 ms, pipe 2, ipg/ewma
12.701/0.043 ms

real    0m19.427s
user    0m0.000s
sys     0m0.000s

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
time ping -f localhost

Actual Results:  packets per second is less than 100

Expected Results:  packets per second should be at least 100
(according to man page)
based on the response for pinging localhost, it should have done
~20000 packets/second.

Comment 1 Phil Knirsch 2004-04-22 13:51:30 UTC
The man page says flood ping does up to 100 packages per second, not
more than 100:

 -f     Flood ping. For  every  ECHO_REQUEST  sent  a  period  ââ.ââ  is
              printed,  while  for  ever  ECHO_REPLY  received  a
backspace is
              printed.  This provides a rapid display of how many
packets  are
              being  dropped.   If  interval is not given, it sets
interval to
              zero and outputs packets as fast as they come back or 
one  hun-
              dred  times  per second, whichever is more.  Only the
              may use this option with zero interval.

This new behaviour is wanted as flood ping was know to be used to
"shutdown" remote systems by sending as much packages as possible.
This is now not possible anymore so easily with ping.

Read ya, Phil

Comment 2 Andrew Schultz 2004-04-22 14:11:32 UTC
> The man page says flood ping does up to 100 packages per second, not
> more than 100:

this is certainly false.  The man page says:

> outputs packets as fast as they come back or one  hundred  times  per 
> second, whichever is more.

"as fast as they come back" is more than "one hundred times per
second" and should be used, according to the man page.

Comment 3 Phil Knirsch 2004-04-22 14:32:17 UTC
Ups, true, but then the manpage needs to be corrected at some point as
the code clearly limits to a maximum of 100 packages per second.

Read ya, Phil

Note You need to log in before you can comment on or make changes to this bug.