Re: [babel] About ICMP and unnumbered routers
Donald Eastlake <d3e3e3@gmail.com> Mon, 03 August 2020 01:18 UTC
Return-Path: <d3e3e3@gmail.com>
X-Original-To: babel@ietfa.amsl.com
Delivered-To: babel@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3625E3A0796 for <babel@ietfa.amsl.com>; Sun, 2 Aug 2020 18:18:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.052
X-Spam-Level:
X-Spam-Status: No, score=0.052 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 kLsOA_4-J3yz for <babel@ietfa.amsl.com>; Sun, 2 Aug 2020 18:18:31 -0700 (PDT)
Received: from mail-io1-xd44.google.com (mail-io1-xd44.google.com [IPv6:2607:f8b0:4864:20::d44]) (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 73D663A0772 for <babel@ietf.org>; Sun, 2 Aug 2020 18:18:31 -0700 (PDT)
Received: by mail-io1-xd44.google.com with SMTP id g19so24892312ioh.8 for <babel@ietf.org>; Sun, 02 Aug 2020 18:18:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4kZUBDyayraThWSALmZhpNKm+GvtGKO1vQMoQbZ27gU=; b=R0vjvTwo4bpTfmkRp5UzBvrAowdtCvK63jPxkw41j/IqHyKmQdIJCvgTNzVHB5t2Zb +R3b/IvZlYT6rcEcaHigDtzuYKl+1qYGY+Trym04XaxK9N+7xV0y0IuywCoUb2GgYadY ad3F1waEwYaVWTTmKhvIud2rQL4MRn6qurW/E47xR/bGGjF2dYs9+DuTVRlyvRwmr6U9 2EjRwsr3/cGUNvCu6UQJIxXAyE8xwia129BjQYgAvYe8HPbHf9cRqQEkl9lzD6ComIp0 ScOVk+GiwR6TfZiCfdDbCkLL9jaox3oOEvFLrke+IPFR8u3ZWApcY+XSYwKTAfwZXleJ Bufw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4kZUBDyayraThWSALmZhpNKm+GvtGKO1vQMoQbZ27gU=; b=eKJg7mcqpeH2psjLJmK87I/kwwqxERdKRbT3OcGGGwEzC6J07pgQTou3ASsMXu9oIJ /POsWcrz4rGqSKIOQX0BrJAc2MzWXvb+TgGpiNu6ANSFk5NAmtNpNz4Ek0477prC4sck MU7CEYAogB0GqOWCgAYVPm/smuX/MXgy4hbov8E9G57aibv1mDFdnZDLkWLJYUy5a4s7 NlMeGXO93u7YQg4y1t0BLXNC802zdaL1/q616ZPWDksa4YOHDviAhg0jdEy+AsDDciCR Ms2mclFxEUn2aASg23ILR2pmT6FBS/RQDdJBcnrj8h0evGYsztGUV+Y2oT7Bk77WJ8nl /9vA==
X-Gm-Message-State: AOAM533Gkf7D09PHZoC7Tv3XuI+QOduxq/XloJyKBAMOE8aBybEzpGjL Z/+mcx2tg2k7zUEU4hpZTPCzHJc+/BxacX9QX8s=
X-Google-Smtp-Source: ABdhPJyktHchhxrlrfes++v3zXmfzsNLu7XSsMn7HUqkqPYY70Lo+04JcuIsnud/vnjolsDH3HvLT/v8sKAqi/aZ0No=
X-Received: by 2002:a5e:db0d:: with SMTP id q13mr14059691iop.87.1596417510489; Sun, 02 Aug 2020 18:18:30 -0700 (PDT)
MIME-Version: 1.0
References: <87pn88kgs0.wl-jch@irif.fr>
In-Reply-To: <87pn88kgs0.wl-jch@irif.fr>
From: Donald Eastlake <d3e3e3@gmail.com>
Date: Sun, 02 Aug 2020 21:18:19 -0400
Message-ID: <CAF4+nEGKM3_U49-79bD3eQs+SK8G4Q5oCr_WEYF8iP5+mdTDLQ@mail.gmail.com>
To: Juliusz Chroboczek <jch@irif.fr>
Cc: Babel at IETF <babel@ietf.org>, Margaret <mrcullen42@gmail.com>, Théophile Bastian <theophile.bastian@ens.fr>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/babel/ABdwTxfHyC6ynIFmrlRqKx_IdFg>
Subject: Re: [babel] About ICMP and unnumbered routers
X-BeenThere: babel@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "A list for discussion of the Babel Routing Protocol." <babel.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/babel>, <mailto:babel-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/babel/>
List-Post: <mailto:babel@ietf.org>
List-Help: <mailto:babel-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/babel>, <mailto:babel-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 03 Aug 2020 01:18:33 -0000
Hi Juliusz/David, Thanks for the research. See below. On Sun, Aug 2, 2020 at 3:08 PM Juliusz Chroboczek <jch@irif.fr> wrote: > Dear all, > > This mail is about the consequences of draft-bastian-babel-v4ov6-00 on > ICMPv4 generation. > > At last week's meeting, Margaret kindly pointed out that we didn't do our > homework, and that we didn't consider how ICMPv4 is sent out when the > sending router has no IPv4 addresses. I've looked at a few RFCs, and here > are my tentative conclusions. > > RFC 1812 Section 2.2.7 says: > > In this scheme, a router that > has unnumbered point to point lines also has a special IP address, > called a router-id in this memo. The router-id is one of the > router's IP addresses (a router is required to have at least one IP > address). This router-id is used as if it is the IP address of all > unnumbered interfaces. > > So it looks like it was decided back in 1995 that all IPv4 routers need at > least one IPv4 address. Much as I tried, I couldn't find anything that > would relax this requirement. As expected, when an ICMPv4 packet is sent > over an unnumbered interface, the distinguished "router-id" address is > used as the source address: > > the IP source address in an ICMP message originated by the router MUST > be one of the IP addresses associated with the physical interface over > which the ICMP message is transmitted. If the interface has no IP > addresses associated with it, the router's router-id (see Section > [5.2.5]) is used instead. > > (This appears to be a typo -- there's nothing relevant in Section 5.2.5.) > > Interestingly, there appears to be nothing in RFC 1812 that specifies that > the router-id is globally unique; thus, what we could do would be to put > the same IPv4 address on all routers. This would make traceroute a little > confusing (RFC 5837 might help), but it would solve both the problem with > ICMPv4 blackholes and compliance with RFC 1812. > > In the light of the above, and in the immortal words of Lenin, what shall we do? > 1. Pick a private IPv4 (say 10.42.42.42) and put it on the loopback > interface of all unnumbered routers. I would recommend against this due to possible collisions. > 2. Request a dedicated IPv4 address (the "all-routers anycast address") to > be used as the loopback address of unnumbered routers. I think this is the best way forward. Probably the "IPv4 dummy address" David Schinazi found would do fine. (If there is any problem with that, getting a new special use IPv4 address for this purpose would be pretty easy. The assignment requirement is "IETF Review" which means any document that goes through IETF Last call will do as the basis for a new assignment. https://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml) > 3. Update RFC 1812 to allow unnumbered routers and 0.0.0.0 as the source > address of ICMPv4 packets. Updating RFC 1812 seems like a more difficult path and possibly there are routers or middle boxes that discard packets with a 0.0.0.0 source as bogus. I don't know if the text is still valid but RFC 1122 says of 0.0.0.0 source: This host on this network. MUST NOT be sent, except as a source address as part of an initialization procedure by which the host learns its own IP address. Thanks, Donald =============================== Donald E. Eastlake 3rd +1-508-333-2270 (cell) 2386 Panoramic Circle, Apopka, FL 32703 USA d3e3e3@gmail.com > I'm interested in the comments of wise people. > > -- Juliusz
- [babel] About ICMP and unnumbered routers Juliusz Chroboczek
- Re: [babel] About ICMP and unnumbered routers David Schinazi
- Re: [babel] About ICMP and unnumbered routers Donald Eastlake
- Re: [babel] About ICMP and unnumbered routers STARK, BARBARA H
- Re: [babel] About ICMP and unnumbered routers STARK, BARBARA H
- Re: [babel] About ICMP and unnumbered routers Juliusz Chroboczek