Re: [IPsec] Comments on draft-ietf-ipsecme-tcp-encaps

Yoav Nir <ynir.ietf@gmail.com> Sun, 19 March 2017 11:45 UTC

Return-Path: <ynir.ietf@gmail.com>
X-Original-To: ipsec@ietfa.amsl.com
Delivered-To: ipsec@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1D6CC126CC7; Sun, 19 Mar 2017 04:45:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level:
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 i47yEgIiOm9V; Sun, 19 Mar 2017 04:45:29 -0700 (PDT)
Received: from mail-wm0-x232.google.com (mail-wm0-x232.google.com [IPv6:2a00:1450:400c:c09::232]) (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 3A81D120727; Sun, 19 Mar 2017 04:45:29 -0700 (PDT)
Received: by mail-wm0-x232.google.com with SMTP id n11so44603566wma.1; Sun, 19 Mar 2017 04:45:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc:message-id:references :to; bh=8aeAzXjr6HbE+zLLL5X2jirq8g3A5Xu+gCeEv+V80S8=; b=YJdXibAiyKO/CstgRZV9LGOs5CzalDnWs9oSZfehR0GSNC9vxO8IqkmaYk/ss8NgUt ov41uAiIjQMvr4t8OUJIOd6v1c5G2g5PHjq7T1wDczdaJfB9lt82CviS7psM6m5vkeBm J34s3QLRQsLNW4N4TbQi96a0AzgrJw3VjvBz/yE3o/1QTzxEvk9keFbIB9WJQ7x6p/qg sW4ZMN6qpGDzgDqU6J1W/UcH3a1118n1dJNKkopsHMlkonGq7lKwPtQLbhVVhMTp25bX UKGPs+BuIUS4D6Mi8SFJoi8cYfPgtEhH8CEjsX5GTZ/RV/4RWEsgdSVUh12iOcw/mwJO aSbQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=8aeAzXjr6HbE+zLLL5X2jirq8g3A5Xu+gCeEv+V80S8=; b=CgazMXslYzHQN7OghQSyusPkfLaChqqxLPXXKqdJZegJDVZ941O8hr2oFk8my8+7yv Ict7ILwpwxvVmh3HILYBNb8rektcnNOLWQwKxSETiylJ4Mi6NZ89iKp6gj84jIWsgXgn qFlNpcy6t4BTLtJXEUdT0lgpqRRBJjA2YwE2zBBNSnEDXWjUUkAXy2lXF1tiNPtshOYx O6Qozs0c1wV9ZYofVlPaL+nB1vMo/OuP2gnmivtFQ1qB1tA+hbVEaBx1M8xn/q78hncg PPwbLEyImlSPMwaoU7Nd8li4FX5oNHe9X36TBxBWmw/TqueBgpAXArJDO1ujYjAA3Gyr pxWw==
X-Gm-Message-State: AFeK/H2uN8Y5VHEJ+CsYI3FIn10BsnEBb3AIUG1u5foCNElOXPPed/6HMMT2+m6lXYEIsA==
X-Received: by 10.28.48.78 with SMTP id w75mr6193849wmw.55.1489923927764; Sun, 19 Mar 2017 04:45:27 -0700 (PDT)
Received: from [172.24.249.245] (dyn32-131.checkpoint.com. [194.29.32.131]) by smtp.gmail.com with ESMTPSA id v14sm9489730wmv.24.2017.03.19.04.45.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Mar 2017 04:45:26 -0700 (PDT)
Content-Type: multipart/signed; boundary="Apple-Mail=_A863991C-414E-4D4D-9AB5-8511F7BB8624"; protocol="application/pgp-signature"; micalg="pgp-sha512"
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
From: Yoav Nir <ynir.ietf@gmail.com>
X-Priority: 3
In-Reply-To: <706148CB241E49EEBE79559DF5EBFD7D@chichi>
Date: Sun, 19 Mar 2017 13:45:23 +0200
Cc: Eric Rescorla <ekr@rtfm.com>, draft-ietf-ipsecme-tcp-encaps@ietf.org, ipsec@ietf.org
Message-Id: <DBB01132-AF25-4CC0-B7D8-D945607B272C@gmail.com>
References: <CABcZeBPMR9m8zPdhG4Bc3DHWj9UmVq22Z7G4ApYjBGJeC7MU=A@mail.gmail.com> <621CA73A71744D9AAA226100AE915285@chichi> <2D2EA57F-EAF0-4C8C-87D7-FB1938C3CD22@gmail.com> <706148CB241E49EEBE79559DF5EBFD7D@chichi>
To: Valery Smyslov <svanru@gmail.com>
X-Mailer: Apple Mail (2.3259)
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipsec/SnwsNK9ZrW2XkPRJTHOfoQ3NYx4>
Subject: Re: [IPsec] Comments on draft-ietf-ipsecme-tcp-encaps
X-BeenThere: ipsec@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Discussion of IPsec protocols <ipsec.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ipsec>, <mailto:ipsec-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ipsec/>
List-Post: <mailto:ipsec@ietf.org>
List-Help: <mailto:ipsec-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ipsec>, <mailto:ipsec-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 19 Mar 2017 11:45:31 -0000

> On 19 Mar 2017, at 13:20, Valery Smyslov <svanru@gmail.com> wrote:
> 
> Hi Yoav,
> 
>> > I don't think it's a good idea. The TCP encapsulation has a lot of drawbacks in terms of performance (see Section > 12), so it is considered
>> > as a last resort if UDP doesn't work. In general UDP (or no encapsulation) is a preferred transport. If we start > trying TCP and UDP in parallel, then
>> > in some cases TCP will win even if UDP works, resulting in non-efficient connection, even when UDP could be used.
>> 
>> So as I said before, we do it, although IIRC (I’m not on the client team) the client gives TCP a one-second head start.
>> The reason is that in many places where a UDP packet can go, a fragmented UDP packet gets dropped,
>> so the first packets will work fine but the packets with the certificates (either IKE_AUTH or Main Mode #5) will get dropped.
> 
> With IKE Fragmentation that's not a problem anymore.

IKE over TCP solves the same problem (and a few others).

>> In by the end of IKE we have determined that UDP also works, we move to that for IPsec. And if TCP is blocked, we will try the IKE negotiation on UDP.
> 
> Your TCP encapsulation protocol seems to be more flexible than what is described in the draft.

Yes, and we (the working group) decided to simplify things by not incorporating this flexibility.

> The current draft doesn't allow moving existing SA from TCP to UDP unless MOBIKE is negotiated (see Section 5).
> So, if you start with TCP first (or do happy eyeballs and TCP wins), you never switch back to UDP, even if it appears
> that UDP works for that path too, unless both sides support MOBIKE. And even with MOBIKE it's not clear if switching
> is alowed unless interface address changes. That's why UDP is given a preference.

Yes, and that’s why the cost of using this as an alternative to IKE fragmentation is too high.

Yoav