Re: [tcpm] possible NAT support for TCP-AO

Eric Rescorla <ekr@networkresonance.com> Mon, 27 July 2009 15:52 UTC

Return-Path: <ekr@networkresonance.com>
X-Original-To: tcpm@core3.amsl.com
Delivered-To: tcpm@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 84D1F28C28A for <tcpm@core3.amsl.com>; Mon, 27 Jul 2009 08:52:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.767
X-Spam-Level:
X-Spam-Status: No, score=-1.767 tagged_above=-999 required=5 tests=[AWL=0.832, BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8AXZs0tNy8-c for <tcpm@core3.amsl.com>; Mon, 27 Jul 2009 08:52:21 -0700 (PDT)
Received: from romeo.rtfm.com (romeo.rtfm.com [74.95.2.173]) by core3.amsl.com (Postfix) with ESMTP id BA11D28C273 for <tcpm@ietf.org>; Mon, 27 Jul 2009 08:52:21 -0700 (PDT)
Received: from romeo.rtfm.com (localhost.rtfm.com [127.0.0.1]) by romeo.rtfm.com (Postfix) with ESMTP id 6621750822; Mon, 27 Jul 2009 08:55:57 -0700 (PDT)
Date: Mon, 27 Jul 2009 08:55:57 -0700
From: Eric Rescorla <ekr@networkresonance.com>
To: Joe Touch <touch@ISI.EDU>
In-Reply-To: <4A5B9FEB.6080706@isi.edu>
References: <4A5B9FEB.6080706@isi.edu>
User-Agent: Wanderlust/2.14.0 (Africa) Emacs/22.3 Mule/5.0 (SAKAKI)
MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka")
Content-Type: text/plain; charset="US-ASCII"
Message-Id: <20090727155557.6621750822@romeo.rtfm.com>
Cc: tcpm Extensions WG <tcpm@ietf.org>
Subject: Re: [tcpm] possible NAT support for TCP-AO
X-BeenThere: tcpm@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: TCP Maintenance and Minor Extensions Working Group <tcpm.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tcpm>, <mailto:tcpm-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tcpm>
List-Post: <mailto:tcpm@ietf.org>
List-Help: <mailto:tcpm-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tcpm>, <mailto:tcpm-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 27 Jul 2009 15:52:22 -0000

At Mon, 13 Jul 2009 13:58:19 -0700,
Joe Touch wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi, all,
> 
> Based on a discussion on a different list with Dan Wing, I'd like to
> revisit thinking about NATs in the context of the current AO, which uses
> traffic keys derived from the socket pair and ISN pair. We might be able
> to now support NATs as follows, e.g.:
> 
> 	add the following flags to the MKT:
> 
> 		localNAT flag - indicates whether the local IP/port are
> 			zeroed before MAC calculation
> 
> 		remoteNAT flag - indicates whether the remote IP/port
> 			are zeroed before MAC calculation
> 
> 	add steps to the incoming/outgoing processing:
> 		zero the corresponding IP/port when the flag indicates,
> 		both on outgoing and incoming MAC calculation
> 
> That's basically it. A client behind a NAT would have a MKT with
> localNAT true, and a server for that client would need to have a MKT
> with remoteNAT true. This does require careful MKT configuration.
> Although I wouldn't expect both localNAT and remoteNAT to be true, there
> isn't a particular reason it needs to be prohibited.

So I'm going to jump in right here: it's not in general practical
to know whether you are behind a NAT. That's why the BEHAVE 
NAT discovery document is going to Experimental.

-Ekr