Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Dec 2002 11:59:39 -0800 (PST)
From:      Matthew Dillon <dillon@apollo.backplane.com>
To:        Ruslan Ermilov <ru@FreeBSD.ORG>
Cc:        "matthew c. mead" <mmead@goof.com>, Robert Watson <rwatson@FreeBSD.ORG>, freebsd-net@FreeBSD.ORG
Subject:   Re: ping -i 0 (was: Re: TCP interactions)
Message-ID:  <200212241959.gBOJxdIE044014@apollo.backplane.com>
References:  <20021221165745.A67089@goof.com> <Pine.NEB.3.96L.1021222105809.91887B-100000@fledge.watson.org> <20021222151259.A21189@goof.com> <200212222106.gBML6INI032302@apollo.backplane.com> <20021222230527.A30324@goof.com> <200212230652.gBN6qZmI035236@apollo.backplane.com> <20021224175432.GA92573@sunbay.com>

next in thread | previous in thread | raw e-mail | index | archive | help
    Why are you using -i0 ?  That is likely to result in temporary
    unix domain queuing overflows or interface queue drops.  And there 
    is no point using ping to test for packet problems if you don't tell
    it to send larger packets.  Do something like this:

    Use -i 0.05 -s 1200 -c 1000 destination

					-Matt
					Matthew Dillon 
					<dillon@backplane.com>

:This is with net.inet.icmp.icmplim and net.inet.icmp.icmplim_output
:both set to zero, and with only lo0 interface ``up''.  (Yes I know
:that -i should not allow 0, even for root.)
:
:The sendto(2) call in ping.c:pinger() always succeeds, yet
:``netstat -s -p icmp'' shows the same delta as ping(8)?
:
:allmouth# netstat -z -s -p icmp > /dev/null
:allmouth# netstat -s -p icmp > 1
:allmouth# ping -i0 -c1000 localhost | tail -3
:--- localhost ping statistics ---
:1000 packets transmitted, 217 packets received, 78% packet loss
:round-trip min/avg/max/stddev =3D 0.063/6.769/30.353/12.241 ms
:allmouth# netstat -s -p icmp > 2
:allmouth# diff 1 2
:3a4,5
:>       Output histogram:
:>               echo reply: 217
:10c12,15
:<       0 message responses generated
:---
:>       Input histogram:
:>               echo reply: 217
:>               echo: 217
:>       217 message responses generated
:
:
:Cheers,
:--=20
:Ruslan Ermilov		Sysadmin and DBA,
:ru@sunbay.com		Sunbay Software AG,
:ru@FreeBSD.org		FreeBSD committer,
:+380.652.512.251	Simferopol, Ukraine
:
:http://www.FreeBSD.org	The Power To Serve
:http://www.oracle.com	Enabling The Information Age
:
:--17pEHd4RhPHOinZp
:Content-Type: application/pgp-signature
:Content-Disposition: inline
:
:-----BEGIN PGP SIGNATURE-----
:Version: GnuPG v1.2.1 (FreeBSD)
:
:iD8DBQE+CJ9YUkv4P6juNwoRAu8iAJ0VtKCP5nMsBGI5srtbIHyjTw5H4gCfWVlO
:s1mh+kZbfPDH9+/yv2pm4lo=
:=9h/Y
:-----END PGP SIGNATURE-----
:
:--17pEHd4RhPHOinZp--
:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200212241959.gBOJxdIE044014>