Re: [Int-dir] [Last-Call] Intdir telechat review of draft-ietf-masque-connect-ip-10

Magnus Westerlund <magnus.westerlund@ericsson.com> Tue, 18 April 2023 08:23 UTC

Return-Path: <magnus.westerlund@ericsson.com>
X-Original-To: int-dir@ietfa.amsl.com
Delivered-To: int-dir@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 747DBC16B5A9; Tue, 18 Apr 2023 01:23:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SRPeGOU47_ij; Tue, 18 Apr 2023 01:23:49 -0700 (PDT)
Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on20630.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1a::630]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D4D27C16B5AA; Tue, 18 Apr 2023 01:23:47 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=im9HV15INBLhFUxOt74M2qjK/aborVQsW+FGns1obXt4CR5Nq8QS3M9oqmMiOEPFsKZuDIL6FqHp1wG+TFL/AOOyQ+NrE2KJ1plTmzQIbxDW+LsUcEyh6gB2IPP8rUdmLYJVakd4iG0cd3OOzYEoc5z4/90tWa88WV7keNpfN25JKIuApQpJqlN3QHuDO5UbQguA5qRDT3wj+gmc4s5sj3pP4sfXyLMfkX5bLxF9+3tR1IKpO//HH78/uV0nKstxAWOa9h9/EtiUEF/gxy1yclALSKFlb11S0jjCftDpNabkatMnuW1qtC8SQSKhNYgw0AhUf3jBqFYML7r6gnhejg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=GKWRl2IJwp7KclxNJOQ59oi05gAza/KGSICwjcGYygs=; b=VN41zIMXjJSq2shsUXq1hlhqqS/nXuy2BaTpts5qcG4Ow4lApFFfqQpR4tkr+cTp8HzPZASPV51HaTaOknyyvc0EWgCN86XsqnEjBL+CbqbqOlsZr1hc02jgTNeO/GSwYugIXOAK5rIeANlReFUSqiCUFaqsuqfdNX3J9WF+35tqnqI4nmOgnX/OQnYmQrl+jOwGcmsvJ2GdRm2DMI/veHoGqU+mPGHyLFuGHUwTZKeWFxPzKgzK7uQ04fhIypuiZjRdyQvcsoxf0D4LcM8pjKR1IWCNb1Udx07ezSnGApla29fLCaUQiuyojAAe5cMHkNujBu0ErBH86Cu2vMzY+Q==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ericsson.com; dmarc=pass action=none header.from=ericsson.com; dkim=pass header.d=ericsson.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GKWRl2IJwp7KclxNJOQ59oi05gAza/KGSICwjcGYygs=; b=YDl16VMsoRw//FCzKmlEKP3WZqSYeXhAxB8NNkrs0T59p5d1pha1IpXpuP8WLTXdt7I3vavR+dBmDwvR3cBHLdKUyP2h+6OiOn0cFzPrMdFYybJ4iKvTxYN+HTSbG82oyXxdyDyajpG8KUYrRrGW7WG63bE23IzSMMvxAos5lcM=
Received: from DU0PR07MB8970.eurprd07.prod.outlook.com (2603:10a6:10:40e::17) by AS4PR07MB8535.eurprd07.prod.outlook.com (2603:10a6:20b:4f9::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.30; Tue, 18 Apr 2023 08:23:42 +0000
Received: from DU0PR07MB8970.eurprd07.prod.outlook.com ([fe80::ffe4:ffd:2214:a1b8]) by DU0PR07MB8970.eurprd07.prod.outlook.com ([fe80::ffe4:ffd:2214:a1b8%6]) with mapi id 15.20.6298.045; Tue, 18 Apr 2023 08:23:42 +0000
From: Magnus Westerlund <magnus.westerlund@ericsson.com>
To: "touch@strayalpha.com" <touch@strayalpha.com>, David Schinazi <dschinazi.ietf@gmail.com>
CC: "int-dir@ietf.org" <int-dir@ietf.org>, "draft-ietf-masque-connect-ip.all@ietf.org" <draft-ietf-masque-connect-ip.all@ietf.org>, "last-call@ietf.org" <last-call@ietf.org>, "masque@ietf.org" <masque@ietf.org>
Thread-Topic: [Last-Call] Intdir telechat review of draft-ietf-masque-connect-ip-10
Thread-Index: AQHZb0qAuEt0jzABj0GLab3d3c7Ckq8v/YqAgACYuICAABUZlQ==
Date: Tue, 18 Apr 2023 08:23:42 +0000
Message-ID: <DU0PR07MB8970FC2DDE02B2BBB78D6E33959D9@DU0PR07MB8970.eurprd07.prod.outlook.com>
References: <168152936276.58402.12408511926010382248@ietfa.amsl.com> <CAPDSy+5ZOnK02VgJY7giVD0uNM4ao7-gHXUhrf6BG9RWxzC+RQ@mail.gmail.com> <19AB5170-D789-491C-B748-7AD5CE26B58C@strayalpha.com>
In-Reply-To: <19AB5170-D789-491C-B748-7AD5CE26B58C@strayalpha.com>
Accept-Language: en-US, sv-SE
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=ericsson.com;
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: DU0PR07MB8970:EE_|AS4PR07MB8535:EE_
x-ms-office365-filtering-correlation-id: 2fb5bb75-e9da-472f-e127-08db3fe63871
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 58vWJwRr9Tgmaos082WBXWlTVRWw0K1TXKaR1GM76mUaAUPDQIjienh8sX/n52EYRCrGno85Ifny5KAe4ye65htJt6FYZrC6yDMA06nef7JhRC5a3VqD9nrT06N5131uhEb0nFUP5H2xGap19yK5LSSKUOZXiLtM3XtCxy2qY2SFtLiHa+Vajc88iym/pPgCCWhIxk5n0RiPJR64jr7mbcYTGcN4k2BlFFCqJ5wLoAWnsC0p97nd4i1Ye0WLjMybCW/ZmjJd3ImtzzMqTEwwILORtH1tHVfOT+ItkiqlFUQFbQQNZGEooy/KxQOmUMg/oTnEuGKdq9uoufNIiajhr1w/w4+0kWCl4jtz1bu9q+GST5XR3rwyvXUMiLao95H+TF/Bk3YMm60bNtcKAwBykHwry191v0aA+vs8AcpifFVpWV02Uf3mD71vUHQvW/DuidGW+jMFsey65JQCebaFd7fpdH9DJJUX9O1QudqGl6nlgq3XyOuDQ4k7bwBInEySf5qbP3lqSC4m9AEk8wvzSs4NiXJX7l4hCOj7YJEp6SS6v8Ve/l64BDvz0UoNn7Oz+RaXMKS/OFO5SXLxznQbmv8XeCUPb6FObinaYN04PW2g2Mer+YutBGncmLPO4P7oEtxm3JNbAzEZBGZ3FvfvHN9NEfWz/3Q6D5Mvi+cZwgdrshlJ18Vpqq9HXN8rEi2H
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU0PR07MB8970.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(136003)(396003)(346002)(376002)(39860400002)(366004)(451199021)(5660300002)(966005)(71200400001)(7696005)(76116006)(66556008)(66476007)(2906002)(66946007)(64756008)(66446008)(4326008)(91956017)(166002)(30864003)(44832011)(33656002)(86362001)(8936002)(38070700005)(122000001)(41300700001)(38100700002)(478600001)(316002)(52536014)(8676002)(82960400001)(55016003)(54906003)(9686003)(110136005)(26005)(6506007)(53546011)(66574015)(66899021)(186003)(83380400001)(579004); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: it3O02BEvOoxwB/rMbVBHvHYlqno84HIOQfDZW1OmRDb5WPy/DRAtdFvVT1ZZLlbnpyDZlqy4Psyg7JXTE/qUfSERNGUYDIQhY+zWzEVrTjgx6CsAwDg/Zc+Qma0FsSu46z8x/18JmoXOQFo4d+p5awe7ffTaDKHK1FKBhkiG1MP9iaiKJ5X9ddpEhKUUVLuZWiaQCV56YKQMWxsgyZt0XO4KRHFIvBp6oScds9RcEdjR2tZ7LDQlvWxxaT7Kv4LKmDXSUc0at6bpc2evQGwkA3hRBB6XVphKzdoRLIn8kbTIqJ5J+mJmHA+QTzZjbnQCjBOawQEfzXw5+BTLr0WBdMeBTzOh+xCm/WRlkHHQCw7xo7rdRAswcniGFl0Q9O9klu/4xl7VmEq64DIrSpjAzXD5l0bUOT2sf4MjCh0YHEEfNXIHMi1iIWROL2hcZK9GwvXWbCmdyKO21/PLPjSmd2JeE2CUCxaSoWTHUrdL2j8t4Fecq/UArhiTxjD+dHvZjGDGX2ycoWWWWMv+bKxk8uLoOARKFVEw3qyg1qEYPWYo8w40xfL4zUF4OK6fEUqkuBZcSMTt54kqBtlJBbQAlcKWKOFCScfM75X19eNlza9zGXwucIUDTUZ362wUg9LOZVvh8hXYcyji6EPmtm9H8mP0CWEcOuFxaf1qxHzvg1xiO3Q2/ZmiPTQJCnjcifEHHGvymx/SJQQLo0v56sBalSWyfSnZIuUSsopl40e5SSg3oIRU/pkmnj3ewRyy6+4Nb8GztoLl+AJvbosiO6fVsBEGiytCPrudRoo7GesA36OPbHLtiUIYAGvCMI1VGb8IeYc5wiosip5bHaFFEOCgvmA3wstHBmxzbNyhvkaqdOjVKqeLAy/dGhSvB0+WgUNQEdwbRiSQXBphm0hHc1GW3+rhzt/3fKoVdp9v12WdXZ0P4klaO3T7nswQHMFmHstuTRE0nsuGSrRIXbZKoDssQc3DyowSwGZtUwxgkoKAHYFmm1OnfzuSrIsHooHlwU2eC/X/MzDY+lR2FUiAiKv3ZtxmcK2+3A017VS5ixiaMBMVwh4NbMKFFfHnzidNZKsQIjy38j09SHLr7AsilD2HLVz+f/3P2Fm/bbhqgrz0hO1HqhaG9Z12bFUBTKgFdegAZkB8lOnMDGI9L4Niijo4rnvN7akrSwTwi1LQBI8Gn1GK+lAzV+W2WSK0gQvgr4IkYeDcflYNKRKv4rOd1zrE6Ksf3XgAFGMR380+z4MkN7TeWDnDvvzpee2MQYca0kekih0g1A1FLOO2yWnO4vnKKmItC4XYshFSQyLK2ZX/fdvgSGmdaRVdy+6vUeQ1W97mVo3ObM9fgRjlTEhER9tOCcr2oF4VPauKbGxj0YRzRHyGrw6hu5LIzaB+cYy0pQsg+DHmCCUiThq6/elYH8Ww8VHLn0ddEunF+Dz8yXSA6FPlxIYrGxWU7u8Yny4sJIPk6VlgnDwnc2XV6UOlbwVNx/C5v+lNtOOM79E5JTHvE3oPuXllAajiZmMo3ijf5rwvQ9ocJ8OEkIh5bnHTHm59cD93pPOCAoOHNTd1D5+YdW8Pr9xVGyGxFNGBhMJwj4+346bQi7EgGC2ly9r0Zv8mik5LFaWVks9RSkW/eUY2uM=
Content-Type: multipart/alternative; boundary="_000_DU0PR07MB8970FC2DDE02B2BBB78D6E33959D9DU0PR07MB8970eurp_"
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: DU0PR07MB8970.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 2fb5bb75-e9da-472f-e127-08db3fe63871
X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Apr 2023 08:23:42.4986 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: qAyW3kjblu/k60+80kSGCfysHVMvgfdogxGEJiZXfmVVVNdv1YlG/oXqpCDLua+fPR+PIVii1AUQKqu/N5DGnao0DZjsUOcSHSK2ZvEKm78=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR07MB8535
Archived-At: <https://mailarchive.ietf.org/arch/msg/int-dir/5WouZ_acSBFYQn4Ym9X9WVabDZY>
Subject: Re: [Int-dir] [Last-Call] Intdir telechat review of draft-ietf-masque-connect-ip-10
X-BeenThere: int-dir@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: "This list is for discussion between the members of the Internet Area directorate." <int-dir.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/int-dir>, <mailto:int-dir-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/int-dir/>
List-Post: <mailto:int-dir@ietf.org>
List-Help: <mailto:int-dir-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/int-dir>, <mailto:int-dir-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 18 Apr 2023 08:23:53 -0000

Hi,

Please see inline. Prefix with “MW:”

I have added some issues to our github tracker for this review.

From: touch@strayalpha.com <touch@strayalpha.com>
Date: Tuesday, 18 April 2023 at 07:56
To: David Schinazi <dschinazi.ietf@gmail.com>
Cc: int-dir@ietf.org <int-dir@ietf.org>, draft-ietf-masque-connect-ip.all@ietf.org <draft-ietf-masque-connect-ip.all@ietf.org>, last-call@ietf.org <last-call@ietf.org>, masque@ietf.org <masque@ietf.org>
Subject: Re: [Last-Call] Intdir telechat review of draft-ietf-masque-connect-ip-10
Hi, David,

Responses below inline…

Joe


On Apr 17, 2023, at 1:49 PM, David Schinazi <dschinazi.ietf@gmail.com> wrote:

Hi Joe, thank you for your review. Responses inline.
David

On Fri, Apr 14, 2023 at 8:29 PM Joseph Touch via Datatracker <noreply@ietf.org<mailto:noreply@ietf.org>> wrote:
Reviewer: Joseph Touch
Review result: Not Ready

This review focuses on the behavior of the tunnel from an IP perspective. The
HTTP aspects are not considered.

In summary, the document presents a method for tunneling IP packets over an
HTTP connection. Its terminology and discussion is confusing, being presented
largely from the perspective of the HTTP mechanism and not sufficiently from
the perspective of the resulting IP tunnel that is provided. Details are
provided below.

--

The terminology is confusing. Because HTTP is a client/server protocol, it
makes sense to refer to a web (or HTTP) proxy, a single entity that acts as
both server and client, relaying requests received on the server side and
initiating them on the client side. An IP proxy would relay datagrams received
on one IP address and issue them with at least some new addressing. What
appears to be described here is way to create an IP tunnel over a web
connection, which is not a proxy. It is (and should be called) just an IP
tunnel. The web client and server are not co-located as they are in a proxy;
the term proxy is nonsensical in this context.

The target audience for this document is HTTP implementers, since you need
an HTTP stack in order to implement this. Because of this, it is more helpful
to use HTTP terminology instead of tunneling terminology.

The target audience needs to consider both implementers and intended users.


Sec 4.6 indicates that ipproto can be any number in [IANA-PN]; this is not
consistent with the document title or remainder of the document description.
That list is of protocols that can be payloads of IP packets, not of IP
protocols - e.g., IPv6 is not 6 but 41, and when it is 41 it describes IPv6 as
a payload of an outer IP packet, not an IPv6 packet. There does not appear to
be a way to indicate the outermost IP packet protocol version, e.g.,
https://www.iana.org/assignments/version-numbers/version-numbers.xhtml. The
claim that implementations MUST walk the chain of extensions to find the
protocol is unboundeded as stated; it needs to be limited, e.g., it needs to
stop at the first non-IP protocol (e.g., it should not “find” TCP in IP in UDP
in IP, if limited to protocol=6).

I don't understand what you mean here. IPv6 extension headers all contain the
Next Header field, but IP protocols like TCP and UDP do not. So the scenario
that you describe of "UDP in TCP" isn't possible given the wire format.

Let’s break this into separate parts.

The first issue is that you never specify the IP header - IPv4 or IPv6.
The [IANA-PN] could be 41. Here are two packets you could receive:

a) IPv4 containing UDP
b) IPv4 containing IPv4 containing UDP
c) IPv4 containing IPsec containing IPv4 containing UDP

Does 4 match a), b), c), or some combination?

What about these:

d) IPv6 containing UDP
e) IPv6 containing IPv6 containing UDP
f) IPv6 containing IPsec containing IPv6 containing UDP

Does 41 match e), f), or both?

And how do you match a) and not d) [given only IP protocols are checked, not the first IP header)?


MW: So the outermost IP version that will be given by the use of the Target address. So if that is an explicit IP address it will be restricted to that IP version. If it is a hostname then it can be for either IP versions. If target is *, then it will depend on what address was assigned by the address capsule. If both families where given it can be either.

Thus, to answer your question if IP ipproto is 41, then this packet will need to be either IPv4/IPv6 or IPv6/IPv6 depending on value of Target variable and what address families was assigned. And out of your alternatives only e) is valid for 41, and for a case with Ipproto=4 then only b will match.

So based on this discussion I see the source of confusion. We should clarify that the IPproto field value are matched against what is present in the outermost IP header of the packet to be encapsulated.

New Issue: https://github.com/ietf-wg-masque/draft-ietf-masque-connect-ip/issues/166

—

As to the chain issue, it might suffice to specify “chain of IPv6 extension headers”.


Note that this is also inconsistent with the ROUTE_ADVERTISEMENT capsule
as described in Sec 4.7.3, which asserts that ICMPs are exceptions to the
indicated protocol (at a minimum, this needs to be noted here as well).

Good catch! This is somewhat mentioned in security considerations but I added a
sentence to the Scoping section:
https://github.com/ietf-wg-masque/draft-ietf-masque-connect-ip/commit/d8a95d53cfb49914e6c1e99a45deece1330cda12<https://protect2.fireeye.com/v1/url?k=31323334-501d5122-313273af-454445555731-8da719b533a07b0b&q=1&e=93c74e8e-16d0-455d-b2e4-e65598f856d7&u=https%3A%2F%2Fgithub.com%2Fietf-wg-masque%2Fdraft-ietf-masque-connect-ip%2Fcommit%2Fd8a95d53cfb49914e6c1e99a45deece1330cda12>

Sec 4.7, although defining new capsules, is really about tunnel configuration.
It should be moved to a top-level section and presented as such.

Except for Sec 4.7, which explains how IP addresses and routing can be obtained
over the HTTP connection, the document views the necessary behavior from only
the perspective of the tunnel ingress as an HTTP client and the tunnel egress
as an HTTP server.

That's not right, most of the document is written in terms of "IP proxying endpoints"
because most of the mechanisms are symmetric. Do you have a specific example?

The abstract, which talks about the server acting a proxy but not the client:

...this document defines a protocol that allows an HTTP client to create an IP tunnel through an HTTP server that acts as an IP proxy


Sec 2 definitions, again focusing on the behavior of the server, not the client:

In this document, we use the term "IP proxy" to refer to the HTTP server that responds to the IP proxying request.

MW: So the HTTP usage does enforce a client server behavior. That can’t be ignored. Only a client can request the establishment of a tunnel and what potential filtering and other parameters/functions to apply. The tunnel is then created and then it becomes symmetric in that tunnel context.

https://github.com/ietf-wg-masque/draft-ietf-masque-connect-ip/issues/167

Sec 7 describes clients sending packets to servers; I could not easily locate the converse:

Clients MAY optimistically start sending proxied IP packets ...

MW: So there is no potential for the converse to happened. The client requests a tunnel, and might have packets to send for that tunnel, they can be sent prior to the HTTP response as well as any capsule arrives back at the client. But the server will have the request to create a tunnel, and will answer that before sending anything in that tunnel context. Thus, there are asymmetry here.

It is missing the way in which these ingress/egress
components are viewed a their endpoints, e.g., to be useful as an IP tunnel,
these need to appear as attached to (possibly virtual) network interfaces,
i.e., to appear as a link, which allows them to then be used for local
processes (via sockets), packet forwarding, etc.

That's an implementation detail that doesn't belong in this document. Most
implementations will indeed use virtual TUN interfaces, but it's not a requirement.
There is a known implementation with transport protocols in userspace that doesn't
do what you describe.

Whether a TUN interface is used or some other method, there needs to be a method by which these applications (client, server) present something that accepts IP packets.

That aspect of how this is actually used is ignored and needs to be addressed. It does not need to be implementation specific, but it would not hurt to give an example like TUNs.

(The fact that other user-space IP systems ignore this issue is not rationale for this document also ignoring it)

MW: I don’t see how any text can be other than informational. Considering the below discussion. Are you asking for a general discussion of the boundaries between the routing and the link the tunnel that this construct results in, especially as it puts some traffic filtering rules in front of the encapsulation that affects the routing?


https://github.com/ietf-wg-masque/draft-ietf-masque-connect-ip/issues/165

E.g., the mechanism in Sec 4.7
is only one way that endpoints may be configured; others should be discussed –
including using DHCP or IPv6 RAs over the tunnel itself.

We support assigning addresses out of band (e.g., in a config file) but don't see
the need for DHCP or RAs through the tunnel.

As an IP tunnel, it needs to consider the possibility that it would transit any IP traffic.

As an IP device, there needs to be a description of how existing IP configuration would interact with the additional mechanism supported here.

Sec 7 explains many aspects of IP packet handling that are already sufficiently
described in RFCs 1122 and 1812 (for IPv4) and 8200 (for IPv6).  That section
unnecessarily repeats that detail and is also vague as to where particular
behaviors are to be realized. I.e., parsing the IP header, hopcount processing,
and packet forwarding. The document should just clearly state that tunnels
behave as links (as explained in draft-ietf-intarea-tunnels) and the rest of
processing happens *outside* the HTTP server as defined for a host or router.

Where the code lives is an implementation detail that we don't need to constrain.

Sec 7 implies that the tunnel does the TTL decrementing, relaying between addresses, and IP packet checking.

Those are functions defined in RFC1122 and 1812 as happening in endpoints and/or routers, not inside tunnels or links. Those documents do constrain when those functions happen in Internet devices; this document needs to adhere to those constraints. This isn’t an implementation detail; it’s an architectural constraint.

It seems incorrect to design these tunnels as something less than a typical IP
interface, esp. for IPv6 (autoconfig, neighbor discovery). Doing so only serves
to invite incompatibility and/or undermine existing mechanisms that are useful
in detecting misconfiguration (e.g., duplicate address detection). If there is
believed to be a technical justification for this limitation, the argument
needs to be presented and its implications reviewed (e.g., an IPv6 tunnel that
isn’t a true IPv6 interface may not be useful as an IPv6 tunnel).

The WG members who are implementing this don't have a need for a true IPv6
interface. IKEv2 made the same design choice and it's been working fine.
https://www.rfc-editor.org/rfc/rfc7296#section-3.15.3

IPsec has made other decisions that undermine the way in which tunnels interact with routing (RFC3884), so it’s not an example of tunnels I use other than as a cautionary tale.

At a minimum, this document needs to address the lack of these capabilities and the rationale for making that decision.



The end of section 7 on link MTUs needs to address the additional requirement
of IPv6 EMTU_R of 1500 bytes.
Source fragmentation and reassembly need to be
addressed for both IPv4 and IPv6, and path-fragmentation for IPv4 (unless it is
not supported, which needs to be noted).

I'm not sure we need to go into these details that are well covered by IP RFCs.

This document doesn’t explain where this would happen - similarly to TTL decrement, NOT inside the client or server. That needs to be made clear.



Sec 8 should be clear on what entity is responsible for ICMP packet generation
and receipt. This presumably should be the HTTP endpoint device, not the HTTP
client or server. I.e., the tunnel transits ICMP packets but tunnel endpoints
should neither generate nor consume them, just like any other link.

Similar to above, where the code lives is an implementation detail.

If you implement the code inside the application, it will never handle ICMPs properly for packets that could be routed between this tunnel and other interfaces the way it should.

See Sec 3.2 of draft-ietf-intarea-tunnels

This is about the difference between a tunnel, an endpoint, and a router. A tunnel connects to and endpoint or a router; a tunnel itself is neither an endpoint nor a router. Only endpoints and routers emit ICMPs. There’s no way to handle ICMP properly inside the tunnel - it does matter where the code resides because the code context is inside the tunnel.



As other reviewers have noted, Sec 10 on nested congestion control is quite
thin. The current statement is equivalent to “if you KNOW congestion is nested,
turn it off” – it should be the opposite, i.e., “turn congestion ON only if you
KNOW congestion is NOT nested”.

Fair enough. We're tweaking that section to be more permissive:
https://github.com/ietf-wg-masque/draft-ietf-masque-connect-ip/pull/162<https://protect2.fireeye.com/v1/url?k=31323334-501d5122-313273af-454445555731-b250abaed7197763&q=1&e=93c74e8e-16d0-455d-b2e4-e65598f856d7&u=https%3A%2F%2Fgithub.com%2Fietf-wg-masque%2Fdraft-ietf-masque-connect-ip%2Fpull%2F162>

It’s not about allowing congestion control to be disabled; that needs to be a SHOULD, with the caveat that when it is not, performance can suffer in ways that are difficult to predict.

MW: I agree, and we could actually say SHOULD in that text under those constraints rather than MAY. However, doing this disabling first of all requires support of the DATAGRAM extension and will require changes to the QUIC stack that might not be possible in all deployment scenarios. And it can’t be done in general as some usage of this tunnel specification might happen over other HTTP versions than HTTP/3 that uses TCP.

https://github.com/ietf-wg-masque/draft-ietf-masque-connect-ip/issues/164



Section 11.1 refers to fragmented packets; it should refer to them as not being
able to be “re-fragmented”; source-generated fragments are still fragmented and
can cross the tunnel subject to the tunnel MTU.

The use of "fragmented" in that section refers to QUIC datagram frames, which
cannot be fragmented - this isn't about IP fragmentation.

The section talks about whether IP packets can fit inside QUIC datagram frames.

Fragmentation of those packets can - and will - happen when those packets are generated on the host where the packets enter the tunnel, unless the host decides to force “don’t fragment” on those packets. That’s a decision that happens (could happen or should happen, depending on your viewpoint) before the packets ever get to the tunnel ingress.

On-path fragmentation of IPv4 packets relayed to the IP proxy happens (could happen or should happen, again depending on your viewpoint) before those packets ever get to the tunnel ingress.

Either of those can happen - even if QUIC datagrams sit inside IP packets with DF=1 (or IPv6) that are also not source fragmented.


MW: So I think this may need a bit of wording clean up and also clarification of the conceptual model. If I understand Joe correct here a reasonable way of looking on this is that when a packet arrive at the router part with this tunnel as one of its interfaces, the router part will have some knowledge of the current tunnel MTU. The tunnel itself will not refragement the data, but it will support a particular MTU. Thus, the router part can actually fragment an IPv4 packet that doesn’t have the DF bit set and send it into the tunnel. And in relation to discussion about ICMP generation. It will be the router part that generates the ICMP when the routing decision says send it over the tunnel, but the tunnel MTU is too small for the packet to fit.

https://github.com/ietf-wg-masque/draft-ietf-masque-connect-ip/issues/165

Section 11.1 should require that the IP tunnel be created with a given MTU and
to indicate that to the endpoint where the client/servers reside; issuing ICMP
PTBs is the responsibility of those endpoints when they are seeking to use
those tunnel endpoints, NOT of the tunnel endpoint itself. Tunnels are links;
links do not issue ICMPs.

This use of ICMP is a pragmatic solution to ensure that the link doesn't violate
the minimum IPv6 link MTU. Some working group members felt strongly that
we needed a solution for this.

It is incorrect. ICMPs can be issued by hosts or routers, but not by  links (tunnels). Again, see draft-ietf-intarea-tunnels sec 3.2 as to why.

The solution is to explain how this IP tunnel ties into the end hosts or router - again, that’s the gap in this document.

MW: I do believe I see your point here. There are parts of this specification that impacts the router part. The scoping is basically traffic filters for routing decision as well as what you brought up with how ICMP is handled. To address this can have some significant impact on the document and I think we need further discussion among the authors for how to handle this.



Sec 12 should indicate how access to the HTTP proxy itself should be access
limited, i.e., to avoid presenting an arbitrary traffic injection point.

Are you talking about things like <<don't set your root SSH password to
"password">>?

Not quite; it’s more like “don’t run root SSH with no password”.

Regardless, it creates a huge DOS opportunity - how is the endpoint protected?

MW: So from my perspective the whole first paragraph talks about this.

There are significant risks in allowing arbitrary clients to establish a tunnel that permits sending to arbitrary hosts, regardless of whether tunnels are scoped to specific hosts or not. Bad actors could abuse this capability to send traffic and have it attributed to the IP proxy. HTTP servers that support IP proxying SHOULD restrict its use to authenticated users. Depending on the deployment, possible authentication mechanisms include mutual TLS between clients and proxies, HTTP-based authentication via the HTTP Authorization header [HTTP<https://ietf-wg-masque.github.io/draft-ietf-masque-connect-ip/draft-ietf-masque-connect-ip.html#HTTP>], or even bearer tokens. Proxies can enforce policies for authenticated users to further constrain client behavior or deal with possible abuse. For example, proxies can rate limit individual clients that send an excessively large amount of traffic through the proxy. As another example, proxies can restrict address (prefix) assignment to clients based on certain client attributes such as geographic location.¶<https://ietf-wg-masque.github.io/draft-ietf-masque-connect-ip/draft-ietf-masque-connect-ip.html#section-12-1>

This is about limiting access to the functionality of establishing tunnels, as well as potential having additional resource constraints on a tunnel.


It should also address the potential use of HTTP-level encryption (e.g., TLS,
DTLS) to protect the tunnel contents and tunnel configuration exchanges.

 We require the scheme to be https, which means that QUIC or TLS is mandatory.

I see that in the examples, but it doesn’t appear to be a requirement anywhere. Can you indicate where it explains that “http://…”<https://protect2.fireeye.com/v1/url?k=31323334-501d5122-313273af-454445555731-c4adc279bc355fbe&q=1&e=93c74e8e-16d0-455d-b2e4-e65598f856d7&u=http%3A%2F%2F...-9o0a%2F> would be considered invalid or that ONLY “https” can be used to start?

MW: I think Joe is correct that this is only implicit required when using HTTP/3. We don’t actually have a requirement to use HTTPS.

https://github.com/ietf-wg-masque/draft-ietf-masque-connect-ip/issues/163

Cheers

Magnus