I added the following information to bug 146, but since it was marked at DISCARDed, I don't known if my edits made it to anyone (I didn't receive mail confirmation from bugzilla). This is an FAQ on linux kernel: moremagic:~# ping -f localhost PING localhost (127.0.0.1): 56 data bytes ................................................................................................................................................................................................................................................................................................................................................... --- localhost ping statistics --- 677 packets transmitted, 338 packets received, 50% packet loss round-trip min/avg/max = 0.4/443.7/708.2 ms There is a known problem with the ping binary that comes with most distributions, and I was hoping RH 5.2 would have the fixed version. Please look at: http://www.egroups.com/list/linux-kernel/77859.html http://www.egroups.com/list/linux-kernel/78066.html (If you don't know who Alexey Kuznetsov is, he did a _lot_ of TCP/IP work in the 2.1 kernels)
*** Bug 1284 has been marked as a duplicate of this bug. *** {1252}$ sudo ping -f localhost Password: PING localhost.localdomain (127.0.0.1): 56 data bytes ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................--- localhost.localdomain ping statistics --- 1596 packets transmitted, 1 packets received, 99% packet loss round-trip min/avg/max = 0.567/0.567/0.567 ms I have heard the latest ping in iputils works properly, alan cox seems to know the details.
Jeff this is still screwed in netkit-base-0.10-26. Do you have that patch from alan?
It wasn't a piece of cake to find the patch, but here is the message you're looking for: http://www.uwsg.indiana.edu/hypermail/linux/kernel/9811.2/0818.html and the patch: http://www.alfie.demon.co.uk/download/ping.diff.gz
Apparently ping flood can transmit faster than it can receive so the patch "staunches the flow". Thanks for the patch. I don't understand the Kusnetsov ping. The code is seriously different and I'm reluctant to fix ping if it ain't broke ...
*** Bug 146 has been marked as a duplicate of this bug. *** Try ping -f localhost as root it should be obvious: --- localhost ping statistics --- 1847 packets transmitted, 177 packets received, 90% packet loss round-trip min/avg/max = 0.9/42.4/84.9 ms 90% is bad... ------- Additional Comments From pbrown 11/20/98 06:44 ------- Not a bug, you are flood pinging. Not every ping request will come back. You are hammering the networking code in the kernel, it can't keep up. ------- Additional Comments From marcsoft 11/28/98 01:59 ------- Actually Pavel is most likely using a recent 2.1 kernel. There is a known problem with the ping binary. Please look at: http://www.egroups.com/list/linux-kernel/77859.html http://www.egroups.com/list/linux-kernel/78066.html (If you don't know who Alexey Kuznetsov is, he did a _lot_ of TCP/IP work in the 2.1 kernels)
*** Bug 2238 has been marked as a duplicate of this bug. *** The ping in netkit-base is bad. See the endless discussion on linux-kernel for more info. A well-behaved ping is part of iproute utils. I forget the url, but it's listed in the Changes file.
Here's a recent message from Alexey about ping in linux-kernel: --- From: kuznet.ac.ru Newsgroups: lists.linux.kernel Subject: Re: Linux ping flood on localhost Date: 16 Apr 1999 11:50:21 -0700 Organization: Magic Mail <-> News Gateway Hello! > So where do I get a ping later than what is shown in /linux/Documentation Debian includes more or less sane ping. Redhat folks are less reactive, but I did not see 5.9 yet. Good ping may be found at ftp://ftp.inr.ac.ru/iputils-current.tar.gz, though it will not compile for linux-2.0. Debian's one is more "portable". Alexey --- Another message later says that a correct URL is: http://ftp.sunet.se/ftp/pub/network/ip-routing/ BTW, it'd be nice if bugzilla would let me add something to a bug without re-opening it...
netkit-base-0.10-30.src.rpm contains Kuznetzsov ping.