tracepath.8 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. .\" This manpage has been automatically generated by docbook2man
  2. .\" from a DocBook document. This tool can be found at:
  3. .\" <http://shell.ipoline.com/~elmert/comp/docbook2X/>
  4. .\" Please send any bug reports, improvements, comments, patches,
  5. .\" etc. to Steve Cheng <steve@ggi-project.org>.
  6. .TH "TRACEPATH" "8" "24 Mayıs 2011" "iputils-101006" "System Manager's Manual: iputils"
  7. .SH NAME
  8. tracepath, tracepath6 \- traces path to a network host discovering MTU along this path
  9. .SH SYNOPSIS
  10. \fBtracepath\fR [ \fB-n\fR] [ \fB-b\fR] [ \fB-l \fIpktlen\fB\fR] \fB\fIdestination\fB\fR [ \fB\fIport\fB\fR]
  11. .SH "DESCRIPTION"
  12. .PP
  13. It traces path to \fIdestination\fR discovering MTU along this path.
  14. It uses UDP port \fIport\fR or some random port.
  15. It is similar to \fBtraceroute\fR, only does not require superuser
  16. privileges and has no fancy options.
  17. .PP
  18. \fBtracepath6\fR is good replacement for \fBtraceroute6\fR
  19. and classic example of application of Linux error queues.
  20. The situation with IPv4 is worse, because commercial
  21. IP routers do not return enough information in ICMP error messages.
  22. Probably, it will change, when they will be updated.
  23. For now it uses Van Jacobson's trick, sweeping a range
  24. of UDP ports to maintain trace history.
  25. .SH "OPTIONS"
  26. .TP
  27. \fB-n\fR
  28. Print primarily IP addresses numerically.
  29. .TP
  30. \fB-b\fR
  31. Print both of host names and IP addresses.
  32. .TP
  33. \fB-l\fR
  34. Sets the initial packet length to \fIpktlen\fR instead of
  35. 65536 for \fBtracepath\fR or 128000 for \fBtracepath6\fR.
  36. .SH "OUTPUT"
  37. .PP
  38. .nf
  39. root@mops:~ # tracepath6 3ffe:2400:0:109::2
  40. 1?: [LOCALHOST] pmtu 1500
  41. 1: dust.inr.ac.ru 0.411ms
  42. 2: dust.inr.ac.ru asymm 1 0.390ms pmtu 1480
  43. 2: 3ffe:2400:0:109::2 463.514ms reached
  44. Resume: pmtu 1480 hops 2 back 2
  45. .fi
  46. .PP
  47. The first column shows TTL of the probe, followed by colon.
  48. Usually value of TTL is obtained from reply from network,
  49. but sometimes reply does not contain necessary information and
  50. we have to guess it. In this case the number is followed by ?.
  51. .PP
  52. The second column shows the network hop, which replied to the probe.
  53. It is either address of router or word [LOCALHOST], if
  54. the probe was not sent to the network.
  55. .PP
  56. The rest of line shows miscellaneous information about path to
  57. the correspinding network hop. As rule it contains value of RTT.
  58. Additionally, it can show Path MTU, when it changes.
  59. If the path is asymmetric
  60. or the probe finishes before it reach prescribed hop, difference
  61. between number of hops in forward and backward direction is shown
  62. following keyword async. This information is not reliable.
  63. F.e. the third line shows asymmetry of 1, it is because the first probe
  64. with TTL of 2 was rejected at the first hop due to Path MTU Discovery.
  65. .PP
  66. The last line summarizes information about all the path to the destination,
  67. it shows detected Path MTU, amount of hops to the destination and our
  68. guess about amount of hops from the destination to us, which can be
  69. different when the path is asymmetric.
  70. .SH "SEE ALSO"
  71. .PP
  72. \fBtraceroute\fR(8),
  73. \fBtraceroute6\fR(8),
  74. \fBping\fR(8).
  75. .SH "AUTHOR"
  76. .PP
  77. \fBtracepath\fR was written by
  78. Alexey Kuznetsov
  79. <kuznet@ms2.inr.ac.ru>.
  80. .SH "SECURITY"
  81. .PP
  82. No security issues.
  83. .PP
  84. This lapidary deserves to be elaborated.
  85. \fBtracepath\fR is not a privileged program, unlike
  86. \fBtraceroute\fR, \fBping\fR and other beasts of this kind.
  87. \fBtracepath\fR may be executed by everyone who has some access
  88. to network, enough to send UDP datagrams to investigated destination
  89. using given port.
  90. .SH "AVAILABILITY"
  91. .PP
  92. \fBtracepath\fR is part of \fIiputils\fR package
  93. and the latest versions are available in source form at
  94. http://www.skbuff.net/iputils/iputils-current.tar.bz2.