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

Yingzhen Qu <yingzhen.qu@huawei.com> Thu, 04 April 2019 16:56 UTC

Return-Path: <yingzhen.qu@huawei.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 47366120117; Thu, 4 Apr 2019 09:56:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.2
X-Spam-Level:
X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, 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 n3eLelM4DPcr; Thu, 4 Apr 2019 09:56:11 -0700 (PDT)
Received: from huawei.com (lhrrgout.huawei.com [185.176.76.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B76571200C7; Thu, 4 Apr 2019 09:56:10 -0700 (PDT)
Received: from lhreml704-cah.china.huawei.com (unknown [172.18.7.106]) by Forcepoint Email with ESMTP id 913907E39ACC33555777; Thu, 4 Apr 2019 17:56:08 +0100 (IST)
Received: from SJCEML701-CHM.china.huawei.com (10.208.112.40) by lhreml704-cah.china.huawei.com (10.201.108.45) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 4 Apr 2019 17:56:08 +0100
Received: from SJCEML521-MBX.china.huawei.com ([169.254.1.136]) by SJCEML701-CHM.china.huawei.com ([169.254.3.61]) with mapi id 14.03.0439.000; Thu, 4 Apr 2019 09:56:02 -0700
From: Yingzhen Qu <yingzhen.qu@huawei.com>
To: "Acee Lindem (acee)" <acee@cisco.com>, Martin Bjorklund <mbj@tail-f.com>
CC: "netmod@ietf.org" <netmod@ietf.org>, "rtgwg@ietf.org" <rtgwg@ietf.org>
Thread-Topic: [netmod] Doubts about static routes in RFC 8349
Thread-Index: AQHU6gjLL0zLTV7J506eSqbrGcgWfaYqt6KAgAADywCAAAZLgIAAAYKAgAAGrYCAAAa2AIABaGdQ
Date: Thu, 04 Apr 2019 16:56:01 +0000
Message-ID: <594D005A3CB0724DB547CF3E9A9E810B011E5F37@sjceml521-mbx.china.huawei.com>
References: <20190403.130458.1547365482806443643.mbj@tail-f.com> <AM0PR03MB382867F5B62ABF6A1AB447C29D570@AM0PR03MB3828.eurprd03.prod.outlook.com> <ED286AC7-41CD-4510-A416-9A3FD6418CE0@cisco.com> <20190403.135647.1188699688177530452.mbj@tail-f.com> <C5679342-DC67-40E0-ABFB-6A57C09F6A7C@cisco.com>
In-Reply-To: <C5679342-DC67-40E0-ABFB-6A57C09F6A7C@cisco.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.209.216.116]
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-CFilter-Loop: Reflected
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/y3FGzfwQ2dQ0zKRxrPfiyH7Dxzk>
Subject: Re: [netmod] Doubts about static routes in RFC 8349
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 04 Apr 2019 16:56:13 -0000

Hi Martin,

I agree with what Acee explained. Theoretically it's possible that in operation state an implementation can expand this into several route entries, but that's not how typically a RIB is implemented. One reason is that it will make the routing table look up much harder and inefficient.

Thanks,
Yingzhen

-----Original Message-----
From: rtgwg [mailto:rtgwg-bounces@ietf.org] On Behalf Of Acee Lindem (acee)
Sent: Wednesday, April 03, 2019 5:21 AM
To: Martin Bjorklund <mbj@tail-f.com>
Cc: netmod@ietf.org; rtgwg@ietf.org
Subject: Re: [netmod] Doubts about static routes in RFC 8349

Hi Martin, 

On 4/3/19, 7:57 AM, "Martin Bjorklund" <mbj@tail-f.com> wrote:

    "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?

Normally, a given RIB client, e.g., static,  would install a single route with one or more next-hops in the global RIB. If present, multiple routes for the same destination would come from different RIB clients. The RIB active route the is the route with the lowest preference value (more preferred). Since the read-only lists do not have indices, I don't see how'd we'd enforce this. However, an implementation supporting any other structure would be highly irregular. 

Thanks,
Acee
    
    
    /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.
    >     ___________________________________________________________________________
    >     
    > 
    

_______________________________________________
rtgwg mailing list
rtgwg@ietf.org
https://www.ietf.org/mailman/listinfo/rtgwg