initial version from Mike Muuss
[unix-history] / usr / src / sbin / ping / ping.8
CommitLineData
9aecb40e
KM
1.\" Copyright (c) 1985 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
5.\" @(#)ping.8 6.1 (Berkeley) %G%
6.\"
7.TH PING 8 ""
8.UC 6
9.SH NAME
10ping \- send ICMP ECHO_REQUEST packets to network hosts
11.SH SYNOPSIS
12.B /etc/ping
13.B host
14[
15.B packetsize
16]
17.SH DESCRIPTION
18The ARPA InterNet is a large and complex aggregation of
19network hardware, connected together by gateways.
20Tracking a single-point hardware or software failure
21can often be difficult.
22.I Ping
23utilizes the mandatory
24ICMP protocol's ECHO_REQUEST datagram to elicit an
25ICMP ECHO_RESPONSE from a distant host or gateway.
26ECHO_REQUEST datagrams (``pings'') have an IP and ICMP header,
27followed by a \fBstruct timeval\fR, and then an arbitrary number
28of ``pad'' bytes used to fill out the packet.
29Default datagram length is 64 bytes, but this may be changed
30using the command-line option.
31.PP
32When using \fIping\fR for fault isolation,
33it should first be run on the local
34host, to verify that the local network interface is up and
35running. Then, hosts and gateways further and further away
36should be ``pinged''. A lack of output from the \fIping\fR
37program indicates no response; in normal operation,
38\fIping\fR sends one datagram per second, and
39prints one line of output for every ECHO_RESPONSE returned.
40Round-trip times and packet loss statistics are computed.
41If the program is terminated with a SIGINT, a brief
42summary is displayed.
43.SH AUTHOR
44Mike Muuss
45.SH SEE ALSO
46netstat(8),
47ifconfig(5)