TSVWG | R. Penno |
Internet-Draft | Cisco |
Intended status: Best Current Practice | S. Perreault |
Expires: February 15, 2016 | Jive Communications |
M. Boucadair | |
France Telecom | |
S. Sivakumar | |
Cisco | |
K. Naito | |
NTT | |
August 14, 2015 |
Network Address Translation (NAT) Behavioral Requirements Updates
draft-ietf-tsvwg-behave-requirements-update-04
This document clarifies and updates several requirements of RFC4787, RFC5382 and RFC5508 based on operational and development experience. The focus of this document is NAT44.
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at http://datatracker.ietf.org/drafts/current/.
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."
This Internet-Draft will expire on February 15, 2016.
Copyright (c) 2015 IETF Trust and the persons identified as the document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.
[RFC4787], [RFC5382] and [RFC5508] greatly advanced NAT interoperability and conformance. But with widespread deployment and evolution of Network Address Translation (NAT) more development and operational experience was acquired some areas of the original documents need further clarification or updates. This document provides such clarifications and updates.
The goal of this document is to clarify and update the set of requirements listed in [RFC4787], [RFC5382] and [RFC5508]. The document focuses exclusively on NAT44.
The scope of this document has been set so that it does not create new requirements beyond those specified in the documents cited above. Carrier-Grade NAT (CGN) related requirements are defined in [RFC6888].
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC2119].
The reader is assumed to be familiar withe terminology defined in: [RFC2663],[RFC4787],[RFC5382], and [RFC5508].
In this document, the term "NAT" refers to both "Basic NAT" and "Network Address/Port Translator (NAPT)" (see Section 3 of [RFC4787]). As a reminder, Basic NAT and NAPT are two variations of traditional NAT, in that translation in Basic NAT is limited to IP addresses alone, whereas translation in NAPT is extended to include IP address and Transport identifier (such as TCP/UDP port or ICMP query ID) (refer to Section 2 of [RFC3022]).
+----------------------------+ | | V | +------+ Client | |CLOSED|-----SYN------+ | +------+ | | ^ | | |TCP_TRANS T.O. | | | V | +-------+ +-------+ | | TRANS | | INIT | | +-------+ +-------+ | | ^ | | data pkt | | | | Server/Client RST | | | TCP_EST T.O. | | V | Server SYN | +--------------+ | | | ESTABLISHED |<---------+ | +--------------+ | | | | Client FIN Server FIN | | | | V V | +---------+ +----------+ | | C FIN | | S FIN | | | RCV | | RCV | | +---------+ +----------+ | | | | Server FIN Client FIN TCP_TRANS | | T.O. V V | +----------------------+ | | C FIN + S FIN RCV |-----------------+ +----------------------+ Legend: * Messages sent to (resp. received from) the server are prefixed with "Server". * Messages sent to (resp. received from) the client are prefixed with "Client". * "C" means "Client-side" * "S" means "Server-side". * TCP_EST T.O: refers to the established connection idle timeout as defined in [RFC5382]. * TCP_TRANS T.O: refers to the transitory connection idle timeout as defined in [RFC5382].
Figure 1: State Machine
[RFC5382] specifies TCP timers associated with various connection states but does not specify the TCP state machine a NAT44 should follow as a basis to apply such timers.
The transitory connection idle-timeout is defined as the minimum time a TCP connection in the partially open or closing phases must remain idle before the NAT considers the associated session a candidate for removal (REQ-5 of [RFC5382]). But [RFC5382] does not clearly state whether these can be configured separately.
[RFC5382] leaves the handling of TCP RST packets unspecified.
REQ-1 from [RFC4787] and REQ-1 from [RFC5382] specify a specific port overlapping behavior; that is the external IP address and port can be reused for connections originating from the same internal source IP address and port irrespective of the destination. This is known as endpoint-independent mapping (EIM).
The Address Pooling Paired (APP) behavior for a NAT was recommended in REQ-2 from [RFC4787], but the behavior when a public IPv4 runs out of ports was left undefined.
REQ-8 from [RFC4787] and REQ-3 from [RFC5382] do not specify whether EIF mappings are protocol-independent. In other words, if an outbound TCP SYN creates a mapping, it is left undefined whether inbound UDP packets destined to that mapping should be forwarded.
The NAT mapping Refresh direction may have a "NAT Inbound refresh behavior" of "True" according to REQ-6 from [RFC4787], but [RFC4787] does not clarify how this behavior applies to EIF mappings. The issue in question is whether inbound packets that match an EIF mapping but do not create a new session due to a security policy should refresh the mapping timer.
REQ-1 from [RFC4787] and REQ-1 from [RFC5382] do not specify whether EIM are protocol-independent. In other words, if a outbound TCP SYN creates a mapping it is left undefined whether outbound UDP can reuse such mapping and create session. On the other hand, stateful NAT64 [RFC6146] clearly specifies three binding information bases (TCP, UDP, ICMP).
Section 3.1 of [RFC5508] precises that ICMP Query Mappings are to be maintained by a NAT. However, the specification doesn't discuss Query Mapping timeout values. Section 3.2 of [RFC5508] only discusses ICMP Query Session Timeouts.
REQ-7 from [RFC5508] specifies that a NAT enforcing 'Basic NAT' must support traversal of hairpinned ICMP Query sessions.
[RFC5508] specifies that all NATs must support the traversal of hairpinned ICMP Error messages.
REQ-7 from
This document does not require any IANA action.
NAT behavioral considerations are discussed in [RFC4787], [RFC5382], and [RFC5508].
Because some of the clarifications and updates (e.g., Section 2) are inspired from NAT64, the security considerations discussed in Section 5 of [RFC6146] apply also for this specification.
The update in Section 3 allows for an optimized NAT resource usage. In order to avoid service disruption, the NAT MUST invoke this functionality only if packets are to be sen to distinct destination addresses.
Some of the updates (e.g., Section 6, Section 9, and Section 11) allow for an increased security compared to [RFC4787], [RFC5382], and [RFC5508]. Particularly:
Section 4 and Section 12 propose updates that increase the serviceability of a host located behind a NAT. These updates do not introduce any additional security concerns to [RFC4787], [RFC5382], and [RFC5508].
The updates in Section 5 and Section 7 allow for a better NAT transparency from an application standpoint. Hosts which require a restricted filtering behavior should enable security-dedicated features (e.g., ACL) either locally or by soliciting a dedicated security device (e.g., firewall).
The update in Section 8 induces security concerns that are specific to the protocol used to interact with the NAT. For example, if PCP is used to explicitly request parity preservation for a given mapping, the security considerations discussed in [RFC6887] should be taken into account.
The update in Section 10 may have undesired effects on the performance of the NAT in environments in which fragmentation is massively experienced. Such issue may be used as an attack vector against NATs.
[I-D.ietf-pcp-port-set] | Qiong, Q., Boucadair, M., Sivakumar, S., Zhou, C., Tsou, T. and S. Perreault, "Port Control Protocol (PCP) Extension for Port Set Allocation", Internet-Draft draft-ietf-pcp-port-set-09, May 2015. |
[RFC2663] | Srisuresh, P. and M. Holdrege, "IP Network Address Translator (NAT) Terminology and Considerations", RFC 2663, DOI 10.17487/RFC2663, August 1999. |
[RFC3022] | Srisuresh, P. and K. Egevang, "Traditional IP Network Address Translator (Traditional NAT)", RFC 3022, DOI 10.17487/RFC3022, January 2001. |
[RFC6269] | Ford, M., Boucadair, M., Durand, A., Levis, P. and P. Roberts, "Issues with IP Address Sharing", RFC 6269, DOI 10.17487/RFC6269, June 2011. |
[RFC6887] | Wing, D., Cheshire, S., Boucadair, M., Penno, R. and P. Selkirk, "Port Control Protocol (PCP)", RFC 6887, DOI 10.17487/RFC6887, April 2013. |
Thanks to Dan Wing, Suresh Kumar, Mayuresh Bakshi, Rajesh Mohan, Lars Eggert, and Gorry Fairhurst for their review and discussion.
The following individual contributed text to the document: