TSVWG | R. Penno |
Internet-Draft | Cisco |
Updates: 4787, 5382, 5508 (if approved) | S. Perreault |
Intended status: Best Current Practice | Jive Communications |
Expires: July 21, 2016 | M. Boucadair, Ed. |
Orange | |
S. Sivakumar | |
Cisco | |
K. Naito | |
NTT | |
January 18, 2016 |
Network Address Translation (NAT) Behavioral Requirements Updates
draft-ietf-tsvwg-behave-requirements-update-06
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 document updates RFC4787, RFC5382 and RFC5508.
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 July 21, 2016.
Copyright (c) 2016 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.
This document may contain material from IETF Documents or IETF Contributions published or made publicly available before November 10, 2008. The person(s) controlling the copyright in some of this material may not have granted the IETF Trust the right to allow modifications of such material outside the IETF Standards Process. Without obtaining an adequate license from the person(s) controlling the copyright in such materials, this document may not be modified outside the IETF Standards Process, and derivative works of it may not be created outside the IETF Standards Process, except to format it for publication as an RFC or to translate it into languages other than English.
[RFC4787], [RFC5382] and [RFC5508] greatly advanced Network Address Translation (NAT) interoperability and conformance. Operational experience gained through widespread deployment and evolution of NAT indicates that 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 with the 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]).
[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.
+----------------------------+ | | 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 or received from the server are prefixed with "Server". * Messages sent or 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: Simplified version of the TCP State Machine
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 an external IPv4 runs out of ports was left undefined.
REQ-1 from [RFC4787] and REQ-1 from [RFC5382] do not specify whether EIM are protocol-dependent or protocol-independent. For example, if an outbound TCP SYN creates a mapping, it is left undefined whether outbound UDP packets can reuse such mapping.
REQ-8 from [RFC4787] and REQ-3 from [RFC5382] do not specify whether EIF mappings are protocol-independent or protocol-dependent . For example, if an outbound TCP SYN creates a mapping, it is left undefined whether inbound UDP packets matching that mapping should be accepted or rejected.
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.
Section 3.1 of [RFC5508] specifies 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 7, 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 6 allow for a better NAT transparency from an application standpoint. Hosts which require a restricted filtering behavior should enable security-dedicated features (e.g., access control list (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.
Thanks to Dan Wing, Suresh Kumar, Mayuresh Bakshi, Rajesh Mohan, Lars Eggert, Gorry Fairhurst, Brandon Williams, and David Black for their review and discussion.
The following individual contributed text to the document: