Re: [DNSOP] draft-moura-dnsop-negative-cache-loop
"Giovane C. M. Moura" <giovane.moura@sidn.nl> Wed, 10 November 2021 09:31 UTC
Return-Path: <giovane.moura@sidn.nl>
X-Original-To: dnsop@ietfa.amsl.com
Delivered-To: dnsop@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3D2133A0B6D for <dnsop@ietfa.amsl.com>; Wed, 10 Nov 2021 01:31:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.43
X-Spam-Level:
X-Spam-Status: No, score=-4.43 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, MSGID_FROM_MTA_HEADER=0.001, NICE_REPLY_A=-3.33, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URI_DOTEDU=1] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=sidn.nl
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 RAZZJpdKVlGP for <dnsop@ietfa.amsl.com>; Wed, 10 Nov 2021 01:31:34 -0800 (PST)
Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20056.outbound.protection.outlook.com [40.107.2.56]) (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 61AA43A0B58 for <dnsop@ietf.org>; Wed, 10 Nov 2021 01:31:34 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DKE4zieC4H+nBihy++cOCxb/ROJjGVbfYRJfx3jj6QREEIdw7LqqaVlIaSqeIamDQI8Cb9a7ZJsXv2UyafSBZ1HgJIANEDD2j49BLFjAmanwTpbg3P9c7fuhEu4aMfBC1Mag8FeLQp7U/VQywlpQ/TlouGHO2L3C45ze2swqL/4bBjNlIy41g1eK+QQQ3zu+IpqqQU9FMzIjaWpnavjycF19MrXxZp/DD0mDpjXk9vV6GIVVXziv3Yvly49leGWaR7v/Gvjlz21BhH40JwgWX+LqmJWPuyBWuYhkFC3PcJNyS/OWzS5fCfaF3gjVoEt5Lp0Gt3e/Hqd+yodGyVQrig==
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=uOHY+4rDvMXaF0bP26TAJ+9rBGIauU8GbdRN/Jvi4q0=; b=gZKgE34kX85VTIJtfMy4AfhF14Fdp+3sBpYay8GhURz6H95YLSKxGoyDdUjgyYm0T//wPlWP8Oxhelw13ae958CmrxUFWAyF75MMhTZbQvLKj3vfQjP7CEIi23MyWojoKed/20PBsH/CVNEQ/3aElWeyzSrSedgbWyUxHoDQPnlAqI7v9cpZGdLc++5dpXA2kkHvDM4VZCKJlkyWxIxY32yT0hiADOw82ADILuBwfRplTu3mTjdcWF9DaDt0Jw91N2AsEc8PEiyx6ZGlYDWVsN2js3BZgmhqHIDEvFkHVPKHGcRkIaKoZjcftJvZ16g9/MPlZPIIkBAdFb+29Ti4ew==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=sidn.nl; dmarc=pass action=none header.from=sidn.nl; dkim=pass header.d=sidn.nl; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sidn.nl; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uOHY+4rDvMXaF0bP26TAJ+9rBGIauU8GbdRN/Jvi4q0=; b=T//ws/Orn9XV1YgfCGHKhRHp6MNXPbtnqiQHf+vG75YlJhNKd4Cwauhl32C8i0cNFmrIoqjafvazigLT/zZIESEzOvX9FLdz1o3r9C1qBNdfab1G3tLKwaCqOblXEEmjaiY5AoNJ3h4dLb7sDUanMoZnwfGjBy5R6QlaZnTwGjc=
Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=sidn.nl;
Received: from AM0P194MB0257.EURP194.PROD.OUTLOOK.COM (2603:10a6:208:61::31) by AM9P194MB1410.EURP194.PROD.OUTLOOK.COM (2603:10a6:20b:3a2::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.16; Wed, 10 Nov 2021 09:31:30 +0000
Received: from AM0P194MB0257.EURP194.PROD.OUTLOOK.COM ([fe80::116a:5021:45d5:152e]) by AM0P194MB0257.EURP194.PROD.OUTLOOK.COM ([fe80::116a:5021:45d5:152e%5]) with mapi id 15.20.4669.016; Wed, 10 Nov 2021 09:31:30 +0000
To: dnsop@ietf.org
References: <c562797c-3ade-9d00-82be-e42d4f45ec11@sidn.nl> <2ad3874d-20f2-9713-e1dd-9d37fc68d010@isc.org>
From: "Giovane C. M. Moura" <giovane.moura@sidn.nl>
Message-ID: <1566e2c6-b720-f66a-8d20-9467178d4cbd@sidn.nl>
Date: Wed, 10 Nov 2021 10:31:29 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0
In-Reply-To: <2ad3874d-20f2-9713-e1dd-9d37fc68d010@isc.org>
Content-Type: text/plain; charset="utf-8"
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-ClientProxiedBy: AM0PR02CA0118.eurprd02.prod.outlook.com (2603:10a6:20b:28c::15) To AM0P194MB0257.EURP194.PROD.OUTLOOK.COM (2603:10a6:208:61::31)
MIME-Version: 1.0
Received: from [192.168.1.172] (31.21.111.111) by AM0PR02CA0118.eurprd02.prod.outlook.com (2603:10a6:20b:28c::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.11 via Frontend Transport; Wed, 10 Nov 2021 09:31:30 +0000
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: bb2cb864-7c93-4964-e4f7-08d9a42ce0ba
X-MS-TrafficTypeDiagnostic: AM9P194MB1410:
X-Microsoft-Antispam-PRVS: <AM9P194MB1410EE6D3BDE1D410FA223D2F1939@AM9P194MB1410.EURP194.PROD.OUTLOOK.COM>
X-MS-Oob-TLC-OOBClassifiers: OLM:10000;
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: RBminwCmAKsUaV7yjxeJG1ulK86A15GZmsEmx5WJyRiycrkxlUVKnVghn92SzU+mTGJTEFbiGXn/0I54z3ic2/vwInmRjW6QEI9nnCIKr0xb5n1WfjIY5HbLIH50kpNdbkayZhblL8pX9MxgKJqSXSEBy7QEeou+xpXXl8SObhX1sRDXYrsVaVTQFHj46kSoTZ4yh6z0ne9fIG1k62uwXmnXYz44DemJBv7RFOhPo6eb2247scsn4kbO5fRFSwRwqJu34SgrfnYCxi8QUibaEzA2RMG90jb4gubuoHlID1mVdh3A8/lCxGvafoiR1AlgTFdfBmt1Xx94RWFQ6lOXMQ3STEQSIfnTtbh+c38pXeoaDthfSj+SfmIh48nTsJowOiC5JJxOnM5KEWZadVTXZKko9RPsI/dV2Y86V9yBvnaSthA2o+bBV/2RPaIFIOehfoUp+EEFoXwjlTAd4Ut+QJc/QqsiXNm16wwxNjXx4j01bt230ElGfeP2lfV4cdlVrcY0WsfuEEjHACJS7+fWJpOtUBVvkpN/1zPlSqIKABq6P4ECqhTXXZIeZrQkF82pOYNHPyMWj46rJJo+7y3Ry5X0UPtrYnXzBuL8V5Y3/51sBiAZk5iOGtiPw/pQFEZ5eB+EijZO/yDbyIbQSnuUBs/enFLPYqthf9sohv1VvlrTMP3A443qTKU2VfFzvUpp3Ni1aBdi62G5ZYnIYivMnriJa1zaQJC2v/U0nGkL2x3LcEEPP5FYh1RGxt0B57HjcUIm2D/6z89LaXvAJSXcMq6FZGHpt+H4IzaDIZocdCPhxFL0Yf4HVK2YmO5MV8cYH+PoYxVEWhIX0Bm6cIZNPaWf0mAAULM7kBPW6YSD3EU=
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0P194MB0257.EURP194.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(4636009)(366004)(8676002)(186003)(66946007)(66476007)(66556008)(83380400001)(31696002)(5660300002)(316002)(16576012)(2906002)(8936002)(31686004)(26005)(86362001)(38350700002)(6486002)(966005)(36756003)(508600001)(2616005)(956004)(38100700002)(6916009)(52116002)(43740500002)(45980500001); DIR:OUT; SFP:1101;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: Ja8is+iJWXYOxWDyXvp9LLxxEB+MfdmXmAo68wkXdmtB9qehYO47TOHjBhXJn8zrf7PaY0OnAVslQsQEH8ZWsRYAXTtn3gNIRKZFA/MBt1KVD/qrCosunWX6XsH8JyTpVZlZKBTi43q5Vupt0yxva2dC8lppOrDevpzWOR0xXC0XiVlXNxdGsNh5PSI/6uKproPcJvKTzUHqDdjjnxyLOMKDSEg/4hNrv0eO3chkZ4wXQTl1W+W078XtkV9Uq1vncHXfDW3QtYTqyeFc9PEmBy1pEGnOFNgr/dVagX6Hw/kN53n+lwknecrBm8zJSyqFdthLvSMxSeLSyRUyg2ziohg+ijP8wyT2yFFSOw8TVdLRKZC+6/Cdu8tPnGQ6jwtapbX5z0jUePM9jcahzZtqNqiIa6HndB6v771juASrXo+eMdoSuODQtmcRwvb94ab5I8fbdwGUCvnQrW+yeg4s1MnWcNDVU9F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3R7Ph53vatJE3ASEvkYK5aMsV2Etv2/ZBsmECXUhKIKHc59Y51pMsGFqkWPmBoDCjLGNk=
X-OriginatorOrg: sidn.nl
X-MS-Exchange-CrossTenant-Network-Message-Id: bb2cb864-7c93-4964-e4f7-08d9a42ce0ba
X-MS-Exchange-CrossTenant-AuthSource: AM0P194MB0257.EURP194.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2021 09:31:30.7255 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: ab4d3626-c1c5-4a75-ab85-427f1a644a7d
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: MyVEbpzU0OUPrpaAHgh0rpb57mWFStARbs2XNPN1mfLg6x3K/rjLNum7VNeSA6FmH+pn+jIXGtvZRop82xct9A==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9P194MB1410
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnsop/I0VXmxOO3BQG3m0_OAEafmE_zUI>
Subject: Re: [DNSOP] draft-moura-dnsop-negative-cache-loop
X-BeenThere: dnsop@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: IETF DNSOP WG mailing list <dnsop.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dnsop>, <mailto:dnsop-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dnsop/>
List-Post: <mailto:dnsop@ietf.org>
List-Help: <mailto:dnsop-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dnsop>, <mailto:dnsop-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Nov 2021 09:31:39 -0000
Thanks a lot, Petr. > > If I understand this correctly, TL;DR summary essentially is > """ make https://datatracker.ietf.org/doc/html/rfc2308#section-7.1 > mandatory """ > (even though your version is a bit stronger). Is that correct? > Thanks for pointing to this section. We missed it. We need to make a new draft version incorporating this. RFC2308's solution is not strong enough (MAY cache, we say MUST cache) -- as you rightfully pointed. Question about "server failure": do loops qualify as a "server failure" in the resolver's logic? I assume they do, the resolver will simply try to resolver a qname, and after say, as you pointed, "a resource limit like, say, number of delegation steps per query", it automatically classify the query as failure, even though I mean, all *parent* authoritative servers are responsive when loops are present. > If it is the case, then the document needs to clearly update 2308 > section 7.1 and go through standards track. Right now this might not be > clear. > +1 > Ad the draft content: > >> 2. Past solutions > This section somehow does not mention RFC 2308 section 7.1 which solves > most of the problem if implemented. In fact BIND has an implementation > of it and is not vulnerable to the TsuNAME attack (or at least I was not > able to reproduce it). > Yep, but 7.1 was unfortunately (for this case) optional, and a MAY. But when we privately disclosed tsuname at OARC34, we tested only if BIND and others would loop in the presence of a single client query. They don't. That covers only one source of loop: resolvers looping. But what happens when a client sends non-stop queries to the same resolver? Does bind answer from cache (7.1 RFC2308) OR will trigger new queries again? (we did not test for that, if you did, could you please share the findings)? Because if does not cache, clients recurrent queries would force the resolver to send many queries to the authoritative servers, and it would seem they'd be looping. See fig3(b) in [0], where we show that only some of Google resolvers would be aggressive -- and those were the ones that had these impatient clients. That's the second root cause: clients/forwarders looping. >> 4. New requirement > I think section 4 should not require full blown _loop_ detection, but > any sort of limit should be good enough for compliance. > > I mean, implementing a loop detection algorithm in hot path might not be > a good idea, mainly because most of the time it just wastes resources - > compared to a simple resource limit like, say, number of delegation > steps per query. That sounds much simpler indeed, and that's what RFC1035 and RFC. Will incorporate that. > I hope this early feedback helps a bit. It helps a lot, thanks for bringing the developer point-of-view in the discussion. best, /giovane [0] https://www.isi.edu/~johnh/PAPERS/Moura21b.pdf
- [DNSOP] draft-moura-dnsop-negative-cache-loop Giovane C. M. Moura
- Re: [DNSOP] draft-moura-dnsop-negative-cache-loop Petr Špaček
- Re: [DNSOP] draft-moura-dnsop-negative-cache-loop Ralf Weber
- Re: [DNSOP] draft-moura-dnsop-negative-cache-loop Giovane C. M. Moura
- Re: [DNSOP] draft-moura-dnsop-negative-cache-loop Giovane C. M. Moura
- Re: [DNSOP] draft-moura-dnsop-negative-cache-loop Petr Špaček
- Re: [DNSOP] draft-moura-dnsop-negative-cache-loop Stephane Bortzmeyer