Re: [Hipsec] HIP Native NAT Traversal

frogsir <frogsir@gmail.com> Tue, 13 April 2010 03:22 UTC

Return-Path: <frogsir@gmail.com>
X-Original-To: hipsec@core3.amsl.com
Delivered-To: hipsec@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id E43603A6851 for <hipsec@core3.amsl.com>; Mon, 12 Apr 2010 20:22:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.598
X-Spam-Level:
X-Spam-Status: No, score=-2.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001]
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 G7trsriBzZQk for <hipsec@core3.amsl.com>; Mon, 12 Apr 2010 20:22:13 -0700 (PDT)
Received: from mail-pv0-f172.google.com (mail-pv0-f172.google.com [74.125.83.172]) by core3.amsl.com (Postfix) with ESMTP id CF1CA28C163 for <hipsec@ietf.org>; Mon, 12 Apr 2010 20:21:59 -0700 (PDT)
Received: by pvf33 with SMTP id 33so2877810pvf.31 for <hipsec@ietf.org>; Mon, 12 Apr 2010 20:21:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type; bh=lKTj51ihq/xXt1mYMpcW4Jacyf8/+7EetVkmCwCqfAw=; b=DyZw+2S8wNZxgJUBxDV06yJuLXLhe6o+tv2/0eSqzFEbO6QzhDczGmKiuiagiOCMcu 2ChYnBEORQ6w2fuOVkzApVGNDKho/SQx/MHPRpsU7nN/LBRYW5bZilPG5LKQR0bBpiZ2 CdanpbhrOgJmcOkjn8o+wA1nAL7txW51WPdHA=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=xF2mR1FnvIia+i6jG6vEHts63BsfaBZ7izD+vYTOEmp8x+zB83jhTluMP96FN/VjX/ +dhd5nB/tbJUg6Touyhnos68ZmnDuh0mCaxHaEpNfmjEbnlLQD97qN6uw7TiDyRnO0re MF+3co5wIhPQXGcKIuxY9gCxUsCTAs2kxsaVk=
MIME-Version: 1.0
Received: by 10.140.161.18 with HTTP; Mon, 12 Apr 2010 20:21:51 -0700 (PDT)
In-Reply-To: <010501cada94$b4cbcab0$ada56b80@cisco.com>
References: <4BBF283A.9080408@ericsson.com> <4BBF8C33.8050203@cs.hut.fi> <4BC2E8D6.6030404@nomadiclab.com> <010501cada94$b4cbcab0$ada56b80@cisco.com>
Date: Tue, 13 Apr 2010 06:21:51 +0300
Received: by 10.141.15.9 with SMTP id s9mr4529501rvi.219.1271128911681; Mon, 12 Apr 2010 20:21:51 -0700 (PDT)
Message-ID: <i2lc0c97aa91004122021h4a4911d7r1868d84cec7c2a75@mail.gmail.com>
From: frogsir <frogsir@gmail.com>
To: Dan Wing <dwing@cisco.com>
Content-Type: multipart/alternative; boundary="000e0cd111963e9a91048415c3fd"
Cc: hipsec@ietf.org
Subject: Re: [Hipsec] HIP Native NAT Traversal
X-BeenThere: hipsec@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the official IETF Mailing List for the HIP Working Group." <hipsec.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/hipsec>, <mailto:hipsec-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hipsec>
List-Post: <mailto:hipsec@ietf.org>
List-Help: <mailto:hipsec-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hipsec>, <mailto:hipsec-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 13 Apr 2010 03:22:19 -0000

On Tue, Apr 13, 2010 at 2:05 AM, Dan Wing <dwing@cisco.com> wrote:

>
>
> > -----Original Message-----
> > From: hipsec-bounces@ietf.org
> > [mailto:hipsec-bounces@ietf.org] On Behalf Of Ari Keranen
> > Sent: Monday, April 12, 2010 2:33 AM
> > To: hipsec@ietf.org
> > Subject: Re: [Hipsec] HIP Native NAT Traversal
> >
> > Hi,
> >
> > On 04/09/2010 11:21 PM, Miika Komu wrote:
> > > On 04/09/2010 04:14 PM, Gonzalo Camarillo wrote:
> > >> in Anaheim, we decided to continue discussing on the list
> > the following
> > >> draft:
> > >>
> > >>
> > https://datatracker.ietf.org/doc/draft-keranen-hip-native-nat-
> > traversal/
> > >>
> > >> In particular, I would like to see discussions on the
> > lessons learned
> > >> from the STUN-based implementations and potential benefits of
> > >> implementing STUN-like functionality in HIP.
> > >
> > > from a protocol design perspective, demultiplexing of HIP,
> > ESP and STUN
> > > packets is complicated. At implementation level, this introduced an
> > > additional requirement of packet capture using iptables. I
> > believe this
> > > part would become cleaner design and implementation-wise by
> > replacing
> > > STUN with HIP.
> >
> > This is indeed a problem if you don't want to patch kernel
> > code. While
> > HIP packets can be simply demultiplexed using the non-ESP
> > marker, STUN
> > packets can't and therefore you need to either use some
> > filtering before
> > the IPsec processing (e.g., iptables) or process all the
> > packets at user
> > space, which causes some performance penalty.
>
> Has there been a discussion to send STUN directly over HIP, rather
> than replacing STUN with STUN-mimicing HIP messages?  Sending
> STUN messages directly over HIP would remove the need to demux
> STUN/HIP/ESP -- you would only need to demux HIP/ESP in the kernel
> (as with today's HIP), and deal with a single HIP 'container' for
> the STUN messages.
>


*We have made such implementation.  The whole STUN message is encapsulate
into HIP_STUN parameter which is carried by HIP_UPDATE packets. it solves
most of  the demultiplexing problems indeed.*

>
> > > It actually took quite a lot effort to hook in a standalone
> > > ICE library
> > > to the base exchange code. I believe it would also further
> > > complicate
> > > the mobility code.
> >
> > Also, using TURN for relaying IPsec ESP is not all that
> > simple since you
> > need to add and remove the TURN framing when sending data via a TURN
> > relay.
>
> IPsec ESP native (IP protocol 50) across a NAT?  This isn't
> going to work well with large scale NATs with lots of clients
> going to the same destination (e.g., the same TURN server),
> as I understand IPsec rekeying changes the SPI and the large
> scale NAT won't know which IPsec session just got rekeyed.
>
> -d
>
> > With an ESP relay you don't need any framing at all
> > and all the
> > ESP processing can be done as if no relay was used. That
> > said, also TURN
> > relaying can be used with the native NAT traversal mode and only the
> > host using TURN relay needs to implement TURN.
> >
> > I think the amount of implementation effort needed for integrating an
> > ICE library into a HIP implementation turned out to be quite a bit
> > higher that initially estimated. Also, the amount of extra
> > code (some 10
> > kLoC) needed for all the new parsers, state machines, etc., is quite
> > high and by re-using the HIP code one should be able to do with much
> > less. This should result in smaller binary size, less bugs,
> > and easier
> > debugging.
> >
> > > +1 for the new draft, I believe having a single control
> > plane instead of
> > > two makes things simpler. I would suggest the new draft to
> > replace the
> > > existing one for standards track.
> >
> > Considering the experiences with the STUN-based approach, the
> > native HIP
> > mode does sound like a better idea for the standards track.
> >
> >
> > Cheers,
> > Ari
> > _______________________________________________
> > Hipsec mailing list
> > Hipsec@ietf.org
> > https://www.ietf.org/mailman/listinfo/hipsec
>
> _______________________________________________
> Hipsec mailing list
> Hipsec@ietf.org
> https://www.ietf.org/mailman/listinfo/hipsec
>



-- 
Best Regards

Santtu (Nick name)
Xiang Liu

Operation Manager
Frosmo Ltd.
http://www.frosmo.com
twitter.com/Frosmo

Erottajankatu 15-17A
00130 Helsinki,
Finland

mobile: +358 44 3688809
fax: +358 20 7419 9099
Email: santtu.liu@frosmo.com
MSN: frogsir@hotmail.com