[trill] Parent node shift draft - relationship to resilient trees draft.

R Parameswaran <parameswaran.r7@gmail.com> Mon, 28 November 2016 07:50 UTC

Return-Path: <parameswaran.r7@gmail.com>
X-Original-To: trill@ietfa.amsl.com
Delivered-To: trill@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0AF4512957A for <trill@ietfa.amsl.com>; Sun, 27 Nov 2016 23:50:35 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.45
X-Spam-Level:
X-Spam-Status: No, score=-2.45 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-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 2CHMrRRGZ4xw for <trill@ietfa.amsl.com>; Sun, 27 Nov 2016 23:50:33 -0800 (PST)
Received: from mail-io0-x234.google.com (mail-io0-x234.google.com [IPv6:2607:f8b0:4001:c06::234]) (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 AAA24127058 for <trill@ietf.org>; Sun, 27 Nov 2016 23:50:33 -0800 (PST)
Received: by mail-io0-x234.google.com with SMTP id c21so211376244ioj.1 for <trill@ietf.org>; Sun, 27 Nov 2016 23:50:33 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=CSQ9pXqTAIX11Q01efzzTCd9MgfPvTbnM/IX+u5TOlE=; b=TTyERZxa8TulVmHxWVajcSGpvZ9wBbKHcNFw2ByZpai4pw0qGpaA3AkUR8ZF2+R1tZ VuuAE6ybLKlG/kpO412syEFgmkEEGFJHSwiZcHch/0AorXOvcnXOx02gLfR32QFH850C g/OSLcnUMrhgSnaMYMp6ErYQWfE2KpXET2RKLN3aKl3e+Hexy6uTfXW0VLlXm2/DqWEt j2qPw9b7nUuWLfVa97rrhtYN8Vqc/GM03jtWH7GbvMGQbkwaYpjbq4iqZxilMrxm8Xjj x8njQru8UZdrvDfU7vfKF0Jk2k03qp0gVyhBXpLxQ2hECcIJNWG8CdPI5iUQHIFv6WWE Kx3g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=CSQ9pXqTAIX11Q01efzzTCd9MgfPvTbnM/IX+u5TOlE=; b=ZAs+NHNyEHg3/AXazxAYcs+tGBzaY7NZ61eqBuD1oj+GHro3cfKsOb/OnLo4o2sNUH gvbp//b98RLXlA5z+y4ycK+wb65RFpvkxd2oqWA2KEG43a+EAzobqvkZ6BUW6aYRJtsm 7CctL0zNu1sKChBxS80reF4YqQWVQm7ckfUzBvCkC9/Mi/TabiGDXjxsCVoRudoYzYQP f7QUCcDXI0CyVRTE9SS7A5x2qu7yRvPce2sPLPSCZhK7dbv7pwqiuUV0hoTSdfokQUNj sWai3v2SOVSwpcc70kQmiClSdC99W5SzLhrkPP07wfA+tQup+N24KGXr8X79MrF2TnQh swew==
X-Gm-Message-State: AKaTC027GXNTk2OvuHqvbf4P9NZlNTki5JQqyRPm/Xjjn4OuBST2TglcVuZsZ+KCHcO+KiZ0eGunhHpjz7tX0A==
X-Received: by 10.36.76.85 with SMTP id a82mr16844675itb.67.1480319432964; Sun, 27 Nov 2016 23:50:32 -0800 (PST)
MIME-Version: 1.0
Received: by 10.50.171.6 with HTTP; Sun, 27 Nov 2016 23:50:32 -0800 (PST)
From: R Parameswaran <parameswaran.r7@gmail.com>
Date: Sun, 27 Nov 2016 23:50:32 -0800
Message-ID: <CAGeBGG75ZQ1-nAecFYjEcu_2UYwno5x0Avv4XYKAt=zN+Qh+1A@mail.gmail.com>
To: d3e3e3@gmail.com, trill@ietf.org
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/trill/B9H-n4ZB2ZbkQfB2vi36rLNk91Q>
Subject: [trill] Parent node shift draft - relationship to resilient trees draft.
X-BeenThere: trill@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: "Developing a hybrid router/bridge." <trill.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/trill>, <mailto:trill-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/trill/>
List-Post: <mailto:trill@ietf.org>
List-Help: <mailto:trill-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/trill>, <mailto:trill-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 28 Nov 2016 07:51:18 -0000

With regard to draft-rp-trill-parent-selection-01, this email tries to
answer the question posed at the mike at IETF 97 Trill meeting - how does
this draft relate to draft-ietf-trill-resilient-trees?

This is examined below from two different considerations - overlap and
extensibility.

In summary, there is not much direct functional overlap between the two drafts
that I can see, and draft-rp-trill-parent-selection-01.txt could possibly be
extended to handle backup DT calculation for node failure scenarios. Details
of these are broken out below:

A. Considerations for Overlap:

At a high level, draft-ietf-trill-resilient-trees relates to link
protection, and
defines the notion of a primary distribution tree (DT) and a backup
distribution tree,
where these trees are intentionally kept link disjoint to the extent possible,
and the backup tree is pre-programmed in the hardware, and activated upon
failure of the primary distribution tree.


draft-ietf-trill-resilient-trees considers the following algorithmic approaches
to the building the backup distribution tree:

1. Pure operator config for links on the backup DT/manual generation of
   affinity sub-TLV - this is very tedious and unlikely to scale or be
implemented
   in practice, and hence is disregarded in the analysis here.

2. Section 3.2.1.1a: Use of MRT algorithms (which will produce conjugate trees -
   link disjoint trees with roots for primary and backup trees that
are coincident on the same physical rBridge).

3. Section 3.2.1.1b: Once the primary DT is constructed, the links used in the
   primary DT are additively cost re-weighted, and a second SPF is run to
   derive the links comprising the backup DT. Affinity sub-TLV is used to
   mark links on the back-up DT which are not also on the primary DT. This
   approach can handle conjugate trees as well as non-conjugate trees (link
   disjoint trees that are rooted at different physical nodes).

4. Section 3.2.2: A variation on the section 3.2.1.1b approach, but without
   affinity sub-TLV advertisement. Once the primary DT is constructed, costs
   for links on the primary DT are multiplied by a fixed multiplier to prevent
   them from being selected in a subsequent SPF run, unless there
   is no other choice, and the subsequent SPF yields links on the backup DT.

All of the approaches above yield maximally link disjoint trees, when applied
as prescribed.

Approach 4 above does not seem to use affinity sub-TLVs and instead seems to
depend upon a network wide agreement on the alternative tree computation
algorithm being used.

Approaches 2 and 3 uses affinity sub-TLV on the backup DT, for links that are
not already on the primary DT. The primary DT does not appear to use affinity
sub-TLVs. Additionally, from an end-to-end perspective the backup DT comes
into picture when the primary DT fails (this is effectively true even in the
1+1 protection mechanism and in the local protection case), and then again,
only until the primary DT is recalculated. Once the primary DT is
recalculated, the backup DT is recalculated as well, and can change
corresponding to the new
primary DT.

draft-ietf-trill-resilient-trees cannot directly prevent/mitigate a
parent node shift
on the primary DT at a given parent node, and while usage of the affinity
sub-TLV on the backup DT might confer a parent affinity on some nodes
on the backup DT, these are not necessarily the nodes on which the
network operator
may want/prefer an explicit parent affinity. Further, the backup DT is
only used on
a transient basis, from a forwarding perspective.

Given the above, I don't see much of a functional overlap between
draft-ietf-trill-resilient-trees, and the draft-rp-trill-parent-selection-01
draft.

The two drafts can probably co-exist (personal opinion) as they have different
goals, and solve different problems. Maybe its good to have some text in one
of them, explaining the relationship to the other.

B. Extensibility considerations:

As called out in section 3, draft-ietf-trill-resilient-trees focuses on link
protection.  However, the draft alludes to the possibility of using backup DTs
for node protection, but considers it out of scope, while calling out some
problems with doing so.

On the other hand, draft-rp-trill-parent-selection-01 does not explicitly
define the notion of a backup DT, and focuses on protecting parent child
relationships  on the primary DT, but possibly can be extended to define the
notion of a backup DT for node protection.

In draft-rp-trill-parent-selection-01, if a sibling of the configured parent
node (the node on which child affinity was explicitly configured) goes down,
there is not much point in computing the backup DT corresponding to the downed
node, because the forwarding state on the configured parent, and on other
nodes in the network, will not change because of the already imposed affinity
sub-TLV, binding the child nodes listed in the affinity sub-TLV to the parent
originating the affinity sub-TLV, regardless of the presence or absence of the
sibling node.

But, implementations may need to take care to not disturb the hardware
programming already in place, while the tree computation reconverges to
(nearly) the same outcome as the prior computed tree, when the sibling
node goes down.

However, in the case where the parent node on which child affinity was
configured goes down, it makes sense to configure a back-up DT with simply the
Trill default parent selection rules, but with the tree calculation now
excluding the configured parent node with the child affinity. The
backup DT can be
pre-programmed, and when the configured parent node is seen to go down,
its affinity sub-TLVs can be discarded, and hardware programming can switch to
forwarding with the backup DT state.

There are other considerations that need to be thought through (e.g
what if any other node (not parent, not sibling) goes down - do we
need a backup tree?) , but
draft-rp-trill-parent-selection-01 can possibly be extended in this
direction if there
is interest in pursuing this further. In any case, feedback is welcome.

thanks,

Ramkumar