[Isis-wg] Handling same SID mapped to different prefixes and vice versa cases

Imtiyaz Mohammad <technotaz2004@gmail.com> Thu, 01 October 2015 07:14 UTC

Return-Path: <technotaz2004@gmail.com>
X-Original-To: isis-wg@ietfa.amsl.com
Delivered-To: isis-wg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A57E61B2B20; Thu, 1 Oct 2015 00:14:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.748
X-Spam-Level:
X-Spam-Status: No, score=-1.748 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, HTML_MESSAGE=0.001, NORMAL_HTTP_TO_IP=0.001, SPF_PASS=-0.001] autolearn=no
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 ZSOKDcMnVjWh; Thu, 1 Oct 2015 00:14:04 -0700 (PDT)
Received: from mail-qg0-x229.google.com (mail-qg0-x229.google.com [IPv6:2607:f8b0:400d:c04::229]) (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 A7BBF1B2B1E; Thu, 1 Oct 2015 00:14:03 -0700 (PDT)
Received: by qgev79 with SMTP id v79so56640672qge.0; Thu, 01 Oct 2015 00:14:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=ApXuPVX7AJC90NipqYcWYNAJ2LiSVfVRdVSYdQIXUqg=; b=BvGw3h93gNceViw1/gUYE27IvMo6HanJoQHIyh+yAtuMmfWWzHpc1qNqqBuWIoQM2T +YRW+lTq42awjUJ1fjnCIlnvC/Gt+gqqsUYqMevz9vz8Mn2DVPWaqS7NJUQXqGAvqmah hFleT8/ajlhISAVsOFJNlxulWlFdkq66buMmE5qIN5kLGG0s23aqDEo53uMzOP24WT7i VukSzzN4034lpvUASFliym4vxBAapB4kzypKPtPz9ipM6+A023Hs12q8o/WjXzEFN+FA A6ghTRHLexIUm7j6CnBBj2BOHp20AZNvE35estvgMUNwKEIgQywJoZR7VV3i8a9e2vkf z9Ag==
MIME-Version: 1.0
X-Received: by 10.140.22.133 with SMTP id 5mr9999227qgn.12.1443683642839; Thu, 01 Oct 2015 00:14:02 -0700 (PDT)
Received: by 10.140.98.33 with HTTP; Thu, 1 Oct 2015 00:14:02 -0700 (PDT)
Date: Thu, 01 Oct 2015 12:44:02 +0530
Message-ID: <CANk4F3Ppzo2_Xkc2V_x=Q6LEWQvMUb-2_h+Xd-mwzr3WzE85bA@mail.gmail.com>
From: Imtiyaz Mohammad <technotaz2004@gmail.com>
To: "isis-wg@ietf.org list" <isis-wg@ietf.org>, spring@ietf.org
Content-Type: multipart/alternative; boundary="001a11c12c80b31a60052105ca89"
Archived-At: <http://mailarchive.ietf.org/arch/msg/isis-wg/orzS_1bGei4D_zNdgPQ6jtQW0QY>
Subject: [Isis-wg] Handling same SID mapped to different prefixes and vice versa cases
X-BeenThere: isis-wg@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: IETF IS-IS working group <isis-wg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/isis-wg>, <mailto:isis-wg-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/isis-wg/>
List-Post: <mailto:isis-wg@ietf.org>
List-Help: <mailto:isis-wg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/isis-wg>, <mailto:isis-wg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 01 Oct 2015 07:14:05 -0000

Hello experts !

The draft-ietf-isis-segment-routing-extensions draft states that:

 "The 'Prefix SID' MUST
   be unique within a given IGP domain (when the L-flag is not set)."


Makes sense from usage point of view. What if some implementation does
not enforce a configuration time check and allows such possibilities
in the network wherein the following three situations arise:


(1) Same SID is received from one device and mapped to multiple prefixes.

(2) Same SID is received from two devices and mapped to multiple prefixes.

(3) Same prefix is mapped with two different SID on two different devices.


Let me go through each case with examples.


(1) Same SID is received from one device and mapped to multiple prefixes.


devA-----ISIS------devB


devB has:

     node segment 100 for 30.30.30.30/32

     node segment 100 for 40.40.40.40/32


It sends prefix segment subTLV for both these entries.


devA receives these subTLVs and since they have arrived from the very
same device, the LFIB entries would be same calculated through
30.30.30.30/32:100 or 40.40.40.40/32:100 because your next operation
and nexthops would be identical.


(2) Same SID is received from two devices and mapped to multiple prefixes.


devA-----ISIS---cost10---devB

          |

          |_____cost20___devC


devB has:

     node segment 100 for 30.30.30.30/32


devC has:

     node segment 100 for 40.40.40.40/32


This cause would clearly not work as devA would need to know SID 100
represents devB or devC. So, on receipt on such subTLV entries, we
would syslog an error.


(3) Same prefix is mapped with two different SID on two different devices.


devA-----ISIS---cost10---devB

          |

          |_____cost20___devC


devB has:

     node segment 100 for 30.30.30.30/32


devC has:

     node segment 200 for 30.30.30.30/32


Even in this case, things would fall apart as the 30.30.30.30/32 fec
has two paths, one of them may be the best path or there might be an
ecmp but one would not know when using incoming label 100 or 200 that
the packet would go to devB or devC.


Is my understanding correct for these three scenarios ?


I am thinking that in scenario (2) and (3), on receipt of duplicate
subTLV entries ( same SID different prefixes or vice versa from
different systemIDs ), we should store all of them, mark one of them
as 'active' based on same criteria such highest systemID and use that
for LFIB generation. The inactive subTLV entry would just lie there in
case the active one ceases to exist for some reason later in time at
which point, the inactive one could be made active and used for LFIB
generation.


Comments / Opinions ?




-- 
Imtiyaz