[6tsch] rank, Dagrank(rank) and Join Priority

Xavier Vilajosana Guillen <xvilajosana@eecs.berkeley.edu> Mon, 07 October 2013 19:51 UTC

Return-Path: <xvilajosana@berkeley.edu>
X-Original-To: 6tsch@ietfa.amsl.com
Delivered-To: 6tsch@ietfa.amsl.com
Received: from localhost (localhost []) by ietfa.amsl.com (Postfix) with ESMTP id E7ABE11E8116 for <6tsch@ietfa.amsl.com>; Mon, 7 Oct 2013 12:51:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.976
X-Spam-Status: No, score=-2.976 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([]) by localhost (ietfa.amsl.com []) (amavisd-new, port 10024) with ESMTP id 7tnaU7E5NsVt for <6tsch@ietfa.amsl.com>; Mon, 7 Oct 2013 12:51:26 -0700 (PDT)
Received: from mail-pb0-f43.google.com (mail-pb0-f43.google.com []) by ietfa.amsl.com (Postfix) with ESMTP id AF3EC11E8152 for <6tsch@ietf.org>; Mon, 7 Oct 2013 12:51:17 -0700 (PDT)
Received: by mail-pb0-f43.google.com with SMTP id md4so7527948pbc.30 for <6tsch@ietf.org>; Mon, 07 Oct 2013 12:51:17 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:reply-to:date:message-id:subject :from:to:content-type; bh=Cym37pgle2GOpMOPUuRBbByxVG1og/xlH/eUhk88m6A=; b=MwMKPG2H92+/LHQKYVQpM41+DHVuH+kka9LrVdx/FKog2UAdGbz+1ZneWaFzgnIB2o bKp3zb/yRsBuXS9d8gkk87e/QAB/5+6e1V69j5Hf6DKiq7Vtu2eEg6Y+evwtkviFxHt8 R5Rwjg4Xp2LNR4OjgTIuJcLA6/1f7CuNZ4AMymLmjoJch5/CLTNHZRg8VeKq7WMF2BTa pBNNj8tcsF4fo9havzc4IYK+HyNDHEuf5YCljVYiuhYdx1s0gZI+wG0SpYM43Gyp6T/X MrgjfeuCYNekcTBqNXudd03Mfr+5NM8FjExhfSgZYS3uH6fOLdw1LqR9w8kHCb7+C6Da bnhA==
X-Gm-Message-State: ALoCoQkWhtefhH0f5n/ZlMvhmrIXh12bpGuoPLKl7L1fm0z4zipu2NaVVmxtAF4PTujryYh1Cilk
MIME-Version: 1.0
X-Received: by with SMTP id 5mr11504141pbd.106.1381175477272; Mon, 07 Oct 2013 12:51:17 -0700 (PDT)
Received: by with HTTP; Mon, 7 Oct 2013 12:51:17 -0700 (PDT)
Date: Mon, 7 Oct 2013 12:51:17 -0700
Message-ID: <CALEMV4aWvMWKkhFMpUSix30D0j_FQHg_o1L3t6fGmWgpriENSg@mail.gmail.com>
From: Xavier Vilajosana Guillen <xvilajosana@eecs.berkeley.edu>
To: "6tsch@ietf.org" <6tsch@ietf.org>
Content-Type: multipart/alternative; boundary=bcaec5215e9db21a7004e82bf973
Subject: [6tsch] rank, Dagrank(rank) and Join Priority
X-BeenThere: 6tsch@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: xvilajosana@eecs.berkeley.edu
List-Id: "Discuss link layer model for Deterministic IPv6 over the TSCH mode of IEEE 802.15.4e, and impacts on RPL and 6LoWPAN such as resource allocation" <6tsch.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/6tsch>, <mailto:6tsch-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/6tsch>
List-Post: <mailto:6tsch@ietf.org>
List-Help: <mailto:6tsch-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/6tsch>, <mailto:6tsch-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 07 Oct 2013 19:51:32 -0000


I am reviewing the minimal draft and I want to clarify one thing:

according to RFC6550

DAGRank(rank) = floor(rank/MinHopRankIncrease)

the RFC does not specify whether DAGRank(rank) is a 16bit integer or a 8bit
integer (or another type) but if MinHopRankIncrease is 256, then for sure
that the result of DAGRank(rank) will be smaller than 256 and hence will
fit in an 8bit variable.

If that is the case then the join priority field can be exactly
DAGRank(rank) and we do not need to do this shifting that we've been
discussing so far.

Now the minimal draft states that Join Priority == DAGRank(rank)

should I clarify there that this assumes that DAGRank(rank) is an 8bit
integer. In case it is not an 8bit integer then we need to shift it to
consider the most significant 8 bits.

Do you agree on that?

sorry to come back again to the topic but I want to close it asap :-)