[Add] DNR and IP hints

Ben Schwartz <bemasc@meta.com> Thu, 05 October 2023 13:40 UTC

Return-Path: <prvs=3642fd04a2=bemasc@meta.com>
X-Original-To: add@ietfa.amsl.com
Delivered-To: add@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 815A3C151091; Thu, 5 Oct 2023 06:40:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.103
X-Spam-Level:
X-Spam-Status: No, score=-2.103 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, 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 (2048-bit key) header.d=meta.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 9tJkUScx-kIX; Thu, 5 Oct 2023 06:40:13 -0700 (PDT)
Received: from mx0a-00082601.pphosted.com (mx0b-00082601.pphosted.com [67.231.153.30]) (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 7929DC14F726; Thu, 5 Oct 2023 06:40:13 -0700 (PDT)
Received: from pps.filterd (m0089730.ppops.net [127.0.0.1]) by m0089730.ppops.net (8.17.1.19/8.17.1.19) with ESMTP id 39531iHH005283; Thu, 5 Oct 2023 06:40:12 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=meta.com; h=from : to : cc : subject : date : message-id : content-type : mime-version; s=s2048-2021-q4; bh=DO+61yGgIYRl5UbKg7xreeBMjRDzT5udYxitgJKdrbA=; b=EDVk1wVECEme+tzjcbTzSCfjRLCgO0kyqzpglSlT80NmQ00x5DyqeEgspPqk/coty2Kr OY6fupTDyl8W4jYf4XvLW+s1c1tqHX/BGgICCWuazr3RNPJRftoryO3u5fANfPCAFe0M Fzl6aTzaTz7Q3jH3raGgWe1mvjzRahcG4NOi8ibzEdFCncDlq6sz1I4wr5l5+RzyWJhU 3vimma6pY6Vqms79PbApI/bdA4LzOtDOWLANTlCXin2bIJeKdmGhSYeFFSgczmGAY3IM vZ/vABHGbnxuJS+Lul1KLm20ej+0ojVC86K14Ey+pctNGIh6xGv8jyLYYH8wJmiOQSZj wA==
Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2169.outbound.protection.outlook.com [104.47.58.169]) by m0089730.ppops.net (PPS) with ESMTPS id 3thmv4uw49-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 05 Oct 2023 06:40:11 -0700
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EM77vDElvIHHFdBpDbi3Ud+S+GLXTfcTXiAPI0Ohw1dExjU17/lkIfOxq4c8MqI2agAZHRW1oSSFL5fIRZ7N9vtYNc52D2FZ+TqQ4c210YTgv3C8CA3bfHR/OypnGhnDr/qGJFMn4Rg0T7kupcDB46vII/alZfRmefshZUfnC31Arzq8qI407hTB4rTx8IVlznQ/c9o4gco4uCfZs3RGG+PpwmJCflzuh3dD9foTj1paRF1/TAFXY3tymE7/6jqgHJmq2+CoB3s7XnZmG8xy2P8wzeKWALAPIjoCs4Oe6H36n4uEJ9W5EpDoAvOoweNgQFhQK5FsbJLzWpk/tma6PA==
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=DO+61yGgIYRl5UbKg7xreeBMjRDzT5udYxitgJKdrbA=; b=NH//IOFEiNXHfG8NVQpynR2gg7qhjSP1h40DocFeNJAQf8qQ1RTtiMKyrrv+mEYtYQg2FPYY+qK5DA4+IeAhVvLueReVwhBkTrawR11SCx9QyaazhjF51Os+Ro6N9cGhLXQmDHGK3QqqjenfbqfCnIlI9SZFWJ3C0LxF5oERNxM7flcdOvyo62ZyUYIHMtXzbqZ9hH3SmsTi8Milh8EkgyU1VXj0r5oTUvoDu9SmQ8oefvtKGWhXCClllb4kBpwzd1eM3EuwRamdyQY1zGJ251c2YBbE1PF9rrfV9VpvteFV2Ql448z6yyaaE6WtRczuRZmq0pX/tKdqvEst/ud9cA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=meta.com; dmarc=pass action=none header.from=meta.com; dkim=pass header.d=meta.com; arc=none
Received: from DM6PR15MB3292.namprd15.prod.outlook.com (2603:10b6:5:167::12) by SJ0PR15MB4485.namprd15.prod.outlook.com (2603:10b6:a03:372::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.38; Thu, 5 Oct 2023 13:40:10 +0000
Received: from DM6PR15MB3292.namprd15.prod.outlook.com ([fe80::68cb:73c0:fc52:2317]) by DM6PR15MB3292.namprd15.prod.outlook.com ([fe80::68cb:73c0:fc52:2317%3]) with mapi id 15.20.6813.017; Thu, 5 Oct 2023 13:40:10 +0000
From: Ben Schwartz <bemasc@meta.com>
To: "Add@ietf.org" <add@ietf.org>
CC: "draft-ietf-dnsop-svcb-https@ietf.org" <draft-ietf-dnsop-svcb-https@ietf.org>
Thread-Topic: DNR and IP hints
Thread-Index: AQHZ949ZhQXeKA952UKppUM+puwI3g==
Date: Thu, 05 Oct 2023 13:40:09 +0000
Message-ID: <DM6PR15MB3292903E5863BE26C8BE1004B3CAA@DM6PR15MB3292.namprd15.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
msip_labels:
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: DM6PR15MB3292:EE_|SJ0PR15MB4485:EE_
x-ms-office365-filtering-correlation-id: 6a7356c9-97ed-42ad-67f5-08dbc5a89812
x-fb-source: Internal
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: gO2hkg731PVl5zrZrkgET305LlQMVkkmbHGHhXC8U4/gG3R3jyX1I+CBE3LAKrwPf16vxxTlaQnFYB4khU4KN/jKGtnzE7I7Fd3Xe2tDHkY9dwjoZ7eHAWs8ZBnRf2s7b6mMqjPd3joDAYruSOmqT9464kMEuxhasrJUu5wXIrOZ7z6uXOZFq8Pz9qjM7GUc9j6610Psu5ddMBDlSxRVH1FaS/nDNdWWqXsrOPbNQiHtp0eDReXt4j8/KMO3/8kLfRYVoFEl9KasjtelrRJlAM6MiEaNpSZoezNYMgn5lEABrQfpBcqKZRulpleKw4SAzGfiDQnmP1z8TxRSVzjxWQqAFwPHwHR81K+0rP9gwC3Fl1fGJRxkMq/lXzyY4OiHjf9BfAzCv++IUIDof04PoslKc064xD4ud8LeVPmqcwICnnLlt/7iIkM03vo+jmJzL5j/2p6i2/iRKDG6bfFJ+rkw4VyC2RYxTBuwhDDhPXHnI86IXnALGUdpZspWlEQkQmjk0Yctpq92VM1oQgMqIcPVAFsFETlHpWKqsSfxG2kHGC4IC8BttoQ/MIeoahj4H85XMFec+jKkJuLyzrWKWxwNLN4fqbaBQq1GEmp2UMA=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR15MB3292.namprd15.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(39860400002)(136003)(376002)(366004)(396003)(346002)(230922051799003)(64100799003)(451199024)(1800799009)(186009)(66556008)(41300700001)(52536014)(76116006)(5660300002)(478600001)(66946007)(91956017)(66446008)(64756008)(66476007)(71200400001)(966005)(19627405001)(450100002)(316002)(6916009)(8936002)(8676002)(4326008)(7696005)(6506007)(9686003)(2906002)(3480700007)(55016003)(38070700005)(38100700002)(122000001)(33656002)(166002)(86362001); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: ehG9BgZqU/323HL2c/Lk9yOzu3sHUvDZGu06cV8SEpkPrC4uX5TLZcxwBvMv7Kpky92KCXv81uWV+oh2NiejR0gigYj8nO/Hq2/5O+kEAzdnbS8NLGGU//7DSl9lmRVkrOSQuapmSuDkNDUqIYkKtUiO6BcmxA10E3xbk8/Slwl1zq/f13PIuHpbEURK/iZv0GnFgt6PMBloKoiZuWztfxHVRo2BzxLZG+N7z5DIIWqaBP5scVyeZuWr3p5c6FWSgD18t9seIL2oQTl/FCEJQb7wDwRAD/dK2aqzBcIt89qBM1nzmZujtuiC6SNZPTgt6FEOiBL/KecKjNBQTL7MY51cf0RopEOVaoo6rjTWohWWhAhR5s9+wgW5+H4DusSKMe7eBApdAdGSwSc/t3LYQ+PRarLaHFUnsvlgj3Vmm44X77fNpkZB8isYq2FM7Hgxtu4n9IfFWpgGejue6OSDRGmATdBQaiWOIT8Z7qZXcI6bq9fIeZIVSOxzeWofedYSp3QbGqlVycluwUy9NVed2Lp+5Y2gt9yY4UDhTcSVyNE3f7eLoKEjPLYUEtZj7PrPErLbZz/pQg8mjTSr2XIaYODK2IiHf5BitYNs5lC+seTHgC5qdWVylZRS3eCEkeX6Pp56XT4GREV0XbTHz2foVc8e+FJBZO7fxRJtsZ7LDjA51NwkL++MYwIi5s2zZT3aWVm0yyhs/+K9w6Lde6ku7YGf33LmST1c9XJKltKR5s20WO3rbE5aNhQzm+oF3esnz86f+jan0kZtwOLg9oXd2IA3o5rxzYcMzTc1WiIh0kbf8NpGWD4zGFMxJ8MigXi+q5NO/GUMwxw53vEXQgw9t+3udF47gDy87Us7jGs4kpV1jnYT39ReCwWa7k3XFCkv0A1AhCfKCMKKAwKGMD9u6/epVrbwC8IrR6uHk1prR9gMlPZxZdzIKHDulCET98pU/DjONCBkRClZm/2rql26Ab3IU1Qa9lBEhLKLDuXvpOS+IHVdRjdF7niPJ83OWQr66amct7yihdknPl3s8om0wv31aqsJiu9xgB3nYH+X3jnbKbYrdTj4TMT1JQti5TiK6fnFMpcP+aP41QB6x3Gc+m+nBLXlzy+muJxIO1gzLizv838r+RdYx2+6R0Z+oAPkWga5NCvicpBf9JRiP+YYsMhLTioNoHirOu1T9pAZ4YOUpdDq7p8Vn2eByGXRDxkVc1tRJOvlax58MH0A3BS1FdUAcYs58kwcgSeabc3sjpNrczeSan9YPf8q1KJHGwH2+vcmrBnSphigjr2a3Vatb1u4KtwHflsFAS6jY48pMIBPTpkG9a5spLCCul0o+m3vC4K1UJ7G4EWXh39riQTB/JW+e4VirEZzA5oWmMnhDUbc8RImuCa6rVZsSe0odZtiwpLcT+BwBiB0kpmdLayKDumRmLRPrvOW4ePXwtXPpyRKoX2evqydjnLxKScTZR/9VC/8+EPGNt8XnO7dyjgmuvwKKqL2k5G2/Q/3/9fFRwP9Ff0AA/xI4T5dQIN0up7mCHqVvjZmWrFce5KU9Xl6tHbU8r7CnZum/+9tjnpHdeHAEWwRwtFzQOBUxcAF3d6Q
Content-Type: multipart/alternative; boundary="_000_DM6PR15MB3292903E5863BE26C8BE1004B3CAADM6PR15MB3292namp_"
X-OriginatorOrg: meta.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: DM6PR15MB3292.namprd15.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 6a7356c9-97ed-42ad-67f5-08dbc5a89812
X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Oct 2023 13:40:09.9357 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: /cmQM7v7WnHNGSzjTf0Mg+hl5rAq7m8zfhBn84wgU+vObZ8W1H6SHcJzABlnpnLI
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR15MB4485
X-Proofpoint-GUID: SFGamPqkgA2qbl_hs6vuu2DeHAdFYXme
X-Proofpoint-ORIG-GUID: SFGamPqkgA2qbl_hs6vuu2DeHAdFYXme
X-Proofpoint-UnRewURL: 0 URL was un-rewritten
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-05_08,2023-10-05_01,2023-05-22_02
Archived-At: <https://mailarchive.ietf.org/arch/msg/add/x1n7SVy5C1uqfgwjKpCzhMcg_f4>
Subject: [Add] DNR and IP hints
X-BeenThere: add@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Applications Doing DNS <add.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/add>, <mailto:add-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/add/>
List-Post: <mailto:add@ietf.org>
List-Help: <mailto:add-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/add>, <mailto:add-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 05 Oct 2023 13:40:17 -0000

Somewhat related to our text/wire format discussion, I see a problem with DNR's instruction about IP hints.  In most places, the draft simply says that the option "MUST NOT" contain ipv4hint or ipv6hint, which I interpret as a requirement on the configuration author (not the DHCP server or client).  However, DNR Section 3.1.8 [1] says that the receiver checks that "the service parameters do not include "ipv4hint" or "ipv6hint" service parameters", and if this check fails "the receiver discards the received Encrypted DNS option".

This appears to be based on a misunderstanding of how SVCB clients work.  SVCB clients simply ignore SvcParams that they are not using, or discard the record if an unrecognized SvcParam is marked as "mandatory".  This check is very strange: it forces clients to add knowledge of the "ipv4hint" key even though they don't intend to use it, and then artificially fail on any option that contains it.

It also makes implementation much harder on the DNR sender.  In principle, DNR senders should be able to memcpy the SvcParams directly out of the resolver's DDR RDATA.  This simplifies configuration by ensuring a single point of truth, and avoids ossification because the DHCP server does not need to understand the SvcParams.  However, since ipv4hint is not prohibited in DDR, this requirement forces the DHCP server to filter it out.

This filtering can be performed while passing unrecognized SvcParams through, but it represents added complexity for no obvious benefit.

--Ben Schwartz

[1] https://www.ietf.org/archive/id/draft-ietf-add-dnr-16.html#name-dnr-validation-checks