Debian Codegraph @

doc/tracepath.xml

raw symbols SCIP
1 <refentry xmlns="http://docbook.org/ns/docbook" version="5.0"
2 xml:id="man.tracepath">
3
4 <refentryinfo>
5 <title>tracepath</title>
6 <productname>iputils</productname>
7 </refentryinfo>
8
9 <refmeta>
10 <refentrytitle><application>tracepath</application></refentrytitle>
11 <manvolnum>8</manvolnum>
12 <refmiscinfo class='manual'>iputils</refmiscinfo>
13 </refmeta>
14
15 <refnamediv>
16 <refname><application>tracepath</application></refname>
17 <refpurpose>traces path to a network host discovering MTU along
18 this path</refpurpose>
19 </refnamediv>
20
21 <refsynopsisdiv>
22 <cmdsynopsis sepchar=" ">
23 <command>tracepath</command>
24 <arg choice="opt" rep="norepeat">
25 <option>-4</option>
26 </arg>
27 <arg choice="opt" rep="norepeat">
28 <option>-6</option>
29 </arg>
30 <arg choice="opt" rep="norepeat">
31 <option>-n</option>
32 </arg>
33 <arg choice="opt" rep="norepeat">
34 <option>-b</option>
35 </arg>
36 <arg choice="opt" rep="norepeat">
37 <option>-l
38 <replaceable>pktlen</replaceable></option>
39 </arg>
40 <arg choice="opt" rep="norepeat">
41 <option>-m
42 <replaceable>max_hops</replaceable></option>
43 </arg>
44 <arg choice="opt" rep="norepeat">
45 <option>-p
46 <replaceable>port</replaceable></option>
47 </arg>
48 <arg choice="opt" rep="norepeat">
49 <option>-V</option>
50 </arg>
51 <arg choice="req" rep="norepeat">destination</arg>
52 </cmdsynopsis>
53 </refsynopsisdiv>
54
55 <refsection xml:id="description">
56 <info>
57 <title>DESCRIPTION</title>
58 </info>
59 <para>It traces the network path to
60 <emphasis remap='I'>destination</emphasis> discovering MTU along
61 this path. It uses UDP port
62 <emphasis remap='I'>port</emphasis> or some random port. It is
63 similar to
64 <emphasis remap='B'>traceroute</emphasis>. However, it does not
65 require superuser privileges and has no fancy options.</para>
66 <para>
67 <emphasis remap='B'>tracepath -6</emphasis> is a good replacement
68 for
69 <emphasis remap='B'>traceroute6</emphasis> and classic example
70 of application of Linux error queues. The situation with IPv4
71 is worse, because commercial IP routers do not return enough
72 information in ICMP error messages. Probably, it will change,
73 when they are updated. For now it uses Van Jacobson's
74 trick, sweeping a range of UDP ports to maintain trace
75 history.</para>
76 </refsection>
77
78 <refsection xml:id="options">
79 <info>
80 <title>OPTIONS</title>
81 </info>
82 <variablelist remap='TP'>
83 <varlistentry>
84 <term>
85 <option>-4</option>
86 </term>
87 <listitem>
88 <para>Use IPv4 only.</para>
89 </listitem>
90 </varlistentry>
91 <varlistentry>
92 <term>
93 <option>-6</option>
94 </term>
95 <listitem>
96 <para>Use IPv6 only.</para>
97 </listitem>
98 </varlistentry>
99 <varlistentry>
100 <term>
101 <option>-n</option>
102 </term>
103 <listitem>
104 <para>Print primarily IP addresses numerically.</para>
105 </listitem>
106 </varlistentry>
107 <varlistentry>
108 <term>
109 <option>-b</option>
110 </term>
111 <listitem>
112 <para>Print both: Host names and IP addresses.</para>
113 </listitem>
114 </varlistentry>
115 <varlistentry>
116 <term>
117 <option>-l</option>
118 </term>
119 <listitem>
120 <para>Sets the initial packet length to
121 <emphasis remap='I'>pktlen</emphasis> instead of 65535 for
122 <emphasis remap='B'>IPv4</emphasis> or 128000 for
123 <emphasis remap='B'>IPv6</emphasis>.</para>
124 </listitem>
125 </varlistentry>
126 <varlistentry>
127 <term>
128 <option>-m</option>
129 </term>
130 <listitem>
131 <para>Set maximum hops (or maximum TTLs) to
132 <emphasis remap='I'>max_hops</emphasis> instead of
133 30.</para>
134 </listitem>
135 </varlistentry>
136 <varlistentry>
137 <term>
138 <option>-p</option>
139 </term>
140 <listitem>
141 <para>Sets the initial destination port to use.</para>
142 </listitem>
143 </varlistentry>
144 <varlistentry>
145 <term>
146 <option>-V</option>
147 </term>
148 <listitem>
149 <para>Print version and exit.</para>
150 </listitem>
151 </varlistentry>
152 </variablelist>
153 </refsection>
154
155 <refsect1 id='output'>
156 <title>OUTPUT</title>
157 <literallayout remap='.nf'>
158 root@mops:~ # tracepath -6 3ffe:2400:0:109::2
159 1?: [LOCALHOST] pmtu 1500
160 1: dust.inr.ac.ru 0.411ms
161 2: dust.inr.ac.ru asymm 1 0.390ms pmtu 1480
162 2: 3ffe:2400:0:109::2 463.514ms reached
163 Resume: pmtu 1480 hops 2 back 2
164 </literallayout>
165 <para>The first column shows the TTL of the probe, followed by
166 colon. Usually the value of TTL is obtained from the reply from
167 the network, but sometimes it does not contain the necessary
168 information and we have to guess it. In this case the number is
169 followed by ?.</para>
170 <para>The second column shows the network hop which replied to
171 the probe. It is either the address of the router or the word
172 [LOCALHOST], if the probe was not sent to the network.</para>
173 <para>The rest of the line shows miscellaneous information about
174 the path to the corresponding network hop. It contains
175 the value of RTT, and additionally it can show Path MTU when it
176 changes. If the path is asymmetric or the probe finishes before
177 it reaches the prescribed hop, the number of hops in return
178 direction is shown next to the keyword "asymm". This information
179 is not reliable, e.g. the third line shows asymmetry of 1. This
180 is because the first probe with TTL of 2 was rejected at the
181 first hop due to Path MTU Discovery.</para>
182 <para>The last line summarizes information about all the paths
183 to the destination. It shows detected Path MTU, amount of hops
184 to the destination and our guess about the number of hops from
185 the destination to us, which can be different when the path is
186 asymmetric.</para>
187 </refsect1>
188
189 <refsect1 id='handling_errors'>
190 <title>HANDLING ERRORS</title>
191 <para>In case of errors <command>tracepath</command> prints short
192 error code.</para>
193 <informaltable>
194 <tgroup cols="3">
195 <thead>
196 <row>
197 <entry>Output</entry>
198 <entry>Code</entry>
199 <entry>Meaning</entry>
200 </row>
201 </thead>
202 <tfoot>
203 <row>
204 <entry>!A</entry>
205 <entry>EACCES</entry>
206 <entry>Communication administratively prohibited</entry>
207 </row>
208 <row>
209 <entry>!H</entry>
210 <entry>EHOSTUNREACH</entry>
211 <entry>Destination host unreachable</entry>
212 </row>
213 <row>
214 <entry>!N</entry>
215 <entry>ENETUNREACH</entry>
216 <entry>Destination network unreachable</entry>
217 </row>
218 <row>
219 <entry>!P</entry>
220 <entry>EPROTO</entry>
221 <entry>Destination protocol unreachable</entry>
222 </row>
223 <row>
224 <entry>pmtu N</entry>
225 <entry>EMSGSIZE</entry>
226 <entry>Message too long</entry>
227 </row>
228 <row>
229 <entry>reached</entry>
230 <entry>ECONNREFUSED</entry>
231 <entry>Connection refused</entry>
232 </row>
233 <row>
234 <entry></entry>
235 <entry>ETIMEDOUT</entry>
236 <entry>Connection timed out</entry>
237 </row>
238 <row>
239 <entry>NET ERROR N</entry>
240 <entry></entry>
241 <entry>Any other error</entry>
242 </row>
243 </tfoot>
244 </tgroup>
245 </informaltable>
246 </refsect1>
247
248 <refsect1 id='see_also'>
249 <title>SEE ALSO</title>
250 <para>
251 <citerefentry>
252 <refentrytitle>traceroute</refentrytitle>
253 <manvolnum>8</manvolnum>
254 </citerefentry>,
255 <citerefentry>
256 <refentrytitle>traceroute6</refentrytitle>
257 <manvolnum>8</manvolnum>
258 </citerefentry>,
259 <citerefentry>
260 <refentrytitle>ping</refentrytitle>
261 <manvolnum>8</manvolnum>
262 </citerefentry>.</para>
263 </refsect1>
264
265 <refsect1 id='author'>
266 <title>AUTHOR</title>
267 <para>
268 <command>tracepath</command> was written by Alexey Kuznetsov
269 &lt;[email protected]&gt;.</para>
270 </refsect1>
271
272 <refsect1 id='security'>
273 <title>SECURITY</title>
274 <para>No security issues.</para>
275 <para>This lapidary deserves to be elaborated.
276 <command>tracepath</command> is not a privileged program, unlike
277 <command>traceroute</command>,
278 <command>ping</command> and other beasts of their kind.
279 <command>tracepath</command> may be executed by everyone who has
280 enough access to the network to send UDP datagrams to the
281 desired destination using the given port.</para>
282 </refsect1>
283
284 <refsect1 id='availability'>
285 <title>AVAILABILITY</title>
286 <para>
287 <command>tracepath</command> is part of
288 <emphasis remap='I'>iputils</emphasis> package.</para>
289 </refsect1>
290 </refentry>