3 ping, gping, traceroute, hogports \- probe the Internet
53 .B [\fImtpt\fP/]\fIproto\fP!\fIaddress\fP!\fIstartport\fP[-\fIendport\fP]
56 sends ICMP echo request messages to a system.
57 It can be used to determine the network delay
58 and whether or not the destination is up.
59 By default, a line is written to standard output for
61 If a reply is received the line contains the request
62 id (starting at 0 and incrementing), the round trip time
63 for this request, the average round trip time, and the time
64 to live in the reply packet. If no reply is received the line
65 contains the word "lost", the request id, and the average round
68 If a reply is received for each request,
70 returns successfully. Otherwise it returns an error status of
76 force the use of IPv6's ICMP,
78 instead of IPv4's ICMP.
80 tries to determine which version of IP to use automatically.
83 adds the IP source and destination addresses to each report.
86 send messages as fast as possible (flood).
89 sets the time between messages
92 milliseconds, default 1000 ms.
95 causes only lost messages to be reported.
98 requests that a total of
100 messages be sent, default 32.
103 suppresses any output (i.e. be quiet).
106 randomizes the delay with a minimum extra delay of 0 ms and a
107 maximum extra delay of the selected interval.
110 sets the length of the message to be
112 bytes, ICMP header included.
113 The size cannot be smaller than 32 or
114 larger than 8192. The default is 64.
117 sets the additional time in milliseconds to wait
118 after all packets are sent.
123 with a graphical display. It
124 presents separate graphs for each destination
130 display round trip time in seconds.
134 display percentage of lost messages.
135 A message is considered lost if not
136 replied to in 10 seconds. The percentage
137 is an exponentially weighted average.
140 sets the time between messages
143 milliseconds, default 5000 ms.
145 Graphs can be dropped and added using
146 the button 3 menu. Clicking button 1
147 on a datapoint displays the value of the
148 datapoint and the time it was recorded.
151 displays the IP addresses and average round trip times to all
152 routers between the machine it is run on and
154 It does this by sending packets to
156 with increasing times to live (TTL) in their headers.
157 Each router that a packet expires at replies with an ICMP
162 print debugging to standard error
165 just print out IP numbers, don't try to
166 look up the names of the routers.
171 attempts at each TTL value (default 3).
174 set the starting TTL value to
179 print out a histogram of times from request
180 to response at each TTL value. The histogram
187 announces on a range of ports to keep them from other processes.
188 For example, to keep anyone from making a vncserver visible on
189 the network mounted at
193 ip/hogports /net.alt/tcp!*!5900-5950
196 .B /sys/src/cmd/ip/ping.c
198 .B /sys/src/cmd/ip/gping.c
200 .B /sys/src/cmd/ip/traceroute.c
202 .B /sys/src/cmd/ip/hogports.c