1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
|
Network Working Group L. Daigle, Ed.
Request for Comments: 3424 Internet Architecture Board
Category: Informational IAB
November 2002
IAB Considerations for UNilateral Self-Address Fixing (UNSAF)
Across Network Address Translation
Status of this Memo
This memo provides information for the Internet community. It does
not specify an Internet standard of any kind. Distribution of this
memo is unlimited.
Copyright Notice
Copyright (C) The Internet Society (2002). All Rights Reserved.
Abstract
As a result of the nature of Network Address Translation (NAT)
Middleboxes, communicating endpoints that are separated by one or
more NATs do not know how to refer to themselves using addresses that
are valid in the addressing realms of their (current and future)
peers. Various proposals have been made for "UNilateral Self-Address
Fixing (UNSAF)" processes. These are processes whereby some
originating endpoint attempts to determine or fix the address (and
port) by which it is known to another endpoint - e.g. to be able to
use address data in the protocol exchange, or to advertise a public
address from which it will receive connections.
This document outlines the reasons for which these proposals can be
considered at best as short term fixes to specific problems and the
specific issues to be carefully evaluated before creating an UNSAF
proposal.
1. Introduction
As a result of the nature of Network Address (and port) Translation
(NAT) Middleboxes, communicating endpoints that are separated by one
or more NATs do not know how to refer to themselves using addresses
that are valid in the addressing realms of their (current and future)
peers - the address translation is locked within the NAT box. For
some purposes, endpoints need to know the addresses (and/or ports) by
which they are known to their peers. There are two cases: 1) when
the client initiates communication, starting the communication has
the side effect of creating an address binding in the NAT device and
Daigle & IAB Informational [Page 1]
^L
RFC 3424 IAB Considerations for UNSAP Across NAT November 2002
allocating an address in the realm that is external to the NAT box;
and 2) a server will be accepting connections from outside, but
because it does not initiate communication, no NAT binding is
created. In such cases, a mechanism is needed to fix such a binding
before communication can take place.
"UNilateral Self-Address Fixing (UNSAF)" is a process whereby some
originating process attempts to determine or fix the address (and
port) by which it is known - e.g. to be able to use address data in
the protocol exchange, or to advertise a public address from which it
will receive connections.
There are only heuristics and workarounds to attempt to achieve this
effect; there is no 100% solution. Since NATs may also dynamically
reclaim or readjust translations, "keep-alive" and periodic re-
polling may be required. Use of these workarounds MUST be considered
transitional in IETF protocols, and a better architectural solution
is being sought. The explicit intention is to deprecate any such
workarounds when sound technical approaches are available.
2. Architectural issues affecting UNSAF Systems
Generally speaking, the proposed workarounds are for cases where a
standard protocol communication is to take place between two
endpoints, but in order for this to occur, a separate step of
determining (or fixing) the perceived address of an endpoint in the
other endpoint's addressing realm is required. Proposals require
that an endpoint seeking to "fix" its address contact a participating
service (in a different address realm) to determine (reflect) its
address. Thus, there is an "UNSAF client" partnering with some form
of "UNSAF service" that may or may not be associated with the target
endpoint of the actual desired communication session. Throughout
this memo, the terms "UNSAF server" and "UNSAF service" should be
understood to generically refer to whatever process is participating
in the UNSAF address determination for the originating process (the
UNSAF client).
Any users of these workarounds should be aware that specific
technical issues that impede the creation of a general solution
include:
o there *is* no unique "outside" to a NAT - it may be impossible to
tell where the target endpoint is with respect to the initiator;
how does an UNSAF client find an appropriate UNSAF server to
reflect its address? (See Appendix C).
Daigle & IAB Informational [Page 2]
^L
RFC 3424 IAB Considerations for UNSAP Across NAT November 2002
o specifically because it is impossible to tell where address realms
are bounded ("inside" or "outside", "private" or "public", or
several "private" realms routing traffic), an address can only be
determined relative to one specific point in the network. If the
UNSAF service that reflected an UNSAF client's address is in a
different NAT-masqueraded subnet from some other service X that
the client wishes to use, there is _no_ guarantee that the
client's "perceived" address from the UNSAF partner would be the
same as the address viewed from the perspective of X. (See
Appendix C).
o absent "middlebox communication (midcom)", there is no usable way
to let incoming communications make their way through a middlebox
(NAT, firewall) under proper supervision. By circumventing the
NAT, UNSAF mechanisms may also (inadvertently) circumvent security
mechanisms. The particular danger is that internal machines are
unwittingly exposed to all the malicious communications from the
external side that the firewall is intended to block. This is
particularly unacceptable if the UNSAF process is running on one
machine which is acting on behalf of several.
o proposed workarounds include the use of "ping"-like address
discovery requests sent from the UNSAF client (initiator) to the
UNSAF server (listener), to which the listener responds with the
transport address of the initiator - in the address realm of the
listener. However, with connection-less transports, e.g. UDP,
IPsec ESP, etc., an UNSAF process must take care to react to
changes in NAT bindings for a given application flow, since it may
change unpredictably.
o if the UNSAF client uses periodic retries to refresh/reevaluate
the address translation state, both the UNSAF client and the UNSAF
server are required to maintain information about the presumed
state of the communication in order to manage the address
illusion.
o since the UNSAF server is not integrated with the middlebox, it
can only operate on the assumption that past behavior is a
predictor of future behavior. It has no special knowledge of the
address translation heuristic or affecting factors.
o the communication exchange is made more "brittle" by the
introduction of other servers (UNSAF servers) that need to be
reachable in order for the communication to succeed - more boxes
that are "fate sharing" in the communication.
Daigle & IAB Informational [Page 3]
^L
RFC 3424 IAB Considerations for UNSAP Across NAT November 2002
Workarounds may mitigate some of these problems through tight scoping
of applicability and specific fixes. For example:
o rather than finding the address from "the" outside of the NAT, the
applicability of the approach may be limited to finding the
"self-address" from a specific service, for use exclusively with
that service.
o limiting the scope to outbound requests for service (or service
initiation) in order to prevent unacceptable security exposures.
3. Practical Issues
From observations of deployed networks, it is clear that different
NAT box implementations vary widely in terms of how they handle
different traffic and addressing cases.
Some of the specific types of observed behaviors have included:
o NATs may drop fragments in either direction: without complete
TCP/UDP headers, the NAT may not make the address translation
mapping, simply dropping the packet.
o Shipping NATs often contain Application Layer Gateways (ALGs)
which attempt to be context-sensitive, depending on the source or
destination port number. The behavior of the ALGs can be hard to
anticipate and these behaviors have not always been documented.
o Most NAT implementations with ALGs that attempt to translate TCP
application protocols do not perform their functions correctly
when the substrings they must translate span across multiple TCP
segments; some of them are also known to fail on flows that use
TCP option headers, e.g. timestamps.
o NAT implementations differ markedly in their handling of packets.
Quite a few only really work reliably with TCP packets, not UDP.
Of the ones that do make any attempt to handle UDP packets, the
timers aging out flows can vary widely making it challenging to
predict behavior.
o Variation in address and port assignments can be quite frequent -
on NATs, port numbers always change, and change unpredictably;
there may be multiple NATs in parallel for load-sharing, making IP
address variations quite likely as well.
Daigle & IAB Informational [Page 4]
^L
RFC 3424 IAB Considerations for UNSAP Across NAT November 2002
4. Architectural Considerations
By distinguishing these approaches as short term fixes, the IAB
believes the following considerations must be explicitly addressed in
any proposal:
1. Precise definition of a specific, limited-scope problem that is
to be solved with the UNSAF proposal. A short term fix should
not be generalized to solve other problems. Such generalizations
lead to the the prolonged dependence on and usage of the supposed
short term fix -- meaning that it is no longer accurate to call
it "short term".
2. Description of an exit strategy/transition plan. The better
short term fixes are the ones that will naturally see less and
less use as the appropriate technology is deployed.
3. Discussion of specific issues that may render systems more
"brittle". For example, approaches that involve using data at
multiple network layers create more dependencies, increase
debugging challenges, and make it harder to transition.
4. Identify requirements for longer term, sound technical solutions;
contribute to the process of finding the right longer term
solution.
5. Discussion of the impact of the noted practical issues with
existing deployed NATs and experience reports.
5. Security Considerations
As a general class of workarounds, UNSAF proposals may introduce
security holes because, in the absence of "middlebox communication
(midcom)", there is no feasible way to let incoming communications
make their way through a firewall under proper supervision:
respecting the firewall policies as opposed to circumventing security
mechanisms.
Daigle & IAB Informational [Page 5]
^L
RFC 3424 IAB Considerations for UNSAP Across NAT November 2002
Appendix A. IAB Members at the time of this writing:
Harald Alvestrand
Ran Atkinson
Rob Austein
Fred Baker
Leslie Daigle
Steve Deering
Sally Floyd
Ted Hardie
Geoff Huston
Charlie Kaufman
James Kempf
Eric Rescorla
Mike St. Johns
Appendix B. Acknowledgements
This document has benefited greatly from detailed comments and
suggestions from Thomas Narten, Bernard Aboba, Keith Moore, and James
Woodyatt.
This document was originally drafted when the following people were
part of the IAB: Steve Bellovin, Brian Carpenter, Jon Crowcroft, John
Klensin and Henning Schulzrinne; it has benefited considerably from
their contributions and review.
Daigle & IAB Informational [Page 6]
^L
RFC 3424 IAB Considerations for UNSAP Across NAT November 2002
Appendix C. Example NAT Configuration Scenario
C.1 Generic NATed Network Configuration
Here is one sample scenario wherein it is difficult to describe a
single "outside" to a given address realm (bridged by NAPTs). This
sort of configuration might arise in an enterprise environment where
different divisions have their own subnets (each using the same
private address space); the divisions are connected so that they can
pass traffic on each others' networks, but to access the global
Internet, each uses a different NAPT/firewall:
+---------+
| Box C | (192.168.4.5)
+---+-----+
|
---------------------------------+-------
|
| 192.168.3.0/24
+----+----+
| NAT 2 |
+----+----+
| 10.1.0.0/32
|
-----+-------------------------+------------+----
| |
| +----+----+
| | Box B | (10.1.1.100)
| +---------+
|
+----+----+
| NAPT 1 | (10.1.2.27)
+----+----+
| 10.1.0.0/32
|
----+-----+--
|
|
+----+----+
| Box A | (10.1.1.100)
+---------+
From the perspective of Box B, Box A's address is (some port on)
10.1.2.27. From the perspective of Box C, however, Box A's address
is some address in the space 192.168.3.0/24.
Daigle & IAB Informational [Page 7]
^L
RFC 3424 IAB Considerations for UNSAP Across NAT November 2002
C.2 Real World Home Network Example
James Woodyatt provided the following scenario, based on current
examples of home networking products:
o the customer has existing Internet service from some broadband
service provider, using e.g. a DSL line connected to an appliance
that integrates a DSL modem with a NAT router/firewall.
o these devices are sometimes packaged with automated provisioning
firmware, so the customer may view them as part of what their ISP
provides them.
o later, the customer wants to use a host with only a wireless LAN
interface, so they install a wireless access point that ships in
its default configuration with NAT and a DHCP server enabled.
o after this, the customer has a wired LAN in one private address
realm and a wireless LAN in another private address realm.
Furthermore, most customers probably have no idea what the phrase
"address realm" means and shouldn't have to learn it. All they often
know is that the printer server is inaccessible to the wireless
laptop computer. (Why? Because the discovery protocol uses UDP
multicast with TTL=1, but that's okay because any response would just
be dropped by the NAT anyway, because there's no ALG.)
Authors' Addresses
Leslie Daigle
Editor
Internet Architecture Board
IAB
EMail: iab@iab.org
Daigle & IAB Informational [Page 8]
^L
RFC 3424 IAB Considerations for UNSAP Across NAT November 2002
Full Copyright Statement
Copyright (C) The Internet Society (2002). All Rights Reserved.
This document and translations of it may be copied and furnished to
others, and derivative works that comment on or otherwise explain it
or assist in its implementation may be prepared, copied, published
and distributed, in whole or in part, without restriction of any
kind, provided that the above copyright notice and this paragraph are
included on all such copies and derivative works. However, this
document itself may not be modified in any way, such as by removing
the copyright notice or references to the Internet Society or other
Internet organizations, except as needed for the purpose of
developing Internet standards in which case the procedures for
copyrights defined in the Internet Standards process must be
followed, or as required to translate it into languages other than
English.
The limited permissions granted above are perpetual and will not be
revoked by the Internet Society or its successors or assigns.
This document and the information contained herein is provided on an
"AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
Acknowledgement
Funding for the RFC Editor function is currently provided by the
Internet Society.
Daigle & IAB Informational [Page 9]
^L
|