Re: [nvo3] draft-ietf-nvo3-encap-00 should add considerations of traversing NAPT

Joe Touch <touch@isi.edu> Thu, 13 July 2017 13:53 UTC

Return-Path: <touch@isi.edu>
X-Original-To: nvo3@ietfa.amsl.com
Delivered-To: nvo3@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 32869131A75; Thu, 13 Jul 2017 06:53:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C-TlOzAePbr3; Thu, 13 Jul 2017 06:53:06 -0700 (PDT)
Received: from nitro.isi.edu (nitro.isi.edu [128.9.208.207]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A9D55131A70; Thu, 13 Jul 2017 06:53:06 -0700 (PDT)
Received: from [10.31.59.150] (ip-64-134-100-23.public.wayport.net [64.134.100.23]) (authenticated bits=0) by nitro.isi.edu (8.13.8/8.13.8) with ESMTP id v6DDqV7Y026455 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Thu, 13 Jul 2017 06:52:33 -0700 (PDT)
To: Dan Wing <dwing@vmware.com>, Linda Dunbar <linda.dunbar@huawei.com>
Cc: "draft-ietf-nvo3-encap@ietf.org" <draft-ietf-nvo3-encap@ietf.org>, NVO3 <nvo3@ietf.org>
References: <4A95BA014132FF49AE685FAB4B9F17F6593FAA91@SJCEML702-CHM.china.huawei.com> <F254185B-6142-479D-BBDA-983A1189580D@vmware.com>
From: Joe Touch <touch@isi.edu>
Message-ID: <07212cff-8dbd-8ae9-3ca7-35244007ad6b@isi.edu>
Date: Thu, 13 Jul 2017 06:52:29 -0700
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1
MIME-Version: 1.0
In-Reply-To: <F254185B-6142-479D-BBDA-983A1189580D@vmware.com>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Content-Language: en-US
X-MailScanner-ID: v6DDqV7Y026455
X-ISI-4-69-MailScanner: Found to be clean
X-MailScanner-From: touch@isi.edu
Archived-At: <https://mailarchive.ietf.org/arch/msg/nvo3/O2uovaZvP7cizl_cB3oQ--sM-us>
Subject: Re: [nvo3] draft-ietf-nvo3-encap-00 should add considerations of traversing NAPT
X-BeenThere: nvo3@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "Network Virtualization Overlays \(NVO3\) Working Group" <nvo3.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nvo3>, <mailto:nvo3-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/nvo3/>
List-Post: <mailto:nvo3@ietf.org>
List-Help: <mailto:nvo3-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nvo3>, <mailto:nvo3-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 13 Jul 2017 13:53:08 -0000

FWIW, why not just add the entropy in the IPv6 flow ID rather than
expecting it at the transport layer? Intermediate network devices should
be relying only on the flow ID for that entropy anyway.

(and yes, that doesn't solve the problem for IPv4, but perhaps that's a
good reason to encourage use of IPv6)

Joe


On 7/12/2017 4:08 PM, Dan Wing wrote:
>> On Jul 12, 2017, at 12:37 PM, Linda Dunbar <linda.dunbar@huawei.com> wrote:
>>
>> Sami, et al,
>>
>>  
>>
>> The draft-ietf-nvo3-encap-00 is written very clear.
>>
>>  
>>
>> However, the Section 6 (Common Encapsulation Considerations) should add a sub-section on the consideration of traversing NAPT.  Encapsulated traffic could go to different data centers or WAN, which could go through Network Address Port Translation devices
>>
>>  
>>
>> Using VxLAN as an example: VxLAN specification [RFC 7348] uses a set of Port numbers to achieve better traffic distribution among multiple paths, which is fine within one data center, but causing trouble when traversing NAPT.
> You're describing a problem with Geneve, which mimics VXLAN in that both of them suggest using a wide range of UDP ports to help underlay ECMP and to help receiver CPU load balancing, specifically this text of https://tools.ietf.org/html/draft-ietf-nvo3-geneve:
>
>    Source port:  A source port selected by the originating tunnel
>       endpoint.  This source port SHOULD be the same for all packets
>       belonging to a single encapsulated flow to prevent reordering due
>       to the use of different paths.  To encourage an even distribution
>       of flows across multiple links, the source port SHOULD be
>       calculated using a hash of the encapsulated packet headers using,
>       for example, a traditional 5-tuple.  Since the port represents a
>       flow identifier rather than a true UDP connection, the entire
>       16-bit range MAY be used to maximize entropy.
>
> If a reduced set of source ports is used instead, as you propose, the ECMP and CPU load balancing benefits are lost.  That seems problematic.
>
>> NAPT use Port number to map back the source address. With a set of port numbers, NAPT can’t easily figure out the reverse direction traffic’s final IP addresses.
> The reverse traffic doesn't use the inverted 5-tuple.  The reverse traffic is sent to the Geneve destination port (6081), and a firewall or NAT or NAPT mapping is necessary for UDP/6081 traffic -- on both datacenters, which both probably have their own underlay NAPTs.  Those firewalls (or NATs or NAPTs) need to have appropriate pinholes for UDP/6081.
>
>> In addition, since the IP of packets change through NAPT device, it can mess up the learning of the peer NVE used in encapsulation.
> The underlay did the NAPT, so I don't see a problem with the NVE overlay getting confused.  Could you explain in more detail?
>
>> STUN can be used to get changed IP and port from NAPT device, but it requires NAPT device support STUN.
> NAPT devices are not expected to implement STUN.  STUN is expected to be implemented in the hosts behind the NAT and on a server on the other side of the NAT (usually on a server on the Internet).  See Figure 1 on page 6 of https://tools.ietf.org/html/rfc5389#page-6.
>
>> That’s not available in some scenarios. Furthermore, it can’t solve the aforementioned five-tuple issue.
>>
>>  
>>
>> VXLAN over IPSec may be used to deal with the above problems,
> Both Geneve and VXLAN run over UDP, and both use a fixed destination port (rather than inverted 5-tuple) for return traffic.  Not sure how VXLAN succeeds at dealing with the above problems, but I would love to learn.
>
>> but IPSec brings up to 88 bytes of overhead plus the key distribution management, which can lower the efficiency.
> Should be able to use IPsec transport mode, which is more around 40 bytes overhead.
>
> -d
>
>
>>  
>>
>>  
>>
>> Suggestion: Add Section 6.10 Traversing NAPT consideration.
>>
>> I can help to provide the text if you all think the suggestion is acceptable.
>>
>>  
>>
>> We can discuss more in Prague.
>>
>>  
>>
>> Thanks, Linda Dunbar
>>
>>  
>>
>> Huawei USA IP Technology Lab
>>
>> 5340 Legacy Drive,
>>
>> Plano, TX 75024
>>
>> Tel: +1 469-277 - 5840
>>
>> Fax: +1 469 -277 - 5900
>>
>>  
>>
>> _______________________________________________
>> nvo3 mailing list
>> nvo3@ietf.org
>> https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ietf.org_mailman_listinfo_nvo3&d=DwICAg&c=uilaK90D4TOVoH58JNXRgQ&r=IMDU0f3LtPMQf5XkZ06fNg&m=60T3yKN2I7oCxe8OH9mfZix-2ykSSjL-P-RoXCkZGdg&s=q7A_LzZuDp-yZnlA7Xw_N7yuLk4HO7K07jgl3Z78Ixg&e= 
> _______________________________________________
> nvo3 mailing list
> nvo3@ietf.org
> https://www.ietf.org/mailman/listinfo/nvo3