Re: [netmod] Doubts about static routes in RFC 8349

Martin Bjorklund <mbj@tail-f.com> Wed, 03 April 2019 11:56 UTC

Return-Path: <mbj@tail-f.com>
X-Original-To: rtgwg@ietfa.amsl.com
Delivered-To: rtgwg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1A1AC1200E0; Wed, 3 Apr 2019 04:56:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=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 U9-SNInW-YNh; Wed, 3 Apr 2019 04:56:46 -0700 (PDT)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id 6E7D21200D5; Wed, 3 Apr 2019 04:56:46 -0700 (PDT)
Received: from localhost (unknown [173.38.220.61]) by mail.tail-f.com (Postfix) with ESMTPSA id 1E5571AE02BD; Wed, 3 Apr 2019 13:56:45 +0200 (CEST)
Date: Wed, 03 Apr 2019 13:56:47 +0200
Message-Id: <20190403.135647.1188699688177530452.mbj@tail-f.com>
To: acee@cisco.com
Cc: Alexander.Vainshtein@ecitele.com, lhotka@nic.cz, netmod@ietf.org, rtgwg@ietf.org
Subject: Re: [netmod] Doubts about static routes in RFC 8349
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <ED286AC7-41CD-4510-A416-9A3FD6418CE0@cisco.com>
References: <20190403.130458.1547365482806443643.mbj@tail-f.com> <AM0PR03MB382867F5B62ABF6A1AB447C29D570@AM0PR03MB3828.eurprd03.prod.outlook.com> <ED286AC7-41CD-4510-A416-9A3FD6418CE0@cisco.com>
X-Mailer: Mew version 6.7 on Emacs 25.2 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset="utf-8"
Content-Transfer-Encoding: base64
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtgwg/Xf6ZdjcDFZOt5HakHehRcgsuz5I>
X-BeenThere: rtgwg@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Routing Area Working Group <rtgwg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtgwg>, <mailto:rtgwg-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/rtgwg/>
List-Post: <mailto:rtgwg@ietf.org>
List-Help: <mailto:rtgwg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtgwg>, <mailto:rtgwg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Apr 2019 11:56:49 -0000

"Acee Lindem (acee)" <acee@cisco.com> wrote:
> Hi Sasha, 
> 
> On 4/3/19, 7:27 AM, "Alexander Vainshtein"
> <Alexander.Vainshtein@ecitele.com> wrote:
> 
>     Martin,
>     Lots of thanks for a prompt response.
>     
>     My reading of your response is that, if you need multiple static
>     routes with the same destination but different next hops, you
>     configure them as a single route with next-hop-list, but what you see
>     when you retrieve the RIB may be multiple individual routes, each with
>     its own simple next hop. Or it may be something else, since no keys
>     have been defined in the read-only representation of the RIB.
>     
>     Is my reading correct?
> 
> No - you'd see a single route and next-hop-list with the alternatives
> when it is retrieved.

Do you think it would be a violation of the spec if an implementation
expanded this into several route entries?  If yes, is this specified?


/martin



>  
> Thanks,
> Acee
>  
>     
>     Regards, and lots of thanks in advance,
>     Sasha
>     
>     Office: +972-39266302
>     Cell:      +972-549266302
>     Email:   Alexander.Vainshtein@ecitele.com
>     
>     
>     -----Original Message-----
>     From: Martin Bjorklund <mbj@tail-f.com> 
>     Sent: Wednesday, April 3, 2019 2:05 PM
>     To: Alexander Vainshtein <Alexander.Vainshtein@ecitele.com>
>     Cc: acee@cisco.com; lhotka@nic.cz; netmod@ietf.org; rtgwg@ietf.org
>     Subject: Re: [netmod] Doubts about static routes in RFC 8349
>     
>     Hi,
>     
>     
>     Alexander Vainshtein <Alexander.Vainshtein@ecitele.com> wrote:
>     > Martin,
>     > 
>     > Lots of thanks for an interesting input.
>     > 
>     > I have noticed that Appendix A in RFC
>     > 8349<https://tools.ietf.org/html/rfc8349#appendix-A>  defines the key 
>     > for static IPv4 and IPv6 unicast routes as “destination-prefix”.
>     
>     Right (to be precise, the key is defined in the YANG models in section
>     8 and 9).
>     
>     
>     > draft-ietf-rtgwg-
>     > yang-rib-extend<https://tools.ietf.org/html/draft-ietf-rtgwg-yang-rib-
>     > extend-01> claims that it augments the model defined in 8349, 
>     > therefore, to the best of my understanding, it uses the same key for 
>     > station IPv4 and
>     > IPv6 unicast routes.
>     
>     Correct.
>     
>     
>     > At the same time Appendix A in this draft does not define any keys for
>     > the read-only RIB.
>     > 
>     > Can you explain this controversy?
>     
>     Not sure there's a controversy.  The static route list is how you
>     configure static routes, and the RIB is the operational state of all
>     routes (static and others).  Two different things.
>     
>     The MIB had a single table to show routes and write routes.  I don't
>     think the persistency of the routes you wrote into the MIB was
>     defined; perhaps these can be viewed as being "static".
>     
>     
>     /martin
>     
>     
>     > 
>     > 
>     > 
>     > Regards, and lots of thanks in advance,
>     > 
>     > Sasha
>     > 
>     > 
>     > 
>     > Office: +972-39266302
>     > 
>     > Cell:      +972-549266302
>     > 
>     > Email:   Alexander.Vainshtein@ecitele.com
>     > 
>     > 
>     > 
>     > -----Original Message-----
>     > From: Martin Bjorklund <mbj@tail-f.com>
>     > Sent: Wednesday, April 3, 2019 1:34 PM
>     > To: Alexander Vainshtein <Alexander.Vainshtein@ecitele.com>
>     > Cc: acee@cisco.com; lhotka@nic.cz; netmod@ietf.org; rtgwg@ietf.org
>     > Subject: Re: [netmod] Doubts about static routes in RFC 8349
>     > 
>     > 
>     > 
>     > Hi,
>     > 
>     > 
>     > 
>     > Alexander Vainshtein
>     > <Alexander.Vainshtein@ecitele.com<mailto:Alexander.Vainshtein@ecitele.com>>
>     > wrote:
>     > 
>     > 
>     > 
>     > [...]
>     > 
>     > 
>     > 
>     > > Meanwhile, could you please explain the rationale for changing the
>     > 
>     > > data model that has been defined in RFC 4292 (where both the
>     > 
>     > > destination prefix and the next hop have been parts of the index in
>     > 
>     > > the appropriate MIB table) ?
>     > 
>     > >
>     > 
>     > > The side effect of this change is that it is not backward-compatible
>     > 
>     > > with multiple existing RFC 4292-compliant RIB implementations:
>     > 
>     > >
>     > 
>     > > -          Retrieval of such a RIB using YANG requires a stateful
>     > > -          mapper that
>     > 
>     > >            merges multiple RIB entries with the same destination 
>     > > prefix and
>     > 
>     > >            different “simple” NH into a single entry with the
>     > 
>     > >            next-hop-list
>     > 
>     > 
>     > 
>     > Note that the "route" list in the rib doesn't have any keys.  This
>     > means that you can report several entries with the same destination
>     > prefix.  So I think that this design is compatible with the MIB
>     > design.
>     > 
>     > 
>     > 
>     > 
>     > 
>     > 
>     > 
>     > /martin
>     > 
>     > ______________________________________________________________________
>     > _____
>     > 
>     > This e-mail message is intended for the recipient only and contains 
>     > information which is CONFIDENTIAL and which may be proprietary to ECI 
>     > Telecom. If you have received this transmission in error, please 
>     > inform us by e-mail, phone or fax, and then delete the original and
>     > all copies thereof.
>     > ______________________________________________________________________
>     > _____
>     
>     ___________________________________________________________________________
>     
>     This e-mail message is intended for the recipient only and contains
>     information which is
>     CONFIDENTIAL and which may be proprietary to ECI Telecom. If you have
>     received this
>     transmission in error, please inform us by e-mail, phone or fax, and
>     then delete the original
>     and all copies thereof.
>     ___________________________________________________________________________
>     
>