RtgDir review: draft-ietf-rtgwg-policy-model-16

John Scudder <jgs@juniper.net> Tue, 30 June 2020 18:14 UTC

Return-Path: <jgs@juniper.net>
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 8D3193A0814; Tue, 30 Jun 2020 11:14:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.089
X-Spam-Level:
X-Spam-Status: No, score=-2.089 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_FILL_THIS_FORM_SHORT=0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=juniper.net header.b=CJLS6Q2O; dkim=pass (1024-bit key) header.d=juniper.net header.b=d+8rcc1x
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 1wiyYijK5Imz; Tue, 30 Jun 2020 11:14:15 -0700 (PDT)
Received: from mx0a-00273201.pphosted.com (mx0a-00273201.pphosted.com [208.84.65.16]) (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 484113A095E; Tue, 30 Jun 2020 11:14:15 -0700 (PDT)
Received: from pps.filterd (m0108158.ppops.net [127.0.0.1]) by mx0a-00273201.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 05UIDpDg004037; Tue, 30 Jun 2020 11:14:14 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; h=from : to : cc : subject : date : message-id : content-type : mime-version; s=PPS1017; bh=p9+j76B8Qmk2PpGSZDU0wo8umRvff0GEvedHvTx6YUU=; b=CJLS6Q2OMp1Gz0gV11JQFXudSY4zwtgwKj6xGWRSVq8P/00HkwCgKVXN7FEzh2suyZRI /7Hoe6BkE98nO0vMk4Vc6fnqniWyRuIifnaCJgihdFnoDdX+kXmKsOGDa5SuHOWQ6ri0 DQivC677ybvibKExBXyzhkVtROJrmh/nXhqi4v7ESvUtxFMpMbyTi/3sJWyJd4mubQDm 30LBtcNAwRC6QDHTr/aKjryuI6fvNwgqKMoaFkrESJNZJXf6dcqWi+7v1+htXPOge6tY HAzSuszx/zQEaEqyUEdvAUrgPFpKrH9WDHEZL2Xkf3SI0wqzzprdCbxFxKIECRxKqqFR EQ==
Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2101.outbound.protection.outlook.com [104.47.55.101]) by mx0a-00273201.pphosted.com with ESMTP id 31x1tsncnt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 Jun 2020 11:14:13 -0700
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lMQY3s50xt58MX5j2VBBTGJvwnJi5+vTm10ufgglF/FRJPBbIOnVXt3fz7MLrYwK9rPVVoSCL3vy70b/uDpjLW/J1J3c+bdBYZDGYT5xvVrkTpUMUQGTQS2F492sNo2CAfuaMZ/Ytgva5f1c3szaPHxKzMkDjPUhyuj2+mM4yPO7srrHI6P4HU4a/rf9Tprar4U1Ui2LqCrsTwBwdq3zACvl+FjWb2G2hS8mPIlJKuLx0951LX2CmfK5d9lNXAhwd6RoGawH0k0JWN7M6RxAgsfjq/payatSRKMjdAoj+Z6c9k53IJHKH1wZdkkeFBfdm1ZofH7xTwrpv293g+NHYg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=p9+j76B8Qmk2PpGSZDU0wo8umRvff0GEvedHvTx6YUU=; b=Q4lF8NtH105/VGcPG/oBbqoNsZ2zFJTKmX64f60ONxJyfL3wIeiKRkMsGnvSFH+ZgpLNQok9P5nUih+EqEQ5nRNQfRsphRG2cRjt/BBHjWST3ixwh4WB6+HpEWz3tEYsf998WDaZDY34W6nUk0VZK8a1WTukMLj4vRAYBpWvZWRgOOGWeNg54NQcmGk659hpzaq7nKNERh+MMNTflbIEDcA5EHDHVhVfHZUKTfn7zbMdpkBnhz9eKQRXE3Nk40iJ0RjAlk2gbVVfJWqLMvz+GkqoNehk6x0q1Llac0I2n1+a7HJwxqYfscQwjt87709preXN8UD6lrPbCBlAidtYGA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=juniper.net; dmarc=pass action=none header.from=juniper.net; dkim=pass header.d=juniper.net; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=p9+j76B8Qmk2PpGSZDU0wo8umRvff0GEvedHvTx6YUU=; b=d+8rcc1xCtqR0g3Jwd2qGTl3zkv/kWg3D/7AEuyR8KVYwng2vb8TK7qFj/qsHFLoiMtbnhiNnHK+laY35WOsSSW8DHYfQ4tQ4SmkQeXxEzrAalJof4FXWcEmG3VOrR0O2lh08C4jbYgBEtQp05EFnWO205JssWuYTRg47ZyPfWI=
Received: from BL0PR05MB5076.namprd05.prod.outlook.com (2603:10b6:208:83::12) by MN2PR05MB6829.namprd05.prod.outlook.com (2603:10b6:208:1b9::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.10; Tue, 30 Jun 2020 18:14:11 +0000
Received: from BL0PR05MB5076.namprd05.prod.outlook.com ([fe80::499e:c613:2d2:b09f]) by BL0PR05MB5076.namprd05.prod.outlook.com ([fe80::499e:c613:2d2:b09f%7]) with mapi id 15.20.3153.019; Tue, 30 Jun 2020 18:14:11 +0000
From: John Scudder <jgs@juniper.net>
To: "rtg-ads@ietf.org" <rtg-ads@ietf.org>
CC: "rtg-dir@ietf.org" <rtg-dir@ietf.org>, "draft-ietf-rtgwg-policy-model.all@ietf.org" <draft-ietf-rtgwg-policy-model.all@ietf.org>, RTGWG <rtgwg@ietf.org>
Subject: RtgDir review: draft-ietf-rtgwg-policy-model-16
Thread-Topic: RtgDir review: draft-ietf-rtgwg-policy-model-16
Thread-Index: AQHWTwpAtGDKI1ybGkqQcyWhkiV02A==
Date: Tue, 30 Jun 2020 18:14:11 +0000
Message-ID: <2888C2AD-EEB4-43C0-9686-B1E8D8A68174@juniper.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
x-mailer: Apple Mail (2.3608.80.23.2.2)
authentication-results: ietf.org; dkim=none (message not signed) header.d=none;ietf.org; dmarc=none action=none header.from=juniper.net;
x-originating-ip: [2600:1700:37a0:3ca0:b91c:aa2:6cf4:9ec2]
x-ms-publictraffictype: Email
x-ms-office365-filtering-ht: Tenant
x-ms-office365-filtering-correlation-id: f0caaac1-d67a-4e7b-8c6a-08d81d216378
x-ms-traffictypediagnostic: MN2PR05MB6829:
x-microsoft-antispam-prvs: <MN2PR05MB682996E35372BFCCA5511F55AA6F0@MN2PR05MB6829.namprd05.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 0450A714CB
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: vXBZe8mP2H6KnD1uCM/3Z8Ej0o/30UipZ7qh2IX0TFlp4voHdiEOtp7iTuZrIpZCfWeu7OY2S5ke6UeHYKUF2QT3JeGpfBH/s9Nkg0OG2ut1LD2SC0Vrh8VQBh01h50AGi1sWMeUfIqCOU0OR1Xq5sBdMzkfPFu0fYoz7FGic1E2ZI4sK1JrW37G1bu53F+vbWq39g1LPSCcVz/1h8hQBakGRzbVGqpNK65niIVi2M0V8ttp1NTZ/DsdYi2qUq8R8jrIxj61k9KnjIRpZsZ4R0vhrZO1Dj3L8p/fnLmynpwCgfL2QmMwSI3pBJUsb5y2ATUxObPwDC88C3as0rZZ2wmI93aLAfX2e142/PxSqbc+O3wkIkU61hHPZWMf/kZCY1VM0r6hF6MgC8QnF9LEKA==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BL0PR05MB5076.namprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(39860400002)(346002)(376002)(366004)(396003)(136003)(66446008)(64756008)(66556008)(66616009)(66946007)(66476007)(6512007)(99936003)(76116006)(91956017)(86362001)(6506007)(2906002)(36756003)(316002)(71200400001)(54906003)(478600001)(6916009)(8676002)(8936002)(83380400001)(186003)(4326008)(5660300002)(6486002)(2616005)(450100002)(166002)(33656002); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata: DO3JkUmLiRlFtF9dyjChwrl9O2485ZcgZnLa1LxshoGRvbTvXDbE7sY448M8W3mNodIIMvj/xD844Nn/1Yl7l5BYLU4v8FAYb+H3bz/Pgt2UEQL7J8jMcf194lBHyWmywwxmETpbR/JhdATs3LQmzSzPkwguOIYciPQ6tj7689yg+pXA0WkL38g6J+DjS1xy6Rf7Lt49H/hSxXdoyIuHSPBAzDtjRczJuQj5NDxhXdxb68j3MLt0BcYHAUVOwgJcOta4YfFJg9A4cw4peXCcnJRRDYyACdjYBXLX9SlfLTX3mh0TL7fGv2JqO2gaO/CtJ0s20g08KJGGBy9GXWothmcr/2Uod6S/mxnbOlZteCEt0AIIoDzDE3V47/k+mONACC1gBSdixwfEn6h9qW7uNkmPDc4itV1G5Ow3jgY71UuuUoZBMpIsh91s+PnuhxX5YIXvEWl0DOkh4SzfP8dK+HyK40g10WaN8G4+ktBhYRpImr4UZFZ30d40jo2FqoRN4Nk+2Ol64QSbmEvYdYHq34C3xyD/MN1rTlRKqi0nq6R56o4g5sTaKViOVgaYjEze
x-ms-exchange-transport-forked: True
Content-Type: multipart/mixed; boundary="_004_2888C2ADEEB443C09686B1E8D8A68174junipernet_"
MIME-Version: 1.0
X-OriginatorOrg: juniper.net
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: BL0PR05MB5076.namprd05.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: f0caaac1-d67a-4e7b-8c6a-08d81d216378
X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Jun 2020 18:14:11.0977 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: bea78b3c-4cdb-4130-854a-1d193232e5f4
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: 1mNyOy5RbIDbtKNMh51Y5oNWjhgkDKEXyV5UxGEXgS7LwrQNF1YlZfYTXYjP53ib
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR05MB6829
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-06-30_06:2020-06-30, 2020-06-30 signatures=0
X-Proofpoint-Spam-Details: rule=outbound_spam_notspam policy=outbound_spam score=0 cotscore=-2147483648 clxscore=1011 malwarescore=0 lowpriorityscore=0 mlxlogscore=999 mlxscore=0 priorityscore=1501 impostorscore=0 bulkscore=0 suspectscore=0 adultscore=0 spamscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006300125
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtgwg/UhLjGXUsJtMApnStUDWGz6WUnMY>
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: Tue, 30 Jun 2020 18:14:23 -0000

Hello,

I have been selected as the Routing Directorate reviewer for this draft. The Routing Directorate seeks to review all routing or routing-related drafts as they pass through IETF last call and IESG review, and sometimes on special request. The purpose of the review is to provide assistance to the Routing ADs. For more information about the Routing Directorate, please see ​http://trac.tools.ietf.org/area/rtg/trac/wiki/RtgDir<http://trac.tools.ietf.org/area/rtg/trac/wiki/RtgDir>

Although these comments are primarily for the use of the Routing ADs, it would be helpful if you could consider them along with any other IETF Last Call comments that you receive, and strive to resolve them through discussion or by updating the draft.

Document: draft-ietf-rtgwg-policy-model-16
Reviewer: John Scudder
Review Date: June 30, 2020
IETF LC End Date: ?
Intended Status: Standards Track


Summary: I have one significant concern about this document and recommend that the Routing ADs discuss this issue further with the authors.


Comments:

The draft is clear and readable, thank you for putting in the effort to produce a high-quality document.


Major Issues:

1. On page 17 you say:

        Policy 'subroutines' (or nested policies) are supported by
        allowing policy statement conditions to reference another
        policy definition which applies conditions and actions from
        the referenced policy before returning to the calling policy
        statement and resuming evaluation.  If the called policy
        results in an accept-route (either explicit or by default),
        then the subroutine returns an effective true value to the
        calling policy.  Similarly, a reject-route action returns
        false.  If the subroutine returns true, the calling policy
        continues to evaluate the remaining conditions (using a
        modified route if the subroutine performed any changes to the
        route).

I read this as saying further evaluations should consider the modified route, not the original route. But on page 10 you say:

   Note that the route's pre-policy attributes are always used for
   testing policy statement conditions.  In other words, if actions
   modify the policy application specific attributes, those
   modifications are not used for policy statement conditions.

Which is it? I think this has to be resolved one way or the other before progressing the document.


Minor Issues:

2. For an outsider reading the document, the precise meanings of “import” and “export”, as well as “routing context” (and similar) are not clear. The first place I noticed this was in section 6:

   Policy chains are sequences of policy
   definitions (described in Section 4) that have an associated
   direction (import or export) with respect to the routing context in
   which they are defined.

Possibly all this would be obvious to someone with the necessary YANG expertise, I guess. I can pretty much intuit it because I’m familiar with routing policy, however I think it’s worth putting in the effort to make it clearer to the reader and not require them to use their intuition. Would it be accurate to rewrite the quoted sentence something like this?

“Policy chains are sequences of policy definitions (described in Section 4). They can be referenced from different contexts. For example, a policy chain could be associated with a routing protocol and used to control its interaction with its protocol peers. Or, it could be used to control the interaction between a routing protocol and the local routing information base. A policy chain has an associated direction (import or export), with respect to the context in which it is referenced."

3. This sentence rubbed me wrong:

   Nested policies are a
   convenience in many routing policy constructions but creating
   policies nested beyond a small number of levels (e.g., 2-3) should be
   discouraged.

By whom should they be discouraged? Maybe you mean “are discouraged”? By the way, *why* are they discouraged?

4. A question about the next sentence:

   Also, implementations should have validation to assure
   that there is no recursion amongst nested routing policies.

I guess the concern about recursion is that given the route data is treated as immutable by policy and there’s no way to pass results or parameters, there’s no way to have a termination condition? This makes sense, or doesn’t, depend on how you resolve my question #1. (Also I think you mean “ensure”.)

5. Mostly in this document it’s clear that you’re using “operator” in the sense of “network operator” and not in its algebraic sense, but I found it a little ambiguous in this sentence:

   Match conditions may be further modified using the match-set-options
   configuration which allows operators to change the behavior of a
   match.  Three options are supported:

It would remove ambiguity if you changed this to say “network operators”.

6. Some of the types you describe are suffixed with “-type”, for example “ospf-external-type”. Others aren’t suffixed, for example “ospf-external-t1”. Is there any reason for this lack of consistency? It hurts my eyes but is otherwise harmless I suppose.

7. It’s unclear to me why the draft defines “bgp-local” and “bgp-external”, since it otherwise doesn’t deal with BGP in any way, leaving that for a separate document. Furthermore, I don’t even understand what the semantics of these are. I suppose “bgp-external” is likely to be a route received from an EBGP peer. As for “bgp-local”, I don’t care to guess.

8. The description of ip-prefix says “The IP prefix represented as an IPv6 or IPv4 network number followed prefix length with an intervening slash character a delimiter”. I think maybe you are missing a “by a” and a “as”? As in, "The IP prefix represented as an IPv6 or IPv4 network number followed by a prefix length with an intervening slash character as a delimiter.”

9. Speaking of IP addresses and prefixes, you use net 10 in one of your examples. It’s my understanding that this is poor form, that you should be using the “documentation” addresses given in RFC 6890. (Thanks for doing that with the rest of the document, BTW.)

10. Also speaking of prefixes, all your examples are nicely-formed. Here’s a less-nicely formed one: 192.0.2.0/8 mask-length-lower=24 mask-length-upper=24. Does this match 192.0.2/24? Does it match 192.0.0/24? How about 192.255.1/24? Does it match something else, if so what? Is it a syntax error? I think this relates to my later question #16.

11. You describe export-policy as:

           "List of policy names in sequence to be applied on
            sending a routing update in the current context, e.g.,
            for the current peer group, neighbor, address family,
            etc.";

Is export-policy really restricted only to the formation of routing updates? This makes perfect sense for BGP, but I don’t think the link-state IGPs really work this way, for example.

12. You describe apply-policy as:

           "Anchor point for routing policies in the model.
            Import and export policies are with respect to the local
            routing table, i.e., export (send) and import (receive),
            depending on the context.";

This is not clear to me (sorry). If I expand “i.e.” as “in other words” it doesn’t help I’m afraid. Since I don’t understand it I can’t suggest a fix. :-(

13. Where you say “ambiguous and implementation dependent” I suggest dropping “and implementation dependent”, it seems redundant.

14. I feel sad that all the examples are IPv4, poor IPv6 remains the red-headed stepchild. ¯\_(ツ)_/¯

15. In the final example on p. 37, I scratched my head a little that the operation being done is set-import-level. I guess the policy is going to be applied in the IS-IS context, and therefore it’s not OSPF exporting the route, but rather IS-IS importing the route into its LSPDB? This is what led to my comment #2.

16. I don’t think you ever define the semantics of a prefix set. Of course “everyone knows” that this should be a best match, and not (say) sequential match or something else — but please say so. See also my comment #10, you also seem to be underspecified with respect with what to do if mask-length-lower is greater than the given mask length.


Nits:

17. I’ve attached an edited version of the draft with a few small typo and grammar corrections. Here’s a diff as well, vs. the base -16:

jgs-mbp:Downloads jgs$ diff draft-ietf-rtgwg-policy-model-16.txt draft-ietf-rtgwg-policy-model-16-jgs-edits.txt
155c155
<    exported, modified, and advertised between routing protocols
---
>    exported, modified, and advertised between routing protocol
302c302
<    The models provides a set of generic sets that can be used for
---
>    The models provide a set of generic sets that can be used for
777c777
<    elsewhere in the draft.
---
>    elsewhere in this document.
876c876
<         or comparison operations, and similarly actions may be
---
>         or comparison operations, and similarly actions may be a
996c996
<          "RFC 5302 - Domain-Wide Prefix Distributino with
---
>          "RFC 5302 - Domain-Wide Prefix Distribution with
1014c1014
<          "RFC 5302 - Domain-Wide Prefix Distributino with
---
>          "RFC 5302 - Domain-Wide Prefix Distribution with
1059c1059
<          "RFC 5302 - Domain-Wide Prefix Distributino with
---
>          "RFC 5302 - Domain-Wide Prefix Distribution with
1077c1077
<          "RFC 5302 - Domain-Wide Prefix Distributino with
---
>          "RFC 5302 - Domain-Wide Prefix Distribution with
1088c1088
<          "RFC 5302 - Domain-Wide Prefix Distributino with
---
>          "RFC 5302 - Domain-Wide Prefix Distribution with
1103c1103
<          "RFC 5302 - Domain-Wide Prefix Distributino with
---
>          "RFC 5302 - Domain-Wide Prefix Distribution with
1113c1113
<          "RFC 5302 - Domain-Wide Prefix Distributino with
---
>          "RFC 5302 - Domain-Wide Prefix Distribution with
1483c1483
<              "Condition to check the protocol specific type
---
>              "Condition to check the protocol-specific type
2208c2208
<    The routing policy module defined in this draft is based on the
---
>    The routing policy module defined in this document is based on the