Debian Codegraph @

man/man1/rapath.1

raw
1 .\"
2 .\" Argus-5.0 Software
3 .\" Copyright (c) 2000-2024 QoSient, LLC
4 .\" All rights reserved.
5 .\"
6 .\"
7 .TH RAPATH 1 "02 September 2023" "rapath 5.0.3"
8 .SH NAME
9 \fBrapath\fP \- print traceroute path information from \fBargus(8)\fP data.
10 .SH SYNOPSIS
11 .B rapath
12 [\fB\-A\fP]
13 [\fB\-M [ aspath [dist] | asnode ] \fP]
14 [\fB\-m fields \fP]
15 [\fBraoptions\fP] [\fB--\fP \fIfilter-expression\fP]
16 .SH DESCRIPTION
17 .IX "rapath command" "" "\fLrapath\fP \(em argus data"
18 .LP
19 .B Rapath
20 reads
21 .BR argus
22 data from an \fIargus-data\fP source, and generates the path information
23 that can be formulated from flows that experience ICMP responses. When
24 a packet cause the creation of an ICMP response, for whatever reason,
25 the intermediate node that generates the ICMP packet is, by definition,
26 on the path. Argus data perserves this intermediate node address, and
27 .B rapath
28 uses this information to generate path information, for arbitrary
29 IP network traffic.
30 .B Rapath
31 is principally designed to recover traceroute.1 traffic, so that if a
32 trace is done in the network, argus will pick it up and record the
33 intermediate nodes and the RTT for the volleys. However the method
34 is generalized such that it also picks up routing loop conditions,
35 when they exist in the observed packet stream.
36
37 .B Rapath
38 will generate argus flow records that have the src address, dst address
39 and src ttl of the transmitted packet, aggregated so that the average
40 duration, standard deviation, max and min rtt's are preserved. The
41 most accurate estimate of the actual Round-Trip Time (RTT) between
42 a src IP address and an ICMP based intermediate node is the MinDur
43 field. As the number of samples gets larger, the MinDur field approaches
44 the theoretical best case minimum RTT. RTT's above this value, will
45 include variations in network and device delay.
46
47 When using the optional racluster.1 style flow descriptors, path information
48 to and from CIDR based network addresses can be calculated, so that traces
49 from and to multiple machines in the subnets can be grouped together.
50
51 The output of rapath can be piped into ranonymize.1, in order to
52 share path performance information without divulging the actual
53 addresses of intermidate routers.
54
55 .SH RAPATH SPECIFIC OPTIONS
56 Rapath, like all ra based clients, supports a number of \fBra options\fP including filtering of input argus
57 records through a terminating filter expression. See \fBra(1)\fP for a complete description of \fBra options\fP.
58 \fBrapath(1)\fP specific options are:
59 .PP
60 .PD 0
61 .TP 4 4
62 .B \-A
63 Draw a description of the path with a legend.
64 .TP 4 4
65 .BI \-M "\| pathmodes\^"
66 Supported pathmodes are:
67 .nf
68 \fB node\fP - print a series of nodes that represent the path (default).
69 \fB addr\fP - print the IP addresses, instead of node labels.
70 \fBaspath [dist] -\fP print the series of origin AS's along the path. Optional 'dist' adds the ttl range.
71 \fB asnode\fP - print the series of nodes, preceded with their AS's along the path.
72 .fi
73 .TP 4 4
74 .BI \-m "\| fields\^"
75 Specify modifications to the default flow identifiers.
76 Supported fields are:
77 .nf
78 \fB srcid\fP - the observation domain source identifier.
79 \fB saddr[/len]\fP - the source address, optionally as a CIDR address.
80 \fB daddr[/len]\fP - the destination address, optionally as a CIDR address.
81 .fi
82
83 .SH INVOCATION
84 A sample invocation of \fBrapath(1)\fP. This call reads \fBargus(8)\fP data from \fBinputfile\fP and generates any path information, based on src and dst IP addresses,
85 and writes the results to stdout.
86
87
88 .nf
89 .ft CW
90 .ps 6
91 .vs 7
92 % rapath -r inputfile
93
94 .vs
95 .ps
96 .ft P
97 SrcId SrcAddr Dir DstAddr Inode sTtl Mean StdDev Max Min Trans
98 192.168.0.68 192.168.0.68 -> 128.2.42.10 192.168.0.1 1 0.000686 0.000037 0.000764 0.000627 18
99 192.168.0.68 192.168.0.68 -> 128.2.42.10 10.22.96.1 2 0.009329 0.002719 0.019935 0.007435 18
100 192.168.0.68 192.168.0.68 -> 128.2.42.10 208.59.246.2 3 0.010686 0.002619 0.020175 0.007698 18
101 192.168.0.68 192.168.0.68 -> 128.2.42.10 207.172.15.85 4 0.013988 0.007116 0.032652 0.008923 11
102 192.168.0.68 192.168.0.68 -> 128.2.42.10 207.172.15.67 4 0.010188 0.000218 0.010676 0.009932 7
103 192.168.0.68 192.168.0.68 -> 128.2.42.10 198.32.118.161 5 0.010865 0.003557 0.019436 0.007937 18
104 192.168.0.68 192.168.0.68 -> 128.2.42.10 64.57.20.251 6 0.044649 0.008916 0.076137 0.039844 18
105 192.168.0.68 192.168.0.68 -> 128.2.42.10 64.57.21.146 7 0.056345 0.003985 0.065643 0.053371 18
106 192.168.0.68 192.168.0.68 -> 128.2.42.10 147.73.16.120 8 0.052594 0.003037 0.061770 0.050151 18
107 192.168.0.68 192.168.0.68 -> 128.2.42.10 128.2.255.249 9 0.055147 0.002541 0.064620 0.053151 18
108 192.168.0.68 192.168.0.68 -> 128.2.42.10 128.2.255.212 10 0.051835 0.000326 0.052362 0.051392 9
109 192.168.0.68 192.168.0.68 -> 128.2.42.10 128.2.255.205 10 0.054236 0.000658 0.055198 0.053028 9
110
111 .fi
112 The output of rapath is an argus data stream, and can be written to a file, or piped to other programs for processing.
113 The resulting stream is a clustered data stream ordered by the unique " saddr -> daddr " paths.
114
115 The next sample invocation of \fBrapath(1)\fP prints out a graph of the path information
116 using letters as index, with the node information provided as reference.
117
118 .nf
119 .ft CW
120 .ps 6
121 .vs 7
122
123 % rapath -Ar inputfile
124
125 192.168.0.68(192.168.0.68::128.2.42.10) A -> B -> C -> {D,E} -> F -> G -> H -> I -> J -> {K,L}
126 Node SrcId SrcAddr Dir DstAddr Inode sTtl Mean StdDev Max Min Trans
127 A 192.168.0.68 192.168.0.68 -> 128.2.42.10 192.168.0.1 1 0.000686 0.000037 0.000764 0.000627 18
128 B 192.168.0.68 192.168.0.68 -> 128.2.42.10 10.22.96.1 2 0.009329 0.002719 0.019935 0.007435 18
129 C 192.168.0.68 192.168.0.68 -> 128.2.42.10 208.59.246.2 3 0.010686 0.002619 0.020175 0.007698 18
130 D 192.168.0.68 192.168.0.68 -> 128.2.42.10 207.172.15.85 4 0.013988 0.007116 0.032652 0.008923 11
131 E 192.168.0.68 192.168.0.68 -> 128.2.42.10 207.172.15.67 4 0.010188 0.000218 0.010676 0.009932 7
132 F 192.168.0.68 192.168.0.68 -> 128.2.42.10 198.32.118.161 5 0.010865 0.003557 0.019436 0.007937 18
133 G 192.168.0.68 192.168.0.68 -> 128.2.42.10 64.57.20.251 6 0.044649 0.008916 0.076137 0.039844 18
134 H 192.168.0.68 192.168.0.68 -> 128.2.42.10 64.57.21.146 7 0.056345 0.003985 0.065643 0.053371 18
135 I 192.168.0.68 192.168.0.68 -> 128.2.42.10 147.73.16.120 8 0.052594 0.003037 0.061770 0.050151 18
136 J 192.168.0.68 192.168.0.68 -> 128.2.42.10 128.2.255.249 9 0.055147 0.002541 0.064620 0.053151 18
137 K 192.168.0.68 192.168.0.68 -> 128.2.42.10 128.2.255.212 10 0.051835 0.000326 0.052362 0.051392 9
138 L 192.168.0.68 192.168.0.68 -> 128.2.42.10 128.2.255.205 10 0.054236 0.000658 0.055198 0.053028 9
139
140 .vs
141 .ps
142 .ft P
143 .fi
144
145 the path. Because network paths can be divergent, due to routing changes, load balancing, or redirects,
146 multiple nodes can be observed at the same distance along the path. \fBrapath(1)\fP uses '{' and '}'
147 to delimit the set of nodes that are observed at the same distance in the path. Letters in
148 the path are references to inode addresses contained in the actual node records.
149
150
151 The next sample invocation of \fBrapath(1)\fP prints out just a graph of the path information
152 in two sets of argus data; today's and last month, to highlight how paths change. ASN information
153 is added to the records, to show how \fBrapath(1)\fP depicts ASN relationships, using a
154 \fB-f ralabel.conf(5)\fP option.
155
156 The -q option suppresses the default output of the actual argus record data compiled for each node along
157 the path. The '[' and ']' (brackets) deliniate AS's and will contain the set of nodes that were
158 observed within the same AS.
159 .nf
160 .ft CW
161 .ps 6
162 .vs 7
163
164 % rapath -f ralabel.conf -qA -r inputfile
165 192.168.0.68(192.168.0.68::128.2.42.10) A -> [B] -> [C -> {D,E}] -> [F] -> [G -> H] -> [I] -> [J -> {K,L}]
166
167 % rapath -f ralabel.conf -qA -r inputfile.last.month
168 192.168.0.68(192.168.0.68::128.2.42.10) A -> [B] -> [C -> D] -> [E -> F -> G -> {H,I,J,K} -> {L,M,N} -> O -> P] -> [Q -> {R,S}]
169
170 .vs
171 .ps
172 .ft P
173 .fi
174
175 This next sample invocation of \fBrapath(1)\fP prints out a graph of the ASpath, the set of AS's that the network
176 path traversed. The -q option, again is used to suppress the output of the actual node information.
177 Where there is no AS number, possibly due to a private network or an unregistered address space, letters
178 are used to denote the node.
179 .nf
180 .ft CW
181 .ps 6
182 .vs 7
183
184 % rapath -f ralabel.conf -r inputfile -qA -M aspath
185 192.168.0.68(192.168.0.68::128.2.42.10) A -> AS30496 -> AS6079 -> AS1257 -> AS11164 -> AS5050 -> AS9
186
187 .vs
188 .ps
189 .ft P
190 .fi
191
192 This sample invocation of \fBrapath(1)\fP prints out a graph of the ASpath, suppressing the output of the actual node information (-q),
193 and printing actual IP addresses, rather than node labels.
194 .nf
195 .ft CW
196 .ps 6
197 .vs 7
198
199 % rapath -f ralabel.conf -r inputfile -qA -M aspath addr
200 192.168.0.68(192.168.0.68::128.2.42.10) 192.168.0.1 -> AS30496 -> AS6079 -> AS1257 -> AS11164 -> AS5050 -> AS9
201
202 .vs
203 .ps
204 .ft P
205 .fi
206
207 This sample invocation of \fBrapath(1)\fP prints out a graph of the ASpath, with distance information, suppressing the output
208 of the actual node information (-q). This is the aspath output, but with distances in TTL's for each entry specified.
209 .nf
210 .ft CW
211 .ps 6
212 .vs 7
213
214 % rapath -f ralabel.conf -r inputfile -qA -M aspath dist addr
215 192.168.0.68(192.168.0.68::128.2.42.10) 192.168.0.1:1 -> AS30496:2 -> AS6079:3-4 -> AS1257:5 -> AS11164:6-7 -> AS5050:8 -> AS9:9-10
216
217 .vs
218 .ps
219 .ft P
220 .fi
221
222 This sample invocation of \fBrapath(1)\fP prints out a graph of the AS nodal path, suppressing the output of the actual node information (-q).
223 .nf
224 .ft CW
225 .ps 6
226 .vs 7
227
228 % rapath -f ralabel.conf -r inputfile -qA -M asnode
229 192.168.0.68(192.168.0.68::128.2.42.10) AS30496:[A -> B] -> AS6079:[C -> {D,E}] -> AS1257:[F] -> AS11164:[G -> H] -> AS5050:[I] -> AS9:[J -> {K,L}]
230
231
232 % rapath -f ralabel.conf -r inputfile.last.month -qA -M asnode
233 192.168.0.68(192.168.0.68::128.2.42.10) A -> AS30496:[B] -> AS6079:[C -> D] -> AS3356:[E -> F -> G -> {H,I,J,K} -> {L,M,N} -> O -> P] -> AS9:[Q -> {R,S}]
234
235 .vs
236 .ps
237 .ft P
238 .fi
239
240 This sample invocation of \fBrapath(1)\fP demonstrates how to use CIDR address aggregation, using the -m option, to generate
241 path performance data from a class B subnet, to a class C subnet.
242 .nf
243 .ft CW
244 .ps 6
245 .vs 7
246
247 % rapath -f ralabel.conf -r inputfile -A -m saddr/16 daddr/24 - srcid 192.168.0.68
248
249 192.168.0.68(192.168.0.0/16::128.2.42.0/24) A -> [B] -> [C -> {D,E}] -> [F] -> [G -> H] -> [I] -> [J -> {K,L}]
250 Node SrcId SrcAddr Dir DstAddr Inode sTtl Mean StdDev Max Min Trans
251 A 192.168.0.68 192.168.0.0/16 -> 128.2.42.0/24 192.168.0.1 1 0.000686 0.000037 0.000764 0.000627 18
252 B 192.168.0.68 192.168.0.0/16 -> 128.2.42.0/24 10.22.96.1 2 0.009329 0.002719 0.019935 0.007435 18
253 C 192.168.0.68 192.168.0.0/16 -> 128.2.42.0/24 208.59.246.2 3 0.010686 0.002619 0.020175 0.007698 18
254 D 192.168.0.68 192.168.0.0/16 -> 128.2.42.0/24 207.172.15.85 4 0.013988 0.007116 0.032652 0.008923 11
255 E 192.168.0.68 192.168.0.0/16 -> 128.2.42.0/24 207.172.15.67 4 0.010188 0.000218 0.010676 0.009932 7
256 F 192.168.0.68 192.168.0.0/16 -> 128.2.42.0/24 198.32.118.161 5 0.010865 0.003557 0.019436 0.007937 18
257 G 192.168.0.68 192.168.0.0/16 -> 128.2.42.0/24 64.57.20.251 6 0.044649 0.008916 0.076137 0.039844 18
258 H 192.168.0.68 192.168.0.0/16 -> 128.2.42.0/24 64.57.21.146 7 0.056345 0.003985 0.065643 0.053371 18
259 I 192.168.0.68 192.168.0.0/16 -> 128.2.42.0/24 147.73.16.120 8 0.052594 0.003037 0.061770 0.050151 18
260 J 192.168.0.68 192.168.0.0/16 -> 128.2.42.0/24 128.2.255.249 9 0.055147 0.002541 0.064620 0.053151 18
261 K 192.168.0.68 192.168.0.0/16 -> 128.2.42.0/24 128.2.255.212 10 0.051835 0.000326 0.052362 0.051392 9
262 L 192.168.0.68 192.168.0.0/16 -> 128.2.42.0/24 128.2.255.205 10 0.054236 0.000658 0.055198 0.053028 9
263
264 .vs
265 .ps
266 .ft P
267 .fi
268
269 .SH COPYRIGHT
270 Copyright (c) 2000-2024 QoSient. All rights reserved.
271
272 .SH SEE ALSO
273 .BR ra(1),
274 .BR rarc(5),
275 .BR ralabel.conf(5),
276 .BR argus(8),
277 .SH FILES
278
279 .SH AUTHORS
280 .nf
281 Carter Bullard ([email protected]).
282 .fi
283 .SH BUGS