Re: Is 1111 1110 10 equal to 0xfe80 or 0x3fa?

Tom Herbert <tom@herbertland.com> Fri, 07 June 2019 19:48 UTC

Return-Path: <tom@herbertland.com>
X-Original-To: ipv6@ietfa.amsl.com
Delivered-To: ipv6@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 45E1B12028F for <ipv6@ietfa.amsl.com>; Fri, 7 Jun 2019 12:48:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level:
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=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=herbertland-com.20150623.gappssmtp.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 iCbnc8vB6RiG for <ipv6@ietfa.amsl.com>; Fri, 7 Jun 2019 12:48:06 -0700 (PDT)
Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) (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 9461B12021B for <ipv6@ietf.org>; Fri, 7 Jun 2019 12:48:06 -0700 (PDT)
Received: by mail-ed1-x532.google.com with SMTP id k8so3446542eds.7 for <ipv6@ietf.org>; Fri, 07 Jun 2019 12:48:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=herbertland-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=JMrAkPGW672NPcpKIt0zaSCWI+45zKm9OZ+l0w+QiZU=; b=DQTiuuu24uac5cmaO+s4ialToCCtCtvxwPqc2nYLTpkKCRO15gFEVKBtua1WGnQMVc ehUkGiMETPDZB4r+lC4axOwEzAw6Qm5OHFth/HlzxV53a6jQoKYgEkcJ/9H67YkMGe5l zgQ2Koez+hHMpcMaX8bwLx9soEOlNy7gA8RqeBv3YP3qhv6TkZ32Sj+Jb7dyWai4Ui3C Wj5zzT1e5Nb319goyWf+eoQW32qXEM70UOOtv/IpgwB2Ld2us1NY2Od0kKmEqkUBO7n4 1UM9A5BTfogIT3mfB5kUzoHOgmfXmMeiU576cNvrHdskFfiDuBdjBJyigEOgthtbQM22 oFRg==
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:content-transfer-encoding; bh=JMrAkPGW672NPcpKIt0zaSCWI+45zKm9OZ+l0w+QiZU=; b=Qi0Gc0lEYPYNq0fBdcrsHWaxw6rjaQpiTw8hSqfYKSR8jDngIvIae2W448Mihx8Z7o gTPNZM6a+yuvSB3BdY45byF6M93AqDKMq2CI6735ltCZO5tUpfsKyUEHXO27SHdAj6tI 3B6EQ319hPQIT7v0kcWSTxTzfG05V56+jOvgHCDFEhOBjJ8VGUsc1BOoELR6DjUQkPJG 2ZDNrDdd7NkBhKL0vhMx56J52m5qvBG/jsBunJ4jumkWeYjlFyj6lBuF/5CG4/HV4hnR sU48OX8G99SuRfxr4J+LZRMSpZBs0D7IdpV78w6Hbx6QqgIVF0rN9pLlt474jc/dIh2p VSqg==
X-Gm-Message-State: APjAAAUP+eDcQO9Ye/xGNeHM/PmQwmOQCDJUHo10Jr5HI1VdidQZ647E 6xUDsyubXHy5RePsSIBqoNEMLCkMrM831yT1Deb/pg==
X-Google-Smtp-Source: APXvYqwE2MQREOXqvlU4tM5CtpKOJMCWHzBLQvsasP+ZfvFD3E5QcLnr5IpR6ME724ikn9NOG9SuV0tt7cDRlT25+nA=
X-Received: by 2002:a50:e61a:: with SMTP id y26mr59722880edm.292.1559936885096; Fri, 07 Jun 2019 12:48:05 -0700 (PDT)
MIME-Version: 1.0
References: <DM6PR15MB2506E62560613C85F74A1FF8BB100@DM6PR15MB2506.namprd15.prod.outlook.com>
In-Reply-To: <DM6PR15MB2506E62560613C85F74A1FF8BB100@DM6PR15MB2506.namprd15.prod.outlook.com>
From: Tom Herbert <tom@herbertland.com>
Date: Fri, 07 Jun 2019 12:47:53 -0700
Message-ID: <CALx6S36vVpD9bAPSBQmhV+daR0Yr4heQ-LaiB4hABAs8ofVfNQ@mail.gmail.com>
Subject: Re: Is 1111 1110 10 equal to 0xfe80 or 0x3fa?
To: "Mudric, Dusan (Dusan)" <dmudric@avaya.com>
Cc: "ipv6@ietf.org" <ipv6@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/sp5jVR2arSmrmvX2tb-YKfwqo7U>
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "IPv6 Maintenance Working Group \(6man\)" <ipv6.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ipv6>, <mailto:ipv6-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ipv6/>
List-Post: <mailto:ipv6@ietf.org>
List-Help: <mailto:ipv6-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ipv6>, <mailto:ipv6-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 07 Jun 2019 19:48:22 -0000

On Fri, Jun 7, 2019 at 12:30 PM Mudric, Dusan (Dusan) <dmudric@avaya.com> wrote:
>
> >
> > Message: 3
> > Date: Fri, 7 Jun 2019 10:53:28 -0700
> > From: Fred Baker <fredbaker.ietf@gmail.com>
> > To: Alexandre Petrescu <alexandre.petrescu@gmail.com>
> > Cc: IPv6 <ipv6@ietf.org>
> > Subject: Re: Is 1111 1110 10 equal to 0xfe80 or 0x3fa?
> > Message-ID: <A722E202-7671-4111-BA92-8A67B3D3B924@gmail.com>
> > Content-Type: text/plain; charset="us-ascii"
> >
> >
> >
> > If I have prefix fe80::/10, as described in RFC 4291, the next bit is bit 11. Doing
> > the same subdivision of the prefix is fe80::/11 and fea0::/11.
> [Dusan] The hexadecimal definition for LL address is not syntactically correct. The binary 10 bit prefix 1111111010 cannot be presented as hexadecimal FE80::/10. It is rather a range FE80::/10 - FEBF::/10. In this notation, FE80::/10 = FEBF::/10,  because the first 10 bits are equal and other 6 should be ignored. 111 1111010 can be defined as FE80::/10 only if every time it is also mentioned that the trailing 6 bits are all zero.

By that logic, we'd have to mention that the trailing 118 bits are
zero.  E.g. FE80::/10 == FEBD:F676:BBBB:C654:FEBD:F676:BBBB:C654/10
also. It's obviously convenient canonical notication to express all
the trailing bits as zeroes for a prefix, but not required. For
instance, ifconfig shows my host address as fe80::ac2f:ea58:94a:438/64
which in one string indicates both a fully qualified address and it's
prefix bits.

Tom

>
> --------------------------------------------------------------------
> IETF IPv6 working group mailing list
> ipv6@ietf.org
> Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
> --------------------------------------------------------------------