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

Tom Herbert <tom@herbertland.com> Thu, 06 June 2019 17: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 95774120099 for <ipv6@ietfa.amsl.com>; Thu, 6 Jun 2019 10:48:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level:
X-Spam-Status: No, score=-1.898 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] 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 ofx3DnNrBorf for <ipv6@ietfa.amsl.com>; Thu, 6 Jun 2019 10:48:50 -0700 (PDT)
Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) (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 9C01A120052 for <ipv6@ietf.org>; Thu, 6 Jun 2019 10:48:50 -0700 (PDT)
Received: by mail-qt1-x835.google.com with SMTP id x47so3645469qtk.11 for <ipv6@ietf.org>; Thu, 06 Jun 2019 10:48:50 -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; bh=nQbCmAEvecQBcAZ8kelSldXHOLDeN5VwkHeEpT8QpPs=; b=kusFtAJZ4GoNKlOlvUifRYTYGeVrI7VcC4tk7A9DyYCYZVXCL/MXpjkwUSJeOXNgu3 TxC8e0P9hNmUlhTOeBLe9+RIpNWnJt4pu+bcuYO6MJMdLhPTZ5QGux7gMBKAi91M1VWW TPal0KMNnKzx2Rh3B3TtK5NuYyFyYlUwbSQhGdoGILbcHZgdv+LFpcH9ZX47JAAqOK/6 9Gb+CXmOx/QsyTLsFHbfKm6N7UGdykyh7d3+0bV2JsOZWdEdrK9CaKsIKNGcAfUbom+T 3/xBXmOIV7k8yDqdr/l1zMGzUdhFQTwPFAeQBF+rTB5iKjcEuxVQ3zLd9iLUY5LQ3Buh uq+g==
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=nQbCmAEvecQBcAZ8kelSldXHOLDeN5VwkHeEpT8QpPs=; b=e9sJr+daFpu6lBQSBJjEtCSO5hNvZWHX7f9cZqWLPBBhLtgqnl0/6Jq2Hb8bj3Zw7l sV6aUpVxetzyUezltnBMAVK3fTJwnHD925G0HCGXkbpyjxUAfrdB/X3aTnr7B4PXG4oM HSyA1a62B06bYhoM1h7v6YeailywLS+0rK3p2BxLNP+diwIfWx7vQpRRU+H8du+v2vj7 S/3kCiXQ7qpUytnEINC20S6JpglS2lefgFy9sdf43VoWJ2mwoc0QC+jLpnY1BqjPhwfr FXaI1EKzXFuvr2TbMYzSiDIzonHc4OfhRgGH5XaTV6jvZBWuoGRowtRsbdUTge/qplng 3VlA==
X-Gm-Message-State: APjAAAUpD9VXBCkvvPB6TZLHsWKnBo5MKlI5aV0tebWGMJyJT1NA7AOX aMwRExAvbndBQj+0zozsepjmFU3m4HFKqF+JHTL18w==
X-Google-Smtp-Source: APXvYqylklUDUO1DROAgyQTD8rxJOFcHnolt0+iZyzk9q7b4HXbQJpzmrl8QynESUb9npwuhys25jBrcu5FHpO5gwvk=
X-Received: by 2002:ac8:3ffc:: with SMTP id v57mr14483344qtk.277.1559843329490; Thu, 06 Jun 2019 10:48:49 -0700 (PDT)
MIME-Version: 1.0
References: <a71b00b7-0e0c-242a-b3f7-147f4c6b2eb0@gmail.com>
In-Reply-To: <a71b00b7-0e0c-242a-b3f7-147f4c6b2eb0@gmail.com>
From: Tom Herbert <tom@herbertland.com>
Date: Thu, 06 Jun 2019 10:48:38 -0700
Message-ID: <CALx6S37zVNDEb5863KuUEETyxuKhyGU1Vc7__qZQ2Mkyb0tzyg@mail.gmail.com>
Subject: Re: Is 1111 1110 10 equal to 0xfe80 or 0x3fa?
To: Alexandre Petrescu <alexandre.petrescu@gmail.com>
Cc: IPv6 <ipv6@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/WMsOgiqeXUvN_uWIL8zxiB6qoZg>
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: Thu, 06 Jun 2019 17:48:53 -0000

On Thu, Jun 6, 2019 at 10:18 AM Alexandre Petrescu
<alexandre.petrescu@gmail.com> wrote:
>
> Hi 6MANners,
>
> In private discussion we disagree about this point:
>
> I maintain that 1111 1110 10 equals 0x3fa, because that's what my Windows Calculator says: I type 1111 1110 10 and it converts to 0x3fa.
>
> On another hand, I am rhetorically asked how can 1111 1110 10 be 0x3fa?
>
Alexandre, presumably you're referring to the table in section 2.4. In
this context 1111 1110 10 is a binary prefix, not an ordinal number,
so it is neither equal to 0xf3a nor 0xfe80. It is equal to FE80::/10
in IPv6 notation as inidicated.

Tom

> (the 1111 1110 10 are the 10 leading bits of the IPv6 link local addresses, which is familiarly known to start with an fe80).
>
> On my side, this is a difficulty to understand this 0xfe80, especially since 1111 1110 10 is so printed in Figure in RFC4291.
>
> Alex
>
> --------------------------------------------------------------------
> IETF IPv6 working group mailing list
> ipv6@ietf.org
> Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
> --------------------------------------------------------------------